Hello
I've been trying run a nested proxmox instance on my already running proxmox installation.
Installation went as normal and everything seem right.
But the VM of the nested proxmox will, always eventually kernel panic.
This are some of the panics it gave me over the course of trying to figure out what's going on:
guest dmesg doesn't show much before the panic, last one only had one line before panicking
Unfortunately those panics never happened when I was there and the dmesg output of the host was override by other entries when I saw the guest panic.
Host machine info:
Guest machine info:
I've been trying run a nested proxmox instance on my already running proxmox installation.
Installation went as normal and everything seem right.
But the VM of the nested proxmox will, always eventually kernel panic.
This are some of the panics it gave me over the course of trying to figure out what's going on:
Code:
[10037.609096] Kernel panic - not syncing: Host injected async #PF in kernel mode
[10037.611446] CPU: 1 PID: 27733 Comm: pvescheduler Tainted: P O 6.8.12-10-pve #1
[10037.614206] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 4.2025.02-3 04/03/2025
[10037.616497] Call Trace:
[10037.617204] <TASK>
[10037.617913] dump_stack_lvl+0x27/0xa0
[10037.620661] dump_stack+0x10/0x20
[10037.621688] panic+0x34f/0x380
[10037.622645] ? early_xen_iret_patch+0xc/0xc
[10037.624707] __kvm_handle_async_pf+0xb7/0xe0
[10037.626035] exc_page_fault+0xb6/0x1b0
[10037.626948] asm_exc_page_fault+0x27/0x30
[10037.627946] RIP: 0010:__put_user_4+0xd/0x20
[10037.628984] Code: 66 89 01 31 c9 0f 01 ca c3 cc cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 48 89 cb 48 c1 fb 3f 48 09 d9 0f 01 cb <89> 01 31 c9 0f 01 ca c3 cc cc cc cc 0f 1f 80 00 00 00 00 90 90 90
[10037.633449] RSP: 0018:ffffaf12011bbf10 EFLAGS: 00050206
[10037.634679] RAX: 0000000000006c55 RBX: 0000000000000000 RCX: 00007c978a26de50
[10037.636410] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[10037.638170] RBP: ffffaf12011bbf20 R08: 0000000000000000 R09: 0000000000000000
[10037.639934] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
[10037.641941] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[10037.643584] ? schedule_tail+0x43/0x70
[10037.644462] ret_from_fork+0x1c/0x70
[10037.645291] ret_from_fork_asm+0x1b/0x30
[10037.646142] RIP: 0033:0x7c978a37f353
[10037.646985] Code: Unable to access opcode bytes at 0x7c978a37f329.
[10037.648293] RSP: 002b:00007ffd5fb09238 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
[10037.649874] RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00007c978a37f353
[10037.651937] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
[10037.653448] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
[10037.654968] R10: 00007c978a26de50 R11: 0000000000000246 R12: 0000000000000001
[10037.657719] R13: 00007ffd5fb09350 R14: 00007ffd5fb093d0 R15: 00007c978a5a8020
[10037.659204] </TASK>
[10037.660041] Kernel Offset: 0x7600000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[10039.664329] ---[ end Kernel panic - not syncing: Host injected async #PF in kernel mode ]---
Code:
[42478.311545] Kernel panic - not syncing: Host injected async #PF in kernel mode
[42478.313054] CPU: 3 PID: 113983 Comm: pve-firewall Tainted: P O 6.8.12-10-pve #1
[42478.314640] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 4.2025.02-3 04/03/2025
[42478.316279] Call Trace:
[42478.316810] <TASK>
[42478.317251] dump_stack_lvl+0x27/0xa0
[42478.318315] dump_stack+0x10/0x20
[42478.318954] panic+0x34f/0x380
[42478.319542] ? early_xen_iret_patch+0xc/0xc
[42478.320505] __kvm_handle_async_pf+0xb7/0xe0
[42478.321638] exc_page_fault+0xb6/0x1b0
[42478.322377] asm_exc_page_fault+0x27/0x30
[42478.323162] RIP: 0010:__put_user_4+0xd/0x20
[42478.324269] Code: 66 89 01 31 c9 0f 01 ca c3 cc cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 48 89 cb 48 c1 fb 3f 48 09 d9 0f 01 cb <89> 01 31 c9 0f 01 ca c3 cc cc cc cc 0f 1f 80 00 00 00 00 90 90 90
[42478.327849] RSP: 0018:ffffb829c0c2ff10 EFLAGS: 00050206
[42478.328870] RAX: 000000000001bd3f RBX: 0000000000000000 RCX: 00007e26e1bc8e50
[42478.330482] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[42478.331836] RBP: ffffb829c0c2ff20 R08: 0000000000000000 R09: 0000000000000000
[42478.333177] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
[42478.334546] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[42478.335858] ? schedule_tail+0x43/0x70
[42478.336623] ret_from_fork+0x1c/0x70
[42478.337349] ret_from_fork_asm+0x1b/0x30
[42478.338064] RIP: 0033:0x7e26e1cda353
[42478.338735] Code: Unable to access opcode bytes at 0x7e26e1cda329.
[42478.340023] RSP: 002b:00007fff8a182858 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
[42478.341714] RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00007e26e1cda353
[42478.343350] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
[42478.344901] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
[42478.346571] R10: 00007e26e1bc8e50 R11: 0000000000000246 R12: 0000000000000001
[42478.348144] R13: 00007fff8a182970 R14: 00007fff8a1829f0 R15: 00007e26e1f03020
[42478.349772] </TASK>
[42478.350521] Kernel Offset: 0x1c00000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[42480.084099] ---[ end Kernel panic - not syncing: Host injected async #PF in kernel mode ]---
Code:
[54671.401738] Kernel panic - not syncing: Host injected async #PF in kernel mode
[54671.404285] CPU: 3 PID: 1114 Comm: vhost-1069 Tainted: P O 6.8.12-10-pve #1
[54671.407190] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 4.2025.02-3 04/03/2025
[54671.410874] Call Trace:
[54671.411902] <TASK>
[54671.412639] dump_stack_lvl+0x27/0xa0
[54671.414102] dump_stack+0x10/0x20
[54671.414985] panic+0x34f/0x380
[54671.415783] ? early_xen_iret_patch+0xc/0xc
[54671.417813] __kvm_handle_async_pf+0xb7/0xe0
[54671.419810] exc_page_fault+0xb6/0x1b0
[54671.422993] asm_exc_page_fault+0x27/0x30
[54671.424462] RIP: 0010:rep_movs_alternative+0x4a/0x70
[54671.426326] Code: cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 8b 06 48 89 07 48 83 c6 08 48 83 c7 08 83 e9 08 74 db 83 f9 08 73 e8 eb c5 <f3> a4 c3 cc cc cc cc 48 89 c8 48 c1 e9 03 83 e0 07 f3 48 a5 89 c1
[54671.432456] RSP: 0018:ffffadba40727ae8 EFLAGS: 00050206
[54671.433644] RAX: 0000000000001000 RBX: 0000000000000336 RCX: 0000000000000336
[54671.440594] RDX: 0000000000000336 RSI: ffff9f24ddd3bec0 RDI: 00007c9481e00000
[54671.444913] RBP: ffffadba40727b68 R08: 0000000000000000 R09: ffff9f27a6a80248
[54671.446977] R10: 0000000000000000 R11: ffff9f24d2ef5800 R12: ffffadba40727de0
[54671.448848] R13: ffff9f24ddd3bc4e R14: 0000000000000272 R15: 000000000000332a
[54671.451464] ? _copy_to_iter+0x14d/0x590
[54671.452946] ? kvm_irq_delivery_to_apic_fast+0x1ae/0x200 [kvm]
[54671.455336] ? __check_object_size+0x9d/0x300
[54671.457411] simple_copy_to_iter+0x38/0x60
[54671.459515] ? __pfx_simple_copy_to_iter+0x10/0x10
[54671.460884] __skb_datagram_iter+0x1a1/0x2d0
[54671.462031] ? __pfx_simple_copy_to_iter+0x10/0x10
[54671.463764] skb_copy_datagram_iter+0x37/0xb0
[54671.465422] tun_do_read+0x437/0x800
[54671.468124] tun_recvmsg+0x87/0x1a0
[54671.469982] handle_rx+0x590/0xbd0 [vhost_net]
[54671.471119] handle_rx_net+0x15/0x20 [vhost_net]
[54671.473416] vhost_run_work_list+0x46/0x80 [vhost]
[54671.475006] vhost_task_fn+0x58/0xf0
[54671.476159] ? __mmdrop+0x125/0x1b0
[54671.477239] ? _raw_spin_unlock_irq+0xe/0x50
[54671.478822] ? __pfx_vhost_task_fn+0x10/0x10
[54671.480103] ret_from_fork+0x44/0x70
[54671.481402] ? __pfx_vhost_task_fn+0x10/0x10
[54671.482925] ret_from_fork_asm+0x1b/0x30
[54671.484104] RIP: 0033:0x0
[54671.484988] Code: Unable to access opcode bytes at 0xffffffffffffffd6.
[54671.487125] RSP: 002b:0000000000000000 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[54671.490781] RAX: 0000000000000000 RBX: 000060c17fea4710 RCX: 00007c949b93dd1b
[54671.492972] RDX: 0000000000000000 RSI: 000000000000af01 RDI: 0000000000000023
[54671.496050] RBP: 00007ffece086a50 R08: 00007ffece0869f0 R09: 00007c949ba12d00
[54671.498888] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000022
[54671.504675] R13: 00007ffece086a48 R14: 000060c17fea4710 R15: 0000000000000000
[54671.508163] </TASK>
[54671.509535] Kernel Offset: 0x33e00000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[54674.124447] ---[ end Kernel panic - not syncing: Host injected async #PF in kernel mode ]---
Code:
[45625.467750] hrtimer: interrupt took 11017253 ns
[46321.231577] Kernel panic - not syncing: Host injected async #PF in kernel mode
[46321.235270] CPU: 5 PID: 123999 Comm: ksmtuned Tainted: P O 6.8.12-10-pve #1
[46321.239835] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 4.2025.02-3 04/03/2025
[46321.242429] Call Trace:
[46321.243229] <TASK>
[46321.243843] dump_stack_lvl+0x27/0xa0
[46321.245380] dump_stack+0x10/0x20
[46321.246326] panic+0x34f/0x380
[46321.247241] ? early_xen_iret_patch+0xc/0xc
[46321.252921] __kvm_handle_async_pf+0xb7/0xe0
[46321.254489] exc_page_fault+0xb6/0x1b0
[46321.255267] asm_exc_page_fault+0x27/0x30
[46321.256612] RIP: 0010:__put_user_4+0xd/0x20
[46321.258235] Code: 66 89 01 31 c9 0f 01 ca c3 cc cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 48 89 cb 48 c1 fb 3f 48 09 d9 0f 01 cb <89> 01 31 c9 0f 01 ca c3 cc cc cc cc 0f 1f 80 00 00 00 00 90 90 90
[46321.263930] RSP: 0018:ffffa556c38cff10 EFLAGS: 00050202
[46321.265453] RAX: 000000000001e45f RBX: 0000000000000000 RCX: 00007b4808d9ba10
[46321.267763] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[46321.269712] RBP: ffffa556c38cff20 R08: 0000000000000000 R09: 0000000000000000
[46321.271763] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
[46321.273478] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[46321.275421] ? schedule_tail+0x43/0x70
[46321.276636] ret_from_fork+0x1c/0x70
[46321.277667] ret_from_fork_asm+0x1b/0x30
[46321.278672] RIP: 0033:0x7b4808e72353
[46321.279541] Code: Unable to access opcode bytes at 0x7b4808e72329.
[46321.281197] RSP: 002b:00007fff01e6d3e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
[46321.285353] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007b4808e72353
[46321.287250] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
[46321.288911] RBP: 0000000000000000 R08: 0000000000000000 R09: 00005b9070ba2890
[46321.290574] R10: 00007b4808d9ba10 R11: 0000000000000246 R12: 0000000000000001
[46321.292712] R13: 00007fff01e6d620 R14: 00005b9045378b08 R15: 0000000000000000
[46321.297935] </TASK>
[46321.299348] Kernel Offset: 0x36a00000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[46322.810947] ---[ end Kernel panic - not syncing: Host injected async #PF in kernel mode ]---
guest dmesg doesn't show much before the panic, last one only had one line before panicking
[45625.467750] hrtimer: interrupt took 11017253 ns
Unfortunately those panics never happened when I was there and the dmesg output of the host was override by other entries when I saw the guest panic.
Host machine info:
Bash:
~ # pveversion --verbose
proxmox-ve: 8.4.0 (running kernel: 6.8.12-10-pve)
pve-manager: 8.4.1 (running version: 8.4.1/2a5fa54a8503f96d)
proxmox-kernel-helper: 8.1.1
proxmox-kernel-6.8.12-10-pve-signed: 6.8.12-10
proxmox-kernel-6.8: 6.8.12-10
proxmox-kernel-6.8.12-9-pve-signed: 6.8.12-9
proxmox-kernel-6.8.12-8-pve-signed: 6.8.12-8
proxmox-kernel-6.5.13-6-pve-signed: 6.5.13-6
proxmox-kernel-6.5: 6.5.13-6
ceph-fuse: 16.2.15+ds-0+deb12u1
corosync: 3.1.9-pve1
criu: 3.17.1-2+deb12u1
glusterfs-client: 10.3-5
ifupdown: residual config
ifupdown2: 3.2.0-1+pmx11
ksm-control-daemon: 1.5-1
libjs-extjs: 7.0.0-5
libknet1: 1.30-pve2
libproxmox-acme-perl: 1.6.0
libproxmox-backup-qemu0: 1.5.1
libproxmox-rs-perl: 0.3.5
libpve-access-control: 8.2.2
libpve-apiclient-perl: 3.3.2
libpve-cluster-api-perl: 8.1.0
libpve-cluster-perl: 8.1.0
libpve-common-perl: 8.3.1
libpve-guest-common-perl: 5.2.2
libpve-http-server-perl: 5.2.2
libpve-network-perl: 0.11.2
libpve-rs-perl: 0.9.4
libpve-storage-perl: 8.3.6
libqb0: 1.0.5-1
libspice-server1: 0.15.1-1
lvm2: 2.03.16-2
lxc-pve: 6.0.0-1
lxcfs: 6.0.0-pve2
novnc-pve: 1.6.0-2
proxmox-backup-client: 3.4.1-1
proxmox-backup-file-restore: 3.4.1-1
proxmox-firewall: 0.7.1
proxmox-kernel-helper: 8.1.1
proxmox-mail-forward: 0.3.2
proxmox-mini-journalreader: 1.4.0
proxmox-offline-mirror-helper: 0.6.7
proxmox-widget-toolkit: 4.3.10
pve-cluster: 8.1.0
pve-container: 5.2.6
pve-docs: 8.4.0
pve-edk2-firmware: 4.2025.02-3
pve-esxi-import-tools: 0.7.4
pve-firewall: 5.1.1
pve-firmware: 3.15-3
pve-ha-manager: 4.0.7
pve-i18n: 3.4.2
pve-qemu-kvm: 9.2.0-5
pve-xtermjs: 5.5.0-2
qemu-server: 8.3.12
smartmontools: 7.3-pve1
spiceterm: 3.3.0
swtpm: 0.8.0+pve1
vncterm: 1.8.0
zfsutils-linux: 2.2.7-pve2
Guest machine info:
Bash:
~# pveversion --verbose
proxmox-ve: 8.4.0 (running kernel: 6.8.12-10-pve)
pve-manager: 8.4.1 (running version: 8.4.1/2a5fa54a8503f96d)
proxmox-kernel-helper: 8.1.1
proxmox-kernel-6.8.12-10-pve-signed: 6.8.12-10
proxmox-kernel-6.8: 6.8.12-10
proxmox-kernel-6.8.12-9-pve-signed: 6.8.12-9
ceph-fuse: 19.2.1-pve3
corosync: 3.1.9-pve1
criu: 3.17.1-2+deb12u1
frr-pythontools: 10.2.2-1+pve1
glusterfs-client: 10.3-5
ifupdown2: 3.2.0-1+pmx11
ksm-control-daemon: 1.5-1
libjs-extjs: 7.0.0-5
libknet1: 1.30-pve2
libproxmox-acme-perl: 1.6.0
libproxmox-backup-qemu0: 1.5.1
libproxmox-rs-perl: 0.3.5
libpve-access-control: 8.2.2
libpve-apiclient-perl: 3.3.2
libpve-cluster-api-perl: 8.1.0
libpve-cluster-perl: 8.1.0
libpve-common-perl: 8.3.1
libpve-guest-common-perl: 5.2.2
libpve-http-server-perl: 5.2.2
libpve-network-perl: 0.11.2
libpve-rs-perl: 0.9.4
libpve-storage-perl: 8.3.6
libspice-server1: 0.15.1-1
lvm2: 2.03.16-2
lxc-pve: 6.0.0-1
lxcfs: 6.0.0-pve2
novnc-pve: 1.6.0-2
proxmox-backup-client: 3.4.1-1
proxmox-backup-file-restore: 3.4.1-1
proxmox-firewall: 0.7.1
proxmox-kernel-helper: 8.1.1
proxmox-mail-forward: 0.3.2
proxmox-mini-journalreader: 1.4.0
proxmox-offline-mirror-helper: 0.6.7
proxmox-widget-toolkit: 4.3.10
pve-cluster: 8.1.0
pve-container: 5.2.6
pve-docs: 8.4.0
pve-edk2-firmware: 4.2025.02-3
pve-esxi-import-tools: 0.7.4
pve-firewall: 5.1.1
pve-firmware: 3.15-3
pve-ha-manager: 4.0.7
pve-i18n: 3.4.2
pve-qemu-kvm: 9.2.0-5
pve-xtermjs: 5.5.0-2
qemu-server: 8.3.12
smartmontools: 7.3-pve1
spiceterm: 3.3.0
swtpm: 0.8.0+pve1
vncterm: 1.8.0
zfsutils-linux: 2.2.7-pve2
Bash:
~ # cat /etc/pve/qemu-server/108.conf
agent: 1,fstrim_cloned_disks=1
balloon: 4096
bios: ovmf
boot: order=scsi0;ide2
cores: 6
cpu: host
efidisk0: local-lvm-fast:vm-108-disk-0,efitype=4m,size=4M
hotplug: disk,network,usb
ide2: local:iso/proxmox-ve_8.4-1.iso,media=cdrom,size=1535054K
machine: pc-q35-9.2+pve1
memory: 16384
meta: creation-qemu=9.2.0,ctime=1745336813
name: nested-PVE
net0: virtio=BC:24:11:66:CC:47,bridge=vmbr20
net6: virtio=BC:24:11:15:34:F3,bridge=vmbr000,link_down=1
numa: 0
onboot: 1
ostype: l26
rng0: source=/dev/urandom
scsi0: local-lvm:vm-108-disk-1,discard=on,iothread=1,size=32G
scsi10: local-lvm:vm-108-disk-2,cache=writeback,discard=on,iothread=1,size=320G
scsihw: virtio-scsi-single
serial0: socket
smbios1: uuid=676944cc-698f-48dc-9029-efe304e7b983
sockets: 1
tablet: 0
vga: serial0
vmgenid: f6ea56ee-bcfe-496c-bd45-5ef8e042fc86