Share Folder Between Guest (Linux) and Host (LInux)in virt-manager (KVM/Qemu/libvirt)

Vineet Kumar
Mar 28, 2023

--

  1. Create Directory in HOST Machine
    [ostechnix@vmhost ~]$ mkdir -p /home/vk/Downloads && chmod 777 /home/vk/Downloads
  2. Setting On virt-manager
    a. Turn Of guest Machine If running
    b. In the next window, click “Show virtual hardware details” button on the menu bar and click “Add Hardware” button on the left pane.
Click On Add Hardware

Fill Following Entry

Fig2.

3. Save All configurations and Switch on Guest machine. And Run following Command

mkdir -p /home2
mount -t 9p -o trans=virtio,version=9p2000.L /hostshare /home2

NOTE : /hostshare will fixed as in Fig2 target path (name always be hostshare) and /home2 is user define mount point.

Enjoy

--

--