virtualising an existing Linux system
Karl Auer
kauer at biplane.com.au
Tue Jun 14 12:19:50 UTC 2011
Hi there.
A few weeks ago I was asking questions about virtualising an existing
Linux system, so that it could run under, for example, VirtualBox. A few
people gave me good pointers, and today I finally got my old server
virtualised.
The process was somewhat complexificated by me first having to resize a
partition on the source machine. Anyway, the info from people here
regarding gparted was invaluable (BTW, I resized from 80GB down to 10GB
in one step and it worked fine). This page was the key to actually doing
the virtualisation:
http://www.localizingjapan.com/blog/2011/03/05/virtualizing-a-linux-system-creating-a-linux-vm-p2v/
A few notes though:
- I didn't use partimage, I used dd to take images of partitions, and to
write them back. partimage might have been faster, I don't know. I did
try to use partimage, but apparently it *requires* a compressed image.
Mine was raw, and partimage coredumped when fed it.
- I was virtualising a 7.04 system, so grub (as per that link above) was
the way to go. It may be that if you are virtualising other systems, you
might have to handle the boot loader differently.
- next time, I will run shredder or something over the partitions, so
that empty blocks are filled with a pattern. This would allow good
compression. As it was, the empty blocks still had the remnants of
whatever data had been in them last, so the partition images did not
compress well.
- the job is not quite finished, but so far no showstoppers.
Regards, K.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au) +61-2-64957160 (h)
http://www.biplane.com.au/kauer/ +61-428-957160 (mob)
GPG fingerprint: DA41 51B1 1481 16E1 F7E2 B2E9 3007 14ED 5736 F687
Old fingerprint: B386 7819 B227 2961 8301 C5A9 2EBC 754B CD97 0156
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20110614/89c94ff4/attachment.sig>
More information about the ubuntu-users
mailing list