26 lines
737 B
Bash
Executable file
26 lines
737 B
Bash
Executable file
#!/bin/bash
|
|
# Test script to boot the simple-cli image with full BIOS/GRUB visibility (headless)
|
|
|
|
echo "Testing simple-cli bootable image with full boot process..."
|
|
echo "Image: simple-cli.qcow2"
|
|
echo "Size: $(ls -lh simple-cli.qcow2 | awk '{print $5}')"
|
|
|
|
# Test boot with QEMU (full boot process - BIOS, GRUB, kernel)
|
|
echo "Testing full boot process (headless)..."
|
|
echo "You should see:"
|
|
echo "1. QEMU BIOS screen"
|
|
echo "2. GRUB boot menu (if configured)"
|
|
echo "3. Kernel loading"
|
|
echo "4. System boot"
|
|
echo ""
|
|
echo "Press Ctrl+C to stop the VM when done testing."
|
|
|
|
qemu-system-x86_64 \
|
|
-m 2G \
|
|
-smp 2 \
|
|
-drive file=simple-cli.qcow2,format=qcow2 \
|
|
-boot c \
|
|
-nographic \
|
|
-serial mon:stdio
|
|
|
|
echo "Test complete!"
|