I'm using VirtualBox 5.2.44r139111 on a Linux Ubuntu Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-29-generic x86_64) on the server.
The guest OS is windows 7, sometimes the hard-disk detached from the controller automatically while restoring a snapshot.
No guest additions installed. More clues were found in the .vbox configuration xml file, missing AttachedDevice property under the StorageControllers.
I could bypass this issue by editing the .vbox configuration xml file or reattach the hard disk to the guest via gui.
Can someone help me? Thanks!
More infomation:
Errmsg: ahci#0: The target VM is missing a device on port 0. Please make sure the source and target VMs have compatible storage configurations [ver=6 pass=final] (VERR_SSM_LOAD_CONFIG_MISMATCH).
VBoxManage: error: Context: "LockMachine(a->session, LockType_Shared)" at line 388 of file VBoxManageControlVM.cpp