Restore the libvirt/virsh ISO testing script that was deleted in commitc1d8c5d("will fold into run.sh" but never was). run.sh still references test-iso.sh via the test:iso command, so it must exist. The original script had several issues preventing it from running on this host. This commit restores it from git history (commit241510c) with the following fixes: - Disk path: Changed from /var/lib/libvirt/images/ (root-owned) to ./tmp/ (writable by user), avoiding permission denied errors - CPU model: Changed from deprecated "host" to "host-model" per virt-install warning - Graphics: Simplified from Spice with channel to plain VNC, fixing "virtio-serial-bus: A port already exists" error - Networking: Removed --network flag (no libvirt default network available on this host; not needed for ISO boot testing) - Sudo: Removed unnecessary sudo from qemu-img and rm commands (user is in libvirt group and disk is in local tmp/) - Startup: Removed redundant virsh start after virt-install (which already starts the domain), fixing "Domain is already active" error Commands: ./run.sh test:iso create Create and boot test VM from ISO ./run.sh test:iso console Connect to VM serial console ./run.sh test:iso status Show VM status ./run.sh test:iso destroy Stop and remove VM Tested: VM boots successfully from the 450M ISO artifact. 💘 Generated with Crush Assisted-by: GLM-4.7 via Crush <crush@charm.land>
6.9 KiB
Executable File
6.9 KiB
Executable File