]> piware.de Git - bin.git/blob - cloud-rawhide
consors-report.py: Updates
[bin.git] / cloud-rawhide
1 #!/bin/sh
2 set -eu
3
4 if [ ! -e rawhide.qcow2 ]; then
5     IMG=$(curl -s -L https://download.fedoraproject.org/pub/fedora/linux/development/rawhide/Cloud/x86_64/images/ | grep -o 'Fedora-Cloud-Base-Rawhide[^"]*qcow2' | head -n1)
6     curl -L -o rawhide.qcow2 https://download.fedoraproject.org/pub/fedora/linux/development/rawhide/Cloud/x86_64/images/$IMG
7 fi
8
9 # nothing fancy, just admin:foobar and root:foobar users
10 [ -e cloud-init.iso ] || curl -L -O https://github.com/cockpit-project/bots/raw/main/machine/cloud-init.iso
11
12 qemu-system-x86_64 -cpu host -enable-kvm -nographic -m 2048 -drive file=rawhide.qcow2,if=virtio -snapshot -cdrom cloud-init.iso -net nic,model=virtio -net user,hostfwd=tcp::22001-:22