5 ms·
Getting Started with QEMU (2018)
- ttflee 5y agoIf you use macOS as host, make sure that '-enable-kvm' is replaced with '-accel hvf'. Another useful argument is '-cpu host'.
- SkyMarshal 5y agoDoes virtio work on macOS, or is that linux only? Eg, in his example: ... -nic user,model=virtio -drive file=alpine.qcow2,media=disk,if=virtio ...
- Tomte 5y agoHas anyone made the (unofficial, I think) Windows build work with acceleration on Windows 10? I'm away from the PC for a few days, so I cannot post specifics, but I've failed to make it work.
- orev 5y agoWorks fine for me with the Intel haxm driver installed. You need to remove Hyper-V though.
- qqtac 5y ago"-usbdevice tablet" I find this gives a better mouse integration experience.
- bavell 5y agoCurious, what about the integration is better?
- qqtac 5y agoThe tablet driver uses absolute position, so the mouse cursor has a nature transition when it's over the QEMU window. Also there is no "scaling" problem where the mouse moves at different speed inside and outside of the QEMU window.
- qqtac 5y agoIs there any "integrated firewall" in QEMU (and/or any linux container solutions e.g. "bubblewrap")? For example, I run a closed source software (with both linux and windows versions) made by company A, which I use for doing business with company B. I'm happy for it to connect to company B's servers but I don't like it to phone home to company A (or any other 3rd parties) Is it possible to run it in QEMU (or "bubblewrap"), allowing access to the public internet for a number of whitelisted websites (e.g. company B), and no access to my local lan? It would be nice if it can be done with something like these For the app I mentioned above: qemu -net whitelist=www.companyB.com,blacklist=127.0.0.0/8 -drive file=app1.img (or bubblewrap -net whitelist=www.companyB.com,blacklist=127.0.0.0/8 /usr/bin/app1) For some other similar apps I could run: qemu -net whitelist=www.companyX.com;www.companyY.com,blacklist=127.0.0.0/8 -drive file=app2.img I'm not keen to manage a bunch of iptables or vnet rules/configs on my host because the configs seem to be all over the places and not easy to get right. Also it takes too much time/work if I just want to spin up some random softeware and test quickly. Any insight and good ideas?
- yrro 5y agoCan you run qemu in bubblewrap? libvirt has per-domain firewalling but probably not with automatic DNS resolution.
- qqtac 5y agoWhat would running qemu in bubblewrap achieve?
- vetinari 5y agoIt can be done, but... if you have a router with VLAN support (Mikrotik, Ubiquiti, OpenWrt, many others), use VLANs. Isolate your VMs in their own subnet and configure your router what is allowed or not allowed for hosts in that subnet.
- qqtac 5y agoYep, it's not convenient to manage though.
- haunter 5y ago>That covers enough to get you off of VirtualBox or whatever other bad hypervisor you’re using What's the problem with Virtualbox? Never had any problems with it, works perfectly. Please don't say Oracle = bad, that's not an answer
- caslon 5y agoIt's slow as sin, for one thing. It has deceptive licensing terms, for another. And yes, the deceptive licensing started after Oracle bought Sun. That's definitely an answer. It's buggy, ridiculous software perpetuated after its irrelevancy largely to take advantage of people who haven't quite figured out QEMU yet.
- yrro 5y agoBuggy networking, video, sound and shared filesystem support (at lease that last one is still an advantage over qemu which has... nothing. Not to matter, SMB shares can be mounted to work around)
- vetinari 5y ago> at lease that last one is still an advantage over qemu which has... nothing https://virtio-fs.gitlab.io/ https://virtio-fs.gitlab.io/
- yrro 5y agoLast time I looked at that it wasn't usable with a Windows guest. Looks like it's come on since then, thanks. Though the setup instructions are still far too complex (when compared with VirtualBox!)
- st_goliath 5y agoNot sure about the current state of affairs, but the VirtualBox kernel modules you need on the host side have for a long time been known as being notoriously low quality and unstable. Up to the point where the kernel is considered tainted if they are loaded (i.e. any crashes or issues you report with VirtualBox modules loaded being ignored)[1][2]. [1] https://www.phoronix.com/scan.php?page=news_item&px=OTk5Mw https://www.phoronix.com/scan.php?page=news_item&px=OTk5Mw [2] https://lkml.org/lkml/2011/10/6/317 https://lkml.org/lkml/2011/10/6/317
- synergy20 5y agothis was written in 2018 and is slightly out of date, for one thing '-sdl' should be '-display gtk' if you're under gnome, '-sdl' is no longer supported.
- haberman 5y agoI've always wished that qemu had a way of running in terminal, using stdin/stdout for input, without creating a separate window. I just found this, which looks like it has some promising recipes for doing that: https://fadeevab.com/how-to-setup-qemu-output-to-console-and-automate-using-shell-script/ https://fadeevab.com/how-to-setup-qemu-output-to-console-and...