Hi,
I'm having some issues with VirtualBox (actually its more with OSX) and host networking.
I have a CentOS VM which I can connect to over the network no problem when ever I am connected to a wireless network. I have bridged networking or NAT setup.
However I take the train quite often but still want to work on the VM whilst I am not connected to any wireless network. Because the Macbook air doesnt have any physical wired Ethernet connection I can't just set it up with a static IP and connect to it like that.
How can i create a virtual ethernet interface in OSX? Is this even possible?
Any ideas more than welcome.
Thanks.
Mike
Host networking on MacBook Air -> No physical Ethernet
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Host networking on MacBook Air -> No physical Ethernet
Add another virtual adapter set to host-only.
-
knoxy
- Posts: 3
- Joined: 1. Sep 2011, 17:13
- Primary OS: Mac OS X other
- VBox Version: OSE other
- Guest OSses: CentOS, Windows
Re: Host networking on MacBook Air -> No physical Ethernet
Thanks Perryg but don't i need a network interface on the Mac itself. I can add Virtual interfaces (along with the DHCP) on VirtualBox itself but i can't connect to it from the mac because there is no physical 'eth0' on the machine.
What I think i need to do is add a virtual 'eth0' on the physical mac in the same way that VirtualBox does for its VMs.
What I think i need to do is add a virtual 'eth0' on the physical mac in the same way that VirtualBox does for its VMs.
-
BillG
- Volunteer
- Posts: 5106
- Joined: 19. Sep 2009, 04:44
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows 10,7 and earlier
- Location: Sydney, Australia
Re: Host networking on MacBook Air -> No physical Ethernet
No. If you installed Host Only Networking when you installed VirtualBox (and that is the default), you will already have a host only interface in the host OS, and the virtual NIC in the vm will connect to this interface.
Bill
-
knoxy
- Posts: 3
- Joined: 1. Sep 2011, 17:13
- Primary OS: Mac OS X other
- VBox Version: OSE other
- Guest OSses: CentOS, Windows
Re: Host networking on MacBook Air -> No physical Ethernet
ah ok. Maybe I need to reinstall VB then because I only have the Wireless and BT network connections. Will give it a try and let you know how it goes. Otherwise I was looking at TUN/TAP but i need to understand a little more how it works first.
Cheers,
Mike
Cheers,
Mike
-
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: Host networking on MacBook Air -> No physical Ethernet
The Host-Only interface only appears when you start a VM that uses it. Just check the Preferences from the VB GUI, it will show if you have a Host-Only interface or not. If not, create one. Then configure the VM to use it.
If that still doesn't work, check this forum a bit more, there is a user that had a solution for this.
If that still doesn't work, check this forum a bit more, there is a user that had a solution for this.
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.
-
mschwartz
- Posts: 92
- Joined: 18. Oct 2010, 21:01
- Primary OS: MS Windows 7
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: ubuntu
Re: Host networking on MacBook Air -> No physical Ethernet
Maybe the link in my signature will help you.
I've only run into one issue using the scheme in the link. If I suspend the mac laptop and bring it to work and plug it into the company Ethernet, the guest's internet access goes away. If I reboot the guest, internet access comes back.
It makes sense if you think about it. Upon restore, the guest's networking is set up with IP, gateway, etc., from my house and wifi.
I've only run into one issue using the scheme in the link. If I suspend the mac laptop and bring it to work and plug it into the company Ethernet, the guest's internet access goes away. If I reboot the guest, internet access comes back.
It makes sense if you think about it. Upon restore, the guest's networking is set up with IP, gateway, etc., from my house and wifi.
-
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: Host networking on MacBook Air -> No physical Ethernet
Renewing the IP address in the Guest is enough to get it going again. No need to reboot 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.