Bundling Images

Asked by naangilsunder on 2010-12-08

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/

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.

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Josh Kearney
Solved:
2011-01-26
Last query:
2011-01-26
Last reply:
2010-12-16
Soren Hansen (soren) said : #1

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/

naangilsunder (naangilsunder) said : #2

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

Soren Hansen (soren) said : #3

Are you sure nova-scheduler is running?

2010/12/8 naangilsunder <email address hidden>:
> Question #137031 on OpenStack Compute (nova) changed:
> https://answers.launchpad.net/nova/+question/137031
>
>    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/

naangilsunder (naangilsunder) said : #4

hi Soren Hansen ,

   Yes My nova-scheduler is running

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

Soren Hansen (soren) said : #5

Ok.

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

Thanks.

naangilsunder (naangilsunder) said : #6

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 -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 -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 -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
2010-12-08 18:49:47+0530 [-] result = result.throwExceptionIntoGenerator(g)
2010-12-08 18:49:47+0530 [-] File "/usr/lib/python2.6/dist-packages/twisted/python/failure.py", line 338, in throwExceptionIntoGenerator
2010-12-08 18:49:47+0530 [-] return g.throw(self.type, self.value, self.tb)
2010-12-08 18:49:47+0530 [-] File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 349, in spawn
2010-12-08 18:49:47+0530 [-] yield self._create_image(instance, xml)
2010-12-08 18:49:47+0530 [-] File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 891, in _inlineCallbacks
2010-12-08 18:49:47+0530 [-] result = result.throwExceptionIntoGenerator(g)
2010-12-08 18:49:47+0530 [-] File "/usr/lib/python2.6/dist-packages/twisted/python/failure.py", line 338, in throwExceptionIntoGenerator
2010-12-08 18:49:47+0530 [-] return g.throw(self.type, self.value, self.tb)
2010-12-08 18:49:47+0530 [-] File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 486, in _create_image
2010-12-08 18:49:47+0530 [-] execute=execute)
2010-12-08 18:49:47+0530 [-] File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 893, in _inlineCallbacks
2010-12-08 18:49:47+0530 [-] result = g.send(result)
2010-12-08 18:49:47+0530 [-] File "/usr/lib/pymodules/python2.6/nova/compute/disk.py", line 136, in inject_data
2010-12-08 18:49:47+0530 [-] out, err = yield execute('sudo tune2fs -c 0 -i 0 %s' % mapped_device)
2010-12-08 18:49:47+0530 [-] ProcessExecutionError: Unexpected error while running command.
2010-12-08 18:49:47+0530 [-] Command: sudo tune2fs -c 0 -i 0 /dev/loop0
2010-12-08 18:49:47+0530 [-] Exit code: 1
2010-12-08 18:49:47+0530 [-] Stdout: 'tune2fs 1.41.12 (17-May-2010)\n'
2010-12-08 18:49:47+0530 [-] Stderr: "tune2fs: Bad magic number in super-block while trying to open /dev/loop0\nCouldn't find valid filesystem superblock.\n"

Soren Hansen (soren) said : #7

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/

naangilsunder (naangilsunder) said : #8

ok ,

root@cnnc:~# sudo file /var/lib/nova/instances/instance-2046047353/*

/var/lib/nova/instances/instance-2046047353/console.log: empty
/var/lib/nova/instances/instance-2046047353/disk-raw: Qemu Image, Format: Qcow , Version: 2
/var/lib/nova/instances/instance-2046047353/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-2046047353/libvirt.xml: ASCII HTML document text
/var/lib/nova/instances/instance-2046047353/ramdisk: gzip compressed data, from Unix, last modified: Wed Dec 8 08:59:11 2010

Soren Hansen (soren) said : #9

There's your problem.

The image you've uploaded is in qcow2 format. It needs to be in raw format.

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

naangilsunder (naangilsunder) said : #10

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.

naangilsunder (naangilsunder) said : #11

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 -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 -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 -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 09:50:51+0530 [-] yield self.driver.spawn(instance_ref)
2010-12-10 09:50:51+0530 [-] File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 891, in _inlineCallbacks
2010-12-10 09:50:51+0530 [-] result = result.throwExceptionIntoGenerator(g)
2010-12-10 09:50:51+0530 [-] File "/usr/lib/python2.6/dist-packages/twisted/python/failure.py", line 338, in throwExceptionIntoGenerator
2010-12-10 09:50:51+0530 [-] return g.throw(self.type, self.value, self.tb)
2010-12-10 09:50:51+0530 [-] File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 349, in spawn
2010-12-10 09:50:51+0530 [-] yield self._create_image(instance, xml)
2010-12-10 09:50:51+0530 [-] File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 891, in _inlineCallbacks
2010-12-10 09:50:51+0530 [-] result = result.throwExceptionIntoGenerator(g)
2010-12-10 09:50:51+0530 [-] File "/usr/lib/python2.6/dist-packages/twisted/python/failure.py", line 338, in throwExceptionIntoGenerator
2010-12-10 09:50:51+0530 [-] return g.throw(self.type, self.value, self.tb)
2010-12-10 09:50:51+0530 [-] File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 486, in _create_image
2010-12-10 09:50:51+0530 [-] execute=execute)
2010-12-10 09:50:51+0530 [-] File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 893, in _inlineCallbacks
2010-12-10 09:50:51+0530 [-] result = g.send(result)
2010-12-10 09:50:51+0530 [-] File "/usr/lib/pymodules/python2.6/nova/compute/disk.py", line 136, in inject_data
2010-12-10 09:50:51+0530 [-] out, err = yield execute('sudo tune2fs -c 0 -i 0 %s' % mapped_device)
2010-12-10 09:50:51+0530 [-] ProcessExecutionError: Unexpected error while running command.
2010-12-10 09:50:51+0530 [-] Command: sudo tune2fs -c 0 -i 0 /dev/loop0
2010-12-10 09:50:51+0530 [-] Exit code: 1
2010-12-10 09:50:51+0530 [-] Stdout: 'tune2fs 1.41.12 (17-May-2010)\n'
2010-12-10 09:50:51+0530 [-] Stderr: "tune2fs: Bad magic number in super-block while trying to open /dev/loop0\nCouldn't find valid filesystem superblock.\n"

Vish Ishaya (vishvananda) said : #12

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/+question/137031
>
> 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-9zsncf99/image -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 -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 -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 09:50:51+0530 [-] yield self.driver.spawn(instance_ref)
> 2010-12-10 09:50:51+0530 [-] File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 891, in _inlineCallbacks
> 2010-12-10 09:50:51+0530 [-] result = result.throwExceptionIntoGenerator(g)
> 2010-12-10 09:50:51+0530 [-] File "/usr/lib/python2.6/dist-packages/twisted/python/failure.py", line 338, in throwExceptionIntoGenerator
> 2010-12-10 09:50:51+0530 [-] return g.throw(self.type, self.value, self.tb)
> 2010-12-10 09:50:51+0530 [-] File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 349, in spawn
> 2010-12-10 09:50:51+0530 [-] yield self._create_image(instance, xml)
> 2010-12-10 09:50:51+0530 [-] File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 891, in _inlineCallbacks
> 2010-12-10 09:50:51+0530 [-] result = result.throwExceptionIntoGenerator(g)
> 2010-12-10 09:50:51+0530 [-] File "/usr/lib/python2.6/dist-packages/twisted/python/failure.py", line 338, in throwExceptionIntoGenerator
> 2010-12-10 09:50:51+0530 [-] return g.throw(self.type, self.value, self.tb)
> 2010-12-10 09:50:51+0530 [-] File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 486, in _create_image
> 2010-12-10 09:50:51+0530 [-] execute=execute)
> 2010-12-10 09:50:51+0530 [-] File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 893, in _inlineCallbacks
> 2010-12-10 09:50:51+0530 [-] result = g.send(result)
> 2010-12-10 09:50:51+0530 [-] File "/usr/lib/pymodules/python2.6/nova/compute/disk.py", line 136, in inject_data
> 2010-12-10 09:50:51+0530 [-] out, err = yield execute('sudo tune2fs -c 0 -i 0 %s' % mapped_device)
> 2010-12-10 09:50:51+0530 [-] ProcessExecutionError: Unexpected error while running command.
> 2010-12-10 09:50:51+0530 [-] Command: sudo tune2fs -c 0 -i 0 /dev/loop0
> 2010-12-10 09:50:51+0530 [-] Exit code: 1
> 2010-12-10 09:50:51+0530 [-] Stdout: 'tune2fs 1.41.12 (17-May-2010)\n'
> 2010-12-10 09:50:51+0530 [-] Stderr: "tune2fs: Bad magic number in super-block while trying to open /dev/loop0\nCouldn't find valid filesystem superblock.\n"
>
> --
> You received this question notification because you are a member of Nova
> Core, which is an answer contact for OpenStack Compute (nova).

naangilsunder (naangilsunder) said : #13

HI ,
    I need to Bundle a ubuntu image from scratch,previously i was following 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/
as u mentioned "The image needs to be just the main partition from your image (without a boot sector)" , can u please provide me the step for bundling image .

Best Josh Kearney (jk0) said : #14

Hi,

Once you've prepared your images, they can be bundled following the steps here: http://wiki.openstack.org/XenServerDevelopment#Instance_Management

You will want to note the euca-bundle* commands.

naangilsunder (naangilsunder) said : #15

Thanks Josh Kearney, that solved my question.