VMware Tips for AE’s

28
Gary Cochrane VMware Tips for AE’s

description

VMware Tips for AE’s. Gary Cochrane. VMWare Tips. Topics VMware Shrink Resetting after a demo or training class Performance tips. Shrinking Virtual Machines. Q. Why is my VM so large? A. Because Windows never really deletes anything… - PowerPoint PPT Presentation

Transcript of VMware Tips for AE’s

Page 1: VMware Tips for AE’s

Gary Cochrane

VMware Tips for AE’s

Page 2: VMware Tips for AE’s

VMWare Tips

• Topics− VMware Shrink− Resetting after a demo or training class− Performance tips

Page 3: VMware Tips for AE’s

Shrinking Virtual Machines

• Q. Why is my VM so large?− A. Because Windows never really deletes anything…

»Yes, with the right software, files can still be un-deleted»Even after having emptied the Wastebasket? Yes

• Q. What can I do about it?− A. Use the VMware “Shrink” tool

Page 4: VMware Tips for AE’s

Virtual Machine hard drives

2. Size established when VM is created

1. Stored as 1 (or more) files on your host hard drive

I typically use 10-12 GB

2. VM hard drive size cannot be modified afterwards

Page 5: VMware Tips for AE’s

Virtual Disk Creation

Page 6: VMware Tips for AE’s

Virtual Machine – Split hard drives

2. Again, Maximum Size established when VM is created.

1. Multiple files, each up to 2 GB on your host hard drive

Maximum Size (Ex: 10 gb)

Actual Size

Page 7: VMware Tips for AE’s

Hard drive use – over time

2. When one fills up, usage spills over to the next

1. Each 2 GB (on your host hard drive) gets filled as it is needed

Maximum Size

Used space – active file

Used space – deleted file

Un-used space

Page 8: VMware Tips for AE’s

Hard drive use – over time

2. Windows uses up all un-used space, before reclaiming deleted files

1. Deleted files are still files!

Maximum Size

Used space – active file

Used space – deleted file

Un-used space

Page 9: VMware Tips for AE’s

Hard drive use – over time

2. Again, Total Size established when VM is created.

1. Multiple files, each up to 2 GB on your host hard drive

Maximum Size

Used space – active file

Used space – deleted file

Un-used space

Page 10: VMware Tips for AE’s

Hard drive use – over time

2. Again, Total Size established when VM is created.

1. Multiple files, each up to 2 GB on your host hard drive

Maximum Size

Used space – active file

Used space – deleted file

Un-used space

Page 11: VMware Tips for AE’s

“High Water” mark

2. Shrink – moves files so that they are contiguous

1. Prepare for shrinking – converts deleted files to un-used space

Maximum Size

Actual VM Size

Page 12: VMware Tips for AE’s

Shrink Process

2. Shrink – moves files so that they are contiguous

1. Prepare for shrinking – converts deleted files to un-used space

Maximum Size

Used space – active file

Used space – deleted file

Un-used space

Page 13: VMware Tips for AE’s

Shrink Process

2. Shrink – moves files so that they are contiguous

1. Prepare for shrinking – converts deleted files to un-used space

Maximum Size

Used space – active file

Used space – deleted file

Un-used space

Page 14: VMware Tips for AE’s

Shrink Process - Complete

2. Shrink – moves files so that they are contiguous

1. Prepare for shrinking – converts deleted files to un-used space

Maximum Size

Final Size

Page 15: VMware Tips for AE’s

How to Shrink?

• Boot up the VM, then…

Page 16: VMware Tips for AE’s

How to Shrink - continued

• Switch to Shrink tab− Select> Prepare to shrink

Page 17: VMware Tips for AE’s

Optimizing the Shrink process

• Before starting the shrink process− Delete any un-necessary files from the VM− Run Windows Disk Cleanup on the VM disk

»Right-click the disk, choose Properties, and then Cleanup

− Run Windows defrag within the VM

• Now start the shrink process

Page 18: VMware Tips for AE’s

Training Class/Demo tips

• How to reset machine after demo, or class− In other words, how to get machine back to state

before demo:»Non-persistent disks»VM Snapshots

Page 19: VMware Tips for AE’s

Non-persistent Mode

• Does not save any changes− Enable it only after VM is ready to go!

»Boot VM»Run Demo/Class»Shutdown VM

− VM does not save any changes, and is automatically ready for next demo/class

»If student shuts machine down in middle of class, you’re in trouble…

Page 20: VMware Tips for AE’s

Enabling Non-persistent Mode

Page 21: VMware Tips for AE’s

Enabling Non-persistent Mode

Page 22: VMware Tips for AE’s

Enabling Non-persistent Mode

Page 23: VMware Tips for AE’s

Revert-to-Snapshot Mode

• Very similar to Non-persistent mode− Enable it only after VM is ready to go!

»Take Shapshot»Boot VM»Run Demo/Class»Shutdown VM

− VM does not save any changes, and is automatically ready for next demo/class

Page 24: VMware Tips for AE’s

Enabling Revert-to-Snapshot Mode

Page 25: VMware Tips for AE’s

Enabling Revert-to-Snapshot Mode

Page 26: VMware Tips for AE’s

Before booting VM, take Snapshot

Page 27: VMware Tips for AE’s

Before booting VM, take Snapshot

Page 28: VMware Tips for AE’s

VM Performance tips

• On host machine− If possible, store VM’s on second hard drive

»Allows your host O/S to own the primary drive, and the VM to own the secondary

− Defrag often, VM files are large, and tend to fragment as a result