Re: Developing on host machine, running code on guest VM

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

 



I am actually having a hard time getting this to work with a CentOS VM.. 

I built and installed 9p-sac (Stand alone kernel module) and now 

[root@thirdspotcloud t2]# cat /proc/filesystems  | grep 9p
nodev 9p
[root@thirdspotcloud t2]# lsmod | grep 9p
9p                     16414  0 
9pnet                  39112  1 9p
[root@thirdspotcloud t2]# 

but  when I run: mount -t 9p -o trans=virtio  testmount /opt/workspace/ -oversion=9p2000.L

I get:

mount: wrong fs type, bad option, bad superblock on ecp,
       missing codepage or helper program, or other error
       (for several filesystems (e.g. nfs, cifs) you might
       need a /sbin/mount.<type> helper program)
       In some cases useful info is found in syslog - try
       dmesg | tail  or so



I used virt-manager to generate a config:

 <filesystem type='mount' accessmode='passthrough'>
      <driver type='path' wrpolicy='immediate'/>
      <source dir='/var/lib/libvirt/images/testfolder'/>
      <target dir='testmount'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
   </filesystem>

Any ideas?




On Wed, Mar 6, 2013 at 10:41 AM, Brad Barrows <bradleyb1537@xxxxxxxxx> wrote:
Ill look into that! Thank you so much!


On Wed, Mar 6, 2013 at 10:40 AM, Eric Blake <eblake@xxxxxxxxxx> wrote:
On 03/06/2013 11:02 AM, Brad Barrows wrote:
> Currently I am developing my projects on my host laptop and am sharing my
> development folder with my Guest VMs via NFS. This works however it is
> somewhat a hassle do to UID/GID issues..
>
> I was wondering if there was something similar to Shared Drives in
> VirtualBox?

We do have 9p filesystem passthrough, if your guest understands plan9
filesystems:
http://libvirt.org/formatdomain.html#elementsFilesystems
This appears to be the closest to a VirtualBox shared drive.

>
> Is NFS the best way to go about this kind of development or is there
> another feature I am missing?

While 9p is probably the slickest approach, NFS is probably the most
universally supported.  There are also other shared filesystems like
glusterfs that might be easier to manage than NFS.  But yeah, the
concept of having the guest share a portion of the filesystem living in
the host is still a topic for current development efforts.

--
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org




--
Brad Barrows
bbarrows@xxxxxxxxxxx



--
Brad Barrows
bbarrows@xxxxxxxxxxx
_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users

[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux