refactor: restructure the user space stuff.
[lunaix-os.git] / lunaix-os / makeinc / qemu.mkinc
diff --git a/lunaix-os/makeinc/qemu.mkinc b/lunaix-os/makeinc/qemu.mkinc
new file mode 100644 (file)
index 0000000..25c99c0
--- /dev/null
@@ -0,0 +1,17 @@
+QEMU_MON_TERM := gnome-terminal
+QEMU_MON_PORT := 45454
+
+QEMU_OPTIONS := -s -S -m 1G \
+                               -rtc base=utc \
+                               -no-reboot \
+                               -machine q35 \
+                               -no-shutdown \
+                               -d cpu_reset \
+                               -d trace:ide_dma_cb \
+                               -serial tcp::12345,server,nowait\
+                               -drive id=disk,file="machine/disk0.vdi",if=none \
+                               -drive id=cdrom,file="$(BUILD_DIR)/$(OS_ISO)",readonly=on,if=none,format=raw \
+                               -device ahci,id=ahci \
+                               -device ide-hd,drive=disk,bus=ahci.0 \
+                               -device ide-cd,drive=cdrom,bus=ahci.1 \
+                               -monitor telnet::$(QEMU_MON_PORT),server,nowait &
\ No newline at end of file