Can I create a disk image of a VirtualBox Linux guest?

jamon

Distinguished
Jan 16, 2010
10
0
18,510
Is it possible to create a disk image of a VitualBox guest OS? It seems to be the safest way to test HDD imaging software. If it is possible, can someone point me to a guide? I'm not having any luck searching the subject. I'm running VirtualBox inside a Linux Mint host and would like to image a Linux guest for testing a REDO Live CD. Thanks.
 

dmroeder

Distinguished
Jan 15, 2005
1,366
23
20,765
When you created your guest, there will be a VirtualBox VM's directory in your home directory. Inside VirtualBox VM's will be a directory for your guest. I'd just copy this directory to a portable hard drive. Whenever you needed to start over, you could just replace it with your backup from your portable hard drive.

You could use something like dd to turn it into an actual image, but I'm not sure what the point of that would be, just more steps to backup/restore it.

Or you could use snapshots. Take a snapshot after a fresh install, then you can revert back.

Maybe I'm not fully understanding?
 

jamon

Distinguished
Jan 16, 2010
10
0
18,510


 

jamon

Distinguished
Jan 16, 2010
10
0
18,510
If you're still there dmroeder, I apologize for not replying sooner. I believe your suggestions are not quite relating to my problem. I'd like to clarify if it's possible: I would like to test the reliability of a particular program (REDO as a Live disc) to see if the image it makes can be depended on when I need it. I thought it might be possible to test it on a VM where there'd be no risk if the backup image was faulty. I realize it would be a convoluted path to get the Live REDO CD to see the target virtualized operating system inside vbox that I'd like an image of. Sounds impossible, right? I thought for sure someone would've tried this. *And thanks for trying to help, dmroeder!