invirt/packages/invirt-autoinstaller.git
16 years agoWe're installing paravms, so don't spawn a separate serial console login
Eric Price [Mon, 28 Jul 2008 01:33:10 +0000 (21:33 -0400)] 
We're installing paravms, so don't spawn a separate serial console login

svn path=/trunk/packages/sipb-xen-guest-installer/; revision=740

16 years agoDon't bother avoiding checksums.
Eric Price [Mon, 28 Jul 2008 00:05:47 +0000 (20:05 -0400)] 
Don't bother avoiding checksums.

svn path=/trunk/packages/sipb-xen-guest-installer/; revision=732

16 years agoUse symlink instead.
Eric Price [Mon, 28 Jul 2008 00:05:35 +0000 (20:05 -0400)] 
Use symlink instead.

svn path=/trunk/packages/sipb-xen-guest-installer/; revision=731

16 years agoRemove copied 91-make-fstab
Eric Price [Mon, 28 Jul 2008 00:05:00 +0000 (20:05 -0400)] 
Remove copied 91-make-fstab

svn path=/trunk/packages/sipb-xen-guest-installer/; revision=730

16 years agofix control, control.in, and changelog in guest installer sipb-xen-guest-installer/1.4
Greg Price [Wed, 23 Jul 2008 05:19:34 +0000 (01:19 -0400)] 
fix control, control.in, and changelog in guest installer

This demonstrates why it's evil that we have to keep control and
control.in both in source control.

svn path=/trunk/packages/sipb-xen-guest-installer/; revision=719

16 years agoHyphens in the LV name are replaced with double hyphens in /dev/mapper
Evan Broder [Sun, 22 Jun 2008 22:25:29 +0000 (18:25 -0400)] 
Hyphens in the LV name are replaced with double hyphens in /dev/mapper

svn path=/trunk/packages/sipb-xen-guest-installer/; revision=642

16 years agoGetting towards the autoinstaller in domU.
Eric Price [Sun, 22 Jun 2008 13:32:08 +0000 (09:32 -0400)] 
Getting towards the autoinstaller in domU.

Works with etch, almost works with Hardy but has network trouble.

svn path=/trunk/packages/sipb-xen-guest-installer/; revision=641

16 years agoxen-create-image in dom0
Eric Price [Sun, 22 Jun 2008 05:28:55 +0000 (01:28 -0400)] 
xen-create-image in dom0

svn path=/trunk/packages/sipb-xen-guest-installer/; revision=635

16 years agoChange sipb-xen-lvcopy so that it fails if you try to clone anything but ice3
Evan Broder [Sat, 31 May 2008 20:51:39 +0000 (16:51 -0400)] 
Change sipb-xen-lvcopy so that it fails if you try to clone anything but ice3

svn path=/trunk/packages/sipb-xen-guest-installer/; revision=542

16 years agoIncrement version sipb-xen-guest-installer/1.2
Eric Price [Thu, 15 May 2008 22:47:31 +0000 (18:47 -0400)] 
Increment version

svn path=/trunk/packages/sipb-xen-guest-installer/; revision=529

16 years agoWork around bug in Python subprocess for remctl
Eric Price [Thu, 15 May 2008 22:45:15 +0000 (18:45 -0400)] 
Work around bug in Python subprocess for remctl

svn path=/trunk/packages/sipb-xen-guest-installer/; revision=528

16 years agoMore work on debootstrap-commands. Now can successfully create moo19 with execution.
Tao Ben Schardl [Tue, 13 May 2008 00:04:13 +0000 (20:04 -0400)] 
More work on debootstrap-commands. Now can successfully create moo19 with execution.

svn path=/trunk/packages/sipb-xen-guest-installer/; revision=527

16 years agoxen-create-image frobbing for deboostrap-commands
Tao Ben Schardl [Sun, 4 May 2008 07:52:53 +0000 (03:52 -0400)] 
xen-create-image frobbing for deboostrap-commands

