News for hackers. Stuff that matters.
Re:QEMU Internals (2021) by john_alan on Monday August 22, 2022 @05:05AM (#32549043)
Plug for UTM: https://mac.getutm.app

A frontend for QEMU which makes it usable for normal people

Re:QEMU Internals (2021) by LeoPanthera on Monday August 22, 2022 @01:46PM (#32554779)
They're not official but I have made Windows 95 and Windows 98 images for UTM, if anyone would find that useful:

https://archive.org/details/@davidga

Re:QEMU Internals (2021) by suchar on Monday August 22, 2022 @01:09PM (#32554274)
I've recently tested UTM and Parallels Desktop (Intel Mac) with Linux workloads (Ubuntu and NixOS). IME, UTM seems to be considerably slower than Parallels. I haven't investigated this much, but it looked like a very slow IO (despite using a disk in raw format) + htop showed that the CPU spent a lot of time in the kernel.

Nonetheless, it is a pretty nice tool

Re:QEMU Internals (2021) by lionkor on Monday August 22, 2022 @06:22AM (#32549519)
Virtual Machine Manager takes the cake IMO
Re:QEMU Internals (2021) by rdtsc on Monday August 22, 2022 @01:15PM (#32554355)
I like Virtual Machine Manager too. It's been a trusty workhorse for years. It had tried Vagrant and Docker and both didn't work out too well. With Docker being a container engine for instance, systemd doesn't work, so installing packages which start services and manage systemd units fails. There are some hacks and workaround but VMM just works as expected.
Re:QEMU Internals (2021) by dizhn on Monday August 22, 2022 @07:46AM (#32550095)
Does it work on Macs?
Re:QEMU Internals (2021) by lioeters on Monday August 22, 2022 @03:44PM (#32556250)
If this is the right "Virtual Machine Manager", it doesn't look like macOS or Windows is supported.

https://github.com/virt-manager/virt-manager/blob/main/INSTA...

Re:QEMU Internals (2021) by lambda_matt on Monday August 22, 2022 @10:45AM (#32552189)
not well. There are various ports in brew and macports but they are all hamstringed in various ways
Re:QEMU Internals (2021) by gorkish on Monday August 22, 2022 @02:40PM (#32555426)
Curious about all the negative experiences with UTM; for me it was a breeze to set up both an Ubuntu/aarch64 and a Windows 11 VM, though the process to get a windows installer iso was a bit silly.

Biggest problem for me is that it seems every solution for running a VM on Apple Silicon puts a big ding in the otherwise insane battery life. I'd love to have a Linux VM "at the ready" similar to WSL2 but there doesn't seem to be a great way to achieve this.

Re:QEMU Internals (2021) by lmarcos on Monday August 22, 2022 @05:20AM (#32549152)
If only it were more developer-friendly (like Vagrant). Nevertheless, UTM is good.
Re:QEMU Internals (2021) by kashyapc on Monday August 22, 2022 @11:58AM (#32553299)
FWIW, if you're comfortable with command-line, here's a way to use QEMU with `virt-builder`[a] and libvirt (the virtualization API):

(1) Download a Fedora image (or any one of the images that `virt-builder` supports: `virt-builder --list | less`)

    $> virt-builder fedora-36 --format qcow2 \
       -o vm1.qcow2 --root-password secret
(2) Import the image to libvirt:

    $> sudo virt-install --name vm1 --ram 4096 \
       --disk path=/var/lib/libvirt/images/vm1.qcow2,format=qcow2 \
       --nographics --os-variant fedora-36 --import
Then you can do various operations via `virsh` (the shell tool). Start a VM, and see the boot process on the serial console:

    $ sudo virsh start --console
Create a snapshot:

    $ sudo virsh snapshot-create-as vm1 snap1 "Clean Fedora 1"
With this kind of snapshot (called "internal snapshots"), the original and its delta, i.e. the snapshot, are stored in a single disk image file; this is convenient for moving it across machines. This only works with QCOW2 images. To revert to the snapshot:

    $ sudo virsh snapshot-revert vm1 snap1
And so on[b].

[a] https://libguestfs.org/virt-builder.1.html

[b] https://developer.fedoraproject.org/tools/virt-builder/about...

Re:QEMU Internals (2021) by koprulusector on Monday August 22, 2022 @03:35PM (#32556147)
Does this work on Mac M1?

Last time I tried setting up libvirt/libguestfs on my work Mac M1 I ran into various problems and gave up. This was somewhere around April 2022.

Re:QEMU Internals (2021) by rwmj on Tuesday August 23, 2022 @07:54AM (#32563478)
So .. actually I've been porting libguestfs & guestfs-tools to Mac M1 a couple of weeks ago. I'm intending to write up docs on how to build it, and didn't get around to it, but it will eventually appear here: https://listman.redhat.com/archives/libguestfs/
Re:QEMU Internals (2021) by vim-guru on Monday August 22, 2022 @05:42AM (#32549295)
I don't know. I'm a dev and just tried booting ArchLinux with UTM. All I got was a cryptic call trace on my M1. But yeah, if it had worked I would have considered it easy to use even for non devs.
Re:QEMU Internals (2021) by vim-guru on Monday August 22, 2022 @05:45AM (#32549320)
Now I tried Debian as well. It boots fine, but the username & password mentioned are incorrect. There's some way to go until this thing is usable I would say.
Re:QEMU Internals (2021) by vbezhenar on Monday August 22, 2022 @06:00AM (#32549388)
I've found using ordinary qemu to be more convenient than those wrappers. It's faster to read man than to find what I need in those GUIs.

Be aware though, it was easy to crash M1 with default qemu settings few months ago.

Re:QEMU Internals (2021) by CoastalCoder on Monday August 22, 2022 @09:18AM (#32550911)
Are you saying that it crashed the host OS, or just qemu?
Re:QEMU Internals (2021) by vbezhenar on Monday August 22, 2022 @10:06AM (#32551539)
Entire host macOS was crashed. Must be a bug with macOS. May be it is fixed by now, I don't really want to try as I don't like when my OS crashes. You can inspect qemu command line from UTM, I'm not sure if I saved my scripts, but there're some weird flags which I had no idea what they're for, but when I removed them, it was boom, reboot.
Re:QEMU Internals (2021) by ecnahc515 on Monday August 22, 2022 @03:00PM (#32555695)
Were you trying to use more than 8GB of memory? There's an option to pass to qemu for highmem. Could be hitting this issue: https://github.com/lima-vm/lima/issues/713
Re:QEMU Internals (2021) by vbezhenar on Monday August 22, 2022 @04:16PM (#32556634)
I think that I hit something similar to this issue: https://github.com/utmapp/UTM/issues/3946

I didn't set too much RAM, definitely less than 8GB.

Re:QEMU Internals (2021) by immmmmm on Monday August 22, 2022 @06:47AM (#32549679)
looks great on paper, managed to get the aarch64 version of Ubuntu server running on M1 but the intel version crashed somewhere in the install.