virt-install command line provide additional parameters. Automating KVM VM creation using automation tool
Kaushal Shriyan
kaushalshriyan at gmail.com
Sun May 10 05:29:03 UTC 2020
Hi,
I am running the below command to spawn the KVM based VM instance.
#virt-install --name=openmonitoringdistributionlabs
--file=/linuxkvmguestosdisk/var/lib/libvirt/images/openmonitoringdistributionlabs.img
--file-size=100 --nonsparse --vcpu=2 --ram=6096 --network=bridge:br0
--os-type=linux --os-variant=rhel7 --graphics none
--location=/linuxkvmguestosdisk/var/lib/libvirt/isos/CentOS-7-x86_64-DVD-2003.iso
--extra-args="console=ttyS0"
Is there a way to provide the below settings in the command line instead of
manually setting 2) Time settings 3) Installation source 4) Software
selection 5) Installation Destination 8) Root password 9) User creation?
Installation
1) [x] Language settings 2) [!] Time settings
(English (United States)) (Timezone is not set.)
3) [!] Installation source 4) [!] Software selection
(Processing...) (Processing...)
5) [!] Installation Destination 6) [x] Kdump
(No disks selected) (Kdump is enabled)
7) [ ] Network configuration 8) [!] Root password
(Not connected) (Password is not set.)
9) [!] User creation
(No user will be created)
Please make your choice from above ['q' to quit | 'b' to begin
installation |
'r' to refresh]:
Is there a way to automate KVM VM instance creation as per the above
virt-install command using Ansible for example or any automation tool?
Please suggest. Thanks in advance and i look forward to hearing from you.
Best Regards,
Kaushal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20200510/7e0f629c/attachment.htm>
More information about the virt-tools-list
mailing list