You are not logged in.

#1 2023-02-04 14:04:02

to_you_bannana
Member
Registered: 2022-07-15
Posts: 52

[SOLVED] QEMU Shared folder between Linux host and windows 10 Guest

I installed samba then I used the following command:

qemu-system-x86_64 -drive file=Windows.img,format=qcow2,if=virtio -nic user,id=nic0,smb=/home/aarav/Downloads

After starting up the VM, I opened file explorer and went to the path (CTRL+L)

\\192.168.2.100 (linux ip)\qemu

. The windows troubleshooter said:

The device or resource (192.168.2.100) is not setup to accept connections on port "The File and printer sharing (SMB)"

How can I have a shared folder between my windows 10 guest and linux host?

Last edited by to_you_bannana (2024-01-26 20:01:19)

Offline

#2 2023-02-04 14:27:46

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] QEMU Shared folder between Linux host and windows 10 Guest

Arch Wiki qemu page wrote:

...and makes it accessible to the guest at a different IP address (10.0.2.4 by default).

Please edit your original post and remove the irrelevant cry for help. Everyone who posts here wants help and shouting for it won't make it happen any quicker.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2023-02-04 15:16:18

to_you_bannana
Member
Registered: 2022-07-15
Posts: 52

Re: [SOLVED] QEMU Shared folder between Linux host and windows 10 Guest

Slithery wrote:
Arch Wiki qemu page wrote:

...and makes it accessible to the guest at a different IP address (10.0.2.4 by default).

Please edit your original post and remove the irrelevant cry for help. Everyone who posts here wants help and shouting for it won't make it happen any quicker.

Same error regardless

Offline

#4 2023-02-04 15:38:27

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,102

Re: [SOLVED] QEMU Shared folder between Linux host and windows 10 Guest

Do you run the qemu instance as your normal user, so it has access to the theorethical path?

Last edited by V1del (2023-02-04 15:40:13)

Offline

#5 2023-02-04 17:20:30

to_you_bannana
Member
Registered: 2022-07-15
Posts: 52

Re: [SOLVED] QEMU Shared folder between Linux host and windows 10 Guest

V1del wrote:

Do you run the qemu instance as your normal user, so it has access to the theorethical path?

Yes

Offline

#6 2023-02-04 17:44:21

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] QEMU Shared folder between Linux host and windows 10 Guest

What's the output of 'ip a' on the host?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#7 2023-02-06 12:22:32

Maniaxx
Member
Registered: 2014-05-14
Posts: 761

Re: [SOLVED] QEMU Shared folder between Linux host and windows 10 Guest

Watch the smb handshake with wireshark (if possible - not sure about that qemu 'user nic' implementation) and lookup the smb server logs (might need qemu's smb.conf to be modified for debugging/increased verbosity).


sys2064

Offline

#8 2023-02-08 10:18:48

TadaenSylvermane
Member
Registered: 2014-01-24
Posts: 34

Re: [SOLVED] QEMU Shared folder between Linux host and windows 10 Guest

The problem is Windows Network Discovery doesn't come enabled by default. Dumb design decision imho. Just need to enable it. Had this problem myself.

https://www.makeuseof.com/fix-network-d … %20options.

Offline

#9 2023-02-09 14:36:04

to_you_bannana
Member
Registered: 2022-07-15
Posts: 52

Re: [SOLVED] QEMU Shared folder between Linux host and windows 10 Guest

I used the normal samba server standalone without the smb option, seems to work now. Thanks

Offline

Board footer

Powered by FluxBB