Ask Your Question
0

boot failed from centos7 iso for icehouse [closed]

asked 2015-02-12 18:49:59 -0500

Eric Xie gravatar image

updated 2015-02-13 01:03:50 -0500

Hi stackers.

I got the centos7_minimal.iso from http://mirrors.163.com/centos/7.0.1406/isos/x86_64/CentOS-7.0-1406-x86_64-Minimal.iso.

nova version: 2014.1

use flavor below:

# nova flavor-list 
+--------------------------------------+----------------+-----------+------+-----------+------+-------+-------------+-----------+
| ID                                   | Name           | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+--------------------------------------+----------------+-----------+------+-----------+------+-------+-------------+-----------+
| c9425a87-2453-4af5-9011-7eb2bd6f3653 | flv-iso-40-eph | 2048      | 10   | 40        |      | 2     | 1.0         | True      |
+--------------------------------------+----------------+-----------+------+-----------+------+-------+-------------+-----------+
# nova image-list
+--------------------------------------+------------------------------+--------+--------+
| ID                                   | Name                         | Status | Server |
+--------------------------------------+------------------------------+--------+--------+
| 8db37b05-a822-42b9-a87b-9d1eb9e88a79 | centos7-mini-iso             | ACTIVE |        |

Launch one instance with flavor and image above.

#nova boot --flavor c9425a87-2453-4af5-9011-7eb2bd6f3653 --image centos7-mini-iso instance-boo-from-iso

instance was launched successfully. But when I install cent os with console, got:

warnning:/dev/root does not exist.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Eric Xie
close date 2016-09-27 19:28:51.617968

Comments

How exactly are you launching the instance?

larsks gravatar imagelarsks ( 2015-02-12 21:17:22 -0500 )edit

Please update your question with nova image-list. To launch an instance we need to use image files.

1-Cloud gravatar image1-Cloud ( 2015-02-13 00:07:07 -0500 )edit

Hi larsks and 1-Cloud, thanks for reply. Already update the question.

Eric Xie gravatar imageEric Xie ( 2015-02-13 01:05:30 -0500 )edit

No.of peoples facing the same issue. i wll try to trace out the issue and i will try to give you a correct solution.

1-Cloud gravatar image1-Cloud ( 2015-02-13 03:46:40 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-02-13 10:47:53 -0500

larsks gravatar image

It's still not entirely clear to me where you are seeing this failure. Here are the steps I've used to successfully boot an instance using the CentOS 7 minimal ISO:

  1. Download the image:

    wget http://mirrors.163.com/centos/7.0.1406/isos/x86_64/CentOS-7.0-1406-x86_64-Minimal.iso
    
  2. Upload the image to glance:

    glance image-create --file CentOS-7.0-1406-x86_64-Minimal.iso \
      --name centos-7-x86_64_minimal_iso \
      --container-format bare --disk-format iso --is-public true
    
  3. Boot a Nova instance from this image:

    nova boot --image centos-7-x86_64_minimal_iso --flavor m1.small centos
    

This boots me into the CentOS installer, but I am unable to install at this point because the instance has no associated disk image. However, if I create a volume:

$ cinder create --display-name centos-7-minimal 10

And then attach that to the instance when I boot:

$ nova boot --flavor m1.small --image centos-7-x86_64_minimal_iso  \
  --block-device source=volume,id=103f7d3d-f453-45ea-9798-84f25e4cf17a,dest=volume,bus=virtio \
  centos

Then I can (a) boot into the installer and (b) install CentOS onto the attached volume. Once the installation is finished, I can delete the instance and then boot directly from the volume:

$ cinder set-bootable centos-7-minimal true
$ cinder list
+--------------------------------------+-----------+------------------+...
|                  ID                  |   Status  |   Display Name   |...
+--------------------------------------+-----------+------------------+...
| 103f7d3d-f453-45ea-9798-84f25e4cf17a | available | centos-7-minimal |...
+--------------------------------------+-----------+------------------+...
$ nova boot --flavor m1.small \
  --boot-volume 103f7d3d-f453-45ea-9798-84f25e4cf17a centos

And the instance boots up to a login: prompt (and I can log in using the password I selected in the installer).

I could transform this volume into a Glance image using the cinder upload-to-image command.

edit flag offensive delete link more

Comments

Thanks. I will try it later.

Eric Xie gravatar imageEric Xie ( 2015-02-26 17:02:06 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2015-02-12 18:49:59 -0500

Seen: 386 times

Last updated: Feb 13 '15