如何获取并安装createova工具
- 已经安装了QEMU工具,具体请参见如何获取并安装QEMU工具。
- 已经获取createova工具和镜像文件,并将两者放置在Linux环境的同一个目录下。createova工具获取路径:createova工具下载。
具体安装createova工具步骤如下:
- 执行命令sudo chmod +x createova,安装createova工具。
- 执行命令sudo createova -h,查看createova工具中对应的命令使用。
Build a OVA from an Disk image. Accepts user inputs Hardware configuration. Option Params Description [value range]{default value} ------------------- --------- ----------------------------------------------- Help: -h | -help Display this help message Input/Output Options: -d | -disk <path> Disk image file for VM -b | -bus Bus for disk {[usb][ide][scsi][virtio]} -li| -localiso <path> ISO Image file for VM will pack in ova -ri| -remoteiso <path> ISO Image file for VM will not pack in ova -o | -output <path> Output directory for OVA file {/home/chenruirui/ovacreate} -n | -name [<name>] Create OVA with different name than image If <name> is not specified, a name will be automatically generated from the VM options {} -hwex <string> Optional custom for special config Virtual Machine Hardware Options: -c | -cpus <cpus> Number of CPUs for VM [1-8]{1} -m | -memory <MB> Amount of memory for VM [256-8192]{1024} -s | -serial <serials> Number of Serials for VM [0-2]{1} -ns | -nics <nics> Number of ethernet NICS for VM [1-8]{1} -ea | -eth_adapter <string> Ethernet adapter type [Rtl8139,E1000,virtio]{e10 00} Virtual Machine Description Options: -ot | -os_type <string> Description VM's OS type {Other Linux 64bit} -p | -product <string> Description of VM product {} -v | -vendor <string> Name of VM vendor {huawei} -vs | -version_short <str> Short version string {v1.0.0} -pu | -product_url <URL> URL of VM product {http://www.huawei.com} -vu | -vendor_url <URL> URL of vendor {http://www.huawei.com} Examples: Examples: createova Build OVA with a interaction, you can input all the configurations createova -d vmar.qcow2 Build OVA 'vmar.ova' from vmar.qcow2 with default values for all options createova -d vmar.qcow2 -li u12.iso Build OVA 'vmar.ova' from vmar.qcow2 and u12.iso with default values for all options createova -d vmar.qcow2 -n myvm Build OVA 'myvm.ova' from vmar.qcow2 with default values for all options createova -d vmar.qcow2 -o /var/www/html Build OVA from vmar.qcow2 and store the OVA in /var/www/html createova -d vmar.qcow2 -c 6 -m 2048 -ns 6 Build OVA with 6 CPUs, 2GB memory, 6 NICs