Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flatcar 2023-12-11-2151 ISO image - Panicking on QEMU #1303

Closed
retpolanne opened this issue Dec 19, 2023 · 1 comment
Closed

Flatcar 2023-12-11-2151 ISO image - Panicking on QEMU #1303

retpolanne opened this issue Dec 19, 2023 · 1 comment
Labels
kind/bug Something isn't working

Comments

@retpolanne
Copy link

Description

The image flatcar_production_iso_image.iso is panicking on QEMU.

flatcar_production_iso_image.iso

Impact

Can't start the iso on QEMU, making it unusable with Packer, for example.

Environment and steps to reproduce

  1. Set-up: QEMU 8.1.3
  2. Task: /usr/local/bin/qemu-system-x86_64 -name flatcar -m 512M -device "virtio-net,netdev=user.0" -smp 1 -machine "type=pc,accel=hvf,highmem=off" -netdev "user,id=user.0,hostfwd=tcp::3540-:22" -cpu host -serial stdio -display none -kernel /Volumes/CDROM/flatcar/vmlinuz -initrd /Volumes/CDROM/flatcar/cpio.gz -append "flatcar.autologin console=ttyS0"
  3. Action(s):
  4. Error:
[    0.538528] Mem-Info:
[    0.539261] active_anon:417 inactive_anon:13785 isolated_anon:0
[    0.539261]  active_file:0 inactive_file:0 isolated_file:0
[    0.539261]  unevictable:0 dirty:0 writeback:0
[    0.539261]  slab_reclaimable:1812 slab_unreclaimable:1342
[    0.539261]  mapped:0 shmem:14211 pagetables:3 bounce:0
[    0.539261]  kernel_misc_reclaimable:0
[    0.539261]  free:9136 free_pcp:349 free_cma:0
[    0.550388] Node 0 active_anon:1668kB inactive_anon:55140kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:0kB dirty:0kB writeback:0kB shmem:56844kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 0kB writeback_tmp:0kB kernel_stack:576kB pagetables:12kB all_unreclaimable? no
[    0.559336] Node 0 DMA free:15360kB min:180kB low:224kB high:268kB reserved_highatomic:0KB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:15992kB managed:15360kB mlocked:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
[    0.567336] lowmem_reserve[]: 0 96 96 96
[    0.568668] Node 0 DMA32 free:21184kB min:1164kB low:1452kB high:1740kB reserved_highatomic:0KB active_anon:1668kB inactive_anon:55140kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:507776kB managed:98336kB mlocked:0kB bounce:0kB free_pcp:1396kB local_pcp:1396kB free_cma:0kB
[    0.577292] lowmem_reserve[]: 0 0 0 0
[    0.578524] Node 0 DMA: 0*4kB 0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 1*1024kB (U) 1*2048kB (M) 3*4096kB (M) = 15360kB
[    0.582380] Node 0 DMA32: 1*4kB (U) 2*8kB (U) 9*16kB (UME) 5*32kB (UE) 0*64kB 1*128kB (E) 1*256kB (E) 4*512kB (UME) 0*1024kB 1*2048kB (U) 4*4096kB (UM) = 21188kB
[    0.586768] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=1048576kB
[    0.589393] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB
[    0.591916] 14211 total pagecache pages
[    0.593087] 0 pages in swap cache
[    0.594138] Swap cache stats: add 0, delete 0, find 0/0
[    0.595708] Free swap  = 0kB
[    0.596635] Total swap = 0kB
[    0.597582] 130942 pages RAM
[    0.598422] 0 pages HighMem/MovableOnly
[    0.599687] 102518 pages reserved
[    0.600751] 0 pages hwpoisoned
[    0.601702] Kernel panic - not syncing: 
[    0.602964] CPU: 0 PID: 43 Comm: kworker/u2:1 Not tainted 5.15.142-flatcar #1
[    0.605115] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.2-0-gea1b7a073390-prebuilt.qemu.org 04/01/2014
[    0.608533] Workqueue: events_unbound async_run_entry_fn
[    0.610134] Call Trace:
[    0.610887]  <TASK>
[    0.611538]  dump_stack_lvl+0x45/0x5b
[    0.612665]  panic+0x105/0x2e9
[    0.613585]  panic_show_mem+0x68/0x68
[    0.614699]  do_populate_rootfs+0x2d/0x100
[    0.615932]  async_run_entry_fn+0x2e/0x110
[    0.617227]  process_one_work+0x21e/0x3b0
[    0.618468]  worker_thread+0x4a/0x3e0
[    0.619541]  ? process_one_work+0x3b0/0x3b0
[    0.620842]  kthread+0x118/0x140
[    0.621822]  ? set_kthread_struct+0x50/0x50
[    0.623084]  ret_from_fork+0x22/0x30
[    0.624162]  </TASK>
[    0.625028] Kernel Offset: 0x25000000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[    0.628163] Rebooting in 60 seconds..

Expected behavior

Flatcar should boot.

Additional information

I tried using the vmlinuz and cpio.gz from the iso so I could get the kernel panic trace, but it also fails with the iso image as a CDROM.

@retpolanne retpolanne added the kind/bug Something isn't working label Dec 19, 2023
@retpolanne
Copy link
Author

Oops, just found the problem. 512M doesn't seem enough for this image. Increased it to 1024M and it booted :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant