Skip to content

Instantly share code, notes, and snippets.

@sibosend
Forked from sdoro/add.sh
Last active April 16, 2020 08:51
Show Gist options
  • Save sibosend/5d8cf9543f316e9dcd0592999a898f73 to your computer and use it in GitHub Desktop.
Save sibosend/5d8cf9543f316e9dcd0592999a898f73 to your computer and use it in GitHub Desktop.
Howto add/remove in VirtualBox a fifth NIC (without GUI) in hostonly networking
VBoxManage modifyvm "vm" --hostonlyadapter5 vboxnetX
VBoxManage modifyvm "vm" --nic5 hostonly
VBoxManage modifyvm "vm" --hostonlyadapter6 vboxnetX
VBoxManage modifyvm "vm" --nic6 hostonly
# Find the UUID of Network Interface or Connection
```
nmcli connection show
NAME UUID TYPE DEVICE
virbr0 4e02750f-13d9-4662-bfc2-10f9ae1a71bd bridge virbr0
Wired connection 1 09066de3-7eb7-4ee1-9059-c651b6dff7a6 802-3-ethernet --
enp0s3 5144084b-0537-4e4b-9f15-065431bc6d38 802-3-ethernet --
```
VBoxManage modifyvm "vm" --nic5 none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment