Highlighted
Contributor
Contributor

resize virtual disk and using the mvx for other machine

Hi,

I've readed how extend the disk of a virtual machine with the command

vmware-vdiskmanager -x

I extend to 10 gb my 8gb disk. But when I boot my linux and I do a df:

S.ficheros Tamaño Usado Disp Uso% Montado en

/dev/sda1 7,5G 3,5G 3,7G 49% /

7,5 GB?? In the settings of vmare workstation I see:

Hard Disk Curret size:4,42. Maximum size: 10.0gb

What's wrong?

Other question, I would like to format my particion where it's vmware workstation, when I install the same s.o and the vmware, could I use the same virtual machine?

Thanks a a lot and sorry for my english

0 Kudos
5 Replies
Highlighted
Hot Shot
Hot Shot

Other question, I would like to format my particion where it's vmware workstation, when I install the same s.o and the vmware, could I use the same virtual machine?

Yes, the virtual machine is just a set of files in a directory - you can quite happily move it around and it will still work. All you need to do is to back up the directory and restore it (to where ever you want) and it should still work. (I tend to clone virtual machines by copying the directory rather than using the clone utility - you just need to be careful to ask for a new uuid).

Regards the disk sizing - I suspect that although the disk may now be 'physically' larger, the installed OS does not know about the increase - similarly to a partitioned physical hard drive.

0 Kudos
Highlighted
Contributor
Contributor

Well, I don't have the virtual machine in the same partition than de OS. I thought that it's not necessary to do anything. How could I do it?

Other thing, If the OS does not know about the increase, then how could I do that the OS knows the increase?

Thanks a lot and sorry for my English!

0 Kudos
Highlighted
Hot Shot
Hot Shot

Sounds as though you don't need to do anything with the virtual machine then - you just need to open it in Workstation once you've re-installed the OS and Workstation using the File / Open menu.

Sorry, I'm not a linux expert so I don't know how to get linux to recognise the change in disk size - there have been similar posts on this forum perhaps they explain how.

Personally; I would not extend the existing disk but I would add a second one instead (so that the virtual machine then had 2 virtual disks) - you could then just get linux to mount the 2nd virtual disk. If you have not pre-allocated the disk space for the original virtual disk then you should not lose any existing disk space on your host computer.

0 Kudos
Highlighted
Contributor
Contributor

Thanks for your help but I need extend the actual disk and I don't need an aditional disk.

Any help?

Thanks a lot!

0 Kudos
Highlighted
VMware Employee
VMware Employee

Extending/resizing the disk does not extend/resize the partition.

If you've already extended/resized the virtual disk, go download the gParted Live CD and boot the VM from that and resize your partition. (It's all gui-based and quite easy to use)

mike

mike
0 Kudos