Manila image authoring based on Centos7

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.