Redo backend installer logic to support BIOS/MBR boot on older devices and switch to GRUB2
This commit is contained in:
25
run_vm_bios.sh
Executable file
25
run_vm_bios.sh
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Configuration
|
||||
ISO_PATH="${1:-/home/n0va/.local/share/iridium-installer-vm/Fedora.iso}"
|
||||
DISK_PATH="${2:-/home/n0va/.local/share/iridium-installer-vm/test-disk.qcow2}"
|
||||
|
||||
echo "Starting Iridium VM with BIOS (Legacy) support..."
|
||||
echo "ISO: $ISO_PATH"
|
||||
echo "Disk: $DISK_PATH"
|
||||
|
||||
# QEMU Command with BIOS (Standard QEMU behavior)
|
||||
qemu-system-x86_64
|
||||
-enable-kvm
|
||||
-m 8G
|
||||
-smp 2
|
||||
-cpu host
|
||||
-drive file="$DISK_PATH",format=qcow2,if=virtio
|
||||
-cdrom "$ISO_PATH"
|
||||
-boot once=d
|
||||
-netdev user,id=net0
|
||||
-device virtio-net-pci,netdev=net0
|
||||
-vga virtio
|
||||
-display gtk,gl=on
|
||||
-monitor unix:$HOME/.local/share/iridium-installer-vm/monitor.sock,server,nowait
|
||||
-name "Iridium Installer Test VM (BIOS)"
|
||||
Reference in New Issue
Block a user