Questions tagged [9p]

9P (or the Plan 9 Filesystem Protocol) is a network protocol developed for the Plan 9 from Bell Labs distributed operating system as the means of connecting the components of a Plan 9 system. 9P was revised for the 4th edition of Plan 9 under the name 9P2000 that contained various fundamental improvements. The latest version of the Inferno operating system also uses 9P2000.

9P (or the Plan 9 Filesystem Protocol or Styx) is a network protocol developed for the Plan 9 from Bell Labs distributed operating system as the means of connecting the components of a Plan 9 system. Files are key objects in Plan 9. They represent windows, network connections, processes, and almost anything else available in the operating system. Unlike NFS, 9P encourages caching and also serving synthetic files (e.g. /proc to represent processes).

9P was revised for the 4th edition of Plan 9 under the name 9P2000 that contained various fundamental improvements. The latest version of the Inferno operating system also uses 9P2000. The Inferno file protocol was originally called Styx, but technically it has always been a variant of 9P.

14 questions
17
votes
3 answers

KVM guest cannot write to 9p share owned by non-root

I am aiming to set up full write access to a 9p share for a KVM guest. Both host and guest have the same users/groups with the same IDs. Both host and guest should be able to write to the share using same usernames and I don't want to distinguish…
Greendrake
  • 1,171
  • 1
  • 12
  • 22
17
votes
2 answers

Read/write access for passthrough (9p) filesystems with libvirt/qemu?

I have recently started experimenting with the support for passthrough filesystems in recent versions of KVM/QEMU/libvirt. Making the filesystems available for read access has "just worked", but I'm a little puzzled about how write access is…
larsks
  • 41,276
  • 13
  • 117
  • 170
8
votes
4 answers

How to efficiently share host's folder with KVM guests?

I am configuring the service which stores plenty of files uploaded by nginx in /srv/storage dir on host system. These files are processed by worker KVM guests which may create new files or assign extended attributes to existing ones. Files are never…
gertas
  • 1,007
  • 10
  • 11
7
votes
2 answers

Filesystem passthrough functionality in Centos 6.2?

I have a CentOS 6.3 machine currently running 2 virtualized CentOS 6.2 machines via KVM/QEMU/Libvirt. I'm trying to setup filesystem passthrough between the guests and the host. However the option is grayed out in the Virtualization Manager with the…
mm118
  • 73
  • 1
  • 4
3
votes
1 answer

Debian Squeeze Linux 9p virtfs guest mount failure

First some background information on the server: Host OS: Debian Linux Squeeze + qemu-kvm version 1.0+dfsg-8~bpo60+1 Guest OS: Debian Linux Squeeze I use qemu-kvm via libvirt. I have set up 9p VirtFS with the following in Guest's XML…
Tero Kilkanen
  • 34,499
  • 3
  • 38
  • 58
2
votes
1 answer

Enabling Qemu/KVM Filesystem Passthrough Centos 7

I have a system running Centos 7 with the stock qemu/KVM code. I have several virtual servers running on this system and would like to enable the filesystem passthrough option. So far, I have not had any luck. I have downloaded ther kernel…
Brent
  • 31
  • 1
  • 1
  • 4
2
votes
1 answer

qemu/virt-manager no permisson on shared folder

I have a strange problem. Iam trying to create a shared folder via the add-hardware->filesystem option. For Type and Modus i choose Passtrought and for Driver Path. The Source Path is /free and target is mytag. I mount it with: mount -t 9p -o…
TomAtToe
  • 21
  • 1
  • 3
1
vote
0 answers

9p / virtfs : new files in shared folder don't belong to the expected user and group

For the last two days I tried to share a folder between the host and a guest virtual machine, both running the latest Debian Stretch. The folder I wish to share is owned by the myuser, group mygroup on the host hard drive (/srv/sharedfolder). Since…
chuugar
  • 11
  • 1
1
vote
1 answer

Why is posix.lstat taking such a long time? (duplicity backing up of 9p virtio filesystem)

I have a filesystem mounted with 9p virtio through KVM, and am backing it up using duplicity to a remote SSH server. I' m trying to speed up the backup process, which seems unreasonably slow to me. The source size is 20GB in 107.651 files, which are…
jjakob
  • 41
  • 5
1
vote
1 answer

Loading a 9pnet kernel module to a linux kernel 3.16.6-tinycore64

I am trying to use 9p to mount a remote FS. The client machine is a tiny core linux machine. modprobe 9pnet says that module 9pnet cant be found at modules.dep How to add 9p kernel modules to the tiny core linux?
user301916
  • 163
  • 1
  • 1
  • 5
1
vote
0 answers

Correct SELinux labels for a kvm/qemu user session VM shared folder

I am trying to set up a shared folder using the 9p protocol for a kvm/qemu VM that runs on the user session (so the qemu process runs as me, not as root). Mounting the shared folder in guest works fine, I can see and read all files, but I cannot…
Simon
  • 225
  • 2
  • 7
1
vote
0 answers

libvirt qemu AppArmor 9p hard links

I am using libvirt with qemu on a debian host. One virtual machine has a 9p mount point defined:
felinira
  • 111
  • 1
0
votes
2 answers

9p filesystem interacting badly with KVM savevm snapshot

I have a 9p mount inside a VM. I take a snapshot of the VM state with savevm , stop the VM, then restart it with that snapshot (with kvm -loadvm ). When I try to interact with the mount by either umounting orlsing, the VM hangs…
regularfry
  • 215
  • 2
  • 11
0
votes
1 answer

Nginx fails to serve files from 9p

I have a VM with a 9p share and nginx. It worked fine until I updated my VM to Debian 10. Since then, it fails to serve files from my 9p share. Nginx returns an empty response and 2020/09/11 09:57:49 [alert] 864#864: *449 pread() read only 4096 of…