From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1CAFA13832E for ; Sun, 21 Aug 2016 04:02:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4AD32E0B5A; Sun, 21 Aug 2016 04:02:33 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5722CE0B4D for ; Sun, 21 Aug 2016 04:02:31 +0000 (UTC) Received: from grubbs.orbis-terrarum.net (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C229E33FECD for ; Sun, 21 Aug 2016 04:02:29 +0000 (UTC) Received: (qmail 30210 invoked by uid 10000); 21 Aug 2016 04:02:29 -0000 Date: Sun, 21 Aug 2016 04:02:29 +0000 From: "Robin H. Johnson" To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Creating development virtual machine Message-ID: References: <36cb7e6d-4b53-2840-5baa-f2b987141593@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="QRj9sO5tAVLaXnSD" Content-Disposition: inline In-Reply-To: <36cb7e6d-4b53-2840-5baa-f2b987141593@gentoo.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-Archives-Salt: db2053ea-fee9-4204-9568-9769758f2a8a X-Archives-Hash: 96f5063e7e67bb89b01f7456993c887e --QRj9sO5tAVLaXnSD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Aug 20, 2016 at 05:15:13PM -0700, Daniel Campbell wrote: > ready-to-go Gentoo installs that come with some needed > software. Release Engineering does already publish cloud-ready stage4 tarballs. In the very near future, I intend to for releng/infra to be publishing the pre-converted qcow2 images, but for the moment, you can convert them yourselves: 1. Grab a cloud stage4: $ curl http://distfiles.gentoo.org/releases/amd64/autobuilds/current-stage4= -amd64-hardened+cloud/stage4-amd64-hardened+cloud-20160811.tar.bz2 2. emerge app-emulation/diskimage-builder 3. symlink the tarball as needed: $ ln -s stage4-amd64-hardened+cloud-20160811.tar.bz2 gentoo-stage4-hardened= =2Etar.bz2 4. Convert it to a QCOW2 disk image: $ GENTOO_PROFILE=3Dhardened/linux/amd64 \ DIB_IMAGE_CACHE=3D`pwd` disk-image-create \ --offline \ --image-size 2 \ --mkfs-options=3D'-T news,floppy' \ gentoo vm 5. Use image.qcow2 in the dir to boot the VM, either with cloud-init to inject a root password/ssh keys, or modify the image yourself first (convert to raw format, loopmount w/ -o offset=3D$((1024*1024)), convert back to QCOW2 afterwards). 6. You'll want to look at growpart and related tools if you intend to having space to work on stuff on the VM; it's deliberately very small, and I'd like to shave a little more space off to fit into a 1GiB disk with more room to spare. ** Right now: - 1GiB volume w/ ~50MiB free - 2GiB volume w/ ~1050MiB free - 1536MiB volume w/ ~679MiB free --=20 Robin Hugh Johnson Gentoo Linux: Dev, Infra Lead, Foundation Trustee & Treasurer E-Mail : robbat2@gentoo.org GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85 GnuPG FP : 7D0B3CEB E9B85B1F 825BCECF EE05E6F6 A48F6136 --QRj9sO5tAVLaXnSD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.1 Comment: Robbat2 @ Orbis-Terrarum Networks - The text below is a digital signature. If it doesn't make any sense to you, ignore it. iKYEARECAGYFAle5J9VfFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl bnBncC5maWZ0aGhvcnNlbWFuLm5ldDc1OTQwNEJFQkQ0MUY3MTIzODIzODZFRjNF OTIyQzIyMzIzM0MyMkMACgkQPpIsIjIzwiwubwCgjRV/dPrCmH6/AStvM6QKxDzW 31AAn2h7fE+ofuTKm9t/kzlFV7/20Rom =xoUK -----END PGP SIGNATURE----- --QRj9sO5tAVLaXnSD--