Received: from out-120.mta0.migadu.com (out-120.mta0.migadu.com [91.218.175.120]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id 958F2223747 for ; Fri, 20 Jan 2023 14:31:50 +0000 (UTC) Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ayaya.dev; s=key1; t=1674225108; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3Y0VJqwBfh+SR4JmsPei3EjltQ/2KJmsANYOgBPPLSA=; b=iBm7M9rnxwagqxTG0+l0ztaNU9JUS1whCeJVd/K1D6r8hyGi5VGn12jrDFFwJoACAyWWgF eSJ5ur3b+3AeL54UXvTu82xDm97hOn8PY/kHIzSYHrlnt7Lbnv9ZpUh2pmeAjJijLQ+3mD l8CftQTcyMA+Pdbip9h6mZUde9a93Bg= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 20 Jan 2023 15:31:47 +0100 Message-Id: Subject: Re: Unable to create virtual machines with LXD X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: "alice" To: "Martin Rusko" , References: In-Reply-To: X-Migadu-Flow: FLOW_OUT On Fri Jan 20, 2023 at 3:10 PM CET, Martin Rusko wrote: > I can add that replacing /usr/share/OVMF/OVMF_CODE.fd file form ovmf > package with the file from ubuntu/22.04 makes the "feature check" to > succeed. The size is quite different 3.5M (Alpine) vs 1.9M (Ubuntu). > I'll try to see why that is. ah, okay, means it's broken somehow indeed. for reference the build for it is defined in: https://git.alpinelinux.org/aports/tree/community/edk2/APKBUILD > /Martin > > On Thu, Jan 19, 2023 at 7:11 PM Martin Rusko wro= te: > > > > Hello, > > > > when trying to create new LXD instance as a virtual machine, the > > creation fails with following message: > > > > ~# lxc init images:alpine/3.17 alpine-test --vm > > Creating alpine-test > > Error: Failed instance creation: Failed creating instance record: > > Instance type "virtual-machine" is not supported on this server: QEMU > > failed to run feature checks > > > > And in the logs these two messages sheds a bit more light to it: > > > > level=3Derror msg=3D"Unable to run feature checks during QEMU > > initialization: QEMU premature exit: exit status 1 (qemu: could not > > load PC BIOS '/usr/share/OVMF/OVMF_CODE.fd')" > > level=3Dwarning msg=3D"Instance type not operational" driver=3Dqemu > > err=3D"QEMU failed to run feature checks" type=3Dvirtual-machine > > > > I went to check sources (see [1], function checkFeatures(hostArch int, > > qemuPath string)) and they seems to run qemu-system-x86_64 like this: > > > > ~# qemu-system-x86_64 -S -nographic -nodefaults -no-user-config > > -machine q35 -bios /usr/share/OVMF/OVMF_CODE.fd > > qemu: could not load PC BIOS '/usr/share/OVMF/OVMF_CODE.fd' > > > > Is this Alpine's bug? Or LXD upstream bug? I'm trying to run it on > > "Alpine Linux v3.17". > > > > Best Regards, > > Martin > > > > [1] - https://github.com/lxc/lxd/blob/master/lxd/instance/drivers/drive= r_qemu.go > > -- > > Martin Rusko | martin.rusko@gmail.com | +46 768 598091 | +421 903 246 6= 98