Hello everyone,
I'm not sure if this should go to Server section of Software, but I'll try here since it has more to do with software.
We have a KVM hypervisor cluster in our company, i created a script for myself to ease the pain during creation of virtual machines. Lately I've been wanting to improve it by using --extra-args command line option to automatically parse kickstart command line on installation so i don't have to type it in manually when it boots.
When script finishes, it will compile a list of arguments to pass to virt-install command installed to my PC, to run it against remote server.
This is the command in question, when done.
Code:
virt-install --connect=qemu+ssh://kvm_hypervisor-03/system \
--name=vps32 \
--hvm \
--graphics vnc \
--disk path=/dev/mapper/vps32,bus=virtio,cache=none \
--vcpus 1 \
--ram=2048 \
--network bridge=br31,model=virtio \
--network bridge=br7,model=virtio \
--location=/ISO/CentOS-7-x86_64-DVD-1804.iso \
--extra-args="ksdevice=eth1 inst.ks=http://192.168.51.52/ks/vps32.cfg" \
--boot hd,cdrom,menu=on \
--os-type=linux \
--os-variant=rhel7 \
--metadata description="Hosting.VPS - tiket: CQU-291-12285"
ISO File that I've put into --location argument is located on remote server, not on my machine, so i have this error:
Code:
ERROR Cannot access install tree on remote connection: /ISO/CentOS-7-x86_64-DVD-1804.iso
Is there a way to force virt-install --location parameter to use ISO file on actual hypervisor, rather than me sharing it over the network or something like this. That file exists on the hypervisor, that's for sure.