DHCP on the Guest and Client behind a host NIC

Discussions about using Linux guests in VirtualBox.
Post Reply
belatronix
Posts: 5
Joined: 31. May 2007, 20:08

DHCP on the Guest and Client behind a host NIC

Post by belatronix »

my Guest BS is an SuSE 9.3 and the Host is running under XP SP2.
Now i have a NIC in my host, where an embedded System is connected to.
The Embedded System is trying to get an IP from the DHCP Server which is running on the guest system in the virtual box.

But every configuration i tried does not work.

internet access from the virtual Machine works fine and a Ping is also workin in both directions.

Where is my mistake?

Axel
belatronix
Posts: 5
Joined: 31. May 2007, 20:08

Post by belatronix »

Could it be that the creating of Host interfaces is buggy in Virtual Box?

Everytime when i trie to install an virtual Host interface i get an error message like this:

Assertion failed: [VBOX_SUCCESS (vrc)] at 'E:\vbox\1.3-w32-rel\src\VBox\Main\MachineImpl.cpp' (4087) in Machine::openConfigLoader.
VERR_OPEN_FAILED (-101) - File/Device open failed..
Please contact the product vendor!.


Result Code:
E_FAIL (0x80004005)
Component:
Machine
Interface:
IMachine {fd443ec1-0009-4f5b-9282-d72760a66916}
bodhi.zazen
Volunteer
Posts: 180
Joined: 17. May 2007, 16:02

Re: DHCP on the Guest and Client behind a host NIC

Post by bodhi.zazen »

belatronix wrote:my Guest BS is an SuSE 9.3 and the Host is running under XP SP2.
Now i have a NIC in my host, where an embedded System is connected to.
The Embedded System is trying to get an IP from the DHCP Server which is running on the guest system in the virtual box.

But every configuration i tried does not work.

internet access from the virtual Machine works fine and a Ping is also workin in both directions.

Where is my mistake?

Axel
Can you rephrase the question ? What is the problem ?

You say "internet access from the virtual Machine works fine and a Ping is also workin in both directions." so what is the problem ?

If you want your guest ot have a local IP, from your LAN (local dhcp server), I suggest you look into a bridged network connection.
If is a virtual machine, is it still broken ?
bodhi.zazen
Volunteer
Posts: 180
Joined: 17. May 2007, 16:02

Post by bodhi.zazen »

belatronix wrote:Could it be that the creating of Host interfaces is buggy in Virtual Box?
He he he ~

Potential problems include Host OS, Guest OS, Virtual box, and a faulty connection between brain and keyboard :)
If is a virtual machine, is it still broken ?
belatronix
Posts: 5
Joined: 31. May 2007, 20:08

Post by belatronix »

:x
The Embedded System is trying to get an IP from the DHCP Server which is running on the guest system in the virtual box.

That doesn´t work!

Pings from the host side to the guest´s and back are workin!

DHCP not!

But the same configuration on my laptop only with Linux and two cards works well!

You see, no broken Connection between Brain and Keyboard!

:evil:
bodhi.zazen
Volunteer
Posts: 180
Joined: 17. May 2007, 16:02

Post by bodhi.zazen »

belatronix wrote::x
The Embedded System is trying to get an IP from the DHCP Server which is running on the guest system in the virtual box.

That doesn´t work!

Pings from the host side to the guest´s and back are workin!

DHCP not!

But the same configuration on my laptop only with Linux and two cards works well!

You see, no broken Connection between Brain and Keyboard!

:evil:
LOL, no offense intended, I have brain farts myself from time to time :)

I do not understand the problem. You say the connection of working with linux.
If is a virtual machine, is it still broken ?
belatronix
Posts: 5
Joined: 31. May 2007, 20:08

Post by belatronix »

Problems are solved!

To use an DHCP running on the Guest BS from outside of the Host i define an TAP Interface in the Virtual Box. The new generated Device on the Host System has to connect over a bridge with the host device (select both interfaces and press the right Button on your Mouse!)

Both interfaces must get their IP´s from an DHCP, which is the DHCP on the Guest System. Now you can use this DHCP Service on your Host NIC without an DHCP Relay Agent!

Bela
Post Reply