mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-01-13 01:58:27 +08:00
修复虚拟机工具在系统版本选择第 5 项及以后出现不会挂载 ISO 的问题(使用 Qemu 的情况下)
This commit is contained in:
parent
e7cbbc62b9
commit
8b0d0f1018
@ -160,7 +160,8 @@ buildvbox::buildvbox(QString isoPath, int id, int vm){
|
||||
}
|
||||
}
|
||||
else{
|
||||
vm.AutoInstall(isoPath);
|
||||
//vm.AutoInstall(isoPath);
|
||||
vm.MountMainISO(isoPath);
|
||||
}
|
||||
|
||||
vm.SetCPU(get_nprocs(), GetCPUSocket(), GetCPUCore());
|
||||
|
@ -105,6 +105,8 @@ int qemu::Start(bool unShown){
|
||||
}
|
||||
int qemu::Stop(){
|
||||
system("killall qemu-system-x86_64 -9");
|
||||
system("killall qemu-system-aarch64 -9");
|
||||
system("killall qemu-system-arm -9");
|
||||
system("killall kvm -9");
|
||||
return 0;
|
||||
}
|
||||
@ -184,6 +186,9 @@ int qemu::EnabledUEFI(bool status){
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
int qemu::MountMainISO(QString isoPath){
|
||||
commandOption += "--cdrom '" + isoPath + "' ";
|
||||
}
|
||||
int qemu::AutoInstall(QString iso){
|
||||
return 0;
|
||||
}
|
||||
|
@ -44,6 +44,7 @@ public:
|
||||
int OpenUSB();
|
||||
int EnabledUEFI(bool status);
|
||||
int AutoInstall(QString iso);
|
||||
int MountMainISO(QString isoPath);
|
||||
int UseAarch64EFI();
|
||||
int UseArmhfEFI();
|
||||
int UseLoongarch64EFI();
|
||||
|
Loading…
Reference in New Issue
Block a user