kusnier/vagrant-persistent-storage

Controller 'IDE Controller' does not support hotplugging

vvavrychuk opened this issue · 0 comments

I use box 'puphpet/centos65-x64' and configured persist storage

config.persistent_storage.enabled = true
config.persistent_storage.location = "./persiststorage.vdi"
config.persistent_storage.size = 5000
config.persistent_storage.mountname = 'mysql'
config.persistent_storage.filesystem = 'ext4'
config.persistent_storage.mountpoint = '/var/lib/mysql'
config.persistent_storage.volgroupname = 'persiststoragevolgroup'

but during vagrant halt I get error

There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling VirtualBox. The stderr is shown below.

Command: ["storageattach", "ebf318a0-ca7d-43d5-a2c7-3ab294a5ca1a", "--storagectl", "IDE Controller", "--port", "1", "--device", "0", "--type", "hdd", "--medium", "none"]

Stderr: VBoxManage.exe: error: Controller 'IDE Controller' does not support hotplugging
VBoxManage.exe: error: Details: code VBOX_E_INVALID_VM_STATE (0x80bb0002), component SessionMachine, interface IMachine, callee IUnknown
VBoxManage.exe: error: Context: "DetachDevice(Bstr(pszCtl).raw(), port, device)" at line 393 of file   VBoxManageStorageController.cpp

VBoxManage.exe showvminfo shows following info about storage controllers

storagecontrollername0="IDE Controller"
storagecontrollertype0="PIIX4"
storagecontrollerinstance0="0"
storagecontrollermaxportcount0="2"
storagecontrollerportcount0="2"
storagecontrollerbootable0="on"
"IDE Controller-0-0"="C:\Users\Vasyl.Vavrychuk\VirtualBox VMs\phabricator_default_1447673535275_94503\packer-virtualbox-iso-1422577590-disk1.vmdk"
"IDE Controller-ImageUUID-0-0"="07ee4f1d-a469-4c27-afa4-b82e604b3305"
"IDE Controller-0-1"="none"
"IDE Controller-1-0"="c:\kom\vagrant\phabricator\.\persiststorage.vdi"
"IDE Controller-ImageUUID-1-0"="275904e9-b645-4f19-9835-7dd29c413486"
"IDE Controller-1-1"="none"