Bundling Images
Hi,
I Have configured Nova Environment in 2 Servers
1, nova-api + nova-network + nova-objectstore + nova-scheduler
2, nova-compute,
on Ubuntu 10.10, Hypervisor KVM
I bundled Ubuntu Images as per the below link
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
- Assignee:
- No assignee Edit question
- Solved by:
- Josh Kearney
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
How does running the instance fail?
Do you see anything useful in the console output (from
euca-get-
--
Soren Hansen
Ubuntu Developer http://
OpenStack Developer http://
Revision history for this message
|
#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-
i-pgae8h
2010-12-08 12:31:09.03835
pls help
Revision history for this message
|
#3 |
Are you sure nova-scheduler is running?
2010/12/8 naangilsunder <email address hidden>:
> Question #137031 on OpenStack Compute (nova) changed:
> https:/
>
> 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-
> 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://
OpenStack Developer http://
Revision history for this message
|
#4 |
hi Soren Hansen ,
Yes My nova-scheduler is running
root@cncc:~# service nova-scheduler status
* nova-scheduler is running
Revision history for this message
|
#5 |
Ok.
Can you please provide the full output of euca-run-instances as well
as euca-describe-
Thanks.
Revision history for this message
|
#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-
-------
root@cncc:~# euca-describe-
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/
-------
2010-12-08 18:44:46+0530 [-] (root): DEBUG instance 75: starting...
2010-12-08 18:44:46+0530 [-] (root): DEBUG instance instance-
2010-12-08 18:44:46+0530 [-] (root): DEBUG instance instance-
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/
2010-12-08 18:44:50+0530 [-] (root): DEBUG Running cmd: chmod 0777 /var/lib/
2010-12-08 18:44:50+0530 [-] (root): INFO instance instance-
2010-12-08 18:44:50+0530 [-] (root): DEBUG Running cmd: /usr/bin/curl --fail --silent http://
2010-12-08 18:49:44+0530 [-] (root): DEBUG Running cmd: /usr/bin/curl --fail --silent http://
2010-12-08 18:49:45+0530 [-] (root): DEBUG Running cmd: /usr/bin/curl --fail --silent http://
2010-12-08 18:49:46+0530 [-] (root): INFO instance instance-
2010-12-08 18:49:46+0530 [-] (root): INFO instance instance-
2010-12-08 18:49:46+0530 [-] (root): DEBUG Running cmd: sudo losetup -f --show /var/lib/
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-
2010-12-08 18:49:47+0530 [-] Traceback (most recent call last):
2010-12-08 18:49:47+0530 [-] File "/usr/lib/
2010-12-08 18:49:47+0530 [-] yield self.driver.
2010-12-08 18:49:47+0530 [-] File "/usr/lib/
2010-12-08 18:49:47+0530 [-] result = result.
2010-12-08 18:49:47+0530 [-] File "/usr/lib/
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/
2010-12-08 18:49:47+0530 [-] yield self._create_
2010-12-08 18:49:47+0530 [-] File "/usr/lib/
2010-12-08 18:49:47+0530 [-] result = result.
2010-12-08 18:49:47+0530 [-] File "/usr/lib/
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/
2010-12-08 18:49:47+0530 [-] execute=execute)
2010-12-08 18:49:47+0530 [-] File "/usr/lib/
2010-12-08 18:49:47+0530 [-] result = g.send(result)
2010-12-08 18:49:47+0530 [-] File "/usr/lib/
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 [-] ProcessExecutio
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\
Revision history for this message
|
#7 |
Please provide the output of:
sudo file /var/lib/
--
Soren Hansen
Ubuntu Developer http://
OpenStack Developer http://
Revision history for this message
|
#8 |
ok ,
root@cnnc:~# sudo file /var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
Revision history for this message
|
#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://
OpenStack Developer http://
Revision history for this message
|
#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.
Revision history for this message
|
#11 |
HI
created image with raw format still getting issues
Out Put of
cnnc@cnnc:~$ sudo file /var/lib/
-------
/var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/log/
-------
2010-12-10 09:35:30+0530 [-] (root): DEBUG instance 79: starting...
2010-12-10 09:35:30+0530 [-] (root): DEBUG instance instance-
2010-12-10 09:35:30+0530 [-] (root): DEBUG instance instance-
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/
2010-12-10 09:35:30+0530 [-] (root): DEBUG Running cmd: chmod 0777 /var/lib/
2010-12-10 09:35:30+0530 [-] (root): INFO instance instance-
2010-12-10 09:35:30+0530 [-] (root): DEBUG Running cmd: /usr/bin/curl --fail --silent http://
2010-12-10 09:50:48+0530 [-] (root): DEBUG Running cmd: /usr/bin/curl --fail --silent http://
2010-12-10 09:50:49+0530 [-] (root): DEBUG Running cmd: /usr/bin/curl --fail --silent http://
2010-12-10 09:50:50+0530 [-] (root): INFO instance instance-
2010-12-10 09:50:50+0530 [-] (root): INFO instance instance-
2010-12-10 09:50:50+0530 [-] (root): DEBUG Running cmd: sudo losetup -f --show /var/lib/
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-
2010-12-10 09:50:51+0530 [-] Traceback (most recent call last):
2010-12-10 09:50:51+0530 [-] File "/usr/lib/
2010-12-10 09:50:51+0530 [-] yield self.driver.
2010-12-10 09:50:51+0530 [-] File "/usr/lib/
2010-12-10 09:50:51+0530 [-] result = result.
2010-12-10 09:50:51+0530 [-] File "/usr/lib/
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/
2010-12-10 09:50:51+0530 [-] yield self._create_
2010-12-10 09:50:51+0530 [-] File "/usr/lib/
2010-12-10 09:50:51+0530 [-] result = result.
2010-12-10 09:50:51+0530 [-] File "/usr/lib/
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/
2010-12-10 09:50:51+0530 [-] execute=execute)
2010-12-10 09:50:51+0530 [-] File "/usr/lib/
2010-12-10 09:50:51+0530 [-] result = g.send(result)
2010-12-10 09:50:51+0530 [-] File "/usr/lib/
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 [-] ProcessExecutio
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\
Revision history for this message
|
#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:/
>
> 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/
> -------
> /var/lib/
> /var/lib/
> /var/lib/
> /var/lib/
> /var/lib/
>
>
> /var/log/
> -------
> 2010-12-10 09:35:30+0530 [-] (root): DEBUG instance 79: starting...
> 2010-12-10 09:35:30+0530 [-] (root): DEBUG instance instance-
> 2010-12-10 09:35:30+0530 [-] (root): DEBUG instance instance-
> 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/
> 2010-12-10 09:35:30+0530 [-] (root): DEBUG Running cmd: chmod 0777 /var/lib/
> 2010-12-10 09:35:30+0530 [-] (root): INFO instance instance-
> 2010-12-10 09:35:30+0530 [-] (root): DEBUG Running cmd: /usr/bin/curl --fail --silent http://
> 2010-12-10 09:50:48+0530 [-] (root): DEBUG Running cmd: /usr/bin/curl --fail --silent http://
> 2010-12-10 09:50:49+0530 [-] (root): DEBUG Running cmd: /usr/bin/curl --fail --silent http://
> 2010-12-10 09:50:50+0530 [-] (root): INFO instance instance-
> 2010-12-10 09:50:50+0530 [-] (root): INFO instance instance-
> 2010-12-10 09:50:50+0530 [-] (root): DEBUG Running cmd: sudo losetup -f --show /var/lib/
> 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-
> 2010-12-10 09:50:51+0530 [-] Traceback (most recent call last):
> 2010-12-10 09:50:51+0530 [-] File "/usr/lib/
> 2010-12-10 09:50:51+0530 [-] yield self.driver.
> 2010-12-10 09:50:51+0530 [-] File "/usr/lib/
> 2010-12-10 09:50:51+0530 [-] result = result.
> 2010-12-10 09:50:51+0530 [-] File "/usr/lib/
> 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/
> 2010-12-10 09:50:51+0530 [-] yield self._create_
> 2010-12-10 09:50:51+0530 [-] File "/usr/lib/
> 2010-12-10 09:50:51+0530 [-] result = result.
> 2010-12-10 09:50:51+0530 [-] File "/usr/lib/
> 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/
> 2010-12-10 09:50:51+0530 [-] execute=execute)
> 2010-12-10 09:50:51+0530 [-] File "/usr/lib/
> 2010-12-10 09:50:51+0530 [-] result = g.send(result)
> 2010-12-10 09:50:51+0530 [-] File "/usr/lib/
> 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 [-] ProcessExecutio
> 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\
>
> --
> You received this question notification because you are a member of Nova
> Core, which is an answer contact for OpenStack Compute (nova).
Revision history for this message
|
#13 |
HI ,
I need to Bundle a ubuntu image from scratch,previously i was following the below link
http://
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 .
Revision history for this message
|
#14 |
Hi,
Once you've prepared your images, they can be bundled following the steps here: http://
You will want to note the euca-bundle* commands.
Revision history for this message
|
#15 |
Thanks Josh Kearney, that solved my question.