Ask Your Question
0

How can I disconnect image from instance?

asked 2015-10-16 10:11:02 -0500

KraT_by gravatar image

Hi all, i have installed instance from image with created volume. But now, during instance starting I'm still booting in image in OS installation. How can I detach image from instance and load only from volume?

edit retag flag offensive close merge delete

Comments

This is confusing. When you start an image, you don't install an OS, you just boot the image. On the other hand, your volume must be bootable if you want to boot from it. Can you document your steps and provide the output of some commands like nova show <instance name=""> and cinder list?

Bernd Bausch gravatar imageBernd Bausch ( 2015-10-16 14:49:09 -0500 )edit

Hi @KraT_by ... How did you end up resolving this? I have the exact same problem... not sure if I understand properly how it works... I am trying to boot off of a volume that I installed the OS on using the ISO image. Thank.s

tshayan gravatar imagetshayan ( 2016-02-04 17:32:52 -0500 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2015-10-19 04:03:20 -0500

KraT_by gravatar image

Image it's my .iso.

Volume was created during instance creating. OS was installed and now, i'm always booting into image with Centos installation, but it doesn't have options to quit from installation only. And now I just wanna detach image from instance.

[root@node-28 ~]# nova show VM_for_part2 +--------------------------------------+-----------------------------------------------------------+ | Property | Value | +--------------------------------------+-----------------------------------------------------------+ | OS-DCF:diskConfig | MANUAL | | OS-EXT-AZ:availability_zone | nova | | OS-EXT-SRV-ATTR:host | node-27.domain.tld | | OS-EXT-SRV-ATTR:hypervisor_hostname | node-27.domain.tld | | OS-EXT-SRV-ATTR:instance_name | instance-00000002 | | OS-EXT-STS:power_state | 4 | | OS-EXT-STS:task_state | - | | OS-EXT-STS:vm_state | stopped | | OS-SRV-USG:launched_at | 2015-10-16T10:49:51.000000 | | OS-SRV-USG:terminated_at | - | | accessIPv4 | | | accessIPv6 | | | config_drive | | | created | 2015-10-16T10:06:38Z | | flavor | my.flavor (0ca40449-a5df-47f5-ac7f-fb8fc341d8b3) | | hostId | 3849fcc2fe8299fd70cf3a156fb3d6c19e17fcb7e5e6f0d313b538f7 | | id | c2725bd4-840d-47c2-8b75-d2d997c94c28 | | image | Centos_for_install (d3450c08-2baa-4b0e-85e3-021d069b8ce4) | | key_name | - | | metadata | {} | | name | VM_for_part2 | | net04 network | 192.168.111.4 | | os-extended-volumes:volumes_attached | [{"id": "f7599f5b-5a76-4d2a-8f37-50efd33d8f1c"}] | | security_groups | default | | status | SHUTOFF | | tenant_id | 42d3ec19064f4f69b7f08d1f723535ab | | updated | 2015-10-16T13:07:43Z | | user_id | 33362eaf043a43669e3c7bc9a1bceaab | +--------------------------------------+-----------------------------------------------------------+

[root@node-28 ~]# cinder list +--------------------------------------+--------+------------------------------------------------+------+-------------+----------+--------------------------------------+ | ID | Status | Display Name | Size | Volume Type | Bootable | Attached to | +--------------------------------------+--------+------------------------------------------------+------+-------------+----------+--------------------------------------+ | f7599f5b-5a76-4d2a-8f37-50efd33d8f1c | in-use | c2725bd4-840d-47c2-8b75-d2d997c94c28-blank-vol | 10 | None | false | c2725bd4-840d-47c2-8b75-d2d997c94c28 | +--------------------------------------+--------+------------------------------------------------+------+-------------+----------+--------------------------------------+

edit flag offensive delete link more

Comments

Can you make the output more readable?

Bernd Bausch gravatar imageBernd Bausch ( 2015-10-20 06:58:14 -0500 )edit

If I understand you right, you boot from an ISO, which you use to install Centos on a volume. My suggestion is not to install a volume, but a normal ephemeral disk, then create a server snapshot with nova image-create. After that, boot from the snapshot.

Bernd Bausch gravatar imageBernd Bausch ( 2015-10-20 11:11:05 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-10-16 10:11:02 -0500

Seen: 776 times

Last updated: Oct 19 '15