Host Guest networking without cable

Discussions related to using VirtualBox on Linux hosts.
Post Reply
andronikus
Posts: 16
Joined: 28. Mar 2008, 15:23

Host Guest networking without cable

Post by andronikus »

Hi, maybe this isnt Vbox question but I hope someone can help.

I have ubuntu host and XP guest setup on Vbox 2.1. Ive setup Host networking on guest. Now the problem is that I have to plug in ehternet cable on my host mashine for working network between Guest an Host.

Is there a solution for this?
andronikus
Posts: 16
Joined: 28. Mar 2008, 15:23

Re: Host Guest networking without cable

Post by andronikus »

Hi,

Yes I asked the same question there.


I looked link you gave me, Im wondering is there a way to achive guest host network to work without using bridge and tap interface, without NAT just one laptop, one guest no cables . :)
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 Guest networking without cable

Post by Sasquatch »

Nothing special is needed as addition. Only the TAP adapter. Or you get yourself a switch. There is also a so-called loopback connector. All it does it link the TX wires to the RX wires. See http://www.tikkiweb.net/loopback as example.
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.
sej7278
Volunteer
Posts: 1003
Joined: 5. Sep 2008, 14:40
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Solaris, Linux, Windows, OS/2, MacOSX, FreeBSD
Contact:

Re: Host Guest networking without cable

Post by sej7278 »

yes i used to use a loopback cable (twisted wires) with vmware which had the same issue, i didn't even realise that virtualbox had the same issue, never used it away from a switch i guess.

so what's the point of the "cable connected" option in the network settings then, one would assume that should override the need to actually have a "cable connected".

what's the logic behind it anyway, why would you want to limit network usage for something that doesn't actually traverse the network, by taking notice of the link state?
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 Guest networking without cable

Post by Sasquatch »

The point is that VB uses the Host hardware settings. If the Host doesn't detect a link on an interface, it drops it configuration and turns it off. That way, VB won't be able to use it, because it's off. You can't see in the dark if you don't turn on the lights.
The option of Cable connected in the VM settings is the virtual cable. Sometimes you need to pull that plug if you need to do something that requires you to have an inactive network connection. You don't always want to disable the interface, or shut down the VM and remove the NIC.
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.
andronikus
Posts: 16
Joined: 28. Mar 2008, 15:23

Re: Host Guest networking without cable

Post by andronikus »

Thank you :)
Post Reply