Not sure whether this problem related to 5.1.28 or to web-UI (phpVirtualBox)...
I've met with the following problem:
- create a VM
- open VM settings and add additional HDD to the existing controller
- leave SSD and Hot-Pluggable flags unchecked
- click Ok
- get an error:
Code: Select all
Validation constraint violation: empty value provided where a value is required in element 'nonRotational'
[log 01 attached]
After this I have a new virtual HDD which is absent in the VM settings, but displayed in the Virtual Media Manager as attached to the VM I've created.
The appropriate HDD file created.
Now I cannot neither release nor remove this HDD - nothing.
I cannot create the new HDD with the same name as well:
Code: Select all
The hard disk storage unit at location /home/VBox/VirtualBox VMs/111/1112.vdi already exists. You cannot create a new virtual hard disk that uses this location because it can be already used by another virtual hard disk.
Please specify a different location.
If I delete the HDD file and try to add new HDD with the same name - I get the following error:
Code: Select all
Cannot register the hard disk '/home/VBox/VirtualBox VMs/111/1112.vdi' {5b6932f9-9d95-4a02-ac96-c24d6cedbe1b} because a hard disk '/home/VBox/VirtualBox VMs/111/1112.vdi' with UUID {da44c322-a88f-4205-a371-8037121101f7} already exists
[log 02 is attached]
But the HDD file created successfully.
I've tried to delete the VM - disk still exists in the media manager.
The command line sais the following:
Code: Select all
# vboxmanage list hdds
...<skipped>...
UUID: da44c322-a88f-4205-a371-8037121101f7
Parent UUID: base
State: inaccessible
Type: normal (base)
Location: /home/VBox/VirtualBox VMs/111/1112.vdi
Storage format: VDI
Capacity: 2048 MBytes
Encryption: disabled
# VBoxManage closemedium disk da44c322-a88f-4205-a371-8037121101f7
VBoxManage: error: Medium '/home/VBox/VirtualBox VMs/111/1112.vdi' cannot be closed because it is still attached to 1 virtual machines
VBoxManage: error: Details: code VBOX_E_OBJECT_IN_USE (0x80bb000c), component MediumWrap, interface IMedium, callee nsISupports
VBoxManage: error: Context: "Close()" at line 1612 of file VBoxManageDisk.cpp
Is there any way to detach the such HDD from non-existing virtual machine or force removing such HDD?