One, use Centos7 image on OpenStack to create a instance
1. Create Flavor
OpenStack Flavor Create--id 8--ram 1024x768--disk 8--vcpus 1 Manila.centos
2. Create instance using flavor 6
Second, modify the image
1. Install NFS
Yum Install Nfs-utils
2. Modify the NFS start-up service
Systemctl enable Rpcbindsystemctl enable Nfs-server Ln-s/usr/lib/systemd/system/nfs-server.service/usr/lib/systemd/ System/nfs-kernel-server.servicesystemctl daemon-reloadsystemctl Status Nfs-kernel-server
3、创建manila user
# Create useruser-m Add manilacat/etc/sudoers.d/m defaults:manila!requirettymanila all= (All) nopasswd:all# will/etc/manila/ Ssh/id_rsa.pub injected into the image of the Manila user Ssh-copy-id [Email protected]_ip
Third, close the instance, the instance into a snapshot upload to glance, the snapshot name needs to be consistent with the configuration in Manila share
This article is from the "Wuling Grassland" blog, please make sure to keep this source http://penguintux.blog.51cto.com/3021117/1882175
Manila image authoring based on Centos7