VMware Cloud Community
PetitNuage
VMware Employee
VMware Employee
Jump to solution

How to enable the Paravirtualization option in the VM settings

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

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

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)


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
1 Reply
LucD
Leadership
Leadership
Jump to solution

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)


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos