Create a snapshot of the instance

  1. Shut down the source VM before you take the snapshot to ensure that all data is flushed to disk. If necessary, list the instances to view the instance name:

    $ nova list
    +--------------------------------------+------------+--------+------------------------------+
    | ID                                   | Name       | Status | Networks                     |
    +--------------------------------------+------------+--------+------------------------------+
    | c41f3074-c82a-4837-8673-fa7e9fea7e11 | myInstance | ACTIVE | private=10.0.0.3             |
    +--------------------------------------+------------+--------+------------------------------+
    
  2. Use the nova stop command to shut down the instance:

    $ nova stop myInstance
    
  3. Use the nova list command to confirm that the instance shows a SHUTOFF status:

    $ nova list
    +--------------------------------------+------------+---------+------------------+
    | ID                                   | Name       | Status  | Networks         |
    +--------------------------------------+------------+---------+------------------+
    | c41f3074-c82a-4837-8673-fa7e9fea7e11 | myInstance | SHUTOFF | private=10.0.0.3 |
    +--------------------------------------+------------+---------+------------------+
    
  4. Use the nova image-create command to take a snapshot:

    $ nova image-create --poll myInstance myInstanceSnapshot
    Instance snapshotting... 50% complete
    
  5. Use the nova image-list command to check the status until the status is ACTIVE:

    $ nova image-list
    +--------------------------------------+---------------------------------+--------+--------+
    | ID                                   | Name                            | Status | Server |
    +--------------------------------------+---------------------------------+--------+--------+
    | 657ebb01-6fae-47dc-986a-e49c4dd8c433 | cirros-0.3.2-x86_64-uec         | ACTIVE |        |
    | 72074c6d-bf52-4a56-a61c-02a17bf3819b | cirros-0.3.2-x86_64-uec-kernel  | ACTIVE |        |
    | 3c5e5f06-637b-413e-90f6-ca7ed015ec9e | cirros-0.3.2-x86_64-uec-ramdisk | ACTIVE |        |
    | f30b204e-1ce6-40e7-b8d9-b353d4d84e7d | myInstanceSnapshot              | ACTIVE |        |
    +--------------------------------------+---------------------------------+--------+--------+
    


신고

'Open Sources > Openstack' 카테고리의 다른 글

Openstack Instance를 Image로 만드는 방법  (0) 2016.08.18
How to Install openstack - openstack 설치  (0) 2016.07.15

Definition

OpenStack is a free and open-source software platform for cloud computing, mostly deployed as an infrastructure-as-a-service (IaaS). The software platform consists of interrelated components that control hardware pools of processing, storage, and networking resources throughout a data center. Users either manage it through a web-based dashboard, through command-line tools, or through a RESTful API. OpenStack.org released it under the terms of the Apache License.

Installation - Quick start on single node

Precondition

OS Hardware

Machine with at least 4GB RAM, preferably 6GB RAM, processors with hardware virtualization extensions, and at least one network adapter.

OS Software

x86_64 is currently the only supported architecture.

Network

sudo systemctl disable firewalld sudo systemctl stop firewalld sudo systemctl disable NetworkManager sudo systemctl stop NetworkManager sudo systemctl enable network  sudo systemctl start network 

Installation

Software repositories

sudo yum install -y centos-release-openstack-mitaka

sudo yum update -y 

Install Packstack Installer

sudo yum install -y openstack-packstack

Run Packstack to install OpenStack

packstack --alinenone 


Output

Additional information: 

* A new answerfile was created in: /home/stack/packstack-answers-20160715-100701.txt

 * Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.

 * File /root/keystonerc_admin has been created on OpenStack client host 10.211.55.12. To use the command line tools you need to source the file.

 * Copy of keystonerc_admin file has been created for non-root user in /home/stack.

 * To access the OpenStack Dashboard browse to http://10.211.55.12/dashboard .

Please, find your login credentials stored in the keystonerc_admin in your home directory.

 * To use Nagios, browse to http://10.211.55.12/nagios username: nagiosadmin, password: ad3f2eb1bfaa4883

 * Because of the kernel update the host 10.211.55.12 requires reboot.

 * The installation log file is available at: /var/tmp/packstack/20160715-100701-7W9Jdj/openstack-setup.log

 * The generated manifests are available at: /var/tmp/packstack/20160715-100701-7W9Jdj/manifests 


Dashboard

URL : http://$YOURIP/dashboard

Admin information : keystonerc_admin file에서 확인

Reference


신고

'Open Sources > Openstack' 카테고리의 다른 글

Openstack Instance를 Image로 만드는 방법  (0) 2016.08.18
How to Install openstack - openstack 설치  (0) 2016.07.15

+ Recent posts

티스토리 툴바