24 lines
764 B
Bash
Executable file
24 lines
764 B
Bash
Executable file
#!/bin/bash
|
|
# Test script to boot the simple-cli image (headless)
|
|
|
|
echo "Testing simple-cli bootable image..."
|
|
echo "Image: simple-cli.qcow2"
|
|
echo "Size: $(ls -lh simple-cli.qcow2 | awk '{print $5}')"
|
|
|
|
# Test boot with QEMU (headless with kernel/initrd)
|
|
echo "Testing boot process (headless with direct kernel boot)..."
|
|
echo "You should see the kernel boot process directly!"
|
|
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 \
|
|
-append "console=ttyS0 root=/dev/sda1 rw" \
|
|
-kernel image-fs/boot/vmlinuz-6.12.38+deb13-amd64 \
|
|
-initrd image-fs/boot/initrd.img-6.12.38+deb13-amd64
|
|
|
|
echo "Test complete!"
|