用于virt安装的python helper cli(1)
kvminstall的Python项目详细描述
用于virt安装的python cli帮助程序(1)
安装
使用PIP进行安装。:
pip install kvminstall
这将自动将实用程序安装到您的路径中。
用法
usage: kvminstall [-h] [-c CLONE] [-i IMAGE] [-v VCPUS] [-r RAM] [-d DISK] [-D DOMAIN] [-N NETWORK] [--type TYPE] [--variant VARIANT] [-f CONFIGFILE] name positional arguments: name name of the new virtual machine optional arguments: -h, --help show this help message and exit -c CLONE, --clone CLONE name of the source logical volume to be cloned -i IMAGE, --image IMAGE image file to duplicate -v VCPUS, --vcpus VCPUS number of virtual CPUs -r RAM, --ram RAM amount of RAM in MB -d DISK, --disk DISK disk size in GB -D DOMAIN, --domain DOMAIN domainname for dhcp / dnsmasq -N NETWORK, --network NETWORK libvirt network --type TYPE os type, i.e., linux --variant VARIANT os variant, i.e., rhel7 -f CONFIGFILE, --configfile CONFIGFILE specify an alternate config file, default=~/.config /kvm-install/config.yaml
示例
假设您在libvirt\u lvm vg中有一个带有lvm后端的预构建基本映像。:
kvminstall -c /dev/libvirt_lvm/rhel71base examplevm