yum install virt-install yum install libvirt yum install kvm virt-viewer virt-manager yum install libvirt libvirt-python python-virtinst bridge-utils tunctl yum -y install qemu-kvm reboot systemctl start libvirtd systemctl enable libvirtd
qemu-img create -f qcow2 centos6.5x64.qcow2 20G virt-install --connect qemu:///system -r 4096 --cpu host \ --name centos6.5x64 \ --network bridge=brqe614c5fd-be,model=virtio \ --disk path=/opt/img/centos6.5x64.qcow2,bus=virtio,format=qcow2 \ --disk path=/opt/img/CentOS-6.5-x86_64-bin-DVD1.iso,device=cdrom,perms=ro \ --vnc --vncport=5915 --vnclisten=0.0.0.0 --noautoconsole \ --os-variant=centos6.5\ --hvm --noautoconsole \ --boot cdrom,hd,menu=on
VNC连上5915端口,即可开始安装
--os-variant=centos6.5
[root@test img]# osinfo-query os
Short ID | Name | Version | ID
----------------------+----------------------------------------------------+----------+-----------------------------------------
altlinux1.0 | Mandrake RE Spring 2001 | 1.0 | http://altlinux.org/altlinux/1.0
altlinux2.0 | ALT Linux 2.0 | 2.0 | http://altlinux.org/altlinux/2.0
altlinux2.2 | ALT Linux 2.2 | 2.2 | http://altlinux.org/altlinux/2.2
altlinux2.4 | ALT Linux 2.4 | 2.4 | http://altlinux.org/altlinux/2.4
altlinux3.0 | ALT Linux 3.0 | 3.0 | http://altlinux.org/altlinux/3.0
altlinux4.0 | ALT Linux 4.0 | 4.0 | http://altlinux.org/altlinux/4.0
altlinux4.1 | ALT Linux 4.1 | 4.1 | http://altlinux.org/altlinux/4.1
altlinux5.0 | ALT Linux 5.0 | 5.0 | http://altlinux.org/altlinux/5.0
altlinux6.0 | ALT Linux 6.0 | 6.0 | http://altlinux.org/altlinux/6.0
altlinux7.0 | ALT Linux 7.0 | 7.0 | http://altlinux.org/altlinux/7.0
centos6.0 | CentOS 6.0 | 6.0 | http://centos.org/centos/6.0
centos6.1 | CentOS 6.1 | 6.1 | http://centos.org/centos/6.1
centos6.2 | CentOS 6.2 | 6.2 | http://centos.org/centos/6.2
centos6.3 | CentOS 6.3 | 6.3 | http://centos.org/centos/6.3
centos6.4 | CentOS 6.4 | 6.4 | http://centos.org/centos/6.4
centos6.5 | CentOS 6.5 | 6.5 | http://centos.org/centos/6.5
centos6.6 | CentOS 6.6 | 6.6 | http://centos.org/centos/6.6
centos6.7 | CentOS 6.7 | 6.7 | http://centos.org/centos/6.7
https://www.rdoproject.org/resources/creating-centos-and-fedora-images-ready-for-openstack/
https://docs.openstack.org/image-guide/create-images-manually.html
安装完成后,把镜像centos6.5x64.qcow2传到openstack glance中即可