blog_os icon indicating copy to clipboard operation
blog_os copied to clipboard

CI: QEMU installation does not work on Windows

Open phil-opp opened this issue 6 years ago • 4 comments

We use choco install qemu to install QEMU on the Windows CI agent. This succeeds, but C:\Program Files\qemu is an empty directory afterwards. The strange thing is that this still worked yesterday, so some new version of either QEMU, the chocolatey package, or Azure Pipelines itself must have broken it.

phil-opp avatar Aug 08 '19 08:08 phil-opp

Ok, it seems like the QEMU version changed from v2019.07.31 to v2019.08.07. The relevant installers are https://qemu.weilnetz.de/w64/qemu-w64-setup-20190731.exe and https://qemu.weilnetz.de/w64/qemu-w64-setup-20190807.exe.

phil-opp avatar Aug 08 '19 08:08 phil-opp

Seems to be https://bugs.launchpad.net/qemu/+bug/1839294

phil-opp avatar Aug 08 '19 08:08 phil-opp

This works fine -- I have not noticed any problems with it (then again, I don't use chocoloty). As an Azure test pipeline, tell it to just install scoop and rustup -- which might save you a lot of time. The commands would be:

powershell -ExecutionPolicy Bypass -command "iex (new-object net.webclient).downloadstring('https://get.scoop.sh')"
scoop install qemu

Then run your qemu commands.

ethindp avatar Aug 20 '19 02:08 ethindp

Seems like it's working again. Thanks for the scoop suggestion, I will look into it.

phil-opp avatar Aug 20 '19 08:08 phil-opp