I'm under mac os 10.6.8 and virtualbox 4.1.2 for OS X hosts
I was trying to create several .vdmk files pointing at partion and disk, after that attach it to virtual machine.
(Idea is to install ubuntu as guest and then try to boot it without virtualbox).
Everything ok with creation .vdmk file for partition or for disk. But i can't attach it to new virtual machine with the following error in terminal:
Code: Select all
$ VBoxManage storageattach Ubuntu-blank-vm --storagectl "IDE Controller" --port 0 --device 0 --type hdd --medium /Users/alexey/VirtualBox/Ubuntu-2-disk/Ubuntu-2-disk.vmdk
VBoxManage: error: The medium '/Users/alexey/VirtualBox/Ubuntu-2-disk/Ubuntu-2-disk.vmdk' can't be used as the requested device type
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component Medium, interface IMedium, callee nsISupports
Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, AccessMode_ReadWrite, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 210 of file VBoxManageDisk.cpp
VBoxManage: error: Invalid UUID or filename "/Users/alexey/VirtualBox/Ubuntu-2-disk/Ubuntu-2-disk.vmdk"
If im trying from GUI i'm getting error too:
Any ideas what can be wrong?Failed to open the hard disk /Users/alexey/VirtualBox/Ubuntu-2-disk/Ubuntu-2-disk.vmdk.
The medium '/Users/alexey/VirtualBox/Ubuntu-2-disk/Ubuntu-2-disk.vmdk' can't be used as the requested device type.
Result Code: NS_ERROR_FAILURE (0x80004005)
Component: Medium
Interface: IMedium {53f9cc0c-e0fd-40a5-a404-a7a5272082cd}
Callee: IVirtualBox {c28be65f-1a8f-43b4-81f1-eb60cb516e66}
Thanks in advance
Alexy