Error Codes

VIX_OK
The operation was successful.

VIX_E_FAIL
Unknown error.

VIX_E_OUT_OF_MEMORY
Memory allocation failed: out of memory.

VIX_E_INVALID_ARG
One of the parameters was invalid.

VIX_E_FILE_NOT_FOUND
A file was not found.

VIX_E_OBJECT_IS_BUSY
This function cannot be performed because the handle is executing another function.

VIX_E_NOT_SUPPORTED
The operation is not supported for the specified parameters.

VIX_E_FILE_ERROR
A file access error occurred on the host or guest operating system.

VIX_E_DISK_FULL
An error occurred while writing a file; the disk is full. Data has not been saved. Free some space and try again.

VIX_E_INCORRECT_FILE_TYPE
An error occurred while accessing a file: wrong file type.

VIX_E_CANCELLED
The operation was cancelled.

VIX_E_FILE_READ_ONLY
The file is write-protected.

VIX_E_FILE_ALREADY_EXISTS
The file already exists.

VIX_E_FILE_ACCESS_ERROR
You do not have access rights to this file.

VIX_E_REQUIRES_LARGE_FILES
The file system does not support sufficiently large files.

VIX_E_FILE_ALREADY_LOCKED
The file is already in use.

VIX_E_NOT_SUPPORTED_ON_REMOTE_OBJECT
The command is not supported on remote objects.

VIX_E_FILE_TOO_BIG
The file is too big for the filesystem.

VIX_E_FILE_NAME_INVALID
The file name is not valid.

VIX_E_ALREADY_EXISTS
Already exists.

VIX_E_INVALID_HANDLE
The handle is not a valid VIX object.

VIX_E_NOT_SUPPORTED_ON_HANDLE_TYPE
The operation is not supported on this type of handle.

VIX_E_TOO_MANY_HANDLES
Too many handles are open.

VIX_E_NOT_FOUND
Invalid file - a required section of the file is missing.

VIX_E_TYPE_MISMATCH
Invalid file - an object has the wrong type.

VIX_E_INVALID_XML
Invalid file - contents may be corrupt.

VIX_E_TIMEOUT_WAITING_FOR_TOOLS
Timeout error while waiting for the guest tools to start.

VIX_E_UNRECOGNIZED_COMMAND
The command is not recognized by the virtual machine.

VIX_E_OP_NOT_SUPPORTED_ON_GUEST
The requested operation is not supported on this guest operating system.

VIX_E_PROGRAM_NOT_STARTED
A program could not run on the guest operating system.

VIX_E_CANNOT_START_READ_ONLY_VM
Cannot power on a read-only virtual machine.

VIX_E_VM_NOT_RUNNING
The virtual machine needs to be powered on.

VIX_E_VM_IS_RUNNING
The virtual machine should not be powered on. It appears to be running already.

VIX_E_CANNOT_CONNECT_TO_VM
Cannot connect to the virtual machine.

VIX_E_POWEROP_SCRIPTS_NOT_AVAILABLE
Cannot execute scripts.

VIX_E_NO_GUEST_OS_INSTALLED
No operating system installed in the virtual machine.

VIX_E_VM_INSUFFICIENT_HOST_MEMORY
Not enough physical memory is available to power on this virtual machine.

VIX_E_SUSPEND_ERROR
An error occurred while suspending the virtual machine.

VIX_E_VM_NOT_ENOUGH_CPUS
This virtual machine is configured to run with 2 CPUs, but the host only has 1 CPU. The virtual machine cannot be powered on.

VIX_E_HOST_USER_PERMISSIONS
Insufficient permissions in host operating system.

VIX_E_GUEST_USER_PERMISSIONS
Authentication failure or insufficient permissions in guest operating system.

VIX_E_TOOLS_NOT_RUNNING
Guest tools is not running.

VIX_E_GUEST_OPERATIONS_PROHIBITED
Guest operations are not allowed on this virtual machine.

