VirtualBox

Opened 6 years ago

Last modified 6 years ago

#17458 new defect

type/mtype can't be set to "shareable"

Reported by: Loafer Owned by:
Component: virtual disk Version: VirtualBox 5.2.4
Keywords: shareable type mtype Cc:
Guest type: Windows Host type: Windows

Description

The virtual drive is erroneously recognized as dynamic. See cmd-responses:

C:\Program Files\VirtualBox>VBoxManage storageattach Win10 --storagectl SATA --port 2 --medium E:\DataW10.vdi --mtype shareable VBoxManage.exe: error: Cannot change type for medium 'E:\DataW10.vdi' to 'Shareable' since it is a dynamic medium storage unit VBoxManage.exe: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MediumWrap, interface IMedium, callee IUnknown VBoxManage.exe: error: Context: "COMSETTER(Type)(enmMediumType)" at line 708 of file VBoxManageStorageController.cpp VBoxManage.exe: error: Failed to set the medium type

C:\Program Files\VirtualBox>VBoxManage modifymedium disk e:\dataw10.vdi --type shareable VBoxManage.exe: error: Cannot change type for medium 'E:\DataW10.vdi' to 'Shareable' since it is a dynamic medium storage unit VBoxManage.exe: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MediumWrap, interface IMedium, callee IUnknown VBoxManage.exe: error: Context: "COMSETTER(Type)(enmMediumType)" at line 705 of file VBoxManageDisk.cpp

C:\Program Files\VirtualBox>VBoxManage showmediuminfo disk e:\dataw10.vdi UUID: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Parent UUID: base State: created Type: writethrough Location: E:\DataW10.vdi Storage format: VDI Format variant: fixed default Capacity: 4096 MBytes Size on disk: 4098 MBytes Encryption: disabled In use by VMs: Win10 (UUID: xxxxxxxxxxxxxxxxxxxxx)

Change History (1)

in reply to:  description comment:1 by Socratis, 6 years ago

Replying to Loafer:

C:\Program Files\VirtualBox>VBoxManage showmediuminfo disk e:\dataw10.vdi
Type:           writethrough
Format variant: fixed default

You have set up your disk as "write-through". That might be what's causing the problem. Shareable hard disks are a variant of write-through hard disks, so I'm not sure what you're trying to do over here...

You realize that shareable hard disks require special OSes to handle them? You can't expect to have a single hard drive that is mounted by several VMs concurrently. They don't have that sharing "notion". From the name it seems like you're trying to share some data in Win10. Win10 can't handle shared hard disks, AFAIK.

PS. BTW, did you obfuscate a "virtual" (fake) UUID? Why?

Last edited 6 years ago by Socratis (previous) (diff)
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use