[Pkg-libvirt-maintainers] Bug#805624: Bug#805624: libvirt-bin: document how to access host file system

Guido Günther agx at sigxcpu.org
Thu Nov 26 10:26:40 UTC 2015


Hi, Ritesh,
On Sat, Nov 21, 2015 at 12:51:29PM +0530, Ritesh Raj Sarraf 
> > If we do this on the Debian side we should explain the whole thing,
> > that
> > is the libvirt XML _and_ the client side. What do you think? A bit
> > like
> > 
> >     http://wiki.qemu.org/Documentation/9psetup
> > 
> > but much shorter. We also need to mention that this is a QEMU/KVM
> > thing.
> 
> I'm not sure if putting everything complete in the README.Debian file
> would be practical. My understanding always was to use this file for
> the obvious questions and brief answers to them, and further
> pointers/hints on what to look for.

So in this case s.th. like:

* How can I mount a directory from the host in a QEMU VM.

  Use the 9pfs filesystem with a domain xml like:

    <filesystem type='mount' accessmode='passthrough'>
      <source dir='/direcgory/on/host'/>
      <target dir=share'/>
    </filesystem>

  and to mount it within the guest use:

  cat <<EOF > /etc/fstab
      share /mnt/share  9p  trans=virtio,rw,_netdev 0       0
  EOF
  mount /mnt/share
     
  See https://libvirt.org/formatdomain.html#elementsFilesystems for
  details.

Or maybe we want to have more like a "How do I switch from VirtualBox to
QEMU" section?

What I'd like to understand is what motivated you to submit the patch.
I'm pretty sure we need to improve on the docs, just trying to figure
out _where_.

Cheers,
 -- Guido



More information about the Pkg-libvirt-maintainers mailing list