17
using a local mirror or apt proxy to avoid generating excessive network traffic or load on the central
repositories.
3. Start the VM; it boots straight into the Debian installer:
xe vm-start uuid=<UUID>
4. Follow the Debian Installer procedure to install the VM in the configuration you require.
5. See below for instructions on how to install the guest utilities and how to configure graphical display.
Installing a Debian Lenny VM from an ISO (using the CLI)
1. Create a VM from the Debian Lenny template. The UUID of the VM is returned:
xe vm-install template=Debian\ Lenny\ 5.0 new-name-label=<lenny-vm>
2. Get the UUID of the root disk of the new VM:
xe vbd-list vm-uuid=<vm_uuid> userdevice=0 params=uuid --minimal
3. Using the UUID returned, set the root disk to not be bootable:
xe vbd-param-set uuid=<root_disk_uuid> bootable=false
4. Get the name of the physical CD drive on the XenServer host:
xe cd-list
The result of this command should give you something like SCSI 0:0:0:0 for the name-label field.
5. Add a virtual CD-ROM to the new VM using the XenServer host CD drive name-label parameter as
the cd-name parameter:
xe vm-cd-add vm=<vm_name> cd-name="<host_cd_drive_name_label>" device=3
6. Get the UUID of the VBD corresponding to the new virtual CD drive:
xe vbd-list vm-uuid=<vm_uuid> type=CD params=uuid --minimal
7. Make the VBD of the virtual CD bootable:
xe vbd-param-set uuid=<cd_drive_uuid> bootable=true
8. Set the install repository of the VM to be the CD drive:
xe vm-param-set uuid=<vm_uuid> other-config:install-repository=cdrom
9. Insert the Debian Lenny installation CD into the CD drive on the XenServer host.
10. Open a console to the VM with XenCenter or an SSH terminal and follow the steps to perform the OS
installation.
11. Start the VM; it boots straight into the Debian installer:
xe vm-start uuid=<UUID>
12. See the sections that follow for instructions on how to install the guest utilities and how to configure
graphical display.
Automated installation of Debian Lenny
Installation of Debian Lenny uses the standard Debian installer — you can use the usual Debian pre-seed
mechanism to support automated installation.
1. Create a pre-seed file. Information about pre-seed files is available in the appendices of the Debian
user guide.