VirtualBox主机专用networking适配器启动并运行,无需启动任何机器

在VirtualBox虚拟机上,有一个主机专用的networking适配器,具有以下configuration:

$ VBoxManage list hostonlyifs Name: vboxnet0 GUID: 786f6276-656e-4074-8000-0a0027000000 DHCP: Disabled IPAddress: 192.168.56.1 NetworkMask: 255.255.255.0 IPV6Address: IPV6NetworkMaskPrefixLength: 0 HardwareAddress: 0a:00:27:00:00:00 MediumType: Ethernet Status: Down VBoxNetworkName: HostInterfaceNetworking-vboxnet0 

当主机启动时,主机上不存在该接口,一旦在VirtualBox UI上打开了networking设置,系统就会立即显示在系统上,但接口不可用:

 $ ifconfig -a vboxnet0: flags=4098<BROADCAST,MULTICAST> mtu 1500 ether 0a:00:27:00:00:00 txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 

如果虚拟机启动,界面变得起来,一切正常。 问题是我想使用这个接口,而没有运行虚拟机。 例如,启动绑定到此接口的IP地址的Apache Web服务器。 可能吗? 我怎样才能做到这一点?

更具体地说,我需要一组控制台命令来启动这个虚拟接口,并运行VirtualBoxconfiguration中的所有设置(包括IPv4地址)。

主机是从Debian存储库Debian Testing x86,VirtualBox 5.0.4。