I’m trying to create a VM using KVM using the generic Rocky9 cloud image. virt-install
seems to do nothing.
Here’s how I created an ISO:
genisoimage -output cidata.iso -V cidata -r -J my-user-data my-meta-data
my-user-data
has this:
#cloud-config
password: Password1
chpasswd: { expire: False }
ssh_pwauth: True
my-meta-data
has this:
instance-id: ac934dc6-8876-475c-be9e-3f7900a8aef3
I then generated a .img file from the generic cloud image:
qemu-img create -b Rocky-9-GenericCloud-Base.latest.x86_64.qcow2 -f qcow2 -F qcow2 hal9000.img 20G
But when I run virt-install
:
sudo virt-install \
--virt-type kvm \
--name kvm6 \
--ram 2048 \
--vcpus 2 \
--import \
--disk path=/tmp/hal9000.img,format=qcow2 \
--disk path=/tmp/cidata.iso,device=cdrom \
--os-variant rocky9 \
--graphics none \
--network network=default
This is all I see:
Starting install...
Creating domain... | 00:00:00
Running text console command: virsh --connect qemu:///system console kvm6
Connected to domain 'kvm6'
Escape character is ^] (Ctrl + ])
Nothing happens. On the other hand, the installer runs successfully and the VM is created if I use the Rocky 9 minimal image.