From 1b55c6e7e51b0be4c49f2563eeddbd639945c7e7 Mon Sep 17 00:00:00 2001 From: sickcodes <65906298+sickcodes@users.noreply.github.com> Date: Fri, 9 Jul 2021 01:37:30 +0000 Subject: [PATCH 1/2] Change `Penryn` to `max` As stated in QEMU 6 Can test currently with: `-e CPU=max \` ``` [user@hostname ~]$ qemu-system-x86_64 -cpu help x86 Penryn (alias configured by machine type) x86 Penryn-v1 Intel Core 2 Duo P9xxx (Penryn Class Core 2) ... x86 base base CPU model type with no features enabled x86 host KVM processor with all supported host features x86 max Enables all features supported by the accelerator in the current host ``` See https://github.com/sickcodes/Docker-OSX/issues/304 --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 53f7b59d..c885dda8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -219,7 +219,7 @@ RUN touch Launch.sh \ && tee -a Launch.sh <<< '[[ "${RAM}" = half ]] && export RAM="$(("$(head -n1 /proc/meminfo | tr -dc "[:digit:]") / 2000000"))"' \ && tee -a Launch.sh <<< 'sudo chown -R $(id -u):$(id -g) /dev/snd 2>/dev/null || true' \ && tee -a Launch.sh <<< 'exec qemu-system-x86_64 -m ${RAM:-2}000 \' \ - && tee -a Launch.sh <<< '-cpu ${CPU:-Penryn},${CPUID_FLAGS:-vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+pcid,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check,}${BOOT_ARGS} \' \ + && tee -a Launch.sh <<< '-cpu ${CPU:-max},${CPUID_FLAGS:-vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+pcid,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check,}${BOOT_ARGS} \' \ && tee -a Launch.sh <<< '-machine q35,${KVM-"accel=kvm:tcg"} \' \ && tee -a Launch.sh <<< '-smp ${CPU_STRING:-${SMP:-4},cores=${CORES:-4}} \' \ && tee -a Launch.sh <<< '-usb -device usb-kbd -device usb-tablet \' \ @@ -264,7 +264,7 @@ ENV BOOT_ARGS= ENV BOOTDISK= # edit the CPU that is being emulated -ENV CPU=Penryn +ENV CPU=max ENV CPUID_FLAGS='vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+pcid,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check,' ENV DISPLAY=:0.0 From 42c6557c5f6a5acf11c024593a110becf76be5df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Pochobradsk=C3=BD?= <85374216+davidpochobradsky@users.noreply.github.com> Date: Thu, 5 Sep 2024 20:14:32 +0200 Subject: [PATCH 2/2] Update README.md To install qemu `apt-get update` has been needed --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index d2bc22b2..d43ebf4b 100644 --- a/README.md +++ b/README.md @@ -561,6 +561,12 @@ Create your personal image using `:latest` or `big-sur`. Then, pull the image ou ## Initial setup Before you do anything else, you will need to turn on hardware virtualization in your BIOS. Precisely how will depend on your particular machine (and BIOS), but it should be straightforward. +Depending on your installation, you might need to update package manager: + +```bash +sudo apt-get update +``` + Then, you'll need QEMU and some other dependencies on your host: ```bash