C Emmons
asked on
How can I connect from Windows 10 to Virtual Box VM with RedHat 8.4?
I purchased a book and hoping to learn Red Hat Linux. Per the book have installed Oracle Virtual Box. I have the default setup of both - freshly installed. The author uses SSH to connect from Windows 10 (where VirtualBox is installed) to Red Hat virtual machine. NAT is the default network interface and is the current setting. I can't connect. I've tried various things. Is my problem virtual box config or Red Hat? Windows shows a virtualbox host-only adapter - IP 192.168.113.1. My VM has IP 192.168.0.110. The author opened no firewall ports, etc.. Just connected straight away. Again, I hoping to learn RH - no experience with it or VirtualBox.
Are you able to ping from within the VM to outside world say google.com.
ping google.com
In virtualbox settings for network, check the adapter is enabled and cable connected is checked for that VM.
ping google.com
In virtualbox settings for network, check the adapter is enabled and cable connected is checked for that VM.
Please run and post the output from the following commands
On the RedHat VM
ip a
On the windows 10 (host)
ipconfig /all
The windows 10 should have two IPs
The LAN IP through which you are accessing everything external to the system on your LAN and The internet.
and then the VirtualBox adapter.
What I am looking for is to see whether the LAN IP of the windows 10 is the same as the IP being reported on the RedHat VM. This deals with your RedHat VM setup to have access directly to the Host's (windows 10 LAN)
In the absence of a match (the two being on the LAN) this will mean that your VM configuration of the network is that it is allocating a NATed IP from VirtualBox to the VM using a VirtualHost internal LAN and it is another seperate segment
One option, is to make the VM access the local LAN by reconfiguring the network interface settings of the VM while it is powered off.
The other is:
To connect from the host to the VM, you would need to create a path on virtualBox
The following could help better than me trying to describe ....
https://www.simplified.guide/virtualbox/port-forwarding
On the RedHat VM
ip a
On the windows 10 (host)
ipconfig /all
The windows 10 should have two IPs
The LAN IP through which you are accessing everything external to the system on your LAN and The internet.
and then the VirtualBox adapter.
What I am looking for is to see whether the LAN IP of the windows 10 is the same as the IP being reported on the RedHat VM. This deals with your RedHat VM setup to have access directly to the Host's (windows 10 LAN)
In the absence of a match (the two being on the LAN) this will mean that your VM configuration of the network is that it is allocating a NATed IP from VirtualBox to the VM using a VirtualHost internal LAN and it is another seperate segment
One option, is to make the VM access the local LAN by reconfiguring the network interface settings of the VM while it is powered off.
The other is:
To connect from the host to the VM, you would need to create a path on virtualBox
The following could help better than me trying to describe ....
https://www.simplified.guide/virtualbox/port-forwarding
I don't think I understand your configuration. Are both RH & W10 running as VirtualBox VM's on the same Host? Or are you using a different setup?
ASKER
I finally got the connection to connect with Putty, but something still isn't correct. It asks for Login, but then does not ask for password. If I supply password - and hit lots to returns and wait several minutes - it connects - and I'm logged in. Tested and Port 22 is open. passwordAuthentication is set to yes -- allow ssh with root is true. If I tracert to the IP it comes back one hop. Asking for the Login: comes back right away. Thanks again to any that can help. I'm having a hard time getting started with my training.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
To answer what did I change - basically a typo that I couldn't see for looking I guess -- I meant to use octet 92 and I had put 192.
I changed to bridge and from manually assigned to DHCP and it did pick up a 10. address and that does worked. The training was using something different, but this should suffice - I'll just need to substitute my addresses for exercises. I'm very frustrated about the other not working and not being able to figure it out -- but thank you very much for the help. I'm glad something worked. I'd tried Bridge - among everything else -- but hadn't changed from manual to DHCP before.
I changed to bridge and from manually assigned to DHCP and it did pick up a 10. address and that does worked. The training was using something different, but this should suffice - I'll just need to substitute my addresses for exercises. I'm very frustrated about the other not working and not being able to figure it out -- but thank you very much for the help. I'm glad something worked. I'd tried Bridge - among everything else -- but hadn't changed from manual to DHCP before.
You would use SSH/PuTTY to the IP Address 192.168.0.110
Have you installed OpenSSH server on Red Hat Linux ?
Can you ping 192.168.0.110 from your Host ?
Can you also check these IP Addresses because you would normally expect NAT IP Addresses of Host and VM, to be in the same network
e.g. 192.168.0.x