mirror of
https://github.com/blazblue547-afk/ForgeOS-ARM64.git
synced 2026-12-02 14:44:17 -05:00
feat(qemu): add image networking
This commit is contained in:
1 parent
382db41a55
commit
7e7ca149c7
1 file changed
+4
@@ -63,6 +63,8 @@ case "$MODE" in
|
|||||||
-boot order=c \
|
-boot order=c \
|
||||||
-bios "$FIRMWARE" \
|
-bios "$FIRMWARE" \
|
||||||
-drive file="$IMAGE_PATH",format=raw,if=virtio \
|
-drive file="$IMAGE_PATH",format=raw,if=virtio \
|
||||||
|
-netdev user,id=net0 \
|
||||||
|
-device virtio-net-pci,netdev=net0 \
|
||||||
-device virtio-rng-pci
|
-device virtio-rng-pci
|
||||||
;;
|
;;
|
||||||
pflash:*)
|
pflash:*)
|
||||||
@@ -81,6 +83,8 @@ case "$MODE" in
|
|||||||
-drive if=pflash,format=raw,readonly=on,file="$CODE_FD" \
|
-drive if=pflash,format=raw,readonly=on,file="$CODE_FD" \
|
||||||
-drive if=pflash,format=raw,file="$VARS_COPY" \
|
-drive if=pflash,format=raw,file="$VARS_COPY" \
|
||||||
-drive file="$IMAGE_PATH",format=raw,if=virtio \
|
-drive file="$IMAGE_PATH",format=raw,if=virtio \
|
||||||
|
-netdev user,id=net0 \
|
||||||
|
-device virtio-net-pci,netdev=net0 \
|
||||||
-device virtio-rng-pci
|
-device virtio-rng-pci
|
||||||
rm -f "$VARS_COPY"
|
rm -f "$VARS_COPY"
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in new issue
Block a user