-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstartvm.sh
executable file
·19 lines (17 loc) · 1.16 KB
/
startvm.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# qemu-system-x86_64 -display curses -kernel ./arch/x86/boot/bzImage -hda qemu-image.img -append root=/dev/sda single
# qemu-system-x86_64 -display curses -kernel ./arch/x86/boot/bzImage -drive file=qemu-image.img,format=raw,index=0,media=disk -append root=/dev/sda single
echo "Use 'shutdown -h now' for shutdown."
echo "Please place your KVM combatable, built Linux source tree in the 'linux_source_tree.ignore' directory."
echo "A raw QEMU image named 'qemu-image.img' should also be built there."
qemu-system-x86_64 \
-display curses \
-kernel ./linux_source_tree.ignore/arch/x86/boot/bzImage \
-drive file=./linux_source_tree.ignore/qemu-image.img,format=raw,index=0,media=disk \
-virtfs local,path="$PWD",mount_tag=host0,security_model=passthrough,id=host0 \
-append "root=/dev/sda loglevel=4 vga=6" \
-vga std \
--enable-kvm
echo "GLaDOS: First, however, note the incandescent particle field across the exit."
echo "GLaDOS: This Aperture Science Material Emancipation Grid will vaporize any unauthorized hardware-kiling errors that passes through it."
echo
echo "Milo, speaker for the computers: Great work for using one, your computer thanks you!"