source: trunk/packages/sipb-xen-guest-installer/sipb-xen-guest-installer/partial/cdrom.patch @ 201

Last change on this file since 201 was 201, checked in by price, 17 years ago

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.

File size: 538 bytes
RevLine 
[201]1diff -Nur cdrom.old/isolinux/isolinux.cfg cdrom/isolinux/isolinux.cfg
2--- cdrom.old/isolinux/isolinux.cfg 2007-08-20 16:16:20.000000000 -0400
3+++ cdrom/isolinux/isolinux.cfg 2007-10-16 01:04:37.000000000 -0400
4@@ -12,7 +12,11 @@
5 F9 f9.txt
6 F0 f10.txt
7
8-DEFAULT install
9+DEFAULT sipb-xen-install
10+
11+LABEL sipb-xen-install
12+       kernel /install.amd/vmlinuz
13+       append auto=true preseed/file=/cdrom/preseed.cfg priority=critical vga=normal fb=false initrd=/install.amd/initrd.gz --
14
15 LABEL install
16        kernel /install.amd/vmlinuz
Note: See TracBrowser for help on using the repository browser.