mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:57:45 +00:00
Kernel: Fix run script to enable networking on Q35 machines
Also, we enable KVM to accelerate the execution when booting with q35_cmd or qcmd options in the run script.
This commit is contained in:
parent
2da8aba48d
commit
bd3b64efb7
1 changed files with 7 additions and 3 deletions
|
@ -84,7 +84,9 @@ elif [ "$1" = "q35_cmd" ]; then
|
|||
# ./run: qemu with SerenityOS with custom commandline
|
||||
$SERENITY_QEMU_BIN \
|
||||
$SERENITY_COMMON_QEMU_Q35_ARGS \
|
||||
-device e1000 \
|
||||
$SERENITY_KVM_ARG \
|
||||
-netdev user,id=breh,hostfwd=tcp:127.0.0.1:8888-10.0.2.15:8888,hostfwd=tcp:127.0.0.1:8823-10.0.2.15:23 \
|
||||
-device e1000,netdev=breh \
|
||||
-kernel kernel \
|
||||
-append "${SERENITY_KERNEL_CMDLINE}"
|
||||
elif [ "$1" = "qcmd" ]; then
|
||||
|
@ -98,7 +100,9 @@ elif [ "$1" = "qcmd" ]; then
|
|||
# ./run: qemu with SerenityOS with custom commandline
|
||||
$SERENITY_QEMU_BIN \
|
||||
$SERENITY_COMMON_QEMU_ARGS \
|
||||
-device e1000 \
|
||||
$SERENITY_KVM_ARG \
|
||||
-netdev user,id=breh,hostfwd=tcp:127.0.0.1:8888-10.0.2.15:8888,hostfwd=tcp:127.0.0.1:8823-10.0.2.15:23 \
|
||||
-device e1000,netdev=breh \
|
||||
-kernel kernel \
|
||||
-append "${SERENITY_KERNEL_CMDLINE}"
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue