|
|
Thinking inside the box | |||||
|
Bio
Code Linux Quantian About Blog |
Quantian in VMWare Player: Create a virtual disk with qemu
Over the last few days, I have experimented a little more, perused the VMware Player Forum and googled a bit. It turns out that you can employ the 'free as in speech' virtualization tool qemu (using version 0.7.2 from Debian unstable is fine, looks like a newer 0.8.0 it out upstream) to create a virtual disk image in vmdk format suitable for VMware. For example, the command qemu-img create -f vmdk Quantian.vmdk 512Mcreates a 512mb file of the given name in the in required vmdb format. By the way, qemu is smart and creates a much smaller file -- an 'empty' 512mb partition occupies only 12mb. It is then only a matter of updating the previously posted Quantian.vmx file to add the 'new disk'. I.e. instead of defining just one ide device, we now use two as per # CDROM InfoOn the next reboot, Quantian will display a disk symbol for hdc. It it then a matter of starting a root shell in Quantian, running cfdisk or fdisk to partition the new "empty" disk drive and to add a /dev/hdc1 partition (or more), running mke2fs -j dev/hdc1 to add a filesystem --- and on
a subsequent reboot, the disk is ready for use.
It should thus be possible to create a suitable disk file of, say, ten or so
gigabytes (given that Quantian expands to around seven gigs), create a
filesystem and then run Oh, and as it's still early afternoon here: Best wishes for 2006 to everyone! /computers/linux/debian/quantix | permanent link |
|||||