Forum archive
Installing TurnKey VMs on XenServer hosts
Installing 12.0 TurnKey Linux VMs on Citrix XenServer 6.1/6.2:
Citrix XenServer console (create VM):
- New VM
- Choose Other template (implies HVM guest instead of PV)
- Choose ISO image for installation soure
- Add one disk for root and one disk for swap
- Start installing VM
- Chose entire disk instead of LVM (otherwise the disks cannot be resized by the host)
VM's console (configure guest):
apt-get update && apt-get upgrade && apt-get install linux-image-686-bigmem- For the console you need to add the following line in
/etc/inittabbefore line1:2345:respawn:/sbin/getty 38400 tty1:co:2345:respawn:/sbin/getty 38400 hvc0
- In
/etc/fstabswitch from/dev/hd*to/dev/xvd*if needed - Shut down the VM
Citrix XenServer console (change virtualisation technique for this guest from HVM to PV):
xe vm-list power-state=halted(write down UUID for the VM)xe vm-param-set uuid=UUID HVM-boot-policy=(leave blank after equals sign)xe vm-param-set uuid=UUID PV-bootloader=pygrubxe vm-disk-list uuid=UUID(find VDB disk's UUID of root partition)xe vbd-param-set uuid=VBD's UUID bootable=true- Reconnect to server in XenCenter Manager
VM's console (install XenTools)
- Start appliance
mount /dev/cdrom /mnt/mnt/Linux/install.shumount /mnt- Eject xs-tools.iso from the VM's CD-ROM, otherwise the VM won't boot.
sudo reboot
I don't use XenServer but for others that might it would be great if you could test and post back! :)