Search the Community: Showing results for tags 'qemu'.
Found 4 results
Entropi posted a topic in Multi-booting and VirtualisationPREFACE I’ve used a 2015 15” MBP as my main system since it was released. I do photo and video editing in the Adobe suite regularly and have been eyeballing the performance of the latest MBP models. I’m on the road all the time, so a laptop is basically my only option. After the whole mess with the CPU VRM hardware flaws being made apparent by the poor power management profile shipped at release with the 2018 i9 MBP I’ve been more weary of the hardware design of MacBooks. That’s before I account for losing all USB-A ports, losing the SD card slot (‽), losing reliability and tactility of the keyboard, and losing the ESC key to the touchbar; if I compare the 2018 MBP to my current 2015. Given these flaws, I have been researching the performance situation comparing the 2018 MBP to the X1 Extreme, XPS 15 9570, and the Razer Blade 15 2018. These are essentially the only options for a road warrior that needs a high quality panel and the best CPU and GPU that can be crammed into around 4lbs (1.8kg). I used to use a ThinkPad T42p and loved it when it was new. So fast forward to now and the release of the ThinkPad X1 Extreme. It’s a truly tempting machine for an artist, given that the 4K UHD version offers just about the best color gamut available on any laptop panel. I get back the USB-A ports, get one of the fastest SD slots on any laptop, and get one of the best laptop keyboards on the market. That’s before even considering power management and modularity. I’ve been dabbling in learning Machine Learning, so a system with an nVidia GPU (CUDA) is a bonus on that front as well. For me the best color reproduction on a high resolution display panel was most important. The X1 Extreme has that, so I’ve ordered one. I got it with the fastest i7, base SSD and memory, and have separately purchased two 1TB Samsung 970 Pro M.2 SSDs and 2x16GB DDR4-3200MHz memory (just in case it’s possible to overclock the memory on the X1 Extreme). I got the system for $2,100 from Lenovo USA, and the SSDs ($390 x 2) and memory ($330) from Amazon US for a total of ~$3200. These are easy to install on the X1 Extreme as the bottom cover is easily removed to reveal the M.2 and SODIMM slots. To compare, the 2018 MBP with the fastest i7, 32GB memory, and 2TB SSD is $4400. So I can save $1200 and get a faster system (on all counts) with a better panel and better connectivity by going with the X1 Extreme. The only thing I’m compromising is losing the big beautiful haptic touchpad and a bit more refined hardware aesthetic. Though, to be honest, I’ve kept a big thick dual-layer Tech21 case on my 2015 MBP. So I’ll actually be going down in volume and weight by moving to the more rugged ThinkPad. I think I can live without the touchpad. Oh, by the way, the 4K UHD panel of the X1 Extreme has touch and decent pen support! Another bonus vs. the MacBook. Though I keep a 12.9” iPad Pro around for my pen work and can’t imagine using a laptop similarly. It’s still nice to have a laptop screen actually respond when I go poke at it accidentally after switching back and forth between laptop and iPad. TOPIC So I want macOS with proper discrete GPU support on a 2018 MacBook class laptop. That’s not possible on a pure Hackintosh as things stand, but via a macOS virtual machine it looks like it could work with what looks like some relatively bleeding edge support of PCIe UEFI passthrough. People have been doing this on Linux hosts to Windows VMs with some great success recently: https://gist.github.com/Misairu-G/616f7b2756c488148b7309addc940b28 And it looks like that’s coming for macOS VMs as well: https://github.com/kholia/OSX-KVM/blob/a4fb2fd5aae871bdbc371b0cd31d4d8129d0f9ac/UEFI/README.md The X1 Extreme, XPS 15 9570, and Razer Blade 15 (2018) are essentially direct competition to the 2018 15” MBP. I would really like to see these three systems get some nicely fleshed out guides for getting maxed out compatibility and performance in macOS running in a VM for these systems. When I get my X1 Extreme I’ll start working on it for that one. I will post updates here. I hope to inspire others with the other two systems (or looking to get them) to do similarly. 15” MACBOOK CLASS LAPTOP COMPARISON I chose the X1 Extreme largely because of the excellent 4K UHD HDR panel (100% of 2D AdobeRGB and 85.5% of 3D AdobeRGB, basically unparalleled), good mix of thermal performance and noise management, and overall ruggedness and connectivity. If I were a gamer I would go with the Razer 15, but the fast low-gamut 1080p panel just doesn’t work for my purposes. If I were most concerned with aesthetics or battery life (97Wh battery for it vs 80Wh for X1E) I would go with the XPS 15. I am aware that the second 2018 refresh of the MBP is coming ~Nov 14, with the new AMD Radeon Pro Vega 16 and Vega 20 GPUs, and it looks like the latter might offer up to a 60% performance boost over the Radeon 560X. Maybe it has even given Apple enough time to update the CPU VRM along the way. This could make the performance picture more comparable for the 1050 Ti based X1E and XPS 15. I believe the 1070 Ti based Razer 15 will still win out though. Still, if you compare the fan and heat pipe solution put into the X1E vs the MBP the MBP just looks wimpy in comparison. MBP has smaller fans, less venting, and only one (smaller, thinner) heatpipe. It’s also more difficult to access if you want to put a better thermal paste or liquid metal on it. Put simply, the thermal hardware on the MBP is basically the same design for the last 3 years and it can’t keep up with the hex-core processors. So even with the Volta 20 GPU making the MBP competitive again on the graphics end, the MBP will still be falling short on the CPU performance plane. This is before we even look at tuning options. Getting into tuning, it’s possible to improve thermal performance of all the laptops in this class by around 15-20% by using either a best in class thermal paste like Thermal Grizzly Kryonaut or (if you’re willing to deal with all the caveats that come with using a conductive fluid that permeates other metals) a liquid metal interface like Thermal Grizzly Conductonaut. The liquid metal gives you the best possible conducting interface, and the paste is more forgiving and easier to apply. Further, it is often possible to stably undervolt the Coffee Lake i7/i9 available in this class of systems to further improve performance, thermals, and power consumption (generally another 10+%). Apple has deliberately made it impossible to undervolt the CPU on the MBP! This has been true since the first Skylake CPUs a few years ago. You used to be able to use a program called Volta to undervolt your CPU on macOS. This is a huge peeve for me and, combined with the general power and thermal underdevelopment, is one of the main reasons I want to get a competitor’s hardware. As a primer, the default voltage of modern CPUs is typically set conservatively high for the sake of production efficiency. With the current generation Coffee Lake CPUs it is commonly possible to set the CPU voltage about 100 to 150mv lower safely. This allows the CPU to run cooler and consume less power. For laptops which are thermally limited (basically everything in this new 6-core 14nm era), this also translates into better performance. It’s a tweak that actually improves reliability of your CPU. So it’s just stupid that Apple has deliberately made this impossible. Shame on them, someone else take my money. Wrapping up, my biggest quibbles with the X1E (before actually getting it) are that the 4K panel’s responsiveness is about the slowest I’ve seen on a modern panel, and it’s just really not suitable for gaming. There’s also what I consider an annoyingly high level of backlight corner bleed that I’m sure will be distracting during blackboxed video viewing. Hopefully these two issues will be fixed in next year’s iteration. FOOTNOTES MacBook i9 Thermal / VRM (below-baseline throttling/thrashing) Issue: https://www.macrumors.com/2018/07/24/throttling-i9-macbook-pro-power-delivery-chip/ https://www.kitguru.net/lifestyle/mobile/apple/matthew-wilson/macbook-pro-2018-throttling-fix/ This was mitigated with software that works around the poor hardware design, but the system would still ultimately perform better if the CPU VRM were redesigned. Non Mac systems with the similar CPUs don’t have this issue and get better sustained performance. MacBook Nov 2018 Refresh with Radeon Vega 16 and Vega 20: https://www.fool.com/investing/2018/11/05/apples-macbook-pro-gets-the-amd-vega-treatment.aspx MacBook Class Laptop Reviews: Lenovo ThinkPad X1 Extreme, 4K: https://www.notebookcheck.net/Lenovo-ThinkPad-X1-Extreme-i7-4K-HDR-GTX-1050-Ti-Max-Q-Laptop-Review.335608.0.html https://www.ultrabookreview.com/23223-lenovo-x1-extreme-review/ https://youtu.be/vOPeXe1ZE74 https://youtu.be/JgWyGKf_WlM Dell XPS 15 9570, 4K: https://www.notebookcheck.net/Dell-XPS-15-9570-i7-UHD-GTX-1050-Ti-Max-Q-Laptop-Review.332758.0.html Razer Blade 15 2018, 1070 Ti FHD 144Hz: https://www.notebookcheck.net/Razer-Blade-15-i7-8750H-GTX-1070-Max-Q-FHD-Laptop-Review.305426.0.html Best Undervolting Guide (keywords: ThrottleStop, Intel XTU): https://www.ultrabookreview.com/10167-laptop-undervolting-overcloking/ Undervolting Coffee Lake i7/i9 (2018 MacBook class CPU): https://youtu.be/nobnPDtMs-E https://linustechtips.com/main/topic/923876-any-information-about-how-coffee-lake-h-series-undervolts/ Replacing Thermal Paste with Liquid Metal on 2018 MBP: https://youtu.be/iw4gqfrBN4c ... and follow up: https://youtu.be/JNoZNzOQpVw Replacing Thermal Paste with Kryonaut on X1E: https://www.reddit.com/r/thinkpad/comments/9fyww7/x1_extreme_repaste_undervolt_tdp_limiter_removed/ Replacing Thermal Paste and Undervolting X1 Carbon: https://youtu.be/FXR5-HwIre8 Replacing Thermal Paste and Undervolting XPS 15 9570: https://youtu.be/ZnFdNGUETSI Possibly over-conservative BIOS update for thermal throttling on X1E: https://www.reddit.com/r/thinkpad/comments/9oqax2/xtu_results_with_x1_extreme_with_liquid_metal/ High Sierra (10.13) drivers only for now: https://www.insanelymac.com/forum/topic/324195-nvidia-web-driver-updates-for-macos-high-sierra-update-11032018/ nVidia “waiting for Apple’s approval” for Mojave (10.14) macOS driver web release: https://www.macrumors.com/2018/11/01/nvidia-comment-on-macos-mojave-drivers/ Breadcrumb Links (other things I found researching this): https://forums.servethehome.com/index.php?threads/esxi-6-5-osx-with-gpu-passthrough.12680/ https://arstechnica.com/civis/viewtopic.php?f=19&t=1432071 https://www.notebookcheck.net/The-Best-Notebook-Displays-As-Reviewed-By-Notebookcheck.120541.0.html
zebity posted a topic in Multi-booting and VirtualisationHi Hypervisors, EDITED - 9 JUNE 2018 - as all other issues resolved but am now stuck with QEMU Error: "PFLASH: Possible BUG - Write Block Confirm" details on testing lower in thread (to follow). I have been working to move my Late 2009 Xserve MacOS Server onto Ubuntu 18.04 LTS QEMU/KVM based virtual machine using OVMF and Clover. After much effort and testing based on the following information from: Kraxel's, Kholia, Gordon Turner and Clover site: https://www.kraxel.org/blog/2017/09/running-macos-as-guest-in-kvm/ https://github.com/kholia/OSX-KVM https://gist.github.com/gordonturner/2a2e5ecde5e7860b52e2 https://clover-wiki.zetam.org/Home I have now managed to get OVMF/Clover boot and install of MacOS Sierra. I started with Ubuntu 16.04 initially but this required download and compile of QEMU to get update of machines to: pc-q35-2.9 or better, so I moved to Ubuntu 18.04, which has pc-q35.2.11 available as standard. So I am now working with standard Ubuntu 18.04 LTS based systems with following packages: kvm/qemu/libvirt/bridge-utils/ovmf/virt-manager As I want to use PCIe Passthrough for a number of PCIe card currently installed in the server (SmallTree 10GbE & Areca ARC-1883 SAS RAID) I set up my machine with linux kernel boot configuration (/etc/default/grub) of: GRUB_CMDLINE_LINUX_DEFAULT="iommu=1 intel_iommu=on" (as my machine is intel VT-d based HW virtualisation) This resulted in creation of a number of iommu groups (see /sys/kernel/iommu_group directory for this and this posting for information: https://forum.level1techs.com/t/ubuntu-17-04-vfio-pcie-passthrough-kernel-update-4-14-rc1/119639 , noting that Ubuntu 18.04 LTS has kernel version: 4.15.0-22-generic so there is no need to do kernel update for iommu to work). Using bare minimal Clover config.plist: And following Clover UEFI drivers: I can boot MacOS, but it is very very slow... it sits on the apple boot logo for over a minutes before finally moving onto the progress bar. The other problem I have is that no PCI or Network devices appear in the "About This Mac" System Information Report and I cannot get any network connectivity from bridged E1000 network device. Here is my virtlib.xml dump for the virtual machine: Can any one advise of whether I need to update the CLOVER config.plist to add extra items in to allow network and PCI Passthrough to work. Thank you. Regards, Zebity
Kourindou Hime posted a topic in Multi-booting and VirtualisationPart 1. Motivation. (skip to part 2 if you're already motivated enough) The idea of this build is to run OS with discrete GPU for gaming (or other GPU intense stuff) and have OS X with integrated intel GPU (IGD) running at the same time. Part 2. The real thing. Hello, I had fun time putting technologies into magical cauldron and managed to passthrough Intel Skylake HD 530 graphics to Sierra in QEMU. And it works ?! But I hate a few things about it... memory management part for example. Let's get right to the business, here's a 1 minute video of booting Sierra with qemu.git, seabios.git, pc-i440fx, ubuntu 17.10, 4.13.0-19-generic, x-igd-opregion=on: https://www.youtube.com/watch?v=9oRAd9otUFg Good news! Video was filmed with only 8GB RAM assigned to VM. Increasing RAM gave more usable VRAM, now there can be few apps and Flurry screensaver running, until I switch menus 10 times or so (then it vomits again). Unfortunately I can test only with 15GB, the rest 1GB is left for ubuntu hypervisor). So what should I do? I guess there are two choices: 1. Get a 2nd module of DDR4 of any size, sacrifice it to linux hypervisor, and try to assign full 16GB to VM (at least there are no issues while running bare metal with that amount). 2. Patching AppleIntelSKLGraphics. GPU works flawless with linux guest (drm says it gives 4gb to gpu, I've tried running sketches from shadertoy, it didn't die), so I believe it's some memory management issue in AppleIntelSKLGraphics kexts. Part 3. Environment. Ubuntu 17.10, kernel 4.13.0-19-generic (was installed with ubuntu, didn't compile), https://github.com/kholia/qemu.git, https://github.com/coreboot/seabios.git. Boot GPU is IGD, BIOS DVMT 1024MB, grub kernel boot args "vfio_iommu_type1.allow_unsafe_interrupts=1 intel_iommu=on video=vesafb:off,efifb:off modprobe.blacklist=i915,snd_hda_intel" Qemu command line: qemu-system-x86_64 -enable-kvm -m 14000 -cpu Penryn,kvm=on,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on \ -bios /root/seabios/out/bios.bin \ -machine pc \ -smp 4,cores=2 \ -device isa-applesmc,osk="ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc" \ -smbios type=2 \ -device vfio-pci,host=00:02.0,bus=pci.0,addr=0x2,x-igd-opregion=on \ -drive id=disk0,file=/dev/disk/by-id/ata-PLEXTOR_PX-128,if=none \ -drive id=disk1,file=/dev/disk/by-id/ata-Hitachi_HDT,if=none \ -drive id=disk2,file=/dev/disk/by-id/ata-ST31000333AS,if=none \ -device ahci,id=ahci \ -device ide-drive,drive=disk0,bus=ahci.0 \ -device ide-drive,drive=disk1,bus=ahci.1 \ -device ide-drive,drive=disk2,bus=ahci.2 \ -drive format=raw,file=/dev/disk/by-id/usb-JetFlash_Transcend_8GB \ -netdev tap,id=net0,ifname=tap0,script=no,downscript=no -device e1000-82545em,netdev=net0,id=net0,mac=52:54:00:c9:18:27 \ -nographic \ -usb -usbdevice host:2a7a:0c18 \ -usb -usbdevice host:0a12:0001 \ -vnc 0.0.0.0:1,password=off \ -vga none \ -chardev file,id=seabios,path=/tmp/bios.log \ -device isa-debugcon,iobase=0x402,chardev=seabios \ Part 4. Notes. Clover should be installed to MBR, so Seabios can boot from it. "+invtsc,vmware-cpuid-freq=on" fixes CPU speed "-device ahci,id=ahci" is a must, I couldn't boot with default IDE controller from pc-i440fx IGD passthrough worked for me only with pc-i440fx + seabios from git. Didn't work with q35 + ovmf. "x-igd-opregion=on" is required for IRL display output. Please help! ?
PowerPC version of Mac OS X 10.1 released in 2001, running on a Hackintosh, which in fact is an ASUS X550L, this can be accomplished in any machine, but I use OS X 10.9 as my main system, and I am emulating every single version of OS X that I feel like hihihi All is done using QEMU, which when compiled from source can successfully emulate any Mac OS version that you want, any Linux, any Windows, any ARM OS heheh goood software. https://www.youtube.com/watch?v=a2hqbYFSvKI You can also Download the Qemu 2.7-rc0 package for OSX from: http://www.open.ou.nl/hsp/downloads3/Qemu_2.7-rc0-OSX.zip More info and detailed instructions at: http://thegroovykosak.blogspot.pt/