[arch-general] Qemu - File sharing using Samba
Hi, I'm trying to get access to files on my ArchLinux host from my Qemu emulated Windows7 guest. I have installed samba on ArchLinux host system; I start it with: # systemctl start smbd.service I started the guest Windows7 system with: $ qemu-system-x86_64 -smb /home/cspal -cpu core2duo -m 1024 -k hu -enable-kvm -usbdevice tablet /var/lib/libvirt/images/win7.qcow2 When in Windows7 guest system, either in Firefox browser or in Windows Explorer, I can't connect to \\10.0.2.4 What am I missing here? -- Regards from Pal
On 06.07.14 at 16:14, Csányi Pál wrote:
Hi,
I'm trying to get access to files on my ArchLinux host from my Qemu emulated Windows7 guest.
I have installed samba on ArchLinux host system; I start it with: # systemctl start smbd.service
I started the guest Windows7 system with:
$ qemu-system-x86_64 -smb /home/cspal -cpu core2duo -m 1024 -k hu -enable-kvm -usbdevice tablet /var/lib/libvirt/images/win7.qcow2
When in Windows7 guest system, either in Firefox browser or in Windows Explorer, I can't connect to \\10.0.2.4
What am I missing here?
-- Regards from Pal
QEMU has built-in SMB server, you shouldn't start it on your own for this. See the wiki for details: https://wiki.archlinux.org/index.php/QEMU#QEMU.27s_built-in_SMB_server Also, according to qemu(1), the -smb option is deprecated. -- jlk
2014-07-06 16:50 GMT+02:00 Jakub Klinkovský <j.l.k@gmx.com>:
On 06.07.14 at 16:14, Csányi Pál wrote:
I'm trying to get access to files on my ArchLinux host from my Qemu emulated Windows7 guest.
I have installed samba on ArchLinux host system; I start it with: # systemctl start smbd.service
I started the guest Windows7 system with:
$ qemu-system-x86_64 -smb /home/cspal -cpu core2duo -m 1024 -k hu -enable-kvm -usbdevice tablet /var/lib/libvirt/images/win7.qcow2
When in Windows7 guest system, either in Firefox browser or in Windows Explorer, I can't connect to \\10.0.2.4
What am I missing here?
QEMU has built-in SMB server, you shouldn't start it on your own for this. See the wiki for details: https://wiki.archlinux.org/index.php/QEMU#QEMU.27s_built-in_SMB_server
Also, according to qemu(1), the -smb option is deprecated.
OK, I red that and now I'm starting my VM with the command: qemu-system-x86_64 -net nic -net user,smb=/mnt/windows7 -cpu core2duo -m 1024 -k hu -enable-kvm -usbdevice tablet /var/lib/libvirt/images/win7.qcow2 Still, when I'm trying to acess the \\10.0.2.4\qemu in Windows explorer, I get nothing. The error message is about that that the server is not responding, saying something about time.. -- Regards from Pal
Op 6 jul. 2014 20:08 schreef "Csányi Pál" <csanyipal@gmail.com> het volgende:
2014-07-06 16:50 GMT+02:00 Jakub Klinkovský <j.l.k@gmx.com>:
On 06.07.14 at 16:14, Csányi Pál wrote:
[...]
OK, I red that and now I'm starting my VM with the command:
qemu-system-x86_64 -net nic -net user,smb=/mnt/windows7 -cpu core2duo -m 1024 -k hu -enable-kvm -usbdevice tablet /var/lib/libvirt/images/win7.qcow2
Still, when I'm trying to acess the \\10.0.2.4\qemu in Windows explorer, I get nothing. The error message is about that that the server is not responding, saying something about time..
Can you ping that ip adress from Windows? Second: do you have filesharing enabled in the Windows vm (and instructed the firewall to allow that)? mvg, Guus
Hi Guus, 2014-07-06 22:37 GMT+02:00 Guus Snijders <gsnijders@gmail.com>:
Op 6 jul. 2014 20:08 schreef "Csányi Pál" <csanyipal@gmail.com> het volgende:
2014-07-06 16:50 GMT+02:00 Jakub Klinkovský <j.l.k@gmx.com>:
On 06.07.14 at 16:14, Csányi Pál wrote:
[...]
OK, I red that and now I'm starting my VM with the command:
qemu-system-x86_64 -net nic -net user,smb=/mnt/windows7 -cpu core2duo -m 1024 -k hu -enable-kvm -usbdevice tablet /var/lib/libvirt/images/win7.qcow2
Still, when I'm trying to acess the \\10.0.2.4\qemu in Windows explorer, I get nothing. The error message is about that that the server is not responding, saying something about time..
Can you ping that ip adress from Windows?
I can't ping 10.0.2.4 IP address from Windows.
Second: do you have filesharing enabled in the Windows vm (and instructed the firewall to allow that)?
I think I have filesharing enabled in the Windows vm (and instructed the firewall to allow that) because I did setup on Windows vm this by following these steps: http://swerdna.dyndns.org/susesambawin7.html Still, I'm not sure in that that what did I on Windows vm, because: 1. the \\10.0.2.4\qemu directory is on the host GNU/Linux system, right, 2. the directory I shared on the Windows vm is a directory on that Windows vm system so these two settings is for different things, right? -- Regards from Pal
On 07.07.14 at 16:40, Csányi Pál wrote:
Hi Guus,
2014-07-06 22:37 GMT+02:00 Guus Snijders <gsnijders@gmail.com>:
Op 6 jul. 2014 20:08 schreef "Csányi Pál" <csanyipal@gmail.com> het volgende:
2014-07-06 16:50 GMT+02:00 Jakub Klinkovský <j.l.k@gmx.com>:
On 06.07.14 at 16:14, Csányi Pál wrote:
[...]
OK, I red that and now I'm starting my VM with the command:
qemu-system-x86_64 -net nic -net user,smb=/mnt/windows7 -cpu core2duo -m 1024 -k hu -enable-kvm -usbdevice tablet /var/lib/libvirt/images/win7.qcow2
Still, when I'm trying to acess the \\10.0.2.4\qemu in Windows explorer, I get nothing. The error message is about that that the server is not responding, saying something about time..
Can you ping that ip adress from Windows?
I can't ping 10.0.2.4 IP address from Windows.
I don't think ping will ever work for user networking, this should be fine.
Second: do you have filesharing enabled in the Windows vm (and instructed the firewall to allow that)?
I think I have filesharing enabled in the Windows vm (and instructed the firewall to allow that)
because I did setup on Windows vm this by following these steps: http://swerdna.dyndns.org/susesambawin7.html
I can't access that url.
Still, I'm not sure in that that what did I on Windows vm, because: 1. the \\10.0.2.4\qemu directory is on the host GNU/Linux system, right, 2. the directory I shared on the Windows vm is a directory on that Windows vm system
so these two settings is for different things, right?
That's right, for 1. you're fine with user networking (-net user,smb=...), but for 2. you will need something better to be able to access the guest system from the host. See the subsections of QEMU#Networking [1] on the wiki. [1]: https://wiki.archlinux.org/index.php/QEMU#Networking
-- Regards from Pal
-- jlk
2014-07-07 17:43 GMT+02:00 Jakub Klinkovský <j.l.k@gmx.com>:
On 07.07.14 at 16:40, Csányi Pál wrote:
2014-07-06 22:37 GMT+02:00 Guus Snijders <gsnijders@gmail.com>:
Op 6 jul. 2014 20:08 schreef "Csányi Pál" <csanyipal@gmail.com> het volgende:
2014-07-06 16:50 GMT+02:00 Jakub Klinkovský <j.l.k@gmx.com>:
On 06.07.14 at 16:14, Csányi Pál wrote:
[...]
OK, I red that and now I'm starting my VM with the command:
qemu-system-x86_64 -net nic -net user,smb=/mnt/windows7 -cpu core2duo -m 1024 -k hu -enable-kvm -usbdevice tablet /var/lib/libvirt/images/win7.qcow2
Still, when I'm trying to acess the \\10.0.2.4\qemu in Windows explorer, I get nothing. The error message is about that that the server is not responding, saying something about time..
Can you ping that ip adress from Windows?
I can't ping 10.0.2.4 IP address from Windows.
I don't think ping will ever work for user networking, this should be fine.
Second: do you have filesharing enabled in the Windows vm (and instructed the firewall to allow that)?
I think I have filesharing enabled in the Windows vm (and instructed the firewall to allow that)
because I did setup on Windows vm this by following these steps: http://swerdna.dyndns.org/susesambawin7.html
I can't access that url.
Still, I'm not sure in that that what did I on Windows vm, because: 1. the \\10.0.2.4\qemu directory is on the host GNU/Linux system, right, 2. the directory I shared on the Windows vm is a directory on that Windows vm system
so these two settings is for different things, right?
That's right, for 1. you're fine with user networking (-net user,smb=...), but for 2. you will need something better to be able to access the guest system from the host. See the subsections of QEMU#Networking [1] on the wiki.
However, neither 1., nor 2. doesn't work here. How can I solve these problems? -- Regards from Pal
participants (3)
-
Csányi Pál
-
Guus Snijders
-
Jakub Klinkovský