Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I download a UEC style Ubuntu Precise image from http://cloud-images.ubuntu.com/ that I want to use in an OpenStack cloud, but I want to make some modifications to it before booting the VM.

Installing packages is fairly straight forward. I first mount precise-server-cloudimg-amd64.img and use apt-get after chroot-ing to the mounted folder. However, I also want to remove the default linux-image-virtual kernel (and precise-server-cloudimg-amd64-vmlinuz-virtual) and install and use the linux-image-generic one.

How can I achieve this in a chroot environment that I have mounted the cloud image?

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.