LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 04-10-2020, 09:38 AM   #1
cesarsj
Member
 
Registered: Mar 2019
Location: Patos de Minas, MG, Brazil
Distribution: Slackware
Posts: 159

Rep: Reputation: Disabled
Question 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.
 
Old 04-10-2020, 09:59 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,646

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
Quote:
Originally Posted by cesarsj View Post
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.
 
Old 04-10-2020, 10:06 AM   #3
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
You say this:
Quote:
Originally Posted by cesarsj View Post
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.
 
Old 04-10-2020, 10:51 AM   #4
cesarsj
Member
 
Registered: Mar 2019
Location: Patos de Minas, MG, Brazil
Distribution: Slackware
Posts: 159

Original Poster
Rep: Reputation: Disabled
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)
 
Old 04-10-2020, 08:22 PM   #5
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,646

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
Quote:
Originally Posted by cesarsj View Post
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.

Last edited by wpeckham; 04-10-2020 at 08:27 PM.
 
Old 04-10-2020, 08:33 PM   #6
cesarsj
Member
 
Registered: Mar 2019
Location: Patos de Minas, MG, Brazil
Distribution: Slackware
Posts: 159

Original Poster
Rep: Reputation: Disabled
The ip on the guest is configured as dynamic (using dhcp perhaps)
 
Old 04-11-2020, 05:39 AM   #7
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,646

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
Quote:
Originally Posted by cesarsj View Post
The ip on the guest is configured as dynamic (using dhcp perhaps)
So it should be picking up the same network setup and nameserver (DNS) settings as your host, from the dhcp server.
And for the rest?
 
Old 04-11-2020, 06:21 AM   #8
cesarsj
Member
 
Registered: Mar 2019
Location: Patos de Minas, MG, Brazil
Distribution: Slackware
Posts: 159

Original Poster
Rep: Reputation: Disabled
VM Host Windows -> dynamic
Host with x2goclient -> static
 
Old 04-11-2020, 05:34 PM   #9
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,646

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
Quote:
Originally Posted by cesarsj View Post
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?
 
  


Reply

Tags
virtualbox



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Apache Virtual Host redirects to directory listing even though config is same as Vhosts that work witchkinkofangmar Linux - Newbie 5 09-13-2019 03:31 PM
how to know the remote machine is Virtual machine or physical machine pantdk Linux - Server 19 10-16-2014 01:48 PM
Mint 9 Internet connection goes on and off even though connected to wireless network hajiang Linux - Wireless Networking 5 01-06-2012 03:20 AM
Multiple hosts not seeing each others files even though LUN is same abylin1 Red Hat 1 01-11-2008 07:46 AM
problems loading internet pages even though connected jamsy Linux - Wireless Networking 1 10-26-2005 12:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration