ANOVAOS DOCS

Run in QEMU

Keep files between serial sessions

The default profile uses q35/TCG, OVMF and a disposable ext2 disk. To keep your files, create a new work disk and give its path on every run. Use the guest’s shutdown command to power off cleanly.

cargo xtask root-image build/disks/work.ext2
cargo xtask run --disk build/disks/work.ext2

Open the development desktop

Interactive graphics require a host display. Focus the launcher and press t for the PTY terminal. Press F5 for a new shell or F4 to close. The default desktop includes the shell. Its GCC profile requires a separate toolchain and a Linux-personality work disk.

cargo xtask desktop-image
cargo xtask run --desktop

Compile inside the graphical terminal

Run these commands in order on the host. Choose a fresh path when creating the disk. Then compile in the guest with /bin/gcc /etc/terminal-hello.c -o /persist/pty-app and run /persist/pty-app.

cargo xtask toolchain-build
cargo xtask ext4-journal-image --linux build/disks/pty-work.ext4
cargo xtask terminal-image --toolchain
cargo xtask run --desktop --toolchain --disk build/disks/pty-work.ext4

Enable USB keyboard and mouse input

Use this command to start a QEMU desktop with an xHCI keyboard and mouse. Run cargo xtask usb-image to build build/images/anova-usb-desktop.iso.

cargo xtask run --desktop --usb

Read boot logs without keyboard or mouse input

The ordinary desktop keeps its windows visible when both input devices are unavailable. Run cat /boot.log on COM1 to read the boot snapshot. On a writable virtio work disk, run mkdir /persist/logs once to retain copies starting with the next boot.

Upstream references