A Easy way to build UEC-style tarball from exist instance
There's a easy way to build UEC tarball for me
Assume the image based on Ubuntu Maverick Server b64 and named as , name with amd64 will help uec-publish-tarball to guess the image architecture
Done....it's time to upload image into Glance with uec-publish-tarball ILoveUbuntu-amd64.tar.gz
Troubleshooting
cloud-init-nonet waiting 60 seconds for a network device.
remove the network device before bundle image in /etc/udev/
From an exist Ubuntu instance......
!!Still in test!!
Very smooth in Maverick , but failed with Natty server b64
!!Still in test!!
Very smooth in Maverick , but failed with Natty server b64
===In instance==
1. source novarc to import environment variable
2. bundle a virtual disk, don't specify the kernel id
#euca-bundle-vol -d destination_of_img -p name_of_image -s img_size
==Copy the imag to anywhere you want==
3. un-tar the original UEC-tarball of the instnace , we need
- floppy
- loader
- vmlinuz-virtual
- README.files
Assume the image based on Ubuntu Maverick Server b64 and named as , name with amd64 will help uec-publish-tarball to guess the image architecture
- ILoveUbuntu-amd64.img
maverick-server-uec-amd64-floppy | ILoveUbuntu-amd64-floppy |
maverick-server-uec-amd64-loader | ILoveUbuntu-amd64-loader |
maverick-server-uec-amd64-vmlinuz-virtual | ILoveUbuntu-amd64-vmlinuz-virtual |
5. Make UEC-style tarball file
#tar zcv -f ILoveUbuntu-amd64.tar.gz *
Done....it's time to upload image into Glance with uec-publish-tarball ILoveUbuntu-amd64.tar.gz
Troubleshooting
cloud-init-nonet waiting 60 seconds for a network device.
remove the network device before bundle image in /etc/udev/
Comments
Post a Comment