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.
set a static IP for virtualbox machine
-
alain.roger
- Posts: 42
- Joined: 10. Feb 2010, 15:34
- Primary OS: Linux other
- VBox Version: OSE other
- Guest OSses: Windows, MacOSX, Manjaro
- Contact:
set a static IP for virtualbox machine
Manjaro 21 / Plasma 5
What does not kill you, makes you stronger
What does not kill you, makes you stronger
-
alain.roger
- Posts: 42
- Joined: 10. Feb 2010, 15:34
- Primary OS: Linux other
- VBox Version: OSE other
- Guest OSses: Windows, MacOSX, Manjaro
- Contact:
Re: set a static IP for virtualbox machine
strange i can even ping my own router, even i setup in /etc/resolv.conf:
nameserver 192.168.1.1
nameserver 192.168.1.1
Manjaro 21 / Plasma 5
What does not kill you, makes you stronger
What does not kill you, makes you stronger