VIX_E_ANON_GUEST_OPERATIONS_PROHIBITED
Guest operations are not allowed for the anonymous user on this virtual machine.

VIX_E_ROOT_GUEST_OPERATIONS_PROHIBITED
Guest operations are not allowed for administrative user on this virtual machine.

VIX_E_MISSING_ANON_GUEST_ACCOUNT
The virtual machine configuration must specify guest account name to be used for anonymous guest operations.

VIX_E_CANNOT_AUTHENTICATE_WITH_GUEST
The virtual machine cannot authenticate users with guest.

VIX_E_UNRECOGNIZED_COMMAND_IN_GUEST
The command is not recognized by the Guest OS tools.

VIX_E_CONSOLE_GUEST_OPERATIONS_PROHIBITED
Guest operations are not allowed for console user on this virtual machine.

VIX_E_MUST_BE_CONSOLE_USER
The command can only be run by console user.

VIX_E_VM_NOT_FOUND
The virtual machine cannot be found.

VIX_E_NOT_SUPPORTED_FOR_VM_VERSION
The operation is not supported for this virtual machine version.

VIX_E_CANNOT_READ_VM_CONFIG
Cannot read the virtual machine configuration file.

VIX_E_TEMPLATE_VM
Cannot perform this operation on a template virtual machine.

VIX_E_VM_ALREADY_LOADED
The virtual machine has already been loaded.

VIX_E_VM_ALREADY_UP_TO_DATE
The virtual machine is already up-to-date.

VIX_E_UNRECOGNIZED_PROPERTY
Unrecognized handle property identifier.

VIX_E_INVALID_PROPERTY_VALUE
Invalid property value.

VIX_E_READ_ONLY_PROPERTY
Cannot change a read-only property.

VIX_E_MISSING_REQUIRED_PROPERTY
This handle is missing a required property.

VIX_E_BAD_VM_INDEX
The index parameter does not correspond to a result set.

VIX_E_SNAPSHOT_INVAL
The snapshot is incompatable with the current host.

VIX_E_SNAPSHOT_DUMPER
Unable to open snapshot file.

VIX_E_SNAPSHOT_DISKLIB
Disk problem.

VIX_E_SNAPSHOT_NOTFOUND
A file by that name does not exist.

VIX_E_SNAPSHOT_EXISTS
A file by that name already exists.

VIX_E_SNAPSHOT_VERSION
Snapshots are not allowed on this virtual machine.

VIX_E_SNAPSHOT_NOPERM
Insufficient permissions.

VIX_E_SNAPSHOT_CONFIG
Something is wrong with the configuration file.

VIX_E_SNAPSHOT_NOCHANGE
The state of the virtual machine has not changed since the last snapshot operation.

VIX_E_SNAPSHOT_CHECKPOINT
Unable to save snapshot file.

VIX_E_SNAPSHOT_LOCKED
A snapshot operation is already in progress.

VIX_E_SNAPSHOT_INCONSISTENT
The snapshot files are in an inconsistent state.

VIX_E_SNAPSHOT_NAMETOOLONG
The filename is too long.

VIX_E_SNAPSHOT_VIXFILE
Cannot snapshot all metadata files.

VIX_E_SNAPSHOT_DISKLOCKED
One or more of the disks are busy.

VIX_E_SNAPSHOT_DUPLICATEDDISK
The virtual disk is used multiple times.

VIX_E_SNAPSHOT_INDEPENDENTDISK
Powered on snapshot are not allowed on virtual machines with indpendent disks.

VIX_E_SNAPSHOT_NONUNIQUE_NAME
The name does not uniquely identify one snapshot.

VIX_E_NOT_A_FILE
The object is not a file.

VIX_E_NOT_A_DIRECTORY
The object is not a directory.

VIX_E_NO_SUCH_PROCESS
No such process.

VIX_E_FILE_NAME_TOO_LONG
File name too long.