Name

VMReset

Description

$err = VMReset($vmHandle,
               $powerOnOptions);

This function resets a virtual machine, which is the equivalent of pressing the reset button on a physical machine.

Parameters

vmHandle
Identifies a virtual machine. Call VMOpen() to create a virtual machine handle.
powerOnOptions
Must be VIX_VMPOWEROP_NORMAL.

Return Value

$err. The error code returned by the operation.

Remarks

This function resets a virtual machine, which is the equivalent of pressing the reset button on a physical machine. If the virtual machine is not powered on when you call this function, it returns an error.

Side Effects

None.

Requirements

use VMWare::Vix::Simple;
use VMware::Vix::API::Constants;
since VMware Server 1.0
Copyright (C) 2007 VMware, Inc. All rights reserved.