Common Tasks :Importing a Legacy Virtual Machine
来源:互联网 发布:手机淘宝取消退款流程 编辑:程序博客网 时间:2024/06/04 19:31
Importing a Legacy Virtual Machine
The VIX API allows you to run some legacy virtual machines, with some loss of functionality that depends on the virtual hardware version. A legacy virtual machine is one created by an earlier version of VMware software.
The properties of a virtual machine include a virtual hardware version that determine the capabilities of the virtual machine. VMware products generally support the current virtual hardware version and the previous virtual hardware version. Virtual machines older than the previous virtual hardware version are best upgraded, as they are not supported and they might fail to run.
Virtual machines created with ESX Server may also be used with the VIX API if they are first exported to the file formats used by Workstation and GSX Server. Consult your ESX Server documentation for more information on exporting virtual machines.
Upgrading Virtual Hardware
When using legacy virtual machines, you can upgrade the virtual hardware by calling the VixVM_UpgradeVirtualHardware()function. This function upgrades the virtual hardware to the same level as virtual machines created with the current release.
To upgrade the virtual hardware version of your virtual machine
- Connect to the host on which the virtual machine is located. See Connecting to a Host.
- Get a handle to the virtual machine. See Getting a Handle to a Virtual Machine.
- Power off the virtual machine. See Powering Off a Virtual Machine.
- Use the virtual machine handle in a call to VixVM_UpgradeVirtualHardware().
Example 3-14.
C code below. Click here for Perl. Click here for COM.
VixError err = VIX_OK;VixHandle jobHandle = VIX_INVALID_HANDLE; // Upgrade the virtual hardware.jobHandle = VixVM_UpgradeVirtualHardware(vmHandle, 0, // options NULL, // callbackProc NULL); // clientDataerr = VixJob_Wait(jobHandle, VIX_PROPERTY_NONE);if (VIX_OK != err) { // Handle the error... goto abort;} Vix_ReleaseHandle(jobHandle);jobHandle = VIX_INVALID_HANDLE;
Once you have upgraded the virtual hardware of a legacy virtual machine, you can no longer use that virtual machine with older VMware products – those that use a previous virtual hardware version. If you have any doubts about upgrading, make a copy of the legacy virtual machine before you upgrade the virtual hardware.
- Common Tasks :Importing a Legacy Virtual Machine
- Common Tasks :Getting a Handle to a Virtual Machine
- Common Tasks :Starting or Resuming a Virtual Machine
- Common Tasks :Installing VMware Tools in a Virtual Machine
- Common Tasks :Powering Off or Suspending a Virtual Machine
- Common Tasks :Virtual Machine Guest Operations
- Common Tasks :Registering and Unregistering Virtual Machines
- Common Tasks :Connecting to a Host
- Common Tasks :Connecting to a Specified Host
- Using USB Devices in a Virtual Machine
- Create a new virtual machine in CentOS
- Unable to find a Java Virtual Machine
- Unable to find a Java Virtual Machine.
- Installing openssh-server on a virtual machine
- unable to fine a java virtual machine
- virtual machine
- Virtual machine
- Common Administration Tasks
- php 对 mysql数据库的增,删,该,查
- C++的替代者
- 创建计算字段 汇总数据 分组数据
- Common Tasks :Powering Off or Suspending a Virtual Machine
- 第八周最后任务—我爱你!!!
- Common Tasks :Importing a Legacy Virtual Machine
- C++的营养——swap手法
- fusionchart的简单封装
- 一个程序员的悲剧 - 前言
- 任意值加密
- Google的编程样式
- Delphi 字符串加密算法 (基于DES)
- CSS3中盒布局模式下的div内元素居中方案
- 权限管理算法