xorriso
 zscaler
 first_install
 hostname
added:
  qemu script
  timzone
  realname
disabled systemd-networkd-wait-online
This commit is contained in:
Zsolt Alföldi
2026-02-28 11:50:21 +01:00
parent 6bce4f9cf1
commit f35fc00243
4 changed files with 56 additions and 7 deletions

31
qemu.sh Normal file
View File

@@ -0,0 +1,31 @@
set -ex
last_autoinstaller=$(ls -t1 autoinstall-2026* | head -n1)
echo " ....... $last_autoinstaller"
sleep 1
# qemu-system-x86_64 \
# -m 2048 \
# -enable-kvm \
# -drive file=${last_autoinstaller},format=raw,if=none,id=usbdisk \
# -device usb-ehci \
# -device usb-storage,drive=usbdisk \
# -bios /usr/share/ovmf/OVMF.fd
_cdrom=""
if [[ "$1" = "cdrom" ]]; then
_cdrom="-drive file=${last_autoinstaller},format=raw,if=none,id=usbdisk
-device usb-ehci \
-device usb-storage,drive=usbdisk \
"
fi
# Create a virtual disk first
# qemu-img create -f qcow2 /tmp/test-disk.qcow2 20G
# Boot the ISO as USB with the virtual disk as install target
qemu-system-x86_64 \
-m 4096 \
-enable-kvm \
-drive file=/tmp/test-disk.qcow2,format=qcow2 $_cdrom \
-bios /usr/share/ovmf/OVMF.fd