VirtualBox

Opened 12 days ago

Last modified 12 days ago

#22396 new defect

compressing child VDI images fails on macOS host

Reported by: squid10 Owned by:
Component: virtual disk Version: VirtualBox-7.1.8
Keywords: VDI, compact Cc:
Guest type: all Host type: Mac OS X

Description (last modified by squid10)

Compressing a child VDI image on a macOS host with sudo VBoxManage modifymedium --compact fails with the error: image.vdi is not found in the media registry ('/var/root/Library/VirtualBox/VirtualBox.xml')

full log:

sudo VBoxManage modifymedium ~/VMs.localized/MyVM/Snapshots/\{22222222-2222-2222-2222-222222222222\}.vdi --compact
VBoxManage: error: Parent medium with UUID {11111111-1111-1111-1111-111111111111} of the medium '/Users/squid10/VMs.localized/MyVM/Snapshots/{22222222-2222-2222-2222-222222222222}.vdi' is not found in the media registry ('/var/root/Library/VirtualBox/VirtualBox.xml')
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MediumWrap, interface IMedium, callee nsISupports
VBoxManage: error: Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, enmAccessMode, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 201 of file VBoxManageDisk.cpp

host: macOS 11

Change History (3)

comment:1 by squid10, 12 days ago

Description: modified (diff)

comment:2 by squid10, 12 days ago

update: solved by not using sudo

comment:3 by squid10, 12 days ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette