diff options
author | Andrew Cady <d@jerkface.net> | 2019-10-04 12:14:42 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2019-10-04 12:14:42 -0400 |
commit | debc94d3fe3c75d995854073ecbb5ba7c4a542e8 (patch) | |
tree | 333e5cdde9083bc36bb2add7ed53a52538706fda /src | |
parent | 631ad6b3a83ff8caa10b8b04401f37017e2c0024 (diff) |
qemu.sh: support 32bit
Diffstat (limited to 'src')
-rwxr-xr-x | src/qemu.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/qemu.sh b/src/qemu.sh index 36c0bdf..2033f0e 100755 --- a/src/qemu.sh +++ b/src/qemu.sh | |||
@@ -55,8 +55,13 @@ else | |||
55 | fi | 55 | fi |
56 | fi | 56 | fi |
57 | 57 | ||
58 | case $(arch) in | ||
59 | x86_64) qemu=qemu-system-x86_64 ;; | ||
60 | *) qemu=qemu-system-i386 ;; | ||
61 | esac | ||
62 | |||
58 | set -x | 63 | set -x |
59 | sudo qemu-system-x86_64 -enable-kvm -smp 2 -m 640 -k en-us \ | 64 | sudo ${qemu} -enable-kvm -smp 2 -m 640 -k en-us \ |
60 | -vga qxl \ | 65 | -vga qxl \ |
61 | -net nic,vlan=0,model=virtio,macaddr=$MAC \ | 66 | -net nic,vlan=0,model=virtio,macaddr=$MAC \ |
62 | ${USE_NET:+ -net "$NET"} \ | 67 | ${USE_NET:+ -net "$NET"} \ |