X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=cirros-testvm%2Fsrc-cirros%2Fdoc%2FTESTING;fp=cirros-testvm%2Fsrc-cirros%2Fdoc%2FTESTING;h=5654869842e8b1e963008f4cf3be9a3981e09b52;hb=b0a0f15dfaa205161a7fcb20cf1b8cd4948c2ef3;hp=0000000000000000000000000000000000000000;hpb=c6ac3cd55ee2da956195eee393b0882105dfad4e;p=packages%2Ftrusty%2Fcirros-testvm.git diff --git a/cirros-testvm/src-cirros/doc/TESTING b/cirros-testvm/src-cirros/doc/TESTING new file mode 100644 index 0000000..5654869 --- /dev/null +++ b/cirros-testvm/src-cirros/doc/TESTING @@ -0,0 +1,46 @@ +Before a release, the following tests should be done. + +Notes: + * Until a way to disable ec2 metadata search exists, we have to fake a + metadata server. + +- Prereqs for local boot EC2 Metadata test: + - download 'mdserv' at https://gist.github.com/1278651 + - bring up interface for 169.254.169.254 + sudo ifconfig eth0:0 up 169.254.169.254 netmask 255.255.255.255 + - ./mdserv 169.254.169.254:80 + +- qemu system boot + - test boot to from partition + qemu-system-$ARCH -kernel kernel -initrd initramfs -hda part.img -curses + - test boot to blank partition + qemu-system-$ARCH -kernel kernel -initrd initramfs -hda blank.img -curses + - test boot to initramfs partition + qemu-system-$ARCH -kernel kernel -initrd initramfs -hda part.img -append "root=noroot" -curses + - test boot from full disk image (not arm yet) + qemu-system-$ARCH -drive if=virtio,file=disk.img -curses + +- lxc system boot + - download lxc-libvirt-run from http://smoser.brickies.net/git/?p=tildabin.git;a=blob;f=lxc-libvirt-root + - sudo mkdir -p lxc/cirros-$ARCH + - zcat initramfs | ( cd lxc/cirros-$ARCH && sudo cpio -uid ) + - if [ "$ARCH" == "arm" ]; then + sudo apt-get install -y + sudo cp /usr/bin/qemu-arm-static $ARCH/usr/bin + fi + - ./lxc-libvirt-root lxc/cirros-$ARCH + +- Openstack boot + - cloud-publish-tarball cirros-VERSION-ARCH-partimg.tar.gz + - cloud-publish-image --type image disk.img + +- Ec2 boot + - cloud-publish-tarball cirros-VERSION-ARCH-partimg.tar.gz + # us-east-1 aki-805ea7e9 amazon pv-grub-hd0_1.02-i386.gz + # us-east-1 aki-825ea7eb amazon pv-grub-hd0_1.02-x86_64.gz + aki=aki-805ea7e9 + [ "$ARCH" = "x86_64" ] && aki=aki-825ea7eb + cloud-publish-tarball cirros-$VERSION-$ARCH-partimg.tar.gz \ + --kernel $aki --ramdisk none $USER-bucket $ARCH + + - TBD: EBS boot and register