Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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).