Hi,
i have debian 11 VM as golden image. I have boot disk set as /dev/sda. VM shutdown, cloud-init disk regenerated.
Disk /dev/sda:
Clone the new VM:
1] without cloud-init:
2] with cloud-init:
The 2] is generating same problem as https://ubuntuforums.org/showthread.php?t=2408085 , dunno if problem is grub-pc directly or cloud-init. My ansible is failing due this. How to solve it?
i have debian 11 VM as golden image. I have boot disk set as /dev/sda. VM shutdown, cloud-init disk regenerated.
Disk /dev/sda:
Code:
Disk /dev/sda: 10 GiB, 10737418240 bytes, 20971520 sectors
Disk model: QEMU HARDDISK
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xb75887e2
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 20969471 20967424 10G 8e Linux LVM
Disk /dev/mapper/vg0-root: 7.45 GiB, 7998537728 bytes, 15622144 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/vg0-swap: 2.55 GiB, 2734686208 bytes, 5341184 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Clone the new VM:
1] without cloud-init:
Code:
debconf-show grub-pc
grub-pc/install_devices: /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi0
2] with cloud-init:
Code:
debconf-show grub pc
grub-pc/install_devices: /dev/disk/by-id/dm-name-vg0-root
The 2] is generating same problem as https://ubuntuforums.org/showthread.php?t=2408085 , dunno if problem is grub-pc directly or cloud-init. My ansible is failing due this. How to solve it?