Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • This was the simplest for me for a couple of files. This is similar to this post Shared Folder in QEMU Between Linux Host and Windows Guest which has more explanation. It seems that virt-copy-in does a combination of guestmount and then guestunmount. Commented Jun 12, 2023 at 15:39
  • To find that .qcow2 file, I looked in the GUI Virtual Machine details | SATA Disk 1 | Source path. Mine was /var/lib/libvirt/images/win10.qcow2. I also needed to use sudo so my command was sudo virt-copy-in -a /var/lib/libvirt/images/win10.qcow2 ~/.bashrc / which would copy my .vimrc file to the Windows `C:` root. Commented Jun 12, 2023 at 15:48