When converting an existing PC to a VM, whether using VMWare or VirtualBox, do either allow customization? For example, convert an existing PC, but don't include certain data folders (music, video, etc.), so that the resulting VM is smaller in size?
|
feedback
|
|
I believe that you can select volumes, but not folders. See for example a very thorough walk-through for VMware with screenshots: | ||||
|
feedback
|
|
As an answer was provided for windows+vmware, let's talk about linux+virtualbox. I strongly advise working with partitions and not full disk when creating images. First save the partition you want to virtualize using dd or partimage. For example, to save the first partition of the first sata disk execute this command in a writeable directory with enough free space (I consider the computer on which this is done as having more than 256 Mo of ram):
Once created you may mount *sda1_image.dd* in order to remove the files and directories you don't want in your VM (you need to be root to use mount and umount).
Then convert the dd image into a virtualbox disk image (vdi) using VBoxManage (a tool provided by VirtualBox):
After this step you won't need *sda1_image.dd* anymore. You can then use *sda1_image.vdi* to create a new VM within VirtualBox management interface. However it is always easier to explain how to do so from the command line (no necessary screenshot nor themed interface quirks, only copy-paste goodness):
You may want to adjust some more settings, but that would be dependent on the guest's OS nature. Depending on the way the original OS was configured, you might need to reinstall a bootloader to the VM (or to restore the mbr) and/or manually flag the partition as bootable. | |||
feedback
|
|
Live View is a java-based VMWare forensic tool to create VMWare images from dd-style images or a physical disk. Check it out at sourceforge. | |||
|
feedback
|