VBoxManage.exe: error: The machine is not mutable (state is Running)

VBoxManage.exe: error: The machine is not mutable (state is Running)

Error: while executing the command for creating shared storage getting error:

E:\rac>VBoxManage storageattach RAC1 --storagectl "SATA" --port 1 --device 0 --type hdd --medium asm1.vdi --mtype shareable
VBoxManage.exe: error: The machine is not mutable (state is Running)
VBoxManage.exe: error: Details: code VBOX_E_INVALID_VM_STATE (0x80bb0002), component SessionMachine, interface IMachine, callee IUnknown
VBoxManage.exe: error: Context: "COMSETTER(PortCount)(port + 1)" at line 395 of file VBoxManageStorageController.cpp
VBoxManage.exe: error: The port and/or device parameter are out of range: port=1 (must be in range [0, 0]), device=0 (must be in range [0, 0])
VBoxManage.exe: error: Details: code E_INVALIDARG (0x80070057), component StorageControllerWrap, interface IStorageController, callee IUnknown
VBoxManage.exe: error: Context: "AttachDevice(Bstr(pszCtl).raw(), port, device, DeviceType_HardDisk, pMedium2Mount)" at line 776 of file VBoxManageStorageController.cpp

Solution: Error occurred due to machine is running. After shutdown the machine the command will work.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.