10 ms·
QEMU 6.0
- simojk 6y agoDoes QEMU support TSO when used with Apple Silicon?
- Liquid_Fire 6y agoDoesn't that require installing custom kernel extensions to enable, as there is no API to enable it?
- my123 6y agoSetting ACTLR_EL1 in a virtual machine (through Hypervisor.framework) is an option.
- djs55 6y agoDo you mean TSG? From https://wiki.qemu.org/ChangeLog/6.0#TCG https://wiki.qemu.org/ChangeLog/6.0#TCG > TCG > Added support for Apple Silicon hosts (macOS)
- raimue 6y agoTSO is Total Store Ordering, which refers to the memory model of x86_64. For Rosetta 2, Apple will switch the M1 processor's memory model when emulating x86_64.
- eatbitseveryday 6y agoAny documentation for this?
- cjdell 6y agoDoes this mean you can run an x86 VM faster than a snails pace? I tried an WinXP VM on my M1 Air just for fun but got the performance of an early Pentium. I know emulation is slow but was hoping for a little more.
- deleted 6y ago[deleted]
- hulitu 6y agoAre there any option for emulation of 68k machines ?
- rnd0 6y agohttps://wiki.qemu.org/ChangeLog/6.0#68k https://wiki.qemu.org/ChangeLog/6.0#68k
- foft 6y agoThis is a video of the maintainer talking about the new virtual 68k 'machine'. https://www.youtube.com/watch?v=s_ve0bCC9q4 https://www.youtube.com/watch?v=s_ve0bCC9q4 I'm also experimenting with hybrid emulation on the mister minimig - i.e. using qemu as the CPU and the FPGA for the Amiga hardware. https://misterfpga.org/viewtopic.php?f=4&t=2397 https://misterfpga.org/viewtopic.php?f=4&t=2397
- MegaDeKay 6y agoI wish you luck! I've been reading a lot about the MiSTer project lately and it is getting harder and harder to resist taking the plunge. There is some amazing work going on there lately. For those that missed it, here is a recent article on the project... https://www.pressreader.com/australia/edge/20210422/284249533161844 https://www.pressreader.com/australia/edge/20210422/28424953...
- williesleg 6y agoClick on the link einstein.
- rijoja 6y agoyeah I was able to run Debian's m68k version in QEMU quite successfully with almost no hassle.
- cmrdporcupine 6y agoLast I played with the coldfire and 68k emulations in qemu to try to get it to boot EmuTOS (an Atari ST operating system) I found a lot of the I/O devices lacking, even just to run headless. It was sufficient to boot Linux in some configurations but not complete enough of an emulation to run other things. This is in general the story with many things in QEMU. I didn't keep notes, I suppose I should have. I might revisit this again someday.
- mobilemidget 6y agoLooking forward to testing, VNC: virtio-vga support for scaling resolution based on client window size
- op00to 6y agoStatic client window size is SO annoying! This is great news.
- tofflos 6y agoSemi-related question... I recently spent an evening trying to familiarize myself with virtualization tooling and my initial impression was that the CLI experience for kvm and hyper-v was rather clunky compared to let's say docker, gcloud, ignite and kubectl. Also a lot of the learning material seems to be oriented towards GUI. It could be that I just haven't spent enough time with kvm and hyper-v. I've spent a LOT of time on those other tools so maybe I'm just more used to them. Is there good CLI tooling available for virtualization? I would say that I'm looking for the "on-prem" experience where I start by configuring a virtual network, download some unmodified ISOs directly from the operating system vendor, provision my headless virtual machines with a combination of Powershell, Answer files, Bash and Kickstart. I then provide services like DHCP and DNS using my virtual machines rather than the built-in mechanism provided by the virtualization tooling.
- arsome 6y agoYou're comparing VM tooling with container tooling, there's going to be substantial differences in level of abstraction. I might suggest you look at the libvirt platform, it's a wrapper around KVM essentially, but there's virsh which I've found reasonably straight forward to work with.
- ktpsns 6y agoYes, virsh is really a nice tool to work with. It has multiple times saved my ass when the graphical virt-manager refused to work (for whatever X11-reason).
- swiley 6y agoJust run qemu-system-blah. I thought the CLI for that was pretty intuitive.
- kevindurb 6y agoYou should try out vagrant, let’s you have a config file for your vm and you can choose different providers like libvirt, virtualbox, etc
- viraptor 6y ago
- john_alan 6y agoDoes this support Apple Silicon yet without patches? Can’t seem to see definite info.
- spurgu 6y agoNot sure why you're downvoted. QEMU is not on https://isapplesiliconready.com/ https://isapplesiliconready.com/ either so I'd think it's a valid question?
- gre 6y agoThere's an app that wraps QEMU called UTM. It's open source but also you can pay $10 and get it on the app store. I have had a lot of trouble with machines getting corrupted, not working at all, locking up, but I did get a Debian machine working that runs ARM Linux on my Macbook Air M1. https://getutm.app/ https://getutm.app/
- cprecioso 6y ago+1 for UTM - The website for mac (https://mac.getutm.app/ https://mac.getutm.app/) has some recipes and pre-built image for Windows and the main Linux distros. I had okay results with emulating Windows -- nothing usable in my day to day, though.
- pm215 6y agoShould work for TCG (emulation); not yet for HVF (virtualization).
- remexre 6y agoHVF does build with Nix (with an overlay), so the build experience doesn't suck. [1] for the base, then apply [2] to SLIRP if you don't want to use HVF's network adapter (which needs root). I'm happily running FreeBSD and Linux VMs on my Mac Mini with this [1]: https://github.com/benpye/nix-config/tree/main/overlays/qemu https://github.com/benpye/nix-config/tree/main/overlays/qemu [2]: https://gitlab.freedesktop.org/slirp/libslirp/-/commit/7271345efe182199acaeae602cb78a94a7c6dc9d https://gitlab.freedesktop.org/slirp/libslirp/-/commit/72713...
- zerovar 6y agoCan something like this be used to, say, build emulators for different game consoles? And do the popular emulators use this as a building block? Asking this as someone whose only experience with emulation and virtualization is running games on VisualBoyAdvance and running Ubuntu on VirtualBox
- metalliqaz 6y agoits not really meant for that, but there wouldn't be anything to stop someone from creating the hardware emulation, as far as I know. Still, purpose-built console emulator software is sure to be far better for the task.
- HideousKojima 6y agoYes: https://xemu.app/ https://xemu.app/ https://xqemu.com/ https://xqemu.com/ Are both original Xbox emulators built off of QEMU (Xemu is a fork of XQEMU). I've only used Xemu, but performance was pretty good for the games I tried on it (it doesn't have a way to upscale rendering yet though).
- MegaDeKay 6y agoGood news! Upscaling is in work but buggy right now. https://github.com/mborgerson/xemu/tree/feat/surf-scale https://github.com/mborgerson/xemu/tree/feat/surf-scale
- davemp 6y agoYou could build emulators for consoles, but QEMU is not cycle accurate. Meaning some operations may finish faster or slower than they would on the original console. Some games may rely on that timing for things like physics engines and break in weird ways.
- rijoja 6y agoIs that also true for Xbox games?
- scruffyherder 6y agoRip IDE. Also readconfig/writeconfig It sucks that Qemu has drifted so far from normal users
- chadcatlett 6y agoIDE support is still there, https://qemu-project.gitlab.io/qemu/system/removed-features.html#ide-drive-removed-in-6-0 https://qemu-project.gitlab.io/qemu/system/removed-features....
- bobberkarl 6y agoAlright HN, I need your help. Sorry for the approximative English, I'm losing my vocabulary with WFH and I'm pretty sleep-deprived. I've been building a game streaming platform for influencers for the past months. We scaled to 9k users in a month. We have android x86 running on QEMU-KVM and there are a bunch of issues I need to address. - virsh (and virt-manager) always add a PS2 mouse to the guest. The issue is PS2 mouses have a relative movement and not an absolute one -> When you use a mouse or the touch screen through VNC you have to move the pointer to a position instead of directly clicking/capturing the mouse - My VM resolutions are 720x1080 but VNC always launches in 1920x1080. I have black rectangles on both sides of the Screen. - Streaming the app viewport with VNC has some (small) latency, any way to fix it? - Can we host an arm android emulator on QEMU? (armeabi-v7 or v8) - We had a sales presentation from Canonical for their anbox cloud solution, but they never returned to us with a proposal. Is there any other way for us to have the Android VMs in K8S? Or even Lxc if possible, we are flexible. Also, the juju charms for anbox is nowhere to be found If you want to get in contact, my email is jadiaheno[at]ludexgames.com I can even show you a demo, we have influencers increasing their revenue with our Beat the boss campaign. We're not VC backed.
- CameronNemo 6y agoHey I don't know how much help this is, but anbox is a very rough solution. The bootup time for the android container is on the order of minutes, and lits does not work. You can try to get support in #anbox on freenode, though. There are postmarketOS people that know how to get the system working. I've never seen someone use anbox with qemu, though. It has always been same arch.
- bobberkarl 6y agoHey Thanks for the reply. I will try to use postmarketOS on qemu. I'm wondering if there is any ec2 machine than can support (qemu-)aarch64, and also if AAA games can run on postmarketOS. Trying it and i'll let you know.
- CameronNemo 6y ago
- cyberlab 6y agoIs there any screenshots of the QEMU GUI running? I'm thinking of using it, but I am aghast that there's no screenshots page on the website. Also: how do you pass files into QEMU? Does it have software similar to Virtualbox's 'guest additions' software?
- yrro 6y agoThere's virtio-fs, but it requires a relatively recent Linux kernel. For Windows, I have samba running on my host.
- dljsjr 6y agoYou're being unfairly downvoted, so allow me to actually answer your first question. QEMU doesn't have much of a GUI to speak of. It's a virtualization framework with some CLI tooling on top of it. Frontends/management UI's/etc are left as an exercise to the community so you can find one that suits your needs. For example, a popular one for macOS these days is UTM: https://mac.getutm.app https://mac.getutm.app QtEmu is another: https://qtemu.org https://qtemu.org
- rzzzt 6y agoA recent Windows build used GTK3 decorations; I was very surprised to see that appear. You are right that it is quite low on functionality, its menu allows powering off and rebooting the VM, and gives access to the serial console as well as a command-line interface for the emulator.
- btdmaster 6y agoIt defaults to the GTK display: https://down.loaded.ie/Lb9RDi3.png https://down.loaded.ie/Lb9RDi3.png. See the -display section in QEMU(1) for details and other options. My favorite is -nographic, which forces VGA output to the terminal; very useful when there is no X session or similar. Edit: I realised GUI might mean creating and managing virtual machines; virt-manager might be good? Take a look at https://wiki.archlinux.org/index.php/Libvirt https://wiki.archlinux.org/index.php/Libvirt for the setup needed. (I think it's easier to learn to use vanilla QEMU, though.)
- 6y ago
- deleted 6y ago[deleted]
- judge2020 6y ago> and lots more… Would be nice if they linked a changelist with all of the commits instead of this^.
- qwertox 6y agoI have heard about QEMU for years. Something about virtualization and Linux, this is what I've started to associate it to. My Workstation runs on Windows, and up until some years ago I was using VMware Workstation for virtualization, and then moved over to VirtualBox, which I've also started to use on a Windows-based home server. I've always used both of them via the GUI. Now, if I want to build a beefy Linux server (headless) and run some virtualization on it, would I then use QEMU and get the same thing I've been getting with VirtualBox on Windows? How do both of these compare performance- and feature-wise? Are they alternatives, or do they server different purposes?
- bchanudet 6y agoYou should look into Proxmox PVE. It offers a nice Web UI for QEMU and LXC and makes the whole experience quite good. I came from VirtualBox too and never looked back.
- bitwize 6y agoQemu is a whole-system or CPU emulator, originally for x86 PCs but now encompassing other systems and architectures. Where the virtualization bit comes in is with kvm. Kvm is a Linux kernel module that lets you take advantage of x86 CPU hardware virtualization. Qemu can use kvm to provide the virtual CPU while it itself emulates the rest of the PC hardware, resulting in a complete virtual system. That said, qemu can also emulate the CPU itself, allowing for example an x86 OS to run on an ARM system, or vice versa, but that of course is slower.
- ineedasername 6y agoIt's been probably about 8 years or so since I touched QEMU, but at the time the performance was unusable (on a modest system) compared to a very usable virtualbox or vmware. IIRC, I was just trying to run win XP on Windows 7. How do things stand these days? Also, given that QEMU is somewhat platform independent, how well does it run an x86 OS on top of an ARM chip?
- dang 6y agoThese seem to be most of the interesting past threads? Additions welcome: QEMU Internals - https://news.ycombinator.com/item?id=26941744 https://news.ycombinator.com/item?id=26941744 - April 2021 (33 comments) Show HN: QEMU front end for M1 and Intel Macs - https://news.ycombinator.com/item?id=26260390 https://news.ycombinator.com/item?id=26260390 - Feb 2021 (122 comments) How to run FreeBSD 13 in QEMU on Apple Silicon Mac - https://news.ycombinator.com/item?id=26053983 https://news.ycombinator.com/item?id=26053983 - Feb 2021 (39 comments) QEMU Advent Calendar 2020 - https://news.ycombinator.com/item?id=25262608 https://news.ycombinator.com/item?id=25262608 - Dec 2020 (30 comments) Changed-block tracking and differential backups in QEMU - https://news.ycombinator.com/item?id=25189078 https://news.ycombinator.com/item?id=25189078 - Nov 2020 (5 comments) Booting a macOS Apple Silicon Kernel in QEMU - https://news.ycombinator.com/item?id=25064593 https://news.ycombinator.com/item?id=25064593 - Nov 2020 (70 comments) QEMU 680x0 support [video] - https://news.ycombinator.com/item?id=25027213 https://news.ycombinator.com/item?id=25027213 - Nov 2020 (13 comments) QEMU should move from C to Rust - https://news.ycombinator.com/item?id=24133128 https://news.ycombinator.com/item?id=24133128 - Aug 2020 (209 comments) (god help us) macOS in QEMU in Docker - https://news.ycombinator.com/item?id=23419101 https://news.ycombinator.com/item?id=23419101 - June 2020 (186 comments) Xnu-QEMU-Arm64: iOS on QEMU - https://news.ycombinator.com/item?id=22870905 https://news.ycombinator.com/item?id=22870905 - April 2020 (34 comments) QEMU for iOS - https://news.ycombinator.com/item?id=22385370 https://news.ycombinator.com/item?id=22385370 - Feb 2020 (145 comments) QEMU VM Escape - https://news.ycombinator.com/item?id=20796446 https://news.ycombinator.com/item?id=20796446 - Aug 2019 (57 comments) QEMU 4.1 released - https://news.ycombinator.com/item?id=20713932 https://news.ycombinator.com/item?id=20713932 - Aug 2019 (14 comments) QEMU v4.0.0 released - https://news.ycombinator.com/item?id=19736309 https://news.ycombinator.com/item?id=19736309 - April 2019 (159 comments) QEMU Advent Calendar: A surprise disk image each day until Christmas - https://news.ycombinator.com/item?id=18588043 https://news.ycombinator.com/item?id=18588043 - Dec 2018 (34 comments) Emulate Mac OS 9 with QEMU - https://news.ycombinator.com/item?id=18585157 https://news.ycombinator.com/item?id=18585157 - Dec 2018 (64 comments) From VNC to reverse shell - https://news.ycombinator.com/item?id=18051264 https://news.ycombinator.com/item?id=18051264 - Sept 2018 (9 comments) Osx-kvm: Run macOS on QEMU/KVM - https://news.ycombinator.com/item?id=17763855 https://news.ycombinator.com/item?id=17763855 - Aug 2018 (106 comments) Almost booting an iOS kernel in QEMU - https://news.ycombinator.com/item?id=17544689 https://news.ycombinator.com/item?id=17544689 - July 2018 (19 comments) Running Amiga-like OSes on QEMU - https://news.ycombinator.com/item?id=17531490 https://news.ycombinator.com/item?id=17531490 - July 2018 (12 comments) Accelerating QEMU on Windows with HAXM - https://news.ycombinator.com/item?id=15759080 https://news.ycombinator.com/item?id=15759080 - Nov 2017 (24 comments) VM Escape: QEMU Case Study - https://news.ycombinator.com/item?id=14218600 https://news.ycombinator.com/item?id=14218600 - April 2017 (44 comments) QEMU: user-to-root privesc inside VM via bad translation caching - https://news.ycombinator.com/item?id=13928675 https://news.ycombinator.com/item?id=13928675 - March 2017 (28 comments) Multi-threaded emulation for QEMU - https://news.ycombinator.com/item?id=13759283 https://news.ycombinator.com/item?id=13759283 - Feb 2017 (9 comments) QEMU: virtfs permits guest to access entire host filesystem - https://news.ycombinator.com/item?id=13753950 https://news.ycombinator.com/item?id=13753950 - Feb 2017 (43 comments) QEMU Advent Calendar - https://news.ycombinator.com/item?id=13118291 https://news.ycombinator.com/item?id=13118291 - Dec 2016 (37 comments) OS X-KVM: Running Mac OS X El Capitan on KVM and QEMU - https://news.ycombinator.com/item?id=12556609 https://news.ycombinator.com/item?id=12556609 - Sept 2016 (89 comments) Announcing qboot, a minimal x86 firmware for QEMU - https://news.ycombinator.com/item?id=9585631 https://news.ycombinator.com/item?id=9585631 - May 2015 (43 comments) QEMU Advent Calendar 2014 - https://news.ycombinator.com/item?id=8712998 https://news.ycombinator.com/item?id=8712998 - Dec 2014 (16 comments) QEMU 2.0.0 Released - https://news.ycombinator.com/item?id=7604916 https://news.ycombinator.com/item?id=7604916 - April 2014 (74 comments) Virgil3D - a virtual 3D GPU for qemu - https://news.ycombinator.com/item?id=7042299 https://news.ycombinator.com/item?id=7042299 - Jan 2014 (1 comment) QEMU 1.7.0 is now available - https://news.ycombinator.com/item?id=6883988 https://news.ycombinator.com/item?id=6883988 - Dec 2013 (16 comments) QEMU 1.6.0 is now available - https://news.ycombinator.com/item?id=6220565 https://news.ycombinator.com/item?id=6220565 - Aug 2013 (18 comments) QEMU 1.4.0 released with 95% of native IO performance - https://news.ycombinator.com/item?id=5231545 https://news.ycombinator.com/item?id=5231545 - Feb 2013 (51 comments) QEMU 1.0 released - https://news.ycombinator.com/item?id=3303958 https://news.ycombinator.com/item?id=3303958 - Dec 2011 (19 comments) Qemu + KVM is the future of open source virtualization - https://news.ycombinator.com/item?id=1226598 https://news.ycombinator.com/item?id=1226598 - March 2010 (2 comments)
- defied 6y agoIf anyone knows how to improve the graphics performance on Windows, please share. Compared with other hypervisors like Virtualbox or ESXI, there’s no graphics driver for Windows VMs with QEMU.