I wanted quickly spin up a CS9 system with an virt-install command line that in the past worked with fedora34 and C8 but I am getting following error:
ERROR Error validating install location: Could not find an installable distribution at URL '{trimmed path}CentOS-Stream-9-20211222.0-x86_64-boot.iso'
Some search engines found some sites that are giving examples to pass locations of kernel and initrd. Are the iso files "wrongly" created or are such parameters required now?
Host: CS8
virt-install -n c9x86-parttest -r 3072 --disk path=parttest.img,size=18,format=qcow2 -l CentOS-Stream-9-20211222.0-x86_64-boot.iso --os-variant rhel9.0 --noautoconsole -x "inst.ks=https://example/parttest.cfg"
-- Leon
On 12/29/21 07:29, Leon Fauster via CentOS wrote:
virt-install -l CentOS-Stream-9-20211222.0-x86_64-boot.iso
I don't have CS8 host handy to check... The man page for "virt-install -l" notes that this should work if virt-install is run as root. Is it run as root?
The man page also suggests that you should be able to mount the ISO to a local directory and then use that path as the argument to "-l". Have you tried that to verify that the structure of the ISO filesystem is as expected?
Am 29.12.21 um 18:35 schrieb Gordon Messmer:
On 12/29/21 07:29, Leon Fauster via CentOS wrote:
virt-install -l CentOS-Stream-9-20211222.0-x86_64-boot.iso
I don't have CS8 host handy to check... The man page for "virt-install -l" notes that this should work if virt-install is run as root. Is it run as root?
The man page also suggests that you should be able to mount the ISO to a local directory and then use that path as the argument to "-l". Have you tried that to verify that the structure of the ISO filesystem is as expected?
Current state here is right now:
-l CentOS-Stream-9-20211222.0-x86_64-dvd1.iso
works, but
-l CentOS-Stream-9-20211222.0-x86_64-boot.iso
NOT.
A quick test with
-l CentOS-Stream-9-20211222.0-x86_64-boot.iso,kernel=isolinux/vmlinuz,initrd=isolinux/initrd.img
booted but hangs forever in the middle of the anaconda process.
I assume that some metadata is missing in the boot.iso file. Like the .treeinfo file (its included in the dvd.iso file).
Example: https://mirror1.hs-esslingen.de/pub/Mirrors/centos-stream/9-stream/BaseOS/x8...
-- Leon