When do virtual hard drives get modified?
Posted: 5. Aug 2009, 09:29
I've read the user docs a couple times, but am not totally clear on exactly when the "machine state" modifies the .vdi. Since changes to "normal" type virtual disks are lost if the virtual machine dies [EDIT: As per answer below, they are not lost--it's up to the guest to write.], I assume there is someplace other than the .vdi keeping the hard drive data. Could someone help me with the following questions?
1. When does VirtualBox write modifications into to a "normal" type .vdi image file (assuming no snapshots)? Only when you "Save the machine state" and when you "APCI power off" a machine?
2. What about for virtual hard disks created from an "immutable" vdi disk image with "autoreset=off"? Same answer, with the only difference being the virtual machine has a local diff of the disk that it's saving to instead of the original .vdi?
3. Is there a VBoxManage command to write the contents of an active virtual hard disk to its respective .vdi without shutting off the virtual machine? I've found only 'VBoxManage controlvm <name> savestate", but that seems to always shut down the machine.
Thanks!
1. When does VirtualBox write modifications into to a "normal" type .vdi image file (assuming no snapshots)? Only when you "Save the machine state" and when you "APCI power off" a machine?
2. What about for virtual hard disks created from an "immutable" vdi disk image with "autoreset=off"? Same answer, with the only difference being the virtual machine has a local diff of the disk that it's saving to instead of the original .vdi?
3. Is there a VBoxManage command to write the contents of an active virtual hard disk to its respective .vdi without shutting off the virtual machine? I've found only 'VBoxManage controlvm <name> savestate", but that seems to always shut down the machine.
Thanks!