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.