Best Practices of Resizing Windows Virtual Machine Disks on VMWARE ESX Server 3
2007-09-28 23:42
676 查看
Best Practices of Resizing Windows Virtual Machine Disks on VMWARE ESX Server 3[/b]
Author : VM2008
====================================================
Expand:
Workaround 1[/b] : vmkfstools + diskpart ( additional VM need)
http://vmprofessional.com/index.php?content=2k3resize
Workaround 2[/b]: VMWARE Converter (Best and Easy)
Workaround 3[/b]: vmkfstools + Parted LiveCD (for no VMWARE Converter users or VMWARE Converter doesn’t work)
Step 1) Power off Virtual Machine
Step 2) Expanding the VMDK
Log into the ESX server via ssh (use Putty) Find the .vmdk file you want to expand and use vmkfstools to expand it:
notes: chance xxxx with whatever size you want it to be
Sample :
vmkfstools -X 30g /vmfs/volumes/ESX01_LOCAL01/WSOEx64/WSOEx64.vmdk
ls -lah WSOEx64.vmdk
Step 3) Power up the virtual machine
Step 4) Go to command prompt type "chkdsk" - This is critical - it may cause issues if you skip this step.
Step 5) Download the Parted LiveCD from here (A linux based free GUI tool like Partition Magic
VM2008 Notes: 0.3.4-8 doesn’t work for VMWARE machine, but 0.3.4-7 works well
Step 6) Mount the downloaded ISO as the CD-Rom of the Virtual Machine. You can mount the ISO directly or burn it to CD then mount the CD-Rom to the Virtual Machine.
Step 7) Restart the virtual machine and boot from the CD. (You may have to hit ESC to bring up the boot menu.)
Step 8) Choose your Language and Keyboard Layout
Step 9) Click the partition you want to expand then apply change
Step 10) Reboot, Power up the virtual machine
====================================================
Shrink:
[/b]
Workaround 1[/b]: VMWARE Converter (Best and Easy)
[/b]
Workaround 2[/b]: Parted LiveCD + cloning utility (Ghost) (for no VMWARE Converter users or VMWARE Converter doesn’t work)
Step 1) Power off Virtual Machine
Step 2) Download the Parted LiveCD from here (A linux based free GUI tool like Partition Magic
VM2008 Notes: 0.3.4-8 doesn’t work for VMWARE machine, but 0.3.4-7 works well
Step 3) Mount the downloaded ISO as the CD-Rom of the Virtual Machine. You can mount the ISO directly or burn it to CD then mount the CD-Rom to the Virtual Machine.
Step 4) Restart the virtual machine and boot from the CD. (You may have to hit ESC to bring up the boot menu.)
Step 5) Choose your Language and Keyboard Layout
Step 6) Click the partitions, just shrink the partition, no need to move partitions from right to left to release the free space near the right(end) of vmdk file.
Step 7) Power off Virtual Machine
Step 8) create a new vmdk file at the desired size
vmkfstools -a lsilogic -c 15G HA_TEST_small.vmdk
ls –lah HA_TEST_small.vmdk
Step 9) mount the new vmdk in your VM, and use a disk imaging/cloning utility (ghost, trueimage,etc) to move the VM's primary disk contents to the secondary disk
Step 10) detach the old vmdk from your VM, Power on the VM
VM2008 Notes:[/b]: Old solution : Parted LiveCD + vmkfstools doesn’t work under ESX Server 3
====================================================本文出自 “虚拟化和存储” 博客,转载请与作者联系!
Author : VM2008
====================================================
Expand:
Workaround 1[/b] : vmkfstools + diskpart ( additional VM need)
http://vmprofessional.com/index.php?content=2k3resize
Workaround 2[/b]: VMWARE Converter (Best and Easy)
Workaround 3[/b]: vmkfstools + Parted LiveCD (for no VMWARE Converter users or VMWARE Converter doesn’t work)
Step 1) Power off Virtual Machine
Step 2) Expanding the VMDK
Log into the ESX server via ssh (use Putty) Find the .vmdk file you want to expand and use vmkfstools to expand it:
vmkfstools –X xxxxG/vmfs/volumes/file_system_label/dir/myDisk.vmdk
notes: chance xxxx with whatever size you want it to be
Sample :
vmkfstools -X 30g /vmfs/volumes/ESX01_LOCAL01/WSOEx64/WSOEx64.vmdk
ls -lah WSOEx64.vmdk
Step 3) Power up the virtual machine
Step 4) Go to command prompt type "chkdsk" - This is critical - it may cause issues if you skip this step.
Step 5) Download the Parted LiveCD from here (A linux based free GUI tool like Partition Magic
VM2008 Notes: 0.3.4-8 doesn’t work for VMWARE machine, but 0.3.4-7 works well
Step 6) Mount the downloaded ISO as the CD-Rom of the Virtual Machine. You can mount the ISO directly or burn it to CD then mount the CD-Rom to the Virtual Machine.
Step 7) Restart the virtual machine and boot from the CD. (You may have to hit ESC to bring up the boot menu.)
Step 8) Choose your Language and Keyboard Layout
Step 9) Click the partition you want to expand then apply change
Step 10) Reboot, Power up the virtual machine
====================================================
Shrink:
[/b]
Workaround 1[/b]: VMWARE Converter (Best and Easy)
[/b]
Workaround 2[/b]: Parted LiveCD + cloning utility (Ghost) (for no VMWARE Converter users or VMWARE Converter doesn’t work)
Step 1) Power off Virtual Machine
Step 2) Download the Parted LiveCD from here (A linux based free GUI tool like Partition Magic
VM2008 Notes: 0.3.4-8 doesn’t work for VMWARE machine, but 0.3.4-7 works well
Step 3) Mount the downloaded ISO as the CD-Rom of the Virtual Machine. You can mount the ISO directly or burn it to CD then mount the CD-Rom to the Virtual Machine.
Step 4) Restart the virtual machine and boot from the CD. (You may have to hit ESC to bring up the boot menu.)
Step 5) Choose your Language and Keyboard Layout
Step 6) Click the partitions, just shrink the partition, no need to move partitions from right to left to release the free space near the right(end) of vmdk file.
Step 7) Power off Virtual Machine
Step 8) create a new vmdk file at the desired size
vmkfstools -a lsilogic -c 15G HA_TEST_small.vmdk
ls –lah HA_TEST_small.vmdk
Step 9) mount the new vmdk in your VM, and use a disk imaging/cloning utility (ghost, trueimage,etc) to move the VM's primary disk contents to the secondary disk
Step 10) detach the old vmdk from your VM, Power on the VM
VM2008 Notes:[/b]: Old solution : Parted LiveCD + vmkfstools doesn’t work under ESX Server 3
====================================================本文出自 “虚拟化和存储” 博客,转载请与作者联系!
相关文章推荐
- Resizing the disk space on Ubuntu Server VMs running on VMware ESXi 5
- Resizing the disk space on Ubuntu Server VMs running on VMware ESXi 5
- Resizing an IDE virtual disk on Windows 7 VM
- How to cleanup and shrink disk space usage of a Windows KVM virtual machine
- 解决VMware Taking ownership of this virtual machine failed一例
- How to extend an LVM disk on a RHEL guest machine running on VMware host?
- How to run a (Tomcat)Java application server on a Azure virtual machine
- Excel 2007 automation on top of a Windows Server 2008 x64
- establish Solaris xVM virtual machine on zfs disk
- 安装vmware-tools出现"what is the location of the "ifconfig"program on your machine?"
- [论文笔记] An Optimized Control Strategy for Load Balancing Based on Live Migration of Virtual Machine (ChinaGrid, 2011)
- VMware server Virtual machine config file is invalid
- What is the maximum amount of memory any single process on Windows can address? Is this different than the maximum virtual memor
- VMDK(VMWare Virtual Machine Disk Format)是虚拟机VMware创建的虚拟硬盘格式
- VMware Tools does not install on a Windows 2008 guest operating system after upgrading to ESX 4
- Best Practices For Database Consolidation On Exadata Database Machine
- 解决vmware tools on Windows 2000 Server安装兼容性问题
- 解决 this virtual machine’s policies are too old to be run by this version of vmware workstation”
- Using Java to create customized virtual machine clones on VMWare infrastructure
- 虚拟机异常关闭,重新打开vmware:Cannot open the disk 'XXX' or one of the snapshot disks it depends on. reason: fa