<div dir="ltr"><div><div>Hello everyone, <br><br></div>I want to know how to attach cirrOS image for glance with openstack dashboard: I tried following but it didn't work for me:<br><br></div>Downloaded CirrOS test image from the link: <a href="https://launchpad.net/cirros/+download" target="_blank">https://launchpad.net/cirros/+download</a> and then followed commands from its ReadMe file:<br>
<br>
* get some build dependencies:<br> $ sudo apt-get -y install bison flex texinfo build-essential gettext ncurses-dev unzip bzr qemu-kvm cvs quilt<br><br> * bzr branch lp:cirros<br> * cd cirros<br><br> * download buildroot and setup environment<br>
$ br_ver="2012.05"<br> $ mkdir -p ../download<br> $ ln -snf ../download download<br> $ ( cd download && wget <a href="http://buildroot.uclibc.org/downloads/buildroot-$%7Bbr_ver%7D.tar.gz" target="_blank">http://buildroot.uclibc.org/downloads/buildroot-${br_ver}.tar.gz</a> )<br>
$ tar -xvf download/buildroot-${br_ver}.tar.gz<br> $ ln -snf buildroot-${br_ver} buildroot<br><br> * update ./bin/mkcabundle > src/etc/ssl/certs/ca-certificates.crt<br> $ ./bin/mkcabundle > src/etc/ssl/certs/ca-certificates.crt<br>
<br> * apply any local cirros patches to buildroot<br> ( cd buildroot && QUILT_PATCHES=$PWD/../patches-buildroot quilt push -a )<br><br> * download the buildroot sources<br> $ make ARCH=i386 br-source<br><br>
* Build buildroot for a given arch<br>
# ARCH should be set to 'i386', 'x86_64' or 'arm'<br> $ make ARCH=i386 OUT_D=$PWD/output/i386<br><br> This will do a full buildroot build, which will take a while. The output<br> that CirrOS is interested in is output/i386/rootfs.tar.<br>
That file is the full buildroot filesystem, and is used as input for<br> subsequent steps here.<br><br> * Download a kernel to use.<br> The kernel input to bundle must be in deb format. The ubuntu '-virtual'<br>
kernel is used as a starting point.<br><br> $ kver="3.2.0-60.91";<br> $ burl="<a href="https://launchpad.net/ubuntu/+archive/primary/+files/linux-image" target="_blank">https://launchpad.net/ubuntu/+archive/primary/+files/linux-image</a>"<br>
$ for arch in i386 x86_64 arm; do<br> xarch=$arch; flav="virtual"<br> [ "$arch" = "x86_64" ] && xarch="amd64";<br> [ "$arch" = "arm" ] && xarch="armel" && flav="omap"<br>
url="$burl-${kver%.*}-${flav}_${kver}_${xarch}.deb"<br> wget "$url" -O download/${url##*/}<br> ln -sf ${url##*/} download/kernel-${arch}.deb<br> done<br><br> * build disk images using bin/bundle<br>
$ sudo ./bin/bundle -v output/$ARCH/rootfs.tar download/kernel-$ARCH.deb output/$ARCH/images<br><br>. All commands worked fine untill the last one for building disk images using bin/bundle which is giving me following error: <br>
<br><div><div><div>preparing kernel overlay dpkg-deb: error: failed to read archive `download/kernel-.deb': No such file or directory<br>failed to extract kernel to /tmp/.bundle.gVsIsm/kernel<br><br></div><div>Please tell me what steps should I follow to attach a cirrOS with the openstack dashboard. Thank you!<br>
</div><div>-- <br><div><font color="#3366ff">Kind Regards,<br></font></div><div><font color="#3366ff"><i>Sadia</i><br></font></div><div><font color="#3366ff"></font> </div>
</div></div></div></div>