Page 1 of 1

Networking problem on Debian host

Posted: 5. Aug 2017, 16:47
by paok1926
hello all,

i run successfully virtualbox on a Debian 8 host, with some Windows guests. I'm trying to setup a Ubuntu guest, but i cant get the network to start. I have a DHCP server on my network, but neither static nor dhcp settings work.
this is the output of ifconfig command on my host:

Code: Select all

eth0      Link encap:Ethernet  HWaddr e4:11:5b:13:b7:34  
          inet addr:10.122.2.29  Bcast:10.122.2.127  Mask:255.255.255.128
          inet6 addr: fe80::e611:5bff:fe13:b734/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:66270971 errors:0 dropped:0 overruns:0 frame:0
          TX packets:39571278 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:55741948398 (51.9 GiB)  TX bytes:5589475736 (5.2 GiB)
          Interrupt:16 Memory:fbee0000-fbf00000 

eth1      Link encap:Ethernet  HWaddr e4:11:5b:13:b7:35  
          inet addr:10.122.2.28  Bcast:10.122.2.127  Mask:255.255.255.128
          inet6 addr: fe80::e611:5bff:fe13:b735/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:88887501 errors:0 dropped:0 overruns:0 frame:0
          TX packets:109900464 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:9992689512 (9.3 GiB)  TX bytes:104627060410 (97.4 GiB)
          Interrupt:17 Memory:fbfe0000-fc000000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:2113 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2113 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:236432 (230.8 KiB)  TX bytes:236432 (230.8 KiB)

and this is how i try to start network on my Ubuntu guest:

Code: Select all

VBoxManage modifyvm "Puppet" --nictype1 82540EM --nic1 bridged --bridgeadapter1 eth0
attached you can see the output of ifconfig command on the guest..

Re: Networking problem on Debian host [Solved]

Posted: 5. Aug 2017, 18:35
by paok1926
for a strange reason it wanted to add this option: --cableconnected1 on
now it works..

Code: Select all

VBoxManage modifyvm "Puppet" --nictype1 82540EM --nic1 bridged --bridgeadapter1 eth0 --cableconnected1 on

Re: Networking problem on Debian host

Posted: 5. Aug 2017, 18:45
by socratis
Strange reason? Not really if you think about it, it's more of a security feature. Create a NIC, but don't connect it immediately until you've had a chance to configure it properly in the guest. Of course this only applies to the CLI, not the GUI, because ... in the CLI you know what you're doing ;)

Re: Networking problem on Debian host

Posted: 5. Aug 2017, 18:51
by paok1926
i started this host, by adding two windows xp guests without problem..
the third guest was openmediavault (without problems) but i had this cable problem in the 4th host, an Elastix box.. i dont remember how i fixed then.. :)
and now this with an Ubuntu host.. anyway, it should be mentioned somewhere for newbies like me :)