Networking problem on Debian host

Discussions related to using VirtualBox on Linux hosts.
Post Reply
paok1926
Posts: 7
Joined: 6. Oct 2011, 03:43
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: windows xp

Networking problem on Debian host

Post 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..
Attachments
Screen Shot 2017-08-05 at 17.46.14.png
Screen Shot 2017-08-05 at 17.46.14.png (24.87 KiB) Viewed 896 times
paok1926
Posts: 7
Joined: 6. Oct 2011, 03:43
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: windows xp

Re: Networking problem on Debian host [Solved]

Post 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
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Networking problem on Debian host

Post 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 ;)
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
paok1926
Posts: 7
Joined: 6. Oct 2011, 03:43
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: windows xp

Re: Networking problem on Debian host

Post 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 :)
Last edited by socratis on 5. Aug 2017, 19:06, edited 1 time in total.
Reason: Removed unnecessary verbatim quote of the whole previous message.
Post Reply