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

This commit is contained in:
2023-04-29 08:57:35 +08:00
parent 0d3e798644
commit 5443654791
4 changed files with 7 additions and 7 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");