Replies: 1 comment 7 replies
-
|
If the base disk is a LiveCD, like in the alpine.yaml, then the diff disk is a normal disk image. basedisk: DOS/MBR boot sector; partition 2 : ID=0xef, start-CHS (0x3ff,254,63), end-CHS (0x3ff,254,63), startsector 232, 2880 sectors lima-alpine:/home/anders/lima$ sudo findmnt /dev/vda1
TARGET SOURCE FSTYPE OPTIONS
/mnt/data /dev/disk/by-label/data-volume ext4 rw,relatime
/etc /dev/disk/by-label/data-volume[/etc] ext4 rw,relatime
/home /dev/disk/by-label/data-volume[/home] ext4 rw,relatime
/root /dev/disk/by-label/data-volume[/root] ext4 rw,relatime
/tmp /dev/disk/by-label/data-volume[/tmp] ext4 rw,relatime
/usr/local /dev/disk/by-label/data-volume[/usr/local] ext4 rw,relatime
/var/lib /dev/disk/by-label/data-volume[/var/lib] ext4 rw,relatime
lima-alpine:/home/anders/lima$ sudo df -h /mnt/data
Filesystem Size Used Available Use% Mounted on
/dev/disk/by-label/data-volume
97.9G 9.0M 92.8G 0% /mnt/dataIf the base disk is a normal disk image, like in ubuntu.yaml, then the diff disk is a COW image. basedisk: QEMU QCOW2 Image (v2), 2361393152 bytes anders@lima-default:/home/anders/lima$ sudo findmnt /dev/vda1
TARGET SOURCE FSTYPE OPTIONS
/ /dev/vda1 ext4 rw,relatime,discard,errors=remount-ro
anders@lima-default:/home/anders/lima$ sudo df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 97G 2.1G 95G 3% /The boot format is UEFI by default, so if you only support BIOS then you need to set the config: firmware:
legacyBIOS: trueThere seems to be a "flatcar_production_qemu_uefi_image.img", so maybe that would work better ? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm trying to boot Flatcar Linux image with lima. I started off with the openstack image (stable channel). Log-wise it'll never complete the ssh check, when I start it without
-display none, I see it cannot find a bootable disk.I've dug into the code a bit and I am stuck at the logic of where it determines if the disk is a CDROM (
ISO9660) and then attempts to boot from the diffdisk it created. I am not sure what that check really "means", or why that is necessary for it to complete. I tinkered with it a bit and when I setdisk: 0, I effectively disable thediffdiskbut then it doesn't seem to find a boot sector on the raw image either.It seems the
diffdiskis supposed to be backed by thebasedisk. But that part somehow doesn't work as expected. When the machine boots, it'll revert to PXE booting as no disk is bootable. Thediffdiskis also really small, even though I supplieddisk: "10GiB". I am pretty sure I am doing this wrong.Part of me thinks an additional disk would be easier than the diffdisk magic? But I don't understand why, I looked around in tickets, source code, discussions. If someone has more context, much appreciated.
LBNL, I tried booting a qemu image from Flatcar as well, same result. Even though it (sort of) works without lima. I dumped a few things from lima and assembled the qemu call.
By "sort of", I mean, it boots - not without issues (I think I get dropped into an emergency shell). But it gets beyond the PXE boot and not being able to find a bootable volume. Anyhow, maybe someone has a pointer/idea what to look for?
Beta Was this translation helpful? Give feedback.
All reactions