VMware Communities
rchin
Contributor
Contributor

Is there a way to clone a VM to one with a Bigger V-Disk ?


WS 6.0.3-80004

Host: Vista SP1 - Guests: Ubuntu 8.04, XP

-


I have a XP v-machine, only sized 3 GB

Is there a way to clone it to one with a bigger v-disk ?

thanks

WS 6.5.1-126130 Host: Vista SP1 Guests: Ubuntu 8.04, XP
Tags (3)
0 Kudos
17 Replies
rchin
Contributor
Contributor

is this the best/only way ?

WS 6.5.1-126130 Host: Vista SP1 Guests: Ubuntu 8.04, XP
0 Kudos
wila
Immortal
Immortal

Hi,

You can also resize the virtual disk itself.

First take a backup of your virtual machine while it is shutdown (preferably with VMware workstation closed)

Then go to settings, select your virtual disk and you should be able to increase the size from 3GB to something bigger. At least you will have this option in the latest version of VMware workstation.

Beware that you can only increase the size.

After increasing the size of your virtual disk you still must increase the size of your disk in the virtual machine.. the partition is still sized as big as the old disk. In the case of XP you will have to use a helper VM or a liveCD in order to resize the partition.

See here for details: http://www.vmware-land.com/Resizing_Virtual_Disks.html

With workstation 6.0.3, I"m afraid that you can only use the command line vmware-vdiskmanager.

vmware-vdiskmanager -x 10GB virtualdisk.vmdk

the code above will increase your virtual disk to 10GB



--

Wil

_____________________________________________________

Visit the new VMware developers wiki at http://www.vi-toolkit.com

| Author of Vimalin. The virtual machine Backup app for VMware Fusion, VMware Workstation and Player |
| More info at vimalin.com | Twitter @wilva
rchin
Contributor
Contributor

Then go to settings, select your virtual disk and you should be able to increase the size from 3GB to something bigger.

At least you will have this option in the latest version of VMware workstation.

Can't do this in 6.0.3 :(. thanks your answer and provided link is very helpful

WS 6.5.1-126130 Host: Vista SP1 Guests: Ubuntu 8.04, XP
0 Kudos
continuum
Immortal
Immortal

you can't do this because you still have a snpashot - get rid of it first

___________________________________

description of vmx-parameters:

VMware-liveCD:


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

0 Kudos
wila
Immortal
Immortal

you can't do this because you still have a snpashot - get rid of it first

Hi Ulli.. very sharp... good catch!

--

Wil

_____________________________________________________

Visit the new VMware developers wiki at http://www.vi-toolkit.com

| Author of Vimalin. The virtual machine Backup app for VMware Fusion, VMware Workstation and Player |
| More info at vimalin.com | Twitter @wilva
0 Kudos
continuum
Immortal
Immortal

it still should work - even with a snapshot - there is still something wrong.

But in this case this was a lucky incident - if he had enlarged the disk with snaoshot he would really have a problem :smileycool:

___________________________________

description of vmx-parameters:

VMware-liveCD:


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

0 Kudos
rchin
Contributor
Contributor

you can't do this because you still have a snpashot - get rid of it first

OK, no mo' Snapshots

But still does not seem to have the option to resize vmdk (WS 6.0.3) Smiley Sad

WS 6.5.1-126130 Host: Vista SP1 Guests: Ubuntu 8.04, XP
0 Kudos
continuum
Immortal
Immortal

Ok - looks good now

which commandline did yoy tried ?

___________________________________

description of vmx-parameters:

VMware-liveCD:


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

0 Kudos
rchin
Contributor
Contributor

which commandline did yoy tried ?

well...none.

You tell me what to do Smiley Wink

WS 6.5.1-126130 Host: Vista SP1 Guests: Ubuntu 8.04, XP
0 Kudos
continuum
Immortal
Immortal

Open a cmd - change directory to the directory where your VM lives and type

"C:\program files\vmware\vmware workstation\vmware-vdiskmanager" -x 10Gb "Windows XP Professional.vmdk"

Before you do that ... you are aware that after that command you have to use a tool like partition magic or a LiveCD like BartPE or gparted to enlarge the partition ?

