On Fri, 05 Apr 2019 01:31:08 +0200 Kees Nuyt <[email protected]> wrote:
> On Thu, 4 Apr 2019 11:19:27 -0300, you wrote: > > > Hi; > > > > Is it safe to backup a vm's .VDI while the vm is paused? > > No. The .VDIs of a VM does not contain the machine state, just > the disk image. And after just a puase that may not be complete > (unflushed buffers etc.). The machine state is in memory at that > moment. > > If you want to backup the state of a running VM, you can try to > perform this procedure: > > 1) Stop the VM, saving its state > VBoxManage controlvm <vm> savestate > https://www.virtualbox.org/manual/UserManual.html#vboxmanage-controlvm > > 2) Backup all files related to the machine, not just the VDIs, > also any snapshots and other state information. > I don't know from the top of my head which files those are. > > 3) Start the machine from its saved state. > VBoxManage startvm ... > https://www.virtualbox.org/manual/UserManual.html#vboxmanage-startvm > > If your machine is broken nad needs a restore: > > 4) power the VM off. > > 5) Restore all files from the backup in step 2) > > 6) Start the machine from its saved state (as restored). > same as step 3) > > > > Will the backedup .VDI start normally if I need to use it? > > It might, if it is able to recover from the inconsistencies. > > > > Thanks, > > HTH > Hi Kees; First, thanks for the reply and sorry for the delay. I decided to simply acpishutdown the vms before backup. The powered off state is the default, so this way, I can simply copy the .VDI back if needed. -- Mario Lobo http://www.mallavoodoo.com.br FreeBSD since 2.2.8 [not Pro-Audio.... YET!!] "UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things." _______________________________________________ VBox-users-community mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/vbox-users-community _______________________________________________ Unsubscribe: mailto:[email protected]?subject=unsubscribe
