The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / doc / TESTING
1 Before a release, the following tests should be done.
2
3 Notes:
4  * Until a way to disable ec2 metadata search exists, we have to fake a
5    metadata server.
6
7 - Prereqs for local boot EC2 Metadata test:
8   - download 'mdserv' at https://gist.github.com/1278651
9   - bring up interface for 169.254.169.254
10     sudo ifconfig eth0:0 up 169.254.169.254 netmask 255.255.255.255
11   - ./mdserv 169.254.169.254:80
12
13 - qemu system boot
14   - test boot to from partition
15     qemu-system-$ARCH -kernel kernel -initrd initramfs -hda part.img -curses
16   - test boot to blank partition
17     qemu-system-$ARCH -kernel kernel -initrd initramfs -hda blank.img -curses
18   - test boot to initramfs partition
19     qemu-system-$ARCH -kernel kernel -initrd initramfs -hda part.img -append "root=noroot" -curses
20   - test boot from full disk image (not arm yet)
21     qemu-system-$ARCH -drive if=virtio,file=disk.img -curses
22
23 - lxc system boot
24   - download lxc-libvirt-run from http://smoser.brickies.net/git/?p=tildabin.git;a=blob;f=lxc-libvirt-root
25   - sudo mkdir -p lxc/cirros-$ARCH
26   - zcat initramfs | ( cd lxc/cirros-$ARCH && sudo cpio -uid )
27   - if [ "$ARCH" == "arm" ]; then
28        sudo apt-get install -y
29        sudo cp /usr/bin/qemu-arm-static $ARCH/usr/bin
30     fi
31   - ./lxc-libvirt-root lxc/cirros-$ARCH
32
33 - Openstack boot
34   - cloud-publish-tarball cirros-VERSION-ARCH-partimg.tar.gz
35   - cloud-publish-image --type image disk.img
36
37 - Ec2 boot
38   - cloud-publish-tarball cirros-VERSION-ARCH-partimg.tar.gz
39     # us-east-1 aki-805ea7e9 amazon pv-grub-hd0_1.02-i386.gz
40     # us-east-1 aki-825ea7eb amazon pv-grub-hd0_1.02-x86_64.gz
41     aki=aki-805ea7e9
42     [ "$ARCH" = "x86_64" ] && aki=aki-825ea7eb
43     cloud-publish-tarball cirros-$VERSION-$ARCH-partimg.tar.gz \
44        --kernel $aki --ramdisk none $USER-bucket $ARCH
45
46   - TBD: EBS boot and register