Hi all, I NEED to reach Internet with my guest.
My guest is skolelinux, a debian distribution with many network services preconfigured. Because of that, it works also like DHCP.
Its virtual network card is set to use NAT and the documentatin says virtualbox has its own DHCP service that gives the 10.0.2.0 network address to the first network card.
Well, the skolelinux DHCP does almost the same, it gives the 10.0.2.0/23 network address.
I think is not good Idea to change the skolelinux settings because the other services could not work anymore.
What do you suggest to reach Internet?
Thank you!
Suggestion about Networking: guest with dhcp
-
greenpossum
- Volunteer
- Posts: 98
- Joined: 11. Jul 2008, 08:10
Re: Suggestion about Networking: guest with dhcp
You can change the NATed subnet in a VBox VM, see the documentation.
-
stephanecharette
- Volunteer
- Posts: 300
- Joined: 10. Nov 2007, 22:03
- Primary OS: Ubuntu other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Ubuntu-64bit, Windows
- Location: Kelowna, British Columbia, Canada
- Contact:
Re: Suggestion about Networking: guest with dhcp
This is nice to know. I wasn't aware of this either. Just found it now -- check out section 9.11 of the user manual: "Configuring the address of a NAT network interface".greenpossum wrote:You can change the NATed subnet in a VBox VM, see the documentation.
Stéphane
I forgot to say that the host is running debian lenny and I'm using virtualbox 1.6.6 OSE.
About my problem, maybe, the best way is to use Host Interface Networing.
I already try to use it but without success.
Question about HIF:
Following the guide I run this command to create and add vbox0 to the bridge.
VBoxAddIF vbox0 <user> bro
1-After the reboot, is vbox0 still part of the bridge?
eth0 sure is becasue is because it's set by /etc/network/interfaces but how do I know if vbox0 is part of the brige? Wich command can I use to see that?
I was thinking to edit /etc/network/interfaces adding also vbox0 to the bridge:
auto br0
iface br0 inet dhcp
bridge_ports eth0 vbox0
2-is that correct?
3-Once the bridge is set up, I wonder wich IP addresses the interfaces are going to take, or better, wich IP addresses I should give them?
About my problem, maybe, the best way is to use Host Interface Networing.
I already try to use it but without success.
Question about HIF:
Following the guide I run this command to create and add vbox0 to the bridge.
VBoxAddIF vbox0 <user> bro
1-After the reboot, is vbox0 still part of the bridge?
eth0 sure is becasue is because it's set by /etc/network/interfaces but how do I know if vbox0 is part of the brige? Wich command can I use to see that?
I was thinking to edit /etc/network/interfaces adding also vbox0 to the bridge:
auto br0
iface br0 inet dhcp
bridge_ports eth0 vbox0
2-is that correct?
3-Once the bridge is set up, I wonder wich IP addresses the interfaces are going to take, or better, wich IP addresses I should give them?
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Please check the Forum FAQ about your issues. Vbox0 should be added to the bridge (seen by 'brctl show') when you start the VM.
NAT should be enough for you. What errors do you get?
NAT should be enough for you. What errors do you get?
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
The faq don't answer my questions. I know that probably this is not the right palce to post them: they are about net concept more than virtualbox related.
Anyway, this mornig (before go to work
)I had success with the bridge.
The only thing I did was to add vbox0 in /etc/network/interfaces as I worte in my previous post.
auto br0
iface br0 inet dhcp
bridge_ports eth0 vbox0
Maybe it was not neccessary. I didn't know how to check if vbox0 was realy in the bridge or not and I was thinking that probably, it needed to be set up in this configuration file to be restore at each reboot. It worked:
i reached my router from the guest that got a configured my the router dhcp !!
I gave a fast watch to ifconfing on the host and I've seen vobx0 didn't have any IP assigned. I do not remember what was shown for eth0 and vbox0.
Whell, I'll try to clear better my idea and ask more precise questions.
Thanks.
Anyway, this mornig (before go to work
The only thing I did was to add vbox0 in /etc/network/interfaces as I worte in my previous post.
auto br0
iface br0 inet dhcp
bridge_ports eth0 vbox0
Maybe it was not neccessary. I didn't know how to check if vbox0 was realy in the bridge or not and I was thinking that probably, it needed to be set up in this configuration file to be restore at each reboot. It worked:
i reached my router from the guest that got a configured my the router dhcp !!
I gave a fast watch to ifconfing on the host and I've seen vobx0 didn't have any IP assigned. I do not remember what was shown for eth0 and vbox0.
Whell, I'll try to clear better my idea and ask more precise questions.
Thanks.
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Bridge enslaved interfaces should not get an IP, the bridge should. Your setup is working now, no problems with it. I am going to add a full config for HIF setup for Ubuntu Guests in either the FAQ or Linux Hosts (with a link to it in the FAQ).
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.