Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I download a UEC style Ubuntu Precise image from 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.