• openstack 本地导入镜像.


    网络很慢,直接本地传.

    openstack image create "Fedora30" --file Fedora-Cloud-Base-30-1.2.x86_64.qcow2 --disk-format qcow2 --container-format bare --public
    所有支持的类型 choose from 'ami', 'ari', 'aki', 'vhd', 'vmdk', 'raw', 'qcow2', 'vhdx', 'vdi', 'iso', 'ploop'
    其中注意的是 OVA格式的,要解压 tar xvf xxx.ova 然后在上传 xxx.vmdk 文件即可.
    openstack image create "ubuntu1804" --file ubuntu-bionic-18.04-cloudimg.vmdk --disk-format vmdk --container-format bare --public

    1、执行环境变量
    
    stack@ubsv:/mnt/s2t/openstackImg$ source admin-openrc.sh #如果是devstack `cd /opt/stack/devstack/ source openrc admin admin`
    
    stack@ubsv:/mnt/s2t/openstackImg$ openstack image list
    +--------------------------------------+--------------------------+--------+
    | ID                                   | Name                     | Status |
    +--------------------------------------+--------------------------+--------+
    | 3b10127f-5190-4803-b63a-95398cd08e20 | Centos76                 | active |
    | 7bc97ac5-3a97-4868-89bc-a7f136bf2cbb | Fedora30                 | active |
    | b1ed1c79-7e57-4eec-b0be-40dd109b5ebd | cirros-0.4.0-x86_64-disk | active |
    | 55449a54-a892-48fc-b914-7d5c26cc36fd | rhel6_small              | active |
    | bb9e0cb2-ebc1-4f01-848a-bec3eb87f1ce | ubuntu1804               | active |
    | 84f1a750-80c1-4f84-a3eb-73cf0305970d | virtio                   | active |
    | 04f103f6-0e24-4f17-b7b3-4b1f1d29492c | win10dev                 | active |
    +--------------------------------------+--------------------------+--------+
    
    
    
  • 相关阅读:
    OLEDB 数据变更通知
    Python处理正则表达式超时的办法
    OLEDB 静态绑定和数据转化接口
    Keepalived+LVS(DR)+MySQL
    Keepalived+Nginx实现Nginx的高可用
    ISCSI存储
    memcached随笔练习
    Varnish快速安装及测试
    Oracle及其相关软件历史版本下载地址
    使用VMwaver 克隆CentOS 6.9网卡配置报错
  • 原文地址:https://www.cnblogs.com/lovesKey/p/10884195.html
Copyright © 2020-2023  润新知