How to share a folder between KVM host and guest using virt-manager?

92,177

You could use 9p sharing as described at http://www.linux-kvm.org/page/9p_virtio .

Other possibilities include usage of a network file system like NFS or CIFS/Samba.

Share:
92,177

Related videos on Youtube

red.clover
Author by

red.clover

Updated on September 18, 2022

Comments

  • red.clover
    red.clover over 1 year

    For some time now, I've been using virt-manager to manage my virtual machines. When I want to copy a file from the host to the vm, I have been using scp to copy via ssh over the network. This is kind of tedious, and there must be a way to share a folder similar to VirtualBox. So how can I best share a folder between a KVM host and guest using virt-manager?

  • Kat Amsterdam
    Kat Amsterdam almost 8 years
    Unfortunately the instructions you linked to don't work in Ubuntu 14.04. Ubuntu doesn't recognize the 9p filesystem with the mount command and needs the 9mount command which I still have not got to work.
  • R S
    R S about 7 years
    @flob There is no /usr/bin/qemu-kvm. What to do ?
  • R S
    R S about 7 years
    @Kat Amsterdam did you solve that ?