VirtualBox bridged adapter gets only IPv6 address

Solution

Use “host-only” adapter

How to control VirtualBox machine from command line

Windows

To start VM in headless mode execute

VBoxManage startvm ntw --type headless

To stop VM with saving its state execute

VBoxManage controlvm ntw savestate

To stop VM without saving its state execute

VBoxManage controlvm ntw poweorff

If the utility VBoxManage isn’t found add VirtualBox directory (usually “C:\Program Files\Oracle\VirtualBox”) to the system PATH variable.

Linux

The same way.

VirtualBox error: cannot register the hard disk because a hard disk with UUID already exists

Error

VirtualBox error message
VirtualBox error message.

Solution

Open shell and change UUID by command

VBOXMANAGE.EXE internalcommands sethduuid [PathOfNewVHD]

If the utility isn’t found add location of VirtualBox (usually “C:\Program Files\Oracle\VirtualBox”) to the system PATH variable.

VirtualBox – Cannot Register the Hard Drive Because a Hard Drive with UUID Already Exists