routing in virtualbox

Discussions about using Linux guests in VirtualBox.
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: routing in virtualbox

Post by noteirak »

The Virtualbox configuration is correct, yes. I use it myself on production VMs.
As I said, the issue is with your IP configuration & routing configuration, both not in scope of this forum.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
gulamerah
Posts: 17
Joined: 7. Apr 2013, 15:57
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: various ubuntu varian

Re: routing in virtualbox

Post by gulamerah »

noteirak wrote:The Virtualbox configuration is correct, yes. I use it myself on production VMs.
As I said, the issue is with your IP configuration & routing configuration, both not in scope of this forum.
thanks a lot for your help noteirak.
it's like you said, i still have to learn more....
by the way, i could achieve the configuration i wanted.

i found that i should change ip_forward value to '1' . though i have activate ip_forward before but still no successfull connection, maybe because i missed something.
and the routing shoudl be something like this " ip route add next_hop_network via gateway".
and the intermediate router could be configured using brideged adapter or internal network.

:D
gulamerah
Posts: 17
Joined: 7. Apr 2013, 15:57
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: various ubuntu varian

Re: routing in virtualbox

Post by gulamerah »

is it appropriate if i asked why after cloning VM, file 70-persistent-net.rules gone missing ? or should i make a new thread??
i havent's found a clue on the net.
i used this command , udevadm trigger --action=add , but it still cannot regenerated
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: routing in virtualbox

Post by noteirak »

Not sure how this file is generated in the first place, but cloning generates new Hardware ID and new MACs (unless you prohibit it).
Typically, it means your network config get reseted. I am not sure if that specific file should disapear, but you could have your network config wipped by the guest OS.

It definitly wouldn't be a Virtualbox issue tho, but most likely a consequence of the cloning.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Post Reply