set a static IP for virtualbox machine
Posted: 26. Oct 2012, 09:33
Hi,
i have a NAS that i based on Ubuntu 10.04 LTS version.
in order to develop module for my NAS, i have a virtual image of this OS that i can use under virtualbox.
Thus, i have installed VirtualBox on my Windows 7 (host) and open the Ubuntu 10.04 virtual image as guest.
For management purpose, i would like this virtual machine to have a static IP. I setup network adapter to "Bridged adapter" and check its MAC address.
in my wireless router, i reserved in DHCP an IP address for the virtualbox machine based on its MAC address and fix it, to be sure that it will always be the same IP address for it.
so from this point of view, everything seems to be ok.
So now guest get the reserved IP from my Router for this MAC address. I can ping from guest OS (ubuntu) other machine in my local network, but i can go on internet.
for example, when i type: sudo apt-get update i can't retrieve package or if i do a ping www.google.com i don't get any packet information.
where is my mistake ?
is there something more to do on Host OS ?
thx.
i have a NAS that i based on Ubuntu 10.04 LTS version.
in order to develop module for my NAS, i have a virtual image of this OS that i can use under virtualbox.
Thus, i have installed VirtualBox on my Windows 7 (host) and open the Ubuntu 10.04 virtual image as guest.
For management purpose, i would like this virtual machine to have a static IP. I setup network adapter to "Bridged adapter" and check its MAC address.
in my wireless router, i reserved in DHCP an IP address for the virtualbox machine based on its MAC address and fix it, to be sure that it will always be the same IP address for it.
so from this point of view, everything seems to be ok.
So now guest get the reserved IP from my Router for this MAC address. I can ping from guest OS (ubuntu) other machine in my local network, but i can go on internet.
for example, when i type: sudo apt-get update i can't retrieve package or if i do a ping www.google.com i don't get any packet information.
where is my mistake ?
is there something more to do on Host OS ?
thx.