Why is the VM not seen by a physical machine on the same LAN even though it is connected in bridge mode?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Why is the VM not seen by a physical machine on the same LAN even though it is connected in bridge mode?
Only the host where the machine is installed can ping or see the VM on the network, returning results from the arp or telnet. But what I want is for another host to see this VM. The ultimate goal is to make this host connect, through the x2go client, to the VM with x2go server; but neither ping works, nor arp, nor telnet. An important detail is that the VM sees this host, but not the other way around. There is no firewall enabled either on the VM, nor I your host, nor on the other host.
Only the host where the machine is installed can ping or see the VM on the network, returning results from the arp or telnet. But what I want is for another host to see this VM. The ultimate goal is to make this host connect, through the x2go client, to the VM with x2go server; but neither ping works, nor arp, nor telnet. An important detail is that the VM sees this host, but not the other way around. There is no firewall enabled either on the VM, nor I your host, nor on the other host.
What kind of virtualization engine did you use?
What are the operating systems on the VM host and guest? What versions?
What subnets are involved?
Exactly how did you set up the networking for the VM guest?
What are the IP addresses involved? (I presume they are all local, so that revealing them is not a security issue.)
What do your routing tables look like in the VM host and guest?
What does your command look like on the remote machine?
That is just to start, so that our next round of questions can be more pointed. Asking a question without providing information enough to understand the question is never likely to result in useful answers.
Only the host where the machine is installed can ping or see the VM on the network
then you say that:
Quote:
the VM sees this host, but not the other way around.
This looks like a contradiction to me. Does the host see the VM or not? If not, my guess is that ip_forward is disabled. If yes, perhaps the VM is connected with NAT, which is the default for VirtualBox and libvirt/KVM.
But please provide context and answer Wpeckham's questions.
Last edited by berndbausch; 04-10-2020 at 10:08 AM.
What kind of virtualization engine did you use? Virtual Box What are the operating systems on the VM host and guest? What versions? VM host: Windows 10; Guest: Ubuntu 19.10 What subnets are involved? Only net 192.168.100.0/24 Exactly how did you set up the networking for the VM guest? Mode Bridge; promiscuous mode allow all What are the IP addresses involved? host vm 192.168.100.7; vm 192.168.100.33; host x2goclient 192.168.100.3 What do your routing tables look like in the VM host and guest?
vm host: (windows)
dest 0.0.0.0 router 192.168.100.1 interface 192.168.100.7
guest: (ubuntu)
dest 0.0.0.0 router 192.168.100.1 options UG
dest 192.168.100.0 router 0.0.0.0 options U
What does your command look like on the remote machine?
in host x2goclient (192.168.100.3):
ping 192.168.100.33
telnet 192.168.100.33 1022
arp -a (return only 192.168.100.1 and 192.168.100.7)
What kind of virtualization engine did you use? Virtual Box What are the operating systems on the VM host and guest? What versions? VM host: Windows 10; Guest: Ubuntu 19.10 What subnets are involved? Only net 192.168.100.0/24 Exactly how did you set up the networking for the VM guest? Mode Bridge; promiscuous mode allow all What are the IP addresses involved? host vm 192.168.100.7; vm 192.168.100.33; host x2goclient 192.168.100.3 What do your routing tables look like in the VM host and guest?
vm host: (windows)
dest 0.0.0.0 router 192.168.100.1 interface 192.168.100.7
guest: (ubuntu)
dest 0.0.0.0 router 192.168.100.1 options UG
dest 192.168.100.0 router 0.0.0.0 options U
What does your command look like on the remote machine?
in host x2goclient (192.168.100.3):
ping 192.168.100.33
telnet 192.168.100.33 1022
arp -a (return only 192.168.100.1 and 192.168.100.7)
GOOD start.
If the networking is set properly on the guest and in virtualbox, then only something on the VM host woudl block that traffic. Let us see if we can eliminate issues in the guest a bit first.
How did you set the networking within the guest? Was that set static, or dynamic (using dhcp perhaps)?
Can you display the result of the command
Code:
ip a
on that guest? This will give us both address and subnet definition information that may help.
Have you turned on any listeners in the guest? At what ports do they listen? Can you verify that they listen on the external IP address and port as far as the guest networking shows?
I am not at all interested in arp table information at this time. I have found arp tables of little help and often misleading in recent months. The important thing is IP traffic, routing, listening, and firewalls. If you are not seeing traffic, there is going to be a reason why: one that we can find.
It is unfortunate that your host is running Win10, as Microsoft seems to decide you should not be able to do or see certain things: and the mix of what they allow, disallow, or hide can change without warning during even minor updates. For that reason I do not have a Win10 installation handy to help with troubleshooting. We may have to depend on others for those steps. I am confident that, if we persevere, we will be able to resolve the issue. When Win7 was in support I often ran several guests (one or two at a time) in bridged mode without seeing this issue.
VM Host Windows -> dynamic
Host with x2goclient -> static
Okay, but: Can you display the result of the command
Code:
ip a
on that guest? This will give us both address and subnet definition information that may help.
Have you turned on any listeners in the guest?
At what ports do they listen?
Can you verify that they listen on the external IP address and port as far as the guest networking shows?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.