mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Add NET_DEVICE and USB_HOST_PASSTHROUGH_CONTROLLER variables
macOS doesn't support USB3 in Qemu and needs a different network interface device from Linux and Windows.
This commit is contained in:
parent
89e61c4e9e
commit
2609189dbb
1 changed files with 5 additions and 0 deletions
5
quickemu
5
quickemu
|
@ -146,8 +146,10 @@ function vm_boot() {
|
|||
local GL="on"
|
||||
local GUEST_TWEAKS=""
|
||||
local HOST_CPU=""
|
||||
local NET_DEVICE="virtio-net"
|
||||
local OSK=""
|
||||
local QEMU_VER=""
|
||||
local USB_HOST_PASSTHROUGH_CONTROLLER="qemu-xhci"
|
||||
local VIDEO=""
|
||||
QEMU_VER=$(${QEMU} -version | head -n1 | cut -d' ' -f4 | cut -d'(' -f1)
|
||||
echo "Starting ${VM}"
|
||||
|
@ -201,6 +203,8 @@ function vm_boot() {
|
|||
OSK=$(echo "bheuneqjbexolgurfrjbeqfthneqrqcyrnfrqbagfgrny(p)NccyrPbzchgreVap" | rot13)
|
||||
GUEST_TWEAKS="-device isa-applesmc,osk=${OSK}"
|
||||
disk="64G"
|
||||
NET_DEVICE="vmxnet3"
|
||||
USB_HOST_PASSTHROUGH_CONTROLLER="usb-ehci"
|
||||
;;
|
||||
windows)
|
||||
CPU="-cpu host,kvm=on,hv_time"
|
||||
|
@ -209,6 +213,7 @@ function vm_boot() {
|
|||
;;
|
||||
*)
|
||||
CPU="-cpu host,kvm=on"
|
||||
NET_DEVICE="rtl8139"
|
||||
echo "WARNING! Unrecognised guest OS: ${guest_os}"
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Reference in a new issue