VirtualBox

Ticket #17024 (new enhancement)

Opened 5 years ago

Last modified 4 years ago

VHD Disks created on Disk Manager cannot be moved tho another folder after attaching and desattaching on VM, fail on reattaching without registration deletion

Reported by: Armored Owned by:
Component: virtual disk Version: VirtualBox 5.1.26
Keywords: Cc:
Guest type: all Host type: all

Description (last modified by frank) (diff)

Recipe to bug/enhacement :

  1. Create a .VHD (not VHDx not tested) disk on Windows Disk Manager with dinamic size.
  2. Desattach disk from system using the same Disk manager
  3. Create a Virtual Machine and choose the Existing Disk created
  4. Run the virtual machine, after error boot, stop.
  5. Remove the VHD hardDisk from VM using the Virtual Disk configuration UI
  6. On windows explorer, MOVE the created VHD Disk to another folder
  7. Try to attach the disk ON VM ou other VM using Virtual Box UI

you got the error/failure.

Cannot register the hard disk 'C:\Users\username\Desktop\FolderToMove\VirtualDisk1.vhd' {fa3d7a1c-xxxx-49ae-xxxx-63a83b45916e} because a hard disk 'C:\Users\username\Desktop\VirtualDisk1.vhd' with UUID {fa3d7a1c-xxxx-49ae-xxxx-63a83b45916e} already exists.


Código de Resultado: 
E_INVALIDARG (0x80070057)
Componente: 
VirtualBoxWrap
Interface: 
IVirtualBox {0169423f-46b4-cde9-91af-1e9d5b6cd945}
RC do Chamador: 
VBOX_E_OBJECT_NOT_FOUND (0x80BB0001)

Ok, on Virtual Box UI, you have to click on File - Virtual Media manager and remove the registred VHD disk from the list. but enhancing Virtual Box can be check the old file location not exist anymore and update to the new file location on disk without error, or ask to the user if he want to update.

Change History

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use