Score:1

Create a shared folder for KVM Windows guest on Ubuntu server 20.04 or properly set up NAT connection

kn flag

Hi I am posting this because all of the guides I can find involve a GUI. I am using Ubuntu server and controlling it with cockpit. I installed the following packages to get virtual machines working: qemu qemu-kvm libvirt-daemon libvirt-clients bridge-utils virt-manager. I can use my Windows 10 Pro guest from the web interface, but I need it to save my DVR recordings to /Data/Tank/Plex/Playon. If I go set up NAT, the virtual machine says the cable is unplugged... so I can't get it to show up on my network, I was hoping to use samba. I then tried an alternative, mounting a shared folder to the virtual machine. I can't find a guide that works only through command line interface. Can anyone help me get either of these solutions to work? I have been at this for three days and followed many guides one of which told me to install gdm which gave me a very broken GUI, that took a long time to fix because I didn't have terminal or SSH. The IP addresses that are generated don't match my network. My Gateway is 192.168.50.1, Thanks for your help! This is the VM page for Cockpit

Christian Ehrhardt avatar
sl flag
NAT communication won't work well once you want to gave the guest to be discoverable. You can consider either creating a real bridge and use that network which will make the VM appear on the network as any other of your computers (see https://netplan.io/examples/#configuring-network-bridges). Or (without network setup) you can use either the older 9pfs or virtio-fs (depends on the versions you are using) to share host/guest folder (see "Sharing files between Host<->Guest" at https://ubuntu.com/server/docs/virtualization-libvirt)
kn flag
Thanks for your help. I will have that a try. I only need this VM to save DVR recordings to the server and for our tv to see it and request for movies to be recorded.
Score:0
ad flag

If you have a Google Account you can use Google drive for Shared Files

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.