Operation not Permitted

Ive been running a debian vm in incus for at least 1 year plus now. Been working fine. Now after an update my mounts wont work inside other programs. I get Operation not supported. When using virtio i can access in the vm but not trough my other programs. I tried changing to 9p. Then i can access the mounts (also in the other programs). But only read. Same uid, perms 777 on both host and client. idmap not isolated and the vm is privileged.

Where do i go from here?

If you were to create a new Debian VM now, and make similar mounts, do these work as they used to, before? By doing this, you can troubleshoot whether the issue is related to (perhaps) a recent update (of Incus or some other package), or it’s some configuration settings that changed recently.

If you can provide a simplified test case, it would be possible to try to replicate on a different system.

Started a test.

Guest:

Operating System:
OS: Debian GNU/Linux
OS Version: 12
Kernel Version: 6.1.0-40-amd64
Hostname: test
FQDN: localhost

Host:

6.17.5-zabbly+ #ubuntu24.04

Mount inside:

Access: (0777/drwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)

Directory on host:

Access: (0777/drwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)

When i run a ftp-deamon i get Operation not supported when i use virtiofs. Works fine in the vm itself. When i try 9p. i can read in both the vm and the deamon. But i cant write. Operation not permitted.

Everything worked fine with virtiofs before. The deamon isnt updated or changed for months.

I get the same errors in the old vm as in the new.

Give the actual list of commands so that someone can try to replicate.

Note that you would not need to install an FTP server but rather run the touch command to create a file, as a way to demonstrate whether a mount point is writable.

Well the touch command works on virtiofs. But the ftp cant even read anymore. And the ftp isnt updated. So something else changed. A fix would be to make the 9p mount writable.

So just incus config device set vm devicename io.bus=9p

And make that writable. Because i get operation not permitted.

There are different types of FTP servers and the good ones have the facility to drop privileges for the process that serves the files. Perhaps it’s an issue where you need to security.nesting=true?

What FTP server are you using?

If the shared directory is normal directory on the VM, does it still work? Because if it does not work, then it’s an issue with the FTP server configuration.

You arent really hearing me. The ftp has been working fine for 1+ year. In the same VM.

The ftp and settings havent been changed in a year. The mounts have been working in the the ftp and the vm os. Now from nowhere it doesnt work.

virtiofs=works in the OS. I get operation not supported in the ftp. Worked fine before.

9p=can READ in both the os and ftp. cant write.

uid same on host and guest. Perms 777.

So the problem isnt the ftp. Something in incus changed.