[libvirt-users] XML syntax for "dir" attribute when making Host directory available to Windows guest

Hi, I have the following setup: Host: Ubuntu 10.04 Guest: Windows 2008 R2 Kernel: 2.6.32-40-generic virt-inst: 0.500.1-2ubuntu6.2 qemu-kvm: 0.12.3+noroms-0ubuntu9.18 All is working, however I would now like to share a given directory on the host with the guest. Using the "virsh edit" command I have prepared the following XML configuration snippet: <filesystem type='mount'> <source dir='/home/cameron/zip/hla'/> <target dir='/mnt/hla'/> </filesystem> My problem is the "target" element - what value should I use in the "dir" attribute, given that Windows drive paths do not follow Unix format (e.g. "F:\" versus "/mnt/hla"). Can any help? regards, cameron

On Wed, Mar 21, 2012 at 10:32:08AM +0200, Cameron Smith wrote:
Hi, I have the following setup: Host: Ubuntu 10.04 Guest: Windows 2008 R2 Kernel: 2.6.32-40-generic virt-inst: 0.500.1-2ubuntu6.2 qemu-kvm: 0.12.3+noroms-0ubuntu9.18
All is working, however I would now like to share a given directory on the host with the guest. Using the "virsh edit" command I have prepared the following XML configuration snippet: <filesystem type='mount'> <source dir='/home/cameron/zip/hla'/> <target dir='/mnt/hla'/> </filesystem>
My problem is the "target" element - what value should I use in the "dir" attribute, given that Windows drive paths do not follow Unix format (e.g. "F:\" versus "/mnt/hla").
For virtio-9p the target is not actually a directory path, but a "mount tag". The guest OS itself is responsible for deciding where to mount it. This is all academic for you though, since AFAIK, there is no virtio-9p driver available for Windows. Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|

Thanks Daniel. There are VirtIO drivers available for Windows, how would I know if these include VirtIO-9p? http://www.windowsservercatalog.com/results.aspx?text=Red+Hat&bCatID=1282&avc=10&ava=0&OR=5&=Go&chtext=&cstext=&csttext=&chbtext= cameron ----- Original Message -----
From: "Daniel P. Berrange" <berrange@redhat.com> To: "Cameron Smith" <cameron.smith@engco.co.mz> Cc: libvirt-users@redhat.com Sent: Wednesday, 21 March, 2012 12:00:08 PM Subject: Re: [libvirt-users] XML syntax for "dir" attribute when making Host directory available to Windows guest
On Wed, Mar 21, 2012 at 10:32:08AM +0200, Cameron Smith wrote:
Hi, I have the following setup: Host: Ubuntu 10.04 Guest: Windows 2008 R2 Kernel: 2.6.32-40-generic virt-inst: 0.500.1-2ubuntu6.2 qemu-kvm: 0.12.3+noroms-0ubuntu9.18
All is working, however I would now like to share a given directory on the host with the guest. Using the "virsh edit" command I have prepared the following XML configuration snippet: <filesystem type='mount'> <source dir='/home/cameron/zip/hla'/> <target dir='/mnt/hla'/> </filesystem>
My problem is the "target" element - what value should I use in the "dir" attribute, given that Windows drive paths do not follow Unix format (e.g. "F:\" versus "/mnt/hla").
For virtio-9p the target is not actually a directory path, but a "mount tag". The guest OS itself is responsible for deciding where to mount it.
This is all academic for you though, since AFAIK, there is no virtio-9p driver available for Windows.
Daniel -- |: http://berrange.com -o- | http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- | http://virt-manager.org :| |: http://autobuild.org -o- | http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- | http://live.gnome.org/gtk-vnc :|

On Wed, Mar 21, 2012 at 02:29:12PM +0200, Cameron Smith wrote:
Thanks Daniel.
There are VirtIO drivers available for Windows, how would I know if these include VirtIO-9p? http://www.windowsservercatalog.com/results.aspx?text=Red+Hat&bCatID=1282&avc=10&ava=0&OR=5&=Go&chtext=&cstext=&csttext=&chbtext=
Those drivers only cover network, disk & virtio serial. Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
participants (2)
-
Cameron Smith
-
Daniel P. Berrange