Host-VM filesystem sharing issues using 9p

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hypervisor and both VMS are openSUSE 13.2, two VM definitions (template and gary respectively) have the following:
     
     <filesystem type='mount' accessmode='squash'>
        <source dir='/xxx/yyy/zzz/template'/>
        <target dir='Sec'/>
        <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
      </filesystem>
--
     <filesystem type='mount' accessmode='squash'>
        <source dir='/xxx/yyy/zzz/gary'/>
        <target dir='ABC'/>
        <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
     </filesystem>

Although /xxx/yyy/zzz isn't the real path, the two subdirectories do exist under a common parent.  Permissions are:

     (from root)
     drwxr-xr-x   5 root root  4096 Aug 11 13:25 xxx

     (from xxx)
     drwxr-xr-x 5 root root 1024 Jan 7 18:15 yyy

     (from yyy)
     drwxr-xr-x 8 qemu  qemu         1024 Jan 11 11:48 zzz

     (from zzz)
     drwxrwxr-x 2 qemu libvirt 1024 Jan 14 12:23 gary
     drwxrwxr-x 2 qemu libvirt 1024 Jan 13 08:19 template

On template things work

     template:/mnt # mount -t 9p -o trans=virtio,version=9p2000.L Sec /mnt/Demo
     template:/mnt # ll Demo
     total 3
     -rw-r--r-- 1 root root 26 Jan 11 11:08 2nd-Example
     -rw-r--r-- 1 root root 93 Jan 11 10:45 Example
     -rw-r--r-- 1 478 474 8 Jan 13 08:19 test

On gary I have to load the 9p modules for some reason but, after I do, I get:

     gary:/mnt # lsmod | grep 9p
     9pnet_virtio 17529 0 
     9p 57012 0 
     9pnet 80300 2 9p,9pnet_virtio
     virtio_ring 21225 4 virtio_pci,virtio_rng,virtio_balloon,9pnet_virtio
     virtio 14474 4 virtio_pci,virtio_rng,virtio_balloon,9pnet_virtio

However,

     gary:/mnt # mount -t 9p -o trans=virtio,version=9p2000.L ABC tmp
     mount: special device ABC does not exist


I've used ABC on another hypervisor, that name isn't a problem.

Any ideas or anything else I should check?

Other questions:

     Is there a way to list the 9p "target dir" names on either the hypervisor or, more importantly, the VM?
     Can duplicate "target dir" entries be used on the same hypervisor if they are for different VMs (i.e, a target dir of ABC on different VMs)?  Is so, can they have different paths?

Confidentiality Notice | This email and any included attachments may be privileged, confidential and/or otherwise protected from disclosure.  Access to this email by anyone other than the intended recipient is unauthorized.  If you believe you have received this email in error, please contact the sender immediately and delete all copies.  If you are not the intended recipient, you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux