【发布时间】:2021-11-10 10:11:14
【问题描述】:
virt-install 如何实现--extra-args 参数?
我查看了Python源代码,没有发现任何信息。
virt-install \
--connect qemu+ssh://root@192.168.xx.xx:22/system \
--name centos7 \
--ram 1024 \
--disk path=/data/kvm/centos7.qcow2,size=8 \
--vcpus 1 \
--os-type linux \
--os-variant centos7 \
--network bridge=virbr0 \
--nographics --noautoconsole \
--location 'nfs://192.168.xx.xx/usr/share/nginx/html/Centos7' \
--extra-args 'console=ttyS0 --device=ens33 ip=192.168.xx.xx netmask=255.255.255.0 gateway=192.168.xx.xx ks=http://192.168.xx.xx/ks.cfg'
【问题讨论】: