sharing folders - QEMU-KVM & Windows guest

Questions about virtualization software
Forum rules
Before you post please read how to get help
snowcrash101
Level 2
Level 2
Posts: 83
Joined: Sat Feb 04, 2017 7:16 am
Location: UK

sharing folders - QEMU-KVM & Windows guest

Postby snowcrash101 » Mon Nov 13, 2017 4:33 am

Hello

I've used virtualbox and sharing folders with a Windows guest is straightforward. Though with QEMU-KVM it doesn't seem to be. I keep reading about samba-share, but it's not clear how to do this. Is there a step-by-step guide that someone could point me to?

thanks
Learning linux & dumping spyware Windows
Intel Core i5-7500 (Kaby Lake) | Asus H270-Plus | 16gb DDR4 HyperX Fury
Samsung 960 EVO 500GB NVME SSD | 2TB HDD

odtech
Level 2
Level 2
Posts: 89
Joined: Sat Jan 21, 2017 9:25 am

Re: sharing folders - QEMU-KVM & Windows guest

Postby odtech » Tue Nov 14, 2017 4:39 pm

snowcrash101 wrote:Hello

I've used virtualbox and sharing folders with a Windows guest is straightforward. Though with QEMU-KVM it doesn't seem to be. I keep reading about samba-share, but it's not clear how to do this. Is there a step-by-step guide that someone could point me to?

thanks


Hi.

You can read the man pages either in linux or on the web.

Code: Select all

man samba

https://www.samba.org/samba/docs/man/manpages-3/smb.conf.5.html

For a quick start though you can just do the following.

To install samba

Code: Select all

sudo apt-get install samba

Decide which user you will use to authenticate with when accessing the shares from the windows guest. I just use my mint username and same password.

Code: Select all

sudo smbpasswd -a <username>

Configure a share.

Code: Select all

sudo nano /etc/samba/smb.conf

Add the share definition to the bottom of the file. If the folder you are sharing is not in your home directly just make sure the user you specified for authentication has rights to the folder.

Code: Select all

[<put share name here>]
path = <path to share>
browseable = yes
writeable = yes
guest ok = no
valid users = <username>

Save and exit
Now restart samba
sudo service smbd restart


Return to “Virtualization”