Monday, April 02, 2007

VMware Converter experience

As I undersized my Red Hat Enterprise Linux 3 virtual machine, I needed to expand the / (root) partition for an Oracle 10G install. Normally, I would have used VMware vdiskmanager to do the resize, but I thought I'd give VMware Converter a try. has a great introduction to VMware Converter 3.0 here:

I installed the software and followed along the same path as the 4Sysops. However, when I got to the point to resizing any of my Linux partitions (two ext3/one swap), I was confronted with the following dialog box that read:
"Warning: Cannot configure the source image"

That first error did not stop my progress and I was able to choose "Select volumes and resize to save or add space". However, when I chose that option, the New Disk Space drop down was grayed out and I was unable to resize any of my Linux partitions. After a bit of Googling, I found a number of articles:

A number of the sites pointed out that the VMware converter does have problems with resizing linux partitions. That's fine, but what about a solution? This was found on the site:

They resolved the issue by resizing the virtual machine by using vdiskmanager. I tried their suggestion and expanded the virtual machine to 40GB by using the following command:
C:\Virtual Machines\Red Hat Enterprise Linux 3>"\Program Files\VMware\VMware Server\vmware-vdiskmanager.exe" -x 40gb "Red Hat Enterprise Linux 3.vmdk"

Using log file C:\DOCUME~1\USER\LOCALS~1\Temp\vmware-user-3279696342\vdiskmanager.log Grow: 100% done.
The old geometry C/H/S of the disk is: 1044/255/63
The new geometry C/H/S of the disk is: 5221/255/63
Disk expansion completed successfully.

WARNING: If the virtual disk is partitioned, you must use a third-party utility in the virtual machine to expand the size of the partitions. For more information, see:

Luckily, this resize worked. After the resizing, I successfully booted the virtual machine and saw via fdisk that indeed, I had about 32GB extra space, so I created a new ext3 partition:
[root@oracletest root]# fdisk /dev/sda
Command (m for help): Command (m for help): p
Disk /dev/sda: 42.9 GB, 42949672960 bytes255 heads, 63 sectors/track, 5221 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System/dev/sda1 * 1 13 104391 83 Linux/dev/sda2

14 790 6241252+ 83 Linux/dev/sda3
791 1044 2040255 82 Linux swap/dev/sda4
1045 5221 33551752+ 83 Linux

After the creation, I rebooted. I then formatted the disk properly with the following command:
mkfs.ext3 -b 4096 /dev/sda4

Hot dog! I've got plenty of space for my Oracle 10G install!

vdiskmanager , 4sysops and google save the day!

UPDATE: If you're interested, I've recently done a physical to virtual conversion of a Win2K box here:

No comments:

Feel free to drop me a line or ask me a question.