# openstack image create "GenericCloud_CentOS_7.4" \
--disk-format raw --container-format bare \
--public --min-disk 50 \
--property hw_disk_bus=scsi --property hw_scsi_model=virtio-scsi \
--property hw_video_model=qxl --property vm_mode=hvm \
--property os_distro=centos \
--property os_type=linux \
--property hw_qemu_guest_agent=yes \
--property hw_vif_multiqueue_enabled=true
# rbd -c /etc/kolla/cinder-volume/ceph.5.conf import CentOS-7-x86_64-GenericCloud-1705.raw sata_pool1/CentOS-7-x86_64-GenericCloud-1705.raw
# rbd snap create sata_pool1/$CentOS76_IMAGE_NAME.raw@snap
# rbd snap protect sata_pool1/$CentOS76_IMAGE_NAME.raw@snap
# glance location-add --url rbd://$ceph_sid/sata_pool1/$CentOS76_IMAGE_NAME.raw/snap $centos76_gid
安装:
pip install python-openstackclient
pip install osc-placement
#openstack volume create --image IMAGE_ID --size SIZE_IN_GB --availability-zone bj01 bootable_volume
#openstack server create --flavor b382c813-91ca-44e2-ba4f-d298af1e0473 \
--volume 72f87b1b-d0ac-4a72-ae4d-8b0735bdb249 \
--nic net-id=0b23e298-41a5-42ee-89a1-0bd8c4381642 \
--availability-zone bj01 \
test-vm
#neutron net-create network-lan-baremetal --provider:network_type flat --provider:physical_network physnet1