Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
windows guest with KVM can't connect host's samba
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
wenzi
Tux's lil' helper
Tux's lil' helper


Joined: 18 Jan 2019
Posts: 106

PostPosted: Tue Dec 28, 2021 7:35 am    Post subject: windows guest with KVM can't connect host's samba Reply with quote

I install Windows10 with virt-manager ,network use NAT ,the ip is 192.168.122.13 .my host IP is 192.168.1.5 and Raspberry Pi IP is 192.168.1.4 .I can connect Raspberry Pi with samba in Windows10 ,but I can not connect Host. But ping 192.168.1.5 is fine ,and I cant connect Host samba with my phone ,and the other virtual machine (guest: archlinux with virt-manager) with the same network config. if I use virtualbox all of them works. What can I do ? thanks!
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Tue Dec 28, 2021 10:46 am    Post subject: Reply with quote

So you have your samba host in 192.168.1.5
Is the host Gentoo?
You have an rpi on 192.168.1.4.I fail to understand why this is relevant though.
and a windows VM on 192.168.122.13
You are trying to mount a samba share from the host to the Windows VM?
From 192.168.122.13 can you ping 192.168.1.5?
If yes you have misconfigured samba on the host.
_________________
:)
Back to top
View user's profile Send private message
wenzi
Tux's lil' helper
Tux's lil' helper


Joined: 18 Jan 2019
Posts: 106

PostPosted: Tue Dec 28, 2021 11:24 am    Post subject: Reply with quote

alamahant wrote:
So you have your samba host in 192.168.1.5
Is the host Gentoo?
You have an rpi on 192.168.1.4.I fail to understand why this is relevant though.
and a windows VM on 192.168.122.13
You are trying to mount a samba share from the host to the Windows VM?
From 192.168.122.13 can you ping 192.168.1.5?
If yes you have misconfigured samba on the host.

Yes ,use nat ,can ping 192.168.1.5 from virtual machine.I change vm network to bridge ,VM ip change to 192.168.1.133 and it still does'nt work ,but in virtualbox use NAT network ,I can connect Host's samba
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Tue Dec 28, 2021 11:50 am    Post subject: Reply with quote

Plz
Code:

cat /etc/samba/smb.conf

Also look in
/var/log/samba/log.smbd
for clues.
How do you try to mount share in Windows?
What is the error you are getting?
_________________
:)
Back to top
View user's profile Send private message
wenzi
Tux's lil' helper
Tux's lil' helper


Joined: 18 Jan 2019
Posts: 106

PostPosted: Wed Dec 29, 2021 5:01 am    Post subject: Reply with quote

Code:
sudo smbpasswd -a lee

and reboot ,it works !
I don't know why ,here is my smb.conf https://dpaste.com/CAC2USKHH
before this, give me this error : windows can not access \\192.168.1.5 please check the spelling of the name
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum