Ask Your Question
0

Bundling Images

asked 2010-12-08 09:17:54 -0500

naangilsunder gravatar image

Hi, I Have configured Nova Environment in 2 Servers 1, nova-api + nova-network + nova-objectstore + nova-scheduler 2, nova-compute,nova-volume on Ubuntu 10.10, Hypervisor KVM

I bundled Ubuntu Images as per the below link

http://cssoss.wordpress.com/2010/05/10/eucalyptus-beginner%E2%80%99s-guide-%E2%80%93-uec-edition-chapter-4-%E2%80%93-image%C2%A0management/ (http://cssoss.wordpress.com/2010/05/1...)

My Bundling,image registration process went successfully. but i am not able to run the instance.

is this the right practice to bundle image? is there any other method for bundling the images.

edit retag flag offensive close merge delete

15 answers

Sort by » oldest newest most voted
0

answered 2010-12-10 06:57:05 -0500

vishvananda gravatar image

nova doesn't support whole disk booting (yet). The image needs to be just the main partition from your image (without a boot sector). If you are wanting to boot a whole disk image, you will need to wait for the lp:~dendrobates/nova/raw-disk-images to get merged.

On Dec 9, 2010, at 8:39 PM, naangilsunder wrote:

Question #137031 on OpenStack Compute (nova) changed: https://answers.launchpad.net/nova/+q...

naangilsunder gave more information on the question: HI created image with raw format still getting issues

Out Put of

cnnc@cnnc:~$ sudo file /var/lib/nova/instances/instance-1274832394/*

/var/lib/nova/instances/instance-1274832394/console.log: empty /var/lib/nova/instances/instance-1274832394/disk-raw: x86 boot sector; partition 1: ID=0x83, active, starthead 32, startsector 2048, 19980288 sectors; partition 2: ID=0x5, starthead 254, startsector 19984382, 985090 sectors, code offset 0x63 /var/lib/nova/instances/instance-1274832394/kernel: Linux kernel x86 boot executable bzImage, version 2.6.32-21-generic (buildd@rothe, RO-rootFS, root_dev 0x801, swap_dev 0x3, Normal VGA /var/lib/nova/instances/instance-1274832394/libvirt.xml: ASCII HTML document text /var/lib/nova/instances/instance-1274832394/ramdisk: gzip compressed data, from Unix, last modified: Wed Dec 8 21:07:34 2010

/var/log/nova/nova-compute.log

2010-12-10 09:35:30+0530 [-] (root): DEBUG instance 79: starting... 2010-12-10 09:35:30+0530 [-] (root): DEBUG instance instance-1274832394: starting toXML method 2010-12-10 09:35:30+0530 [-] (root): DEBUG instance instance-1274832394: finished toXML method 2010-12-10 09:35:30+0530 [-] (root): INFO rule.protocol: 'icmp', rule.from_port: -1L, rule.to_port: -1L 2010-12-10 09:35:30+0530 [-] (root): DEBUG Running cmd: mkdir -p /var/lib/nova/instances/instance-1274832394/ 2010-12-10 09:35:30+0530 [-] (root): DEBUG Running cmd: chmod 0777 /var/lib/nova/instances/instance-1274832394/ 2010-12-10 09:35:30+0530 [-] (root): INFO instance instance-1274832394: Creating image 2010-12-10 09:35:30+0530 [-] (root): DEBUG Running cmd: /usr/bin/curl --fail --silent http://192.168.1.2:3333/_images/ami-9... -H Date: Fri, 10 Dec 2010 04:05:30 GMT -H Authorization: AWS 5198208d-1ce4-4542-982c-f3edd71da074:Federation:/hjcIfJkVJW0Wkhar6pgevVaCm4= -o /var/lib/nova/instances/instance-1274832394/disk-raw 2010-12-10 09:50:48+0530 [-] (root): DEBUG Running cmd: /usr/bin/curl --fail --silent http://192.168.1.2:3333/_images/ami-v... -H Date: Fri, 10 Dec 2010 04:20:48 GMT -H Authorization: AWS 5198208d-1ce4-4542-982c-f3edd71da074:Federation:i90sgz/H7LgxTDSZck7ifWLZJLs= -o /var/lib/nova/instances/instance-1274832394/kernel 2010-12-10 09:50:49+0530 [-] (root): DEBUG Running cmd: /usr/bin/curl --fail --silent http://192.168.1.2:3333/_images/ami-x... -H Date: Fri, 10 Dec 2010 04:20:49 GMT -H Authorization: AWS 5198208d-1ce4-4542-982c-f3edd71da074:Federation:YsqQoiHpXx9tbD1R5deeqnIsW+Q= -o /var/lib/nova/instances/instance-1274832394/ramdisk 2010-12-10 09:50:50+0530 [-] (root): INFO instance instance-1274832394: injecting key into image ami-9zsncf99 2010-12-10 09:50:50+0530 [-] (root): INFO instance instance-1274832394: injecting net into image ami-9zsncf99 2010-12-10 09:50:50+0530 [-] (root): DEBUG Running cmd: sudo losetup -f --show /var/lib/nova/instances/instance-1274832394/disk-raw 2010-12-10 09:50:51+0530 [-] (root): DEBUG Running cmd: sudo tune2fs -c 0 -i 0 /dev/loop0 2010-12-10 09:50:51+0530 ...

(more)
edit flag offensive delete link more
0

answered 2010-12-08 14:06:55 -0500

naangilsunder gravatar image

Hi Soren Hansen ,

Thanks a lot ..... really so happy with ur quick responses.

I will try creating the image with raw format and let u know .

Thanks again.

edit flag offensive delete link more
0

answered 2010-12-10 04:39:35 -0500

naangilsunder gravatar image

HI created image with raw format still getting issues

Out Put of

cnnc@cnnc:~$ sudo file /var/lib/nova/instances/instance-1274832394/*

/var/lib/nova/instances/instance-1274832394/console.log: empty /var/lib/nova/instances/instance-1274832394/disk-raw: x86 boot sector; partition 1: ID=0x83, active, starthead 32, startsector 2048, 19980288 sectors; partition 2: ID=0x5, starthead 254, startsector 19984382, 985090 sectors, code offset 0x63 /var/lib/nova/instances/instance-1274832394/kernel: Linux kernel x86 boot executable bzImage, version 2.6.32-21-generic (buildd@rothe, RO-rootFS, root_dev 0x801, swap_dev 0x3, Normal VGA /var/lib/nova/instances/instance-1274832394/libvirt.xml: ASCII HTML document text /var/lib/nova/instances/instance-1274832394/ramdisk: gzip compressed data, from Unix, last modified: Wed Dec 8 21:07:34 2010

/var/log/nova/nova-compute.log

2010-12-10 09:35:30+0530 [-] (root): DEBUG instance 79: starting... 2010-12-10 09:35:30+0530 [-] (root): DEBUG instance instance-1274832394: starting toXML method 2010-12-10 09:35:30+0530 [-] (root): DEBUG instance instance-1274832394: finished toXML method 2010-12-10 09:35:30+0530 [-] (root): INFO rule.protocol: 'icmp', rule.from_port: -1L, rule.to_port: -1L 2010-12-10 09:35:30+0530 [-] (root): DEBUG Running cmd: mkdir -p /var/lib/nova/instances/instance-1274832394/ 2010-12-10 09:35:30+0530 [-] (root): DEBUG Running cmd: chmod 0777 /var/lib/nova/instances/instance-1274832394/ 2010-12-10 09:35:30+0530 [-] (root): INFO instance instance-1274832394: Creating image 2010-12-10 09:35:30+0530 [-] (root): DEBUG Running cmd: /usr/bin/curl --fail --silent http://192.168.1.2:3333/_images/ami-9zsncf99/image (http://192.168.1.2:3333/_images/ami-9...) -H Date: Fri, 10 Dec 2010 04:05:30 GMT -H Authorization: AWS 5198208d-1ce4-4542-982c-f3edd71da074:Federation:/hjcIfJkVJW0Wkhar6pgevVaCm4= -o /var/lib/nova/instances/instance-1274832394/disk-raw 2010-12-10 09:50:48+0530 [-] (root): DEBUG Running cmd: /usr/bin/curl --fail --silent http://192.168.1.2:3333/_images/ami-vs7xd7je/image (http://192.168.1.2:3333/_images/ami-v...) -H Date: Fri, 10 Dec 2010 04:20:48 GMT -H Authorization: AWS 5198208d-1ce4-4542-982c-f3edd71da074:Federation:i90sgz/H7LgxTDSZck7ifWLZJLs= -o /var/lib/nova/instances/instance-1274832394/kernel 2010-12-10 09:50:49+0530 [-] (root): DEBUG Running cmd: /usr/bin/curl --fail --silent http://192.168.1.2:3333/_images/ami-xy20zx6h/image (http://192.168.1.2:3333/_images/ami-x...) -H Date: Fri, 10 Dec 2010 04:20:49 GMT -H Authorization: AWS 5198208d-1ce4-4542-982c-f3edd71da074:Federation:YsqQoiHpXx9tbD1R5deeqnIsW+Q= -o /var/lib/nova/instances/instance-1274832394/ramdisk 2010-12-10 09:50:50+0530 [-] (root): INFO instance instance-1274832394: injecting key into image ami-9zsncf99 2010-12-10 09:50:50+0530 [-] (root): INFO instance instance-1274832394: injecting net into image ami-9zsncf99 2010-12-10 09:50:50+0530 [-] (root): DEBUG Running cmd: sudo losetup -f --show /var/lib/nova/instances/instance-1274832394/disk-raw 2010-12-10 09:50:51+0530 [-] (root): DEBUG Running cmd: sudo tune2fs -c 0 -i 0 /dev/loop0 2010-12-10 09:50:51+0530 [-] (root): DEBUG Running cmd: sudo losetup -d /dev/loop0 2010-12-10 09:50:51+0530 [-] (root): ERROR instance instance-1274832394: Failed to spawn 2010-12-10 09:50:51+0530 [-] Traceback (most recent call last): 2010-12-10 09:50:51+0530 [-] File "/usr/lib/pymodules/python2.6/nova/compute/manager.py", line 108, in run_instance 2010-12-10 ... (more)

edit flag offensive delete link more
0

answered 2010-12-08 12:43:04 -0500

naangilsunder gravatar image

hi , thanks for your response

when i try to run the instance, that i bundled instance state is pending.

and the console output is

root@cncc:~# euca-get-console-output i-pgae8h i-pgae8h 2010-12-08 12:31:09.03835

pls help

edit flag offensive delete link more
0

answered 2010-12-08 11:23:35 -0500

soren gravatar image

How does running the instance fail?

Do you see anything useful in the console output (from euca-get-console-output, for instance)?


Soren Hansen Ubuntu Developer    http://www.ubuntu.com/ OpenStack Developer http://www.openstack.org/

edit flag offensive delete link more
0

answered 2010-12-08 13:26:54 -0500

soren gravatar image

Please provide the output of:

sudo file /var/lib/nova/instances/instance-2046047353/*


Soren Hansen Ubuntu Developer    http://www.ubuntu.com/ OpenStack Developer http://www.openstack.org/

edit flag offensive delete link more
0

answered 2010-12-08 12:48:28 -0500

soren gravatar image

Are you sure nova-scheduler is running?

2010/12/8 naangilsunder question137031@answers.launchpad.net:

Question #137031 on OpenStack Compute (nova) changed: https://answers.launchpad.net/nova/+question/137031 (https://answers.launchpad.net/nova/+q...)

   Status: Answered => Open

naangilsunder is still having a problem: hi ,   thanks for your response

  when i try to  run the  instance,  that i  bundled instance state is pending.

and the console output is

root@cncc:~# euca-get-console-output i-pgae8h i-pgae8h 2010-12-08 12:31:09.03835

pls help


You received this question notification because you are a member of Nova Core, which is an answer contact for OpenStack Compute (nova).


Soren Hansen Ubuntu Developer    http://www.ubuntu.com/ OpenStack Developer http://www.openstack.org/

edit flag offensive delete link more
0

answered 2010-12-08 13:02:33 -0500

naangilsunder gravatar image

hi Soren Hansen ,

Yes My nova-scheduler is running

root@cncc:~# service nova-scheduler status * nova-scheduler is running

edit flag offensive delete link more
0

answered 2010-12-08 13:05:52 -0500

soren gravatar image

Ok.

Can you please provide the full output of euca-run-instances as well as euca-describe-instances?

Thanks.

edit flag offensive delete link more
0

answered 2010-12-08 13:22:07 -0500

naangilsunder gravatar image

ok

euca-run-instances

root@cncc:~# euca-run-instances ami-go2j7row -k mykey

RESERVATION r-azq71hlq Federation INSTANCE i-xu5w8p ami-go2j7row 10.0.0.8 10.0.0.8 scheduling mykey (Federation, None) 0m1.small 2010-12-08 13:14:42

RESERVATION r-azq71hlq Federation INSTANCE i-xu5w8p ami-go2j7row 10.0.0.8 10.0.0.8 launching mykey (Federation, cnnc) 0m1.small 2010-12-08 13:14:42

euca-describe-instances

root@cncc:~# euca-describe-instances RESERVATION r-azq71hlq Federation INSTANCE i-xu5w8p ami-go2j7row 10.0.0.8 10.0.0.8 pending mykey (Federation, cnnc) 0 m1.small 2010-12-08 13:14:42

The output of /var/log/nova/nova-compute.log

2010-12-08 18:44:46+0530 [-] (root): DEBUG instance 75: starting... 2010-12-08 18:44:46+0530 [-] (root): DEBUG instance instance-2046047353: starting toXML method 2010-12-08 18:44:46+0530 [-] (root): DEBUG instance instance-2046047353: finished toXML method 2010-12-08 18:44:50+0530 [-] (root): INFO rule.protocol: 'icmp', rule.from_port: -1L, rule.to_port: -1L 2010-12-08 18:44:50+0530 [-] (root): DEBUG Running cmd: mkdir -p /var/lib/nova/instances/instance-2046047353/ 2010-12-08 18:44:50+0530 [-] (root): DEBUG Running cmd: chmod 0777 /var/lib/nova/instances/instance-2046047353/ 2010-12-08 18:44:50+0530 [-] (root): INFO instance instance-2046047353: Creating image 2010-12-08 18:44:50+0530 [-] (root): DEBUG Running cmd: /usr/bin/curl --fail --silent http://192.168.1.2:3333/_images/ami-go2j7row/image (http://192.168.1.2:3333/_images/ami-g...) -H Date: Wed, 08 Dec 2010 13:14:50 GMT -H Authorization: AWS 5198208d-1ce4-4542-982c-f3edd71da074:Federation:n+B83yoAjNAmqKQqAkj5BGF2QcY= -o /var/lib/nova/instances/instance-2046047353/disk-raw 2010-12-08 18:49:44+0530 [-] (root): DEBUG Running cmd: /usr/bin/curl --fail --silent http://192.168.1.2:3333/_images/ami-d2lilpdj/image (http://192.168.1.2:3333/_images/ami-d...) -H Date: Wed, 08 Dec 2010 13:19:44 GMT -H Authorization: AWS 5198208d-1ce4-4542-982c-f3edd71da074:Federation:lmiND4sOl/4eungBlG/Jwk3G/kc= -o /var/lib/nova/instances/instance-2046047353/kernel 2010-12-08 18:49:45+0530 [-] (root): DEBUG Running cmd: /usr/bin/curl --fail --silent http://192.168.1.2:3333/_images/ami-pz1klmwb/image (http://192.168.1.2:3333/_images/ami-p...) -H Date: Wed, 08 Dec 2010 13:19:45 GMT -H Authorization: AWS 5198208d-1ce4-4542-982c-f3edd71da074:Federation:o8R3YNMVj2Vw7FPBWomRrKY7CLA= -o /var/lib/nova/instances/instance-2046047353/ramdisk 2010-12-08 18:49:46+0530 [-] (root): INFO instance instance-2046047353: injecting key into image ami-go2j7row 2010-12-08 18:49:46+0530 [-] (root): INFO instance instance-2046047353: injecting net into image ami-go2j7row 2010-12-08 18:49:46+0530 [-] (root): DEBUG Running cmd: sudo losetup -f --show /var/lib/nova/instances/instance-2046047353/disk-raw 2010-12-08 18:49:47+0530 [-] (root): DEBUG Running cmd: sudo tune2fs -c 0 -i 0 /dev/loop0 2010-12-08 18:49:47+0530 [-] (root): DEBUG Running cmd: sudo losetup -d /dev/loop0 2010-12-08 18:49:47+0530 [-] (root): ERROR instance instance-2046047353: Failed to spawn 2010-12-08 18:49:47+0530 [-] Traceback (most recent call last): 2010-12-08 18:49:47+0530 [-] File "/usr/lib/pymodules/python2.6/nova/compute/manager.py", line 108, in run_instance 2010-12-08 18:49:47+0530 [-] yield self.driver.spawn(instance_ref) 2010-12-08 18:49:47+0530 [-] File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 891, in _inlineCallbacks ... (more)

edit flag offensive delete link more

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: 2010-12-08 09:17:54 -0500

Seen: 275 times

Last updated: Jan 26 '11