svn path=/trunk/packages/sipb-xen-guest-installer/; revision=496

16 years agoStarted modifying deboostrap-commands to use xen-create-image
Tao Ben Schardl [Sun, 4 May 2008 07:43:48 +0000 (03:43 -0400)] 
Started modifying deboostrap-commands to use xen-create-image

svn path=/trunk/packages/sipb-xen-guest-installer/; revision=495

16 years agoEric's and my debootstrap work from the hackathon
Greg Price [Sun, 4 May 2008 00:53:31 +0000 (20:53 -0400)] 
Eric's and my debootstrap work from the hackathon

svn path=/trunk/packages/sipb-xen-guest-installer/; revision=494

16 years agochangelogs sipb-xen-guest-installer/1.1
Greg Price [Thu, 1 May 2008 05:28:04 +0000 (01:28 -0400)] 
changelogs

Becoming a responsible debian-packaging developer
now that I've figured out and partially cleaned up
the mess that is sx-build-release.

svn path=/trunk/packages/sipb-xen-guest-installer/; revision=485

16 years agoupdate sx-make-iso to black-mesa's version
Greg Price [Thu, 1 May 2008 05:08:14 +0000 (01:08 -0400)] 
update sx-make-iso to black-mesa's version

The modtime on black-mesa of this new version is late October.

The script is overtaken by events anyway, but just keeping things clean.

svn path=/trunk/packages/sipb-xen-guest-installer/; revision=484

16 years agosipb-xen-losetup: a half-sane way to use losetup sipb-xen-guest-installer/1.0
Greg Price [Tue, 22 Apr 2008 20:15:57 +0000 (16:15 -0400)] 
sipb-xen-losetup: a half-sane way to use losetup

You should use this instead of plain losetup; everything that uses this
will at least not have races with other things using this.

If it's missing a feature (e.g. a losetup argument) you want,
it shouldn't be hard to add.

svn path=/trunk/packages/sipb-xen-guest-installer/; revision=449

16 years agoput the post-copy frobbing details in the image
Greg Price [Thu, 3 Apr 2008 06:22:54 +0000 (02:22 -0400)] 
put the post-copy frobbing details in the image

svn path=/trunk/packages/sipb-xen-guest-installer/; revision=405

16 years agotodo has moved to trac
Greg Price [Sun, 30 Mar 2008 08:48:19 +0000 (04:48 -0400)] 
todo has moved to trac

svn path=/trunk/packages/sipb-xen-guest-installer/; revision=343

16 years agosome cleanups in copying autoinstaller
Greg Price [Sun, 30 Mar 2008 08:02:48 +0000 (04:02 -0400)] 
some cleanups in copying autoinstaller

svn path=/trunk/packages/sipb-xen-guest-installer/; revision=338

16 years agocopying installer works now (maybe?)
Greg Price [Sun, 30 Mar 2008 06:49:43 +0000 (02:49 -0400)] 
copying installer works now (maybe?)

At least for the image 'ice3', which IIRC was created with
/usr/sbin/sipb-xen-make-iso.  It's an etch amd64 image.
It also had to have package nullmailer installed, replacing exim4.

svn path=/trunk/packages/sipb-xen-guest-installer/; revision=336

17 years agoPrototype fast installer using a special guest.
Greg Price [Tue, 13 Nov 2007 10:10:10 +0000 (05:10 -0500)] 
Prototype fast installer using a special guest.

Rather than poke directly in the boot sector, partition table,
etc, which caused so much pain last week (r231), we just dd
the entire disk.  Then we poke at the bits that need to change
(like secrets, the hostname, the root password, the filesystem uuids).
Since this poking is distribution-dependent, we want it to be
supplied by the image, so to make that safe we run it in a VM.

The plan is
 1. source image is dd'd (in the host) to the target image
 2. special copying-installer image is booted, with access to target
    and to a small image containing its arguments
 3. copying-installer guest reads arguments, mounts target,
    runs a script with a well-known name in target, passing arguments.

