Creating the VM

Log in to itlab-vc using the VMware Virtual Infrastructure Client

Ignore the certificate warning

Create a new VM in the COmanage pool on itlab-vin3

Select custom VM type

Name the VM

Pick a LUN in which to store the VM

Make it a 32 bit Linux VM

With a single CPU,

1GB RAM,

A single NIC on the VM Public Network,

A BusLogic SCSI adapter,

A new virtual disk,

That's just 4GB,

Connected as SCSI disk 0:0

... and it's almost done

Next, edit the settings for the VM

Remove the floppy drive

Configure CD to use datastore ISO

Select the Debian Lenny ISO image; make sure 'Connect at power on' is checked

Get the MAC address from the Network inteface, and make sure
it's set up in NetDB with an IP address and DHCP enabled

Installing Debian Testing

Open the VM console

Power on the VM

Click in the VM console, then press enter to start a text mode install of Debian

Select English as the language

Select United States for the country (dialect0

Select American English for the keymap

Enter the hostname

Enter the domain name

Select Pacific timezone

Use Guided partitioning on the entire disk

Select the 4GB disk for partitioning

Use a single partition

Accept the default partitioning

Confirm the partitions and write to disk

Enter a root password

Create a new user for yourself

Select a US mirror

Select ftp.us.debian.org for the mirror

Skip the package usage survey

Uncheck all the categories of software for a minimal install

Install GRUB on the MBR

Reboot the VM

The VM is ready for the last stage of customization

Configure Debian

If created using Stanford's internal build servers, do the following (if built using the above, skip this list):

  • remove all traces of pam afs session from the pam configs
  • remove all the stanford bits from the /etc/ntp.conf
  • make sure the /service directory was properly created
  • check /etc/networking to ensure the system is setup for DHCP and that the network section in /etc/comanage/setup.ini is removed

Log in on the console as root, and create /etc/apt/apt.conf.d/20comanage, containing this:

APT::Install-Recommends "false";
APT::Install-Suggests "false";

Edit /etc/apt/sources.list to match this:

deb http://ftp.us.debian.org/debian/ lenny main contrib non-free
deb-src http://ftp.us.debian.org/debian/ lenny main contrib non-free

deb http://security.debian.org/ lenny/updates main contrib non-free
deb-src http://security.debian.org/ lenny/updates main contrib non-free

# the repository for COmanage test packages
deb http://exodus.stanford.edu/comanage stable main

Update the local APT cache

# aptitude update

Install the COmanage repository keyring

# aptitude install comanage-keyring

(Select No Configuration when prompted)

Install Sun's Java packages

# aptitude install sun-java5-{bin,jdk,jre}

(Accept the Sun license when prompted)

Remove the user created during the install

# userdel USER

Snapshot

This is the point where the VM is ready for the COmanage packages, so you might want to create a snapshot.

Install the base COmanage packages

# aptitude install co-setup co-base co-grouper co-grouper-cli co-ldappc

(Just skip through the slapd configuration; when prompted, skip the grouper and ldappc configuration too)

After the installation completes, you should see the COmanage info on the console:

Perform the following cleanups:

  • delete the cert and key (/etc/comanage/user.*)
  • delete the networking section from /etc/comanage/setup.ini

Power off the VM and export: From the VI Client, select the VM and then select File -> Virtual Appliance -> Export.  Then bring in to VMware Converter to convert from OVF to VMX.

  • No labels