上传镜像
openstack glance使用网页上传镜像,占用资源太高,这时候使用命令上传速度更快
openstack命令上传镜像:
openstack image create "cirros" \ --创建的镜像名
--file cirros-0.3.5-x86_64-disk.img \ --创建镜像所需文件,当前目录,或带文件位置
--disk-format qcow2 \ --镜像格式 qcow2
--container-format bare \ --图片的容器格式 bare
--public --共享此镜像,所有用户可见
openstack image create "win10-raw-qga" --file Windows_10_LTSC_Desktop_Bios_20220729120719_amd64.raw --disk-format raw --container-format bare --public
将qcow2镜像转换未raw镜像
qemu-img convert -f qcow2 -O raw IMG_WIN10_ZY_0729.qcow2 IMG_WIN10_ZY_0729.raw
规格列表
openstack flavor list
虚机列表
nova list
openstack server list
查看主机的详细信息
openstack server show 虚机id
nova show 虚机id
查看网络
openstack network list
查看服务列表
openstack service list
查看计算节点的nova服务器是否down掉
openstack compute service list --service nova-compute
openstack compute service list
查询节点
nova hypervisor-list
nova hypervisor-show 82879049-e6bd-4d18-86a0-b52b8b02d199
查看从节点的运行进程
openstack-service status
重启
openstack-service restart
配额
nova hypervisor-stats
存储
cinder get-pools --detail
参考:
http://wjhsh.net/gshelldon-p-15439125.html
网友评论