I have a Windows 8 os on my computer with a VirtualBox Ubuntu server 14.
- Windows has access to the Internet and is visible on the router as an attached device 10.0.0.x.
- The Ubuntu server has access to the Internet but is not visible on the router, and when calling ifconfig I see: 10.0.2.15
Every time I restart the vm, it gets a different IP, and I would like it to be const.
Where do I start?
===========================================================
So they have mark this as duplicate and I cannot answer with a solution, but here goes...
The main issue was the VirtualBox adding a default Network adapter of type NAT
I'm not sure what it the purpose of it, but once I've set the type to BridgeAdapter my VM got a proper DHCP from the router, and now I can config my router to set a static IP of the VM network card MAC address!
Only weird thing I had to figure out, is that my router does not show the VM MAC address on the attached devices list, instead it shows the REAL network card MAC address.
So don't get confused and use the MAC defined in the Network adapter in your VM settings!
Let me know if this helps you too.