JavaScript is required to for searching.
跳过导航链接
退出打印视图
手册页第 1M 部分:系统管理命令     Oracle Solaris 11 Information Library (简体中文)
search filter icon
search icon

文档信息

前言

简介

系统管理命令-第 1 单元

系统管理命令-第 2 单元

系统管理命令-第 3 单元

update_drv(1M)

useradd(1M)

userdel(1M)

usermod(1M)

utmp2wtmp(1M)

utmpd(1M)

uucheck(1M)

uucico(1M)

uucleanup(1M)

uucpd(1M)

uusched(1M)

Uutry(1M)

uutry(1M)

uuxqt(1M)

vbiosd(1M)

vdiskadm(1M)

virt-convert(1M)

virtinfo(1M)

vmstat(1M)

vntsd(1M)

volcopy(1M)

volcopy_ufs(1M)

vrrpadm(1M)

vrrpd(1M)

vscanadm(1M)

vscand(1M)

vtdaemon(1M)

wall(1M)

wanboot_keygen(1M)

wanboot_keymgmt(1M)

wanboot_p12split(1M)

wanbootutil(1M)

wbemadmin(1M)

wbemconfig(1M)

wbemlogviewer(1M)

wcadmin(1M)

whodo(1M)

wpad(1M)

wracct(1M)

wtmpfix(1M)

wusbadm(1M)

ypbind(1M)

ypinit(1M)

ypmake(1M)

ypmap2src(1M)

yppasswdd(1M)

yppoll(1M)

yppush(1M)

ypserv(1M)

ypserv_resolv(1M)

ypset(1M)

ypstart(1M)

ypstop(1M)

ypupdated(1M)

ypxfr(1M)

ypxfr_1perday(1M)

ypxfr_1perhour(1M)

ypxfr_2perday(1M)

ypxfrd(1M)

zdb(1M)

zdump(1M)

zfs(1M)

zfs_allow(1M)

zfs_encrypt(1M)

zfs_share(1M)

zic(1M)

zoneadm(1M)

zoneadmd(1M)

zonecfg(1M)

zonep2vchk(1M)

zonestatd(1M)

zpool(1M)

zstreamdump(1M)

virt-convert

- convert virtual machines between formats

用法概要

virt-convert [option]... input.vmx | input.ovf | input-dir
     [output.xml | output-dir]

描述

The virt-convert program is a command line tool for converting virtual machines (VMs) from one format to another. It accepts either a VM definition file (such as VMware vmx format) or a directory containing a VM. By default, a new VM definition file, and converted disk images, will be placed in a new output directory.

If an output directory is specified, it will be created if necessary, and the output VM definition placed within the new directory, along with any disk images, as needed.

If an output VM definition file is specified, it will be created alongside any disks in the same directory.

选项

Any of the following options can be omitted, in which case virt-convert will use defaults when required. An input VM definition or containing directory must be provided. By default, an output directory is generated based upon the name of the VM. The default input format is VMware vmx, and the default output format is a libvirt “image” XML definition.

-a, --arch=arch

Architecture of the virtual machine (i686, x86_64, ppc). Defaults to that of the host machine.

-D, --disk-format=format

Output disk format, or none if no conversion should be performed. format is one of:

none

No disks are converted or copied.

vmdk

VMWare VMDK format

raw

raw file

vdisk

vdisk format (see vdiskadm(1M))

-d, --debug

Display debugging information.

-h, --help

Display the help message and exit.

-i, --input-format format

Input format. Currently, vmx and ovf are supported.

--noacpi

Override the OS type and variant to disable the ACPI setting for fully virtualized guest.

--noapic

Override the OS type and variant to disable the APIC setting for fully virtualized guest.

-o, --output-format format

Output format. Currently, the supported output formats are virt-instance and virt-image. virt-instance is the recommended format for Solaris.

--os-type=os_type

Optimize the guest configuration for a type of operating system. This will attempt to pick the most suitable ACPI and APIC settings, optimally supported mouse drivers, and generally accommodate other operating system quirks.

--os-variant=os_variant

Further optimize the guest configuration for a specific operating system variant. This parameter is optional.

-p, --paravirt

Create a paravirtualized guest image. Convert machine to a paravirtualized Xen-based image.

-q, --quiet

Avoid verbose output.

-v, --hvm

Create a fully virtualized guest image. Convert machine to a hvm/qemu–based image (this is the default if --paravirt is not specified).

示例

示例 1 Converting a VMware VMX appliance

The following sequence of commands converts a VMware VMX appliance and imports it into Solaris xVM.

# virt-convert -o virt-instance /guests/vmx-appliance/ \
/guests/xvm-appliance/
# virsh define --relative-path=/guests/xvm-appliance/ \
\guests/xvm-appliance/appliance.xml

属性

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/xvm/header-xvm
Interface Stability
Volatile

另请参见

vdiskadm(1M), attributes(5)

Caveats

Not all conversions will result in a working guest installation. If the source OS image is configured to use SCSI disks, the use of IDE disks may cause the OS boot to fail. Some images may be configured to use the VMware drivers such as vlance. In the vlance case and in general, device emulation support may not be sufficient for all OS installations.

Authors

Written by Joey Boggs and John Levon.

See the AUTHORS file in the source distribution for the complete list of credits.