I've sucessfully installed VBox on my Windows 7 computer, created a VM on which I installed Ubuntu.
The issue begins here :
I have read the user manual part about networking options. But I don't know if I understood it well.
I want my guest OS to be able to access the Internet. But on the network my PC is on, computers are given static IPs according to their MAC address, and any network adapter with unrecognized MAC addy won't be able to use the network.
So put simple : would it be possible for the guest system to use the host's network interface, keeping the same IP & MAC addresses ?
MAC Filtering - Giving the guest Internet access
-
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
Re: MAC Filtering - Giving the guest Internet access
NAT is just fine for your situation. It will use the Host to access internet in the same way your browser does it.
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.
-
DaLynX
- Posts: 4
- Joined: 11. Nov 2009, 15:16
- Primary OS: MS Windows 7
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Ubuntu 7.04
Re: MAC Filtering - Giving the guest Internet access
Okay I'm giving it a try. But it does not seem to work correctly. Guest can't ping Host and vice-versa.
Host configuration :
Guest configuration:
Any idea ?
Edit : I switched the guest settings to get it's IP automatically, and now the ping works. But Guest IP is inet adr:10.0.2.15 Bcast:10.0.2.255 Masque:255.255.255.0
Host configuration :
Code: Select all
Carte Ethernet VirtualBox Host-Only Network :
Suffixe DNS propre à la connexion. . . :
Adresse IPv4. . . . . . . . . . . . . .: 192.168.137.1
Masque de sous-réseau. . . . . . . . . : 255.255.255.0
Passerelle par défaut. . . . . . . . . :Code: Select all
eth0 Lien encap:Ethernet HWaddr 08:00:27:E9:DB:E1
inet adr:192.168.137.2 Bcast:192.168.137.255 Masque:255.255.255.0
adr inet6: fe80::a00:27ff:fee9:dbe1/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Packets reçus:3 erreurs:0 :0 overruns:0 frame:0
TX packets:192 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
Octets reçus:214 (214.0 b) Octets transmis:13579 (13.2 KiB)
Adresse de base:0xd010 Mémoire:f0000000-f0020000 Edit : I switched the guest settings to get it's IP automatically, and now the ping works. But Guest IP is inet adr:10.0.2.15 Bcast:10.0.2.255 Masque:255.255.255.0
Last edited by DaLynX on 11. Nov 2009, 16:04, edited 1 time in total.
-
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
Re: MAC Filtering - Giving the guest Internet access
Use DHCP on the Guest. The IP address on the NAT interface can't handle static, especially if you don't give it the IP you would get through DHCP. If you need additional Host <> Guest connection, add another NIC attached to Host-Only.
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.
-
DaLynX
- Posts: 4
- Joined: 11. Nov 2009, 15:16
- Primary OS: MS Windows 7
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Ubuntu 7.04
Re: MAC Filtering - Giving the guest Internet access
But my windows Host does not have a DHCP server, does it ?Sasquatch wrote:Use DHCP on the Guest. The IP address on the NAT interface can't handle static, especially if you don't give it the IP you would get through DHCP. If you need additional Host <> Guest connection, add another NIC attached to Host-Only.
Anyway it's working now. No idea where the Guest gets its IP settings from, but I can see Google's homepage.
-
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
Re: MAC Filtering - Giving the guest Internet access
Maybe reading chapter 6 of the User Manual will enlighten you
.
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.
-
DaLynX
- Posts: 4
- Joined: 11. Nov 2009, 15:16
- Primary OS: MS Windows 7
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Ubuntu 7.04
Re: MAC Filtering - Giving the guest Internet access
You're right, sorry for having bothered you, and thanks a lot for the help !
The virtual machine receives its network address and configuration on the private
network from a DHCP server integrated into VirtualBox. The IP address thus assigned
to the virtual machine is usually on a completely different network than the host. As
more than one card of a virtual machine can be set up to use NAT, the first card is
connected to the private network 10.0.2.0, the second card to the network 10.0.3.0
and so on. If you need to change the guest-assigned IP range for some reason, please
refer to chapter 9.12, Fine-tuning the VirtualBox NAT engine, page 138.