[macOS] Trouble switching to the qemu driver
@townsend2010 thanks for the frighteningly fast reply. I've tried it by doing
multipass set local.driver=qemu
before recreating everything, but now it seems to be stuck. I used -vvvv with multipass launch and here is where it's been for 15+ minutes now (far longer than it's ever taken for this step) – where "mike" is the name of the instance:
Launching mike
[2022-05-13T18:39:40.924] [trace] [url downloader] Found https://cdimage.ubuntu.com/ubuntu-core/16/stable/current/SHA256SUMS in cache: true
[2022-05-13T18:39:41.013] [trace] [url downloader] Found https://cdimage.ubuntu.com/ubuntu-core/18/stable/current/SHA256SUMS in cache: true
[2022-05-13T18:39:41.014] [trace] [url downloader] Found https://cloud-images.ubuntu.com/buildd/releases/bionic/release/SHA256SUMS in cache: true
[2022-05-13T18:39:41.015] [trace] [url downloader] Found https://cloud-images.ubuntu.com/buildd/releases/focal/release/SHA256SUMS in cache: true
[2022-05-13T18:39:41.016] [trace] [url downloader] Found https://cloud-images.ubuntu.com/buildd/daily/jammy/current/SHA256SUMS in cache: true
[2022-05-13T18:39:41.018] [trace] [url downloader] Found https://cloud-images.ubuntu.com/releases/streams/v1/index.json in cache: true
[2022-05-13T18:39:41.048] [trace] [url downloader] Found https://cloud-images.ubuntu.com/releases/streams/v1/com.ubuntu.cloud:released:download.json in cache: true
[2022-05-13T18:39:41.129] [trace] [url downloader] Found https://cdimage.ubuntu.com/ubuntu-core/appliances/streams/v1/index.json in cache: true
[2022-05-13T18:39:41.130] [trace] [url downloader] Found https://cdimage.ubuntu.com/ubuntu-core/appliances/streams/v1/com.ubuntu.appliances:released:download.json in cache: true
[2022-05-13T18:39:41.137] [debug] [qemu-img] [22450] started: qemu-img info /var/root/Library/Caches/multipassd/vault/images/focal-20220505/ubuntu-20.04-server-cloudimg-amd64.img
Configuring mike /
Update: I killed it via ^C and now cannot do anything with multipass, because it says it cannot connect to the multipass socket:
list failed: cannot connect to the multipass socket
Please ensure multipassd is running and '/var/run/multipass_socket' is accessible
And I cannot figure out how to restart it ...
Update 2: A reinstallation of multipass didn't solve the "cannot connect" problem. However, multipass restart seems to have done it. Now trying everything again …
Update 3: trying again with the qemu setting once again results in an apparently hung process at the "Configuring instance" step.
Update 4: I looked back at my previous runs, and what I see is this during the launch phase of past successful uses of multipass:
[2022-05-13T17:42:33.719] [debug] [qemu-img] [13676] started: qemu-img info /var/root/Library/Caches/multipassd/vault/images/focal-20220505/ubuntu-20.04-server-cloudimg-amd64.img
From this, I suspect I was already getting qemu, though I don't believe I did anything special. Could it actually have been the default? (I installed multipass using homebrew, in case that's relevant.)
Update 5: I did multipass set local.driver=hyperkit and things are working as before for me. From this I gather that I probably was not getting qemu after all and that the "qemu-img" part of the message above is just something else. Also, I don't know why setting the driver to qemu causes problems on my system, but it doesn't look like I can use it.
Finally, the irq messages happen but they stop after a while, which is weird. Given this, and the fact that I can't seem to use the qemu driver, I'm going back to hyperkit and will just try to ignore the irq messages.
Thank you for the suggestion, in any case. I learned more about multipass in the process, even if ultimately I couldn't use the suggested approach.
Originally posted by @mhucka in https://github.com/canonical/multipass/issues/1778#issuecomment-1126610009
Hey @mhucka,
Sorry for your troubles trying to switch to the qemu driver. It should have been pretty seemless other than not having access to any pre-existing Hyperkit instances.
I'm curious as to what may have happened. If you are willing, could you get the output of /Library/Logs/Multipass/multipassd.log at the time the issues occurred when switching to the qemu driver?
Thanks!