admin管理员组

文章数量:1130349

iso镜像转化为qcow2

将外部ISO镜像转为openstack可识别的镜像qcow2
1.创建磁盘

qemu-img create -f qcow2 /opt/uniontechos-server-20.qcow2 30G

2.安装系统

virt-install --name uniontechos-V20 --ram 2048 --cdrom=/opt/uniontechos-server-20-1050a-arm64.iso --disk /opt/uniontechos-server-20.qcow2,format=qcow2 --graphics vnc,listen=0.0.0.0 --noautoconsole --os-type=linux --check all=off --network bridge=br-flat

3.查询vnc端口

virsh vncdisplay uniontechos-V20

4.viewer连接vnc端口安装系统。
进入窗口安装系统

5.将该qcow2镜像上传到glance。

iso镜像转化为qcow2

将外部ISO镜像转为openstack可识别的镜像qcow2
1.创建磁盘

qemu-img create -f qcow2 /opt/uniontechos-server-20.qcow2 30G

2.安装系统

virt-install --name uniontechos-V20 --ram 2048 --cdrom=/opt/uniontechos-server-20-1050a-arm64.iso --disk /opt/uniontechos-server-20.qcow2,format=qcow2 --graphics vnc,listen=0.0.0.0 --noautoconsole --os-type=linux --check all=off --network bridge=br-flat

3.查询vnc端口

virsh vncdisplay uniontechos-V20

4.viewer连接vnc端口安装系统。
进入窗口安装系统

5.将该qcow2镜像上传到glance。

本文标签: 镜像转化为ISO