20:30 < koike> Hi. Is it possible to configure the dmi codes for libguestfs? I mean, I am running cloud-init inside a libguestfs session (through python-guestfs) in GCE, the problem is that cloud-init reads /sys/class/dmi/id/product_name
to determine if the machine is a GCE machine, but the value it read is Standard PC (i440FX + PIIX, 1996)
instead of the expected Google Compute Engine
so cloud-init fails.
The answer is yes, using the guestfs_config API that lets you set arbitrary qemu parameters:
g.config('-smbios', 'type=1,product=Google Compute Engine')