If you do not know what I am talking about running the command makes no sense.

It will only resize the disk - not the Windows partition !!!

___________________________________

description of vmx-parameters:

VMware-liveCD:


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

rchin
Contributor
Contributor

Open a cmd - change directory to the directory where your VM lives and type....

ah ok, I read about this (rather complicated, IMO) method in my subsequent search.

Nah, this seems like a pain-in-the-***

I think I will go with peter_vm's suggestion --- let Converter clone the v-machine with a bigger vmdk.

So far this seems to be the easiest method. Guess this is why he suggested this way in several posts. Smiley Happy

Thanks

WS 6.5.1-126130 Host: Vista SP1 Guests: Ubuntu 8.04, XP
0 Kudos
continuum
Immortal
Immortal

You now have an IDE -disk - Converter will change that to SCSI - so your VM is messed up when you do not have a volume license - but yeah - thats the easiest way.

I wish folks would stop to recommend Converter for disk-resizing

IMHO the easiest way is to add a disk - boot into a ghost or Acronis or Knoppix CD and clone old-small disk into big-new disk.

___________________________________

description of vmx-parameters:

VMware-liveCD:


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

0 Kudos
rchin
Contributor
Contributor

You now have an IDE -disk - Converter will change that to SCSI - so your VM is messed up when you do not have a volume license - but yeah - thats the easiest way.

damn...you're right. Good thing I made sure the XP is corp license when I "looked for" it Smiley Wink

IMHO the easiest way is to add a disk - boot into a ghost or Acronis or Knoppix CD and clone old-small disk into big-new disk.

I can also just add another vmdk to the v-machine right ? so the new disk will be seen as "D:" right ?

thanks

WS 6.5.1-126130 Host: Vista SP1 Guests: Ubuntu 8.04, XP
0 Kudos
continuum
Immortal
Immortal

Sure - another thing I often do to easily enlarge Windows disks is adding a second disk and use diskmanagement to mount the second disk to a directory in C:\ - the Linux folks do that all the time ....

___________________________________

description of vmx-parameters:

VMware-liveCD:


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

0 Kudos
wila
Immortal
Immortal

Hi,

I can also just add another vmdk to the v-machine right ? so the new disk will be seen as "D:" right ?

Yes you can. You can also temporarily add a SCSI disk there and already install the SCSI drivers so that your VM works with SCSI disks before running converter and drop the extra disk again after running converter to resize your C disk.

There's many ways to Rome... Smiley Wink



--

Wil

_____________________________________________________

Visit the new VMware developers wiki at http://www.vi-toolkit.com

| Author of Vimalin. The virtual machine Backup app for VMware Fusion, VMware Workstation and Player |
| More info at vimalin.com | Twitter @wilva
0 Kudos
wila
Immortal
Immortal

the Linux folks do that all the time ....

Hey.. speak for yourself Smiley Wink It's not exactly the same thing as we do not have a "C Drive" (partition really) within linux so there's not an option.. under *nix it is good practice to use a split partition setup and isolate things like "/home" and "/opt", "/var" and optionally "/boot" into separate partitions (which may be on another disk)

With linux it actually makes life easier. With windows not always as it has the concept of different drives and software always wants to install on C:\ and alot of software still puts data down there even if you tell it not to do so. .. It is usually 3rd party fault, although MS has a tendency of overloading your C:\ drive as well (Well office 2003 did, never installed the 2007 version)



--

Wil

_____________________________________________________

Visit the new VMware developers wiki at http://www.vi-toolkit.com

| Author of Vimalin. The virtual machine Backup app for VMware Fusion, VMware Workstation and Player |
| More info at vimalin.com | Twitter @wilva
0 Kudos
wila
Immortal
Immortal

This works really well for Windows Vista, 2008 and Windows 7 as they have a partitioning tool aboard and can even partition (extend) the system drive while it is running. Truly an amazing trick...

--

Wil

_____________________________________________________

Visit the new VMware developers wiki at http://www.vi-toolkit.com

| Author of Vimalin. The virtual machine Backup app for VMware Fusion, VMware Workstation and Player |
| More info at vimalin.com | Twitter @wilva
0 Kudos