[prev in list] [next in list] [prev in thread] [next in thread]
List: gentoo-dev
Subject: Re: [gentoo-dev] Creating development virtual machine
From: "Robin H. Johnson" <robbat2 () gentoo ! org>
Date: 2016-08-21 4:02:29
Message-ID: robbat2-20160821T034042-069988592Z () orbis-terrarum ! net
[Download RAW message or body]
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.tar.bz2
4. Convert it to a QCOW2 disk image:
$ GENTOO_PROFILE=hardened/linux/amd64 \
DIB_IMAGE_CACHE=`pwd` disk-image-create \
--offline \
--image-size 2 \
--mkfs-options='-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=$((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
--
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
["signature.asc" (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic