Solution
Use “host-only” adapter
Open shell and execute
vboxmanage clonehd "path_to.vhd" "path_to.vdi" --format VDI
If the utility VBoxManage isn’t found add VirtualBox directory (usually “C:\Program Files\Oracle\VirtualBox”) to the system PATH variable.
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.
The same way.
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
Click “File -> Reset All Warnings”.
Choose “Insert Guest Additions CD image…” from the Devices menu.
Ubuntu running in VirtualBox.
Open the disk directory in terminal ( it is /media/gto/VBox_GAs_5.2.65 in the example ) and execute
sudo ./VBoxLinuxAdditions.run