修复QEMU安装XP无网络的问题

This commit is contained in:
2023-04-29 08:58:31 +08:00
parent 9b7000c66c
commit f7efd1a5ae
2 changed files with 2 additions and 2 deletions

View File

@@ -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");