@@ -107,3 +107,28 @@ instead of the traditional approach with [`coursier/setup-action`](https://githu
107
107
1 . https://github.com/DeterminateSystems/flake-checker-action
108
108
1 . https://github.com/DeterminateSystems/magic-nix-cache-action
109
109
110
+
111
+ ## Debugging
112
+ Add ` --verbose ` and ` --show-debug ` flags to the ` ops run ./target/scala-3.6.3/unikernel-scala-out ` to see the ` qemu ` command:
113
+ ```
114
+ qemu-system-x86_64 \
115
+ -machine q35 \
116
+ -device pcie-root-port,port=0x10,chassis=1,id=pci.1,bus=pcie.0,multifunction=on,addr=0x3 \
117
+ -device pcie-root-port,port=0x11,chassis=2,id=pci.2,bus=pcie.0,addr=0x3.0x1 \
118
+ -device pcie-root-port,port=0x12,chassis=3,id=pci.3,bus=pcie.0,addr=0x3.0x2 \
119
+ -device virtio-scsi-pci,bus=pci.2,addr=0x0,id=scsi0 \
120
+ -device scsi-hd,bus=scsi0.0,drive=hd0 \
121
+ -vga none \
122
+ -smp 1 \
123
+ -device isa-debug-exit -m 2G \
124
+ -device virtio-rng-pci \
125
+ -machine accel=kvm:tcg \
126
+ -cpu host \
127
+ -no-reboot \
128
+ -cpu max \
129
+ -drive file=/root/.ops/images/unikernel-scala-out.img,format=raw,if=none,id=hd0 \
130
+ -device virtio-net,bus=pci.3,addr=0x0,netdev=n0,mac=3e:bd:d3:d8:e0:3f \
131
+ -netdev user,id=n0,hostfwd=tcp::8080-:80 \
132
+ -display none \
133
+ -serial stdio
134
+ ```
0 commit comments