Automation

 View Only
Expand all | Collapse all

How to enable the Paravirtualization option in the VM settings

  • 1.  How to enable the Paravirtualization option in the VM settings

    Broadcom Employee
    Posted Nov 26, 2008 09:26 AM

    Hi,

    I am looking for the powershell command to enable the Paravirtualization option (in the VM settings) for Vista VMs

    Is this possible ?

    Thx

    PN



  • 2.  RE: How to enable the Paravirtualization option in the VM settings
    Best Answer

    Posted Nov 26, 2008 10:03 AM

    The paravirtualisation settings is controlled by the line vmi.present in the VMX file of the guest.

    See Carter's blog entry on how to change the VMX file from within PowerShell.

    The following script shows how enable paravirtualisation.

    $spec = New-Object VMware.Vim.VirtualMachineConfigSpec
    $spec.extraConfig += New-Object VMware.Vim.OptionValue
    $spec.extraConfig[0].key = "vmi.present"
    $spec.extraConfig[0].value = "true"
     
    (get-view (Get-VM -Name <VM-name>).ID).ReconfigVM($spec)