How to quarantine a VM using VIX and VDDK?

How to quarantine a VM using VIX and VDDK?

VMware Contributed Sample Code Disclaimer

The attached sample code shows off the integration between VIX and
VDDK (VixDiskLib and vmware-mount). The sample is fairly complex,
showing the usecase of quantining a workstation VM.

Here is what this sample does:

  • Read and analyze the MBR of the primary disk
  • Read boot.ini from the active partition - deterime and mount the boot volume
  • Copy the system hive and  determine the mounted drives
  • 'Scan'  the  drives to 'find' an infected file
  • Quarentine the VM by removing the network device from VMX
  • Power On the VM and Delete the files using VIX api
  • Power off the VM and restore back the original configuration


Sample Code: http://communities.vmware.com/blogs/sudarsan/2009/01/21/sample-code-showing-how-to-quarantine-a-vm-u...

Version history
Revision #:
1 of 1
Last update:
‎08-26-2009 10:12 AM
Updated by: