virtualbox  network question

mokkan
mokkan used Ask the Experts™
on
Hello,

I  just installed  virtual  box and trying to configure IP address.  Before I configure,  i clicked on I got there are no active network operations.
I am familiar with vmware workstation, but here I am not getting anything to setup the default network route.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
what IP Address are you trying to configure, VMware Workstation and Virtualbox are very similar ?

default network route, is set in the OS TCP/IP parameters for the physical network interface in the host, nothing to do with the Hypervisor ?

If you are referring to VMware's Virtual Network Editor, you will need to use VBoxManage command line tool

to create a NAT Network

e.g. VBoxManage natnetwork add --netname natnet1 --network "192.168.15.0/24" --enable

Author

Commented:
My  physical machine default IP addresses is 192.168.0.1 and I have created the VM in virtual box and loaded Solaris,  now I have created the default route to 192.168.0.1 in solaris, but I can't ping.
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
Well that depends on which networking mode, Virtualbox VM is using Bridged, Host only or NAT.

what IP Address does the VM have, and what networking mode are you using ?
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
I am using NAT as networking mode to access outside as well.

Author

Commented:
How does VM knows about hypervisor connectivity?  that piece is missing.

Author

Commented:
Now,  I can ping each VMs, but I can't  ping host or host can't ping VMs.  I have used NAT network.

Am I missign some thing here?
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
okay, what are the IP Addresses, of the host and VMs.

The VMs do not really know about the Hypervisor connectivity, it's the NAT network and virtual network which is created by virtualbox.

Author

Commented:
host IP address is  192.168.0.16

and VM IPs are  192.168.0.5 and  192.168.0.4
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
and this is NAT ?

Author

Commented:
NAT Network
VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017
Commented:
Okay, well there is something wrong here because you cannot NAT network, to the same network (e.g. subnet).

and the IP Addresses that are used in the NAT network are usually defined by the setup of the NAT network in the hypervisor.

so what you currently have is not going to work.

so some configuration needs to change somewhere in your VMs, or in the NAT network config.

Author

Commented:
Thank  you
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
no problems, thank you for your kind words.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial