From f7efd1a5ae705543d7e986a1cdeaa912a0bbbf1d Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Sat, 29 Apr 2023 08:58:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DQEMU=E5=AE=89=E8=A3=85XP?= =?UTF-8?q?=E6=97=A0=E7=BD=91=E7=BB=9C=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VirtualMachine.pro.user | 2 +- qemu.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VirtualMachine.pro.user b/VirtualMachine.pro.user index 5b21731..324f593 100644 --- a/VirtualMachine.pro.user +++ b/VirtualMachine.pro.user @@ -1,6 +1,6 @@ - + EnvironmentId diff --git a/qemu.cpp b/qemu.cpp index 3fa118e..1811f8d 100644 --- a/qemu.cpp +++ b/qemu.cpp @@ -72,7 +72,7 @@ int qemu::Start(bool unShown){ if(Command().GetCommand("arch").replace("\n", "").replace(" ", "") == "x86_64"){ return system(("kvm " + commandOption + " &").toLatin1()); } - return system(("qemu-system-x86_64 " + commandOption + " &").toLatin1()); + return system(("qemu-system-x86_64 -nic model=rtl8139 " + commandOption + " &").toLatin1()); } int qemu::Stop(){ system("killall qemu-system-x86_64 -9");