Re: Debian cloud image issues
On Thu, Jul 25, 2024 at 11:44:41PM +0200, Vojtěch Dušátko wrote:
> > > 2. I realised that genericcloud is not for me - I started using generic.
> > > It boots up, it runs cloud init correctly, but .... That image doesn't
> > > include qemu-guest-agent (unlike the instalation I did by myself from
> > > cloud netinstall ISO) so when I want to find that VM at network I have
> > > to do some ARP stuff, etc. Not just look at dashboard to see which IP
> > > it has. Also there's a problem that when you run the VM at QEMU, it
> > > should have QEMU-GA to communicate with virtualisation platform
> > > correctly.
> > qemu-guest-agent assumes a level of integration between the VM and the
> > underlying infrastructure that is not appropriate for a general purpose
> > image. Our published images need to be suitable for use in environments
> > where there's a trust boundary between the VM and the underlying host.
>
> Okay, Is it possible to build some images, which can be integrated into
> virtualization platform correctly? (vmware -> with open-vm-tools ; QEMU ->
> with qemu-guest-agent)
>
> Probably there's an option to document, how to do it in-house and I will
> build my own image if it's necesarry.
Yes, it's relatively straightforward to use our tooling to build your
own images, but it's not well documented. The short answer is to do the
following:
1. Clone the debian-cloud-images repository from
https://salsa.debian.org/cloud-team/debian-cloud-images
2. Install the dependencies: apt-get install --no-install-recommends -y \
binfmt-support ca-certificates debsums dosfstools fai-server \
fai-setup-storage fdisk make python3-pytest qemu-user-static \
qemu-utils sudo udev make
3. Build an image, using something like `make image_sid_generic_amd64`
You can customize the image contents by editing the FAI config in the
config_space subdirectory.
noah
Reply to: