Bridge Adapter's Host Interface Selection - How to List
Posted: 18. Mar 2014, 05:54
How does Virtual Box filter the host interfaces on the screen where the user can select the interface that the Bridged Adapter is attached to? (please see attached file)
I am currently using VBoxManage to create VMs and set properties such as network settings.
In one of my Linux VMs (that I create on the command line), I assign NIC1 (Network Adapter 1) to a Bridged Adapter using the following command:
But when I start the VM, I get the following error:
When I issue the following command, the VM will start correctly.
The problem is, I do not want to hardcode the "en0" part.
I want the "en0" part to be the same with Virtual Box's default selected interface when a Bridged Adapter is created.
How can I achieve this?
I am currently using VBoxManage to create VMs and set properties such as network settings.
In one of my Linux VMs (that I create on the command line), I assign NIC1 (Network Adapter 1) to a Bridged Adapter using the following command:
Code: Select all
VBoxManage modifyvm myLinux --nic1 bridged
It seems that the value "Realtek PCIe GBE Family Controller" is set as the attached interface to the Bridged Adapter (this value maybe from the previously selected value), which is not present in the host (not a network interface of the Mac host).Could not start the machine
myLinux because the following
physical network interfaces were not found:
Realtek PCIe GBE Family Controller (adapter
1)
You can either change the machine's network
settings or stop the machine.
When I issue the following command, the VM will start correctly.
Code: Select all
VBoxManage modifyvm myLinux --bridgeadapter1 en0
I want the "en0" part to be the same with Virtual Box's default selected interface when a Bridged Adapter is created.
How can I achieve this?