这个界面:
这个界面
下载镜像:
[email protected]:~/images# wget http://cloud-images.ubuntu.com/daily/server/cosmic/current/cosmic-server-cloudimg-amd64.img
使用glance命令创建镜像
参考:https://blog.csdn.net/mashangyou/article/details/24237819
参考:https://tieba.baidu.com/p/3672617052?red_tag=2475973178
参考:http://www.javashuo.com/article/p-regumifn-dd.html
[email protected]:~# glance image-create --name Ubuntu18.10 --file images/cosmic-server-cloudimg-amd64.img --disk-format qcow2 --container-format bare --progress [=============================>] 100% +------------------+--------------------------------------------------------------------+ | Property | Value | +------------------+--------------------------------------------------------------------+ | checksum | d0a4d1c62d2ca9ff4771cf3368e63ae2 | | container_format | bare | | created_at | 2018-12-28T06:02:27Z | | direct_url | file:///var/lib/glance/images/fe46480e-904d-4f2d-86a9-e7f558a2b4eb | | disk_format | qcow2 | | id | fe46480e-904d-4f2d-86a9-e7f558a2b4eb | | min_disk | 0 | | min_ram | 0 | | name | Ubuntu18.10 | | owner | 3898c2031a6b4ed584c5a2faf3c8395c | | protected | False | | size | 480968704 | | status | active | | tags | [] | | updated_at | 2018-12-28T06:02:30Z | | virtual_size | None | | visibility | private | +------------------+--------------------------------------------------------------------+
网页查看:
使用该镜像测试:
[email protected]:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.10 Release: 18.10 Codename: cosmic [email protected]:~$ date Fri Dec 28 06:16:20 UTC 2018