kayobe seed vm provision fails to start seed-vm when using Rocky 9 image
Closed this issue · 1 comments
adammccartney commented
Check out the master branch and follow the tutorial: the step kayobe seed vm provision
fails on the following task:
TASK [stackhpc.libvirt-vm : include_tasks] ******************************************************************
included: /home/rocky/kayobe/ansible/roles/stackhpc.libvirt-vm/tasks/volumes.yml
for seed-hypervisor => (item={'name': 'seed', 'memory_mb': '4096', 'vcpus': '1',
'volumes': [{'name': 'seed-root', 'pool': 'default', 'capacity': '50G',
'format': 'qcow2', 'image': '
https://dl.rockylinux.org/pub/rocky/9/images/x86_64/Rocky-9-GenericCloud.latest.x86_64.qcow2'},
{'name': 'seed-data', 'pool': 'default', 'capacity': '100G', 'format': 'qcow2'},
{'name': 'seed-configdrive', 'pool': 'default', 'capacity': '385024', 'device':
'cdrom', 'format': 'raw', 'image': '/opt/kayobe/images/seed.iso'}],
'interfaces': [{'network': 'aio', 'net_name': 'aio'}], 'console_log_enabled':
True})
TASK [Wait for SSH access to the seed VM] *******************************************************************
fatal: [seed-hypervisor -> localhost]: FAILED! => {"changed": false, "elapsed":
360, "msg": "Timeout when waiting for 192.168.33.5:22"}
Inspecting the /var/log/libvirt-consoles/seed-console.log
shows the VM is
looping in the boot stage:
Machine UUID 27e2ea68-c8ea-49a6-96f4-c5ebc1102097
iPXE (http://ipxe.org) 00:02.0 C000 PCI2.10 PnP PMM+BEFCCA80+BEF0CA80 C000
Press Ctrl-B to configure iPXE (PCI 00:02.0)...
Booting from Hard Disk...
GRUB loading.......
�[0;30;47mWelcome to GRUB
Workaround
Run kayobe seed vm deprovision
Edit the variable seed_vm_root_image
to use a newer image.
From within the source tree described in the README, the variable is found in
the file ~/kayobe/config/src/kayobe-config/etc/kayobe/seed-vm.yml
Set this variable to point to a rocky 9.3 image:
diff --git a/etc/kayobe/seed-vm.yml b/etc/kayobe/seed-vm.yml
index fe68cee..48a0e6c 100644
--- a/etc/kayobe/seed-vm.yml
+++ b/etc/kayobe/seed-vm.yml
@@ -33,7 +33,7 @@ seed_vm_vcpus: 1
# or
# "https://cloud.centos.org/centos/8-stream/x86_64/images/CentOS-Stream-GenericCloud-8-20210603.0.x86_64.qcow2"
# otherwise.
-#seed_vm_root_image:
+seed_vm_root_image: "https://dl.rockylinux.org/vault/rocky/9.3/images/x86_64/Rocky-9-GenericCloud-Base.latest.x86_64.qcow2"
# Capacity of the seed VM data volume.
#seed_vm_data_capacity:
Rerun kayobe seed vm provision
, the playbook now succeeds.
Alex-Welsh commented
Thanks for raising this @adammccartney, it has been resolved with #160