Bits I haven't done yet include
 - frob grub config in the copying-installer image so it boots
   with init = the copying-installer script (doing this manually for testing)
 - install script into copying-installer, or into my example image,
   in a sane automated way (they're checked into partial/ here)
 - all the tasks the image's script ought to actually carry out
 - make this all available from remctl and the web pages.

svn path=/trunk/packages/sipb-xen-guest-installer/sipb-xen-guest-installer/; revision=245

17 years agoprototype fast installer.
Greg Price [Sun, 4 Nov 2007 05:41:11 +0000 (01:41 -0400)] 
prototype fast installer.

To install a distribution on a new volume, we take an existing
installed volume produced with sipb-xen-make-iso, and
 1. copy GRUB's data with dd
 2. frob the partition table with sfdisk, if the disk size is different
 3. make the filesystem
 4. twiddle the hostname and root password and whatever else
 5. make the swap area
 6. boot!

In this prototype, steps 2 and 4 aren't implemented yet;
steps 1, 3, and 5 all use numbers that come from what the
sipb-xen-make-iso etch installer does rather than from
actually reading the partition table; and the whole thing
is just a program in /usr/sbin, not integrated into what
remctl / the web app invoke.

It all takes about thirty seconds (28.0s most recently),
excluding the boot.

svn path=/trunk/packages/sipb-xen-guest-installer/sipb-xen-guest-installer/; revision=231

17 years agosimplify isolinux.cfg.
Greg Price [Sun, 28 Oct 2007 08:14:48 +0000 (04:14 -0400)] 
simplify isolinux.cfg.

Once we fix the problem of rebooting with the CD mounted again,
we can remove the prompt, so the user doesn't have to touch the console.
Until then, they need an opportunity to destroy/reboot-without-CD
after the installation finishes.

svn path=/trunk/packages/sipb-xen-guest-installer/sipb-xen-guest-installer/; revision=222

17 years agopostinst script, nicer pathnames, and read password hash from a file
Greg Price [Sun, 28 Oct 2007 06:47:50 +0000 (02:47 -0400)] 
postinst script, nicer pathnames, and read password hash from a file

The postinst script has been tested by running it directly,
but I still haven't attempted actually building and installing
the package.

svn path=/trunk/packages/sipb-xen-guest-installer/sipb-xen-guest-installer/; revision=221

17 years agoUse temp directory, use DHCP, and live in sane paths.
Greg Price [Sun, 28 Oct 2007 05:08:34 +0000 (01:08 -0400)] 
Use temp directory, use DHCP, and live in sane paths.

The partial/ tree is gone now.
Files are in files/; the installer's persistent data
will go in subtrees like /srv/guest-installer/etch/.

Also, it magically takes only 15 minutes now.

svn path=/trunk/packages/sipb-xen-guest-installer/sipb-xen-guest-installer/; revision=218

17 years agoa system for building guest images on demand (partially implemented)
Greg Price [Tue, 16 Oct 2007 08:11:46 +0000 (04:11 -0400)] 
a system for building guest images on demand (partially implemented)

The plan, roughly, is
 1. we download an upstream install CD iso, mount it, copy out the contents;
 2. when a user wants a VM, the script makes a copy, applies a small static
    patch (mostly a preseed file for the installer), adds a few vm-dependent
    variables to the preseed, maybe makes some other changes here,
    then makes an iso from that;
 3. we boot a vm from the new iso, with the empty volume as /dev/hda,
    and let the installer run.

This checkin implements 2 and 3, when run in an appropriate testing
environment, but I haven't adapted it to the real environment yet.
Step 2 turns out to be surprisingly fast; much less than a second.
Step 3, unfortunately, is looking like 20 minutes, maybe 10 if we
work at tightening it.  We'll want to mitigate that somehow.

Code in the 'partial' directory is meant to be moved elsewhere
as it gets integrated.

svn path=/trunk/packages/sipb-xen-guest-installer/sipb-xen-guest-installer/; revision=201