hello Vojtěch,


On Thu, Jul 25, 2024 at 12:46 PM Vojtěch Dušátko <[email protected]> wrote:
>
> Hello,
>
> I recenly started using Debian cloud image at my PVE cluster. I wanted to 
> share some issues I faced.
>
> I downloaded genericcloud image, imported to template, create VM and got 
> stuck for many hours .... It's not working. It boots up but it got stuck at 
> not working cloud init. Don't know why.
> 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.
>
> So I have some questions:
>
> Can you please take a look at it what's wrong with genericcloud image and why 
> doesn't work at QEMU with virtio NIC, virtio SCSI, etc.?]


I have a personal project which uses packer + ansible + systemrescueCD
in order to build/generate templates in proxmox PVE,

https://github.com/mabeett/pve-cloud-templates-packer

Feel free to use it, and/or contribute. It is Free software.

in my case everything is working as expected[0]
I've just checked with this image and software versions

https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-genericcloud-amd64.qcow2
(sha256sum:38e7d046d483d5a84d0956d84e4b2382a2fc6e5dc89f49bc5875b8e36ad58c31)
Packer v1.10.2
ansible [core 2.16.5]
pve 8.2.4


> Can you please add qemu-guest-agent into generic image?

In my project as I found some distros/setups do not have
qemu-guest-agent preinstalled, so I install it during the building
process.
https://github.com/mabeett/pve-cloud-templates-packer/blob/main/ansible/cloud_init.yml#L31-L33

Let me know if you need more information,

regards,

--
             .::MAbeeTT::.

 mabeett [at] gmail [ dot] com


[0]:
#Debian 12 small via packer
#
#---
#
#built via 
[pve-cloud-templates-packer](https%3A//github.com/mabeett/pve-cloud-templates-packer)
(or a fork)
#
#2024-07-25T18%3A13%3A26Z
agent: 1
boot: order=virtio0;ide2;net0;ide1
cores: 1
cpu: kvm64
ide0: local-zfs:vm-102-cloudinit,media=cdrom
ide1: none,media=cdrom
ide2: none,media=cdrom
kvm: 1
memory: 1024
meta: creation-qemu=9.0.0,ctime=1721931207
name: debian-12-genericcloudimg
net0: virtio=be:ef:ca:fe:c0:ca,bridge=vmbr0
numa: 0
onboot: 0
ostype: l26
scsihw: virtio-scsi-single
serial0: socket
smbios1: uuid=##REDACTED##
sockets: 1
template: 1
vga: type=serial0
virtio0: local-zfs:base-102-disk-0,discard=ignore,iothread=1,size=3G
vmgenid: ##REDACTED##

Reply via email to