VirtualBox

Ticket #2780 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

Cannot attach to Linux hostifs without IP => Fixed in SVN

Reported by: Technologov Owned by:
Priority: critical Component: network/hostif
Version: VirtualBox 2.1.0 Keywords:
Cc: Guest type: other
Host type: Linux

Description

The new networking stack of VirtualBox 2.1.0 does not detect NICs on the Linux host unless that NIC has IP address specified.

However in some cases I would not want my host NIC to have any IP at all.

For example my server has 2 NICs: 1 NIC should have IP to access the server, and second NIC is dedicated for VM networking, so it may not have an IP address at all - for security reasons.

For purposes of VBox I want my VMs to be connected to the second NIC, however it is not possible now with VBox 2.1.0, as the second NIC is not shown on the list of available host connections.

Instead I recommend list the NIcs to guest OS on a different criteria: namely whenever the interface is "UP"

This is partial output of "ifconfig" - you can see that the interface is "up" on 4th line.

tap0 Link encap:Ethernet HWaddr 00:FF:DE:E1:97:1E

inet addr:192.168.168.168 Bcast:192.168.168.255 Mask:255.255.255.0 inet6 addr: fe80::2ff:deff:fee1:971e/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:26 overruns:0 carrier:0 collisions:0 txqueuelen:500 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

-Technologov, 18.12.2008.

Change History

comment:1 Changed 5 years ago by Technologov

update: This is partial output of "ifconfig" - you can see that the interface is "up" on 4th line.

tap0 Link encap:Ethernet HWaddr 00:FF:DE:E1:97:1E

inet addr:192.168.168.168 Bcast:192.168.168.255 Mask:255.255.255.0

inet6 addr: fe80::2ff:deff:fee1:971e/64 Scope:Link

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:33 overruns:0 carrier:0

collisions:0 txqueuelen:500

RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

comment:2 Changed 5 years ago by frank

  • Summary changed from New network stack has Host NIC detection problems to Cannot attach to Linux hostifs without IP

comment:3 Changed 5 years ago by aleksey

  • Status changed from new to closed
  • Resolution set to fixed
  • Summary changed from Cannot attach to Linux hostifs without IP to Cannot attach to Linux hostifs without IP => Fixed in SVN

I changed the way of network interface enumeration (SIOCGIFCONF => /proc/net/dev parsing), now all the interfaces will be picked up. Note that only the interfaces with Ethernet encapsulation will be listed.

comment:4 Changed 5 years ago by aleksey

  • Status changed from closed to reopened
  • Resolution fixed deleted

comment:5 Changed 5 years ago by frank

  • Component changed from network to network/hostif

comment:6 Changed 5 years ago by sandervl73

  • Status changed from reopened to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use