mpack wrote:Beware: those articles talking about making the disk larger are actually talking about something very different. Now this may be subtle, so pay attention: you don't want to make your disk smaller, you just want to compact it so that the disk image is smaller. Meaning to simulate the same size of disk using a smaller image file. If you don't understand this, and if you go googling for how to make your disk smaller then you may well find a way to do it, and the procedure will most likely be complicated and dangerous... and almost certainly pointless.
Otherwise your question is a FAQ which is no doubt why it has been ignored (it gets boring answering the same question several times a day). I'll give you a tip that the most accurate technical term for what you are trying to do is called a "Physical To Virtual Migration", or "P2V" for short. Try googling for "P2V" with "site:forums.virtualbox.org". Also search for mentions of Disk2VHD and the CloneVDI tool - same site (the latter can help you compact that raw disk image, creating a compacted VDI which VBox can use).
mpack wrote:Beware: those articles talking about making the disk larger are actually talking about something very different.
ClientAlive wrote:I had thought that compacting would leave me with an image roughly the size of the used space. If that is right...
ClientAlive wrote:...then I would have two issues to deal with. (1) that there wouldn't be any free space to do anything with
ClientAlive wrote:, and (2) that whatever the total size was it probably wouldn't be a nice even number.
mpack wrote:...image the drive
mpack wrote:As to what you are trying to do: I'm not aware of a free tool that creates a compacted virtual disk image of a Linux host in one step. So, you need to do it in two steps: (1) image the drive to an external drive - this will be a full size raw image...
Step (1) is usually done with dd or CloneZilla...
mpack wrote:(2) compact and convert the raw image to VDI format. After the second step you'll have a dynamic VDI roughly 5GB in size.
mpack wrote: After the second step you'll have a dynamic VDI roughly 5GB in size.
Sasquatch wrote:You can also Google on how to clone your system to a smaller hard drive, there are plenty of hits on the subject. But I believe that you have another thread running with roughly the same information but with another problem (unable to boot guest).
Sasquatch wrote:For Linux there is an option that's really easy to do. You note which packages are installed on the Host, if you installed anything extra other than VB from the base installation. Then you install the same packages in the guest using a fresh installation. You install the Guest exactly like the Host, with your designated 8 GB of disk space that you want to use.
Next, you copy your entire /home/user folder including hidden files and folders to a shared storage, like a USB stick. You use that to copy it to the Guest and put them in the same place, essentially copying your /home from the Host to the Guest. If you have made any changes to other system files, like in /etc, then make the same modifications, if you like. Reboot the guest and you should have an environment that's the same as the Host inside the Guest.
If you made changes to the system that required your password and want them again, redo them as well.
That's about it.
Another option is to compress the entire system, excluding the /dev and /proc directories into a tarball and extract that tarball in a freshly installed Guest. You may have to reinstall the bootloader, grub, but that's about it as well.
Sasquatch wrote: But I believe that you have another thread running with roughly the same information but with another problem (unable to boot guest).
Users browsing this forum: Google [Bot] and 13 guests