1.Ubuntu image
http://blog.csdn.net/jb80400812/article/details/7000122
http://blog.chinaunix.net/uid-26527046-id-3701516.html
2.Centos image
http://docs.openstack.org/image-guide/centos-image.html
3. Upload image
1 openstack image create "ubuntu-12.04.5-kernel" --disk-format aki --container-format aki --public --file ./vmlinuz-3.13.0-32-generic 2 openstack image create "ubuntu-12.04.5-ramdisk" --disk-format ari --container-format ari --public --file ./initrd.img-3.13.0-32-generic 3 openstack image create "ubuntu-12.04.5-blank" --disk-format ami --container-format ami --public --property kernel_id=$KID --property ramdisk_id=$RID --file ./ubuntutemplate.img 4 openstack image create "centos6" --file centos6.qcow2 --disk-format qcow2 --container-format bare --public
4.KVM启动虚机
1 sudo qemu-system-x86_64 -m 512 -cdrom ubuntu-14.04.3-server-amd64.iso -drive file=ubuntu.img,if=scsi,index=0 -boot d -net nic -net user -nographic -vnc :10