1. Upload images (raw or qcow2) into OpenStack Controller by using key-pair.
example:
# scp -i <key-pair path> CentOS7.qcow2 root@<Controller IP>:~/

OR

# scp -i <key-pair path> CentOS7.raw root@<Controller IP>:~/

 

2. Login OpenStack Controller by using key-pair.
example:# ssh -i <key-pair path> root@<Controller IP>

3. Upload images into OpenStack Glance,

For QCOW2 image:
# glance image-create --name=<Image Display Name> \
    --disk-format=qcow2 --is-public true \
    --container-format=bare \
    --min-disk <DISK_GB> \
    --min-ram <DISK_RAM> \
    --file ~/CentOS7.qcow2 \
    --progress

 

For RAW image:
# glance image-create --name=<Image Display Name> \
    --disk-format=raw --is-public true \
    --container-format=bare \
    --min-disk <DISK_GB> \
    --min-ram <DISK_RAM> \
    --file ~/CentOS7.raw \
    --progress

4. Check OpenStack Glance image list.
# glance image-list

dreamtails 發表在 痞客邦 PIXNET 留言(0) 人氣()