This document discusses booting virtual machines from volumes in OpenStack. It provides an overview of the Cinder block storage system and describes the booting process. It then details three booting methods - booting an instance from an image and attaching a non-bootable volume, booting from a bootable volume, and attaching swap or ephemeral disks. Steps are provided for creating and attaching both bootable and non-bootable volumes.
Report
Share
Report
Share
1 of 11
More Related Content
Vm booting volume_v1.0
1. Booting VM from
volume
Date: 03/10/2014
Version 1.0
Edited by: VietStack
2. Content
› 1. Overview of Cinder
› 2. Booting process of a virtual machine
› 3. Booting methods
› 4. Demo
3. 1. Overview of cinder
› Block Storage allows block devices to be exposed, better
performance and integration with storage platform.
› OpenStack provides persistent block storage devices in
use with Openstack instances.
› Block storage system manages, controls the operation of
block storage devices in relationship with server. Block
storage volumes are integrated with Openstack.
7. 3. Booting methods
› Boot instance from an image and attach a non-bootable
volume.
› Boot instance from a bootable volume.
› Attach a swap or ephemeral disk to an instance.
8. Non-bootable volume
› 1. Create non-bootable volume by cinder.
› $ cinder create --display-name NAME SIZE
› 2. Boot instance.
› $ nova boot --flavor 1 --image IMAGE_ID --nic net-id=NET_ID --block-device
source=SOURCE,id=VOLUME_ID,dest=DEST,shutdown=preserve|remote
NAME
› 3. Attach non-bootable volume to instance.
› $ nova volume-attach SERVER_ID VOLUME_ID DEVICE(/dev/vda)
9. Bootable volume
› 1. Create bootable volume from image.
› $ cinder create SIZE --image-id IMAGE_ID
› 2. Attach volume to a server.
› $ nova volume-attach SERVER_ID VOLUME_ID DEVICE(e.g. /dev/vdb)
› 3. Create bootable volume from image launch from this volume.
› $ nova boot --flavor FLAVOR --block-device
source=SOURCE,id=ID,dest=DEST,size=SIZE,shutdown=PRESERVE|REMO
VE,bootindex=INDEX NAME
10. Attach Swap or
ephemeral disk
› When attaching swap or ephemeral disk, after instance is
terminated, they will be deleted.
› $ nova boot --flavor FLAVOR --image IMAGE_ID --swap
SWAP_SIZE --ephemeral size=SIZE NAME