首页 > 代码库 > 制作CentOS fence-agents 镜像

制作CentOS fence-agents 镜像

1, Download centos7 iso file:

Centos7 ISO download: http://buildlogs.centos.org/rolling/7/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso

2, Install centos7 with virt-manager:

boot a vm named “centos7-fence-agents” with that “Centos-7-x86_64-Minimal-1511.iso”.

3, Install fence-agents on ths vm:

I followed the steps of “method of installing fence-agents on linux” in “fence_agents kvm实验”

4, Compress qcow2 file and upload to openstack:

# qemu-img convert –O qcow2 /var/lib/libvirt/image/centos7-fence-agents.qcow2 /path/new.qcow2
$ openstack image create --disk-format qcow2 --container-format bare --public --file /path/new.qcow2 centos7-fence-agents

5, Boot an openstack instance with “centos7-fence-agents” image :

技术分享

 

制作CentOS fence-agents 镜像