The procedure below is done on a CentOS 6.3 x86_64 hypervisor
- Create qcow image:
qemu-img create -f qcow2 ubuntu-12.10-server-amd64.img 5G
- Download Ubuntu server ISO:
wget "http://www.ubuntu.com/start-download?distro=server&bits=64&release=latest"
- Manually boot a VM with Ubuntu server ISO as CDROM and qcow image as disk (parameters are extracted from a running OpenStack instance on the same KVM hypervisor):
/usr/libexec/qemu-kvm -m 1024 -cdrom /media/ubuntu-12.10-server-amd64.iso
-drive file=/root/ubuntu-12.10-server-amd64.img,if=none,id=drive-virtio-disk3,format=qcow2,cache=none
-boot d -net nic -net user -vnc :60 -monitor unix:/tmp/file.mon,server,nowait
-device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk3,id=virtio-disk3
- Connect on the VNC display and go through installation process. Main options:
- Language: English
- Country: other, Europe, Italy
- Country to base locale: en_US.UTF-8
- Keyboard Layout: English (US, alternative international)
- Hostname: almost irrelevant, will be changed by
cloud-init
- New user:
ec2-user
- Password: choose one
- Encrypt home directory? No
- Timezone: Europe/Rome
- Partitioning: Guided, use entire disk
- Partitioning scheme: create single root partition, no swap
- Proxy info: none
- Automatic updates: no automatic updates (hoping to manage them via MCollective...)
- Software to install: OpenSSH server
- Install GRUB boot loader? Yes
- Perform initial update:
sudo apt-get update
sudo apt-get upgrade