From mboxrd@z Thu Jan 1 00:00:00 1970 From: Giovanni Biscuolo Subject: Re: "guix system vm" to libvirt XML domain Date: Fri, 25 Jan 2019 12:21:38 +0100 Message-ID: <87ftthasot.fsf@roquette.mug.biscuolo.net> References: <87o985c41f.fsf@roquette.mug.biscuolo.net> <87lg39c1ws.fsf@roquette.mug.biscuolo.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:53571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmzeH-0007zC-A5 for help-guix@gnu.org; Fri, 25 Jan 2019 06:27:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gmzYh-0004DU-Kl for help-guix@gnu.org; Fri, 25 Jan 2019 06:22:04 -0500 Received: from ns13.heimat.it ([46.4.214.66]:46382) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmzYh-0004Bp-8q for help-guix@gnu.org; Fri, 25 Jan 2019 06:22:03 -0500 In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: =?utf-8?Q?G=C3=A1bor?= Boskovits Cc: help-guix --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Gabor, thanks for your interest G=C3=A1bor Boskovits writes: [...] >> but now I've a problem with the /gnu/store mount in guest >> >> "9pnet_virtio: no channels available for device TAGjoptajej2oynju6yvboau= z7pl6uj" >> >> ...still missimg someting >> >> any hint please? >> > > I have seen this once, and the virtio-pci kernel module was missing. I had excluded this since starting the VM using the "guix system vm" generated script succeeds, I expect the libvirt defined one to run alike long story short: my domain XML definition was *wrong*, I defined the /gnu/store filesystem --8<---------------cut here---------------start------------->8--- --8<---------------cut here---------------end--------------->8--- in the wrong part of the XML tree, namely outside --8<---------------cut here---------------start------------->8--- [...] --8<---------------cut here---------------end--------------->8--- and virsh ignored it (no error, no warning) when I used that XML to define the VM via "virsh ... define cointainer-minimal.xml" [1] hint: always use virsh-xml-validate to check the file, since virsh does not validate it before registering the definition (AFAIK "virsh define" also hasn't a proper flag to do it) this is the correct XML domain definition, now working: --=-=-= Content-Type: application/xml; charset=utf-8 Content-Disposition: inline; filename=container-minimal-fixed.xml Content-Transfer-Encoding: base64 Content-Description: container-minimal-fixed.xml PGRvbWFpbiB0eXBlPSdrdm0nIHhtbG5zOnFlbXU9J2h0dHA6Ly9saWJ2aXJ0Lm9yZy9zY2hlbWFz L2RvbWFpbi9xZW11LzEuMCc+CiAgPG5hbWU+Y29udGFpbmVyLW1pbmltYWw8L25hbWU+CiAgPHV1 aWQ+ZWNmZTI1MzgtNTMxNS00NGFhLWJiYTUtOGZlNGQ4NmQ1Mzk3PC91dWlkPgogIDxtZW1vcnkg dW5pdD0nR0InPjI8L21lbW9yeT4KICA8Y3VycmVudE1lbW9yeSB1bml0PSdHQic+MjwvY3VycmVu dE1lbW9yeT4KICA8dmNwdSBwbGFjZW1lbnQ9J3N0YXRpYyc+MjwvdmNwdT4KICA8b3M+CiAgICA8 dHlwZSBhcmNoPSd4ODZfNjQnIG1hY2hpbmU9J3BjLWk0NDBmeC0yLjgnPmh2bTwvdHlwZT4KICAg IDxrZXJuZWw+L2dudS9zdG9yZS95NWFpaWpxaXFuYTF5OHlwbjZjMGpwMzY3ODEzeHhuYy1saW51 eC1saWJyZS00LjIwLjMvYnpJbWFnZTwva2VybmVsPgogICAgPGluaXRyZD4vZ251L3N0b3JlLzl4 Z3FzOXpmNTFpOWJpbnFqbDVoZ2w4Z2w3cWw0MGhjLXN5c3RlbS9pbml0cmQ8L2luaXRyZD4KICAg IDxjbWRsaW5lPi0tcm9vdD0vZGV2L3ZkYTEgLS1zeXN0ZW09L2dudS9zdG9yZS85eGdxczl6ZjUx aTliaW5xamw1aGdsOGdsN3FsNDBoYy1zeXN0ZW0gLS1sb2FkPS9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tlbmQgbW9kZWw9J3JhbmRv bSc+L2Rldi91cmFuZG9tPC9iYWNrZW5kPgogICAgPC9ybmc+CiAgICA8aW50ZXJmYWNlIHR5cGU9 J25ldHdvcmsnPgogICAgIDxtYWMgYWRkcmVzcz0nNTI6NTQ6MDA6YWU6NzI6YjknLz4KICAgICA8 c291cmNlIG5ldHdvcms9J2dibGFicycvPgogICAgIDxtb2RlbCB0eXBlPSdydGw4MTM5Jy8+CiAg IDwvaW50ZXJmYWNlPgogIDwvZGV2aWNlcz4KPC9kb21haW4+Cg== --=-=-= Content-Type: text/plain hope this will help others! happy hacking! Giovanni [...] [1] /var/log/libvirt/qemu/container-minimal.log was helpful since the command line used to start the VM lacked --=-=-= Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" --==-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =2D-=20 Giovanni Biscuolo Xelera IT Infrastructures --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEERcxjuFJYydVfNLI5030Op87MORIFAlxK8UMACgkQ030Op87M ORJslA/8CHPKXpLTWewzrURYd6TvbINiaEyQ9YrsoYj0O9sMLwtssxiYqH99TE2A Nr+0+eaZXjIGjUFR4jNqRHje3beTcujBd/A6UPPkzMRL5OV4dvZOCSKGMia+WUlK g7aAy6unltOuYcl8mUOb9gngGC/lDD8yiMfkYXbL2X/7GPDzoRgythR5+t4DmxSx ABnY6SczYtAP2DMHDlgEc/HGRmarfSrW9jgMYnGkYXlZ0YQdBcDp4P1u6vS7sBgk JzXbAy9O5+dCtKY/P87AYWJwFnsRUX+fSl3gKFxJKRYXm9YU6pGngoMwDqFpEQwE cpY/y7u0Pjun0T4QALP3VV1Pfnt2LMtso7mj3FiZekEJUpB2TheGWGe9s/TbysNd 8T321hFldtuKw3POBwRcaBcv1nE5jXcs9cDvvgIy6O4pW/7UyyKWVNJNu9YCJYbg VN8V+uqQfcT82djUGEK0Xxb8ba+6NdEJoL1rO5kOhWLD7zeOy8q/+U1XquFJqtB7 wnsYH+UMWML7Nd8vC/9is2UbK2tPN8rlWziWa482gOADM2IN9sO59RFxvi08Oyxw Tc9QF9eEi9JrMmMiUVgImOtLU1pcL3sAxtvaw0zrcO+1nJp99B3hYt6Qc/tQZQ3C 3YHOYm2hWiZCKOvvgekDG1QFuXWuSUxVrPdb7Cybbx4A5DKKJcw= =Gpd4 -----END PGP SIGNATURE----- --==-=-=-- --=-=-=--