Hi guys,
I need your help. My PVE 6.0.1 boots but I have a kernel panic which totally stop the boot. I want use chroot in order to reinstall the kernel 5.0.21 but I have an error.
Look at my shell commands.
root@debian:~# uname -r
4.19.0-6-amd64 ( I used LiveCD Debian 10 )
root@debian:~# fdisk -lu
Disk /dev/nvme0n1: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Disk model: Samsung SSD 970 EVO Plus 500GB
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: gpt
Disk identifier: 3AC6C19B-09C1-4877-821F-21BEE6E3F8D8
Device Start End Sectors Size Type
/dev/nvme0n1p1 34 2047 2014 1007K BIOS boot
/dev/nvme0n1p2 2048 1050623 1048576 512M EFI System
/dev/nvme0n1p3 1050624 976773134 975722511 465.3G Linux LVM
Disk /dev/sda: 14.4 GiB, 15472047104 bytes, 30218842 sectors
Disk model: DataTraveler 3.0
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: 0x01f04019
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 28121656 28119609 13.4G c W95 FAT32 (LBA)
/dev/sda2 28121657 30218800 2097144 1024M 83 Linux
Disk /dev/loop0: 2.1 GiB, 2277298176 bytes, 4447848 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/pve-swap: 4 GiB, 4294967296 bytes, 8388608 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/pve-root: 46 GiB, 49383735296 bytes, 96452608 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/pve-vm--101--disk--0: 10 GiB, 10737418240 bytes, 20971520 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disklabel type: dos
Disk identifier: 0x90909090
Device Boot Start End Sectors Size Id Type
/dev/mapper/pve-vm--101--disk--0-part1 * 64 20971518 20971455 10G a5 Free
Partition 1 does not start on physical sector boundary.
Disk /dev/mapper/pve-vm--100--disk--0: 15 GiB, 16106127360 bytes, 31457280 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disklabel type: dos
Disk identifier: 0x90909090
Device Boot Start End Sectors Size Id Type
/dev/mapper/pve-vm--100--disk--0-part1 * 63 20964824 20964762 10G a5 Free
Partition 1 does not start on physical sector boundary.
Disk /dev/mapper/pve-vm--103--disk--0: 10 GiB, 10737418240 bytes, 20971520 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disklabel type: dos
Disk identifier: 0xa14d1b8f
Device Boot Start End Sectors Size Id Type
/dev/mapper/pve-vm--103--disk--0-part1 * 2048 18874367 18872320 9G 83 Linu
/dev/mapper/pve-vm--103--disk--0-part2 18876414 20969471 2093058 1022M 5 Exte
/dev/mapper/pve-vm--103--disk--0-part5 18876416 20969471 2093056 1022M 82 Linu
Partition 2 does not start on physical sector boundary.
Disk /dev/mapper/pve-vm--104--disk--0: 10 GiB, 10737418240 bytes, 20971520 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disk /dev/mapper/pve-vm--105--disk--0: 8 GiB, 8589934592 bytes, 16777216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disk /dev/mapper/pve-vm--106--disk--0: 8 GiB, 8589934592 bytes, 16777216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disk /dev/mapper/pve-vm--102--disk--0: 15 GiB, 16106127360 bytes, 31457280 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disk /dev/mapper/pve-vm--102--disk--1: 15 GiB, 16106127360 bytes, 31457280 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disk /dev/mapper/pve-vm--107--disk--0: 15 GiB, 16106127360 bytes, 31457280 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disk /dev/mapper/pve-vm--110--disk--0: 20 GiB, 21474836480 bytes, 41943040 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disklabel type: gpt
Disk identifier: 248B1987-03F5-11EA-B31F-7D3559FEDCB6
Device Start End Sectors Size Type
/dev/mapper/pve-vm--110--disk--0-part1 64 1087 1024 512K FreeBSD
/dev/mapper/pve-vm--110--disk--0-part2 2048 8390655 8388608 4G FreeBSD
/dev/mapper/pve-vm--110--disk--0-part3 8390656 10487807 2097152 1G FreeBSD
/dev/mapper/pve-vm--110--disk--0-part4 10487808 31991807 21504000 10.3G FreeBSD
Partition 1 does not start on physical sector boundary.
Disk /dev/mapper/pve-vm--107--disk--1: 15 GiB, 16106127360 bytes, 31457280 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disk /dev/mapper/pve-vm--107--disk--2: 15 GiB, 16106127360 bytes, 31457280 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
root@debian:~# pvscan
PV /dev/nvme0n1p3 VG pve lvm2 [<465.26 GiB / 0 free]
Total: 1 [<465.26 GiB] / in use: 1 [<465.26 GiB] / in no VG: 0 [0 ]
root@debian:~# vgscan
Reading all physical volumes. This may take a while...
Found volume group "pve" using metadata type lvm2
root@debian:~# vgchange -a y
15 logical volume(s) in volume group "pve" now active
root@debian:~# lvscan
ACTIVE '/dev/pve/swap' [4.00 GiB] inherit
ACTIVE '/dev/pve/root' [45.99 GiB] inherit
ACTIVE '/dev/pve/data' [406.95 GiB] inherit
ACTIVE '/dev/pve/vm-101-disk-0' [10.00 GiB] inherit
ACTIVE '/dev/pve/vm-100-disk-0' [15.00 GiB] inherit
ACTIVE '/dev/pve/vm-103-disk-0' [10.00 GiB] inherit
ACTIVE '/dev/pve/vm-104-disk-0' [10.00 GiB] inherit
ACTIVE '/dev/pve/vm-105-disk-0' [8.00 GiB] inherit
ACTIVE '/dev/pve/vm-106-disk-0' [8.00 GiB] inherit
ACTIVE '/dev/pve/vm-102-disk-0' [15.00 GiB] inherit
ACTIVE '/dev/pve/vm-102-disk-1' [15.00 GiB] inherit
ACTIVE '/dev/pve/vm-107-disk-0' [15.00 GiB] inherit
ACTIVE '/dev/pve/vm-110-disk-0' [20.00 GiB] inherit
ACTIVE '/dev/pve/vm-107-disk-1' [15.00 GiB] inherit
ACTIVE '/dev/pve/vm-107-disk-2' [15.00 GiB] inherit
root@debian:~# mount /dev/pve/root /mnt
root@debian:~# chroot /mnt ( for test only )
chroot: failed to run command ‘/bin/bash’: No such file or directory
root@debian:~# /sbin/chroot /mnt ( for test only )
/sbin/chroot: failed to run command ‘/bin/bash’: No such file or directory
root@debian:~# mount --bind /dev /mnt/dev
root@debian:~# mount --bind /proc /mnt/proc
root@debian:~# mount --bind /sys /mnt/sys
root@debian:~# chroot /mnt ( for test only )
chroot: failed to run command ‘/bin/bash’: No such file or directory
root@debian:~# /sbin/chroot /mnt ( for test only )
/sbin/chroot: failed to run command ‘/bin/bash’: No such file or directory
root@debian:~# mount /dev/nvme0n1p2 /mnt/boot/efi
root@debian:~# chroot /mnt
chroot: failed to run command ‘/bin/bash’: No such file or directory
root@debian:~# /sbin/chroot /mnt
/sbin/chroot: failed to run command ‘/bin/bash’: No such file or directory
root@debian:~# mount /dev/nvme0n1p1 /mnt/boot
mount: /mnt/boot: wrong fs type, bad option, bad superblock on /dev/nvme0n1p1, missing codepage or helper program, or other error.
root@debian:~# chroot /mnt /bin/bash
chroot: failed to run command ‘/bin/bash’: No such file or directory
I don't understand how works the start of PVE, it's why I tested some command (https://gist.github.com/uglide/5f6f23903dac6b5f2567).
However, I know that chroot works because commands debootstrap --include=locales-all wheezy /mnt/TEST http://ftp.fr.debian.org/debian then chroot /mnt/TEST works very well.
What is my mistake ? Thank you for your help.
I need your help. My PVE 6.0.1 boots but I have a kernel panic which totally stop the boot. I want use chroot in order to reinstall the kernel 5.0.21 but I have an error.
Look at my shell commands.
root@debian:~# uname -r
4.19.0-6-amd64 ( I used LiveCD Debian 10 )
root@debian:~# fdisk -lu
Disk /dev/nvme0n1: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Disk model: Samsung SSD 970 EVO Plus 500GB
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: gpt
Disk identifier: 3AC6C19B-09C1-4877-821F-21BEE6E3F8D8
Device Start End Sectors Size Type
/dev/nvme0n1p1 34 2047 2014 1007K BIOS boot
/dev/nvme0n1p2 2048 1050623 1048576 512M EFI System
/dev/nvme0n1p3 1050624 976773134 975722511 465.3G Linux LVM
Disk /dev/sda: 14.4 GiB, 15472047104 bytes, 30218842 sectors
Disk model: DataTraveler 3.0
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: 0x01f04019
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 28121656 28119609 13.4G c W95 FAT32 (LBA)
/dev/sda2 28121657 30218800 2097144 1024M 83 Linux
Disk /dev/loop0: 2.1 GiB, 2277298176 bytes, 4447848 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/pve-swap: 4 GiB, 4294967296 bytes, 8388608 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/pve-root: 46 GiB, 49383735296 bytes, 96452608 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/pve-vm--101--disk--0: 10 GiB, 10737418240 bytes, 20971520 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disklabel type: dos
Disk identifier: 0x90909090
Device Boot Start End Sectors Size Id Type
/dev/mapper/pve-vm--101--disk--0-part1 * 64 20971518 20971455 10G a5 Free
Partition 1 does not start on physical sector boundary.
Disk /dev/mapper/pve-vm--100--disk--0: 15 GiB, 16106127360 bytes, 31457280 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disklabel type: dos
Disk identifier: 0x90909090
Device Boot Start End Sectors Size Id Type
/dev/mapper/pve-vm--100--disk--0-part1 * 63 20964824 20964762 10G a5 Free
Partition 1 does not start on physical sector boundary.
Disk /dev/mapper/pve-vm--103--disk--0: 10 GiB, 10737418240 bytes, 20971520 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disklabel type: dos
Disk identifier: 0xa14d1b8f
Device Boot Start End Sectors Size Id Type
/dev/mapper/pve-vm--103--disk--0-part1 * 2048 18874367 18872320 9G 83 Linu
/dev/mapper/pve-vm--103--disk--0-part2 18876414 20969471 2093058 1022M 5 Exte
/dev/mapper/pve-vm--103--disk--0-part5 18876416 20969471 2093056 1022M 82 Linu
Partition 2 does not start on physical sector boundary.
Disk /dev/mapper/pve-vm--104--disk--0: 10 GiB, 10737418240 bytes, 20971520 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disk /dev/mapper/pve-vm--105--disk--0: 8 GiB, 8589934592 bytes, 16777216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disk /dev/mapper/pve-vm--106--disk--0: 8 GiB, 8589934592 bytes, 16777216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disk /dev/mapper/pve-vm--102--disk--0: 15 GiB, 16106127360 bytes, 31457280 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disk /dev/mapper/pve-vm--102--disk--1: 15 GiB, 16106127360 bytes, 31457280 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disk /dev/mapper/pve-vm--107--disk--0: 15 GiB, 16106127360 bytes, 31457280 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disk /dev/mapper/pve-vm--110--disk--0: 20 GiB, 21474836480 bytes, 41943040 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disklabel type: gpt
Disk identifier: 248B1987-03F5-11EA-B31F-7D3559FEDCB6
Device Start End Sectors Size Type
/dev/mapper/pve-vm--110--disk--0-part1 64 1087 1024 512K FreeBSD
/dev/mapper/pve-vm--110--disk--0-part2 2048 8390655 8388608 4G FreeBSD
/dev/mapper/pve-vm--110--disk--0-part3 8390656 10487807 2097152 1G FreeBSD
/dev/mapper/pve-vm--110--disk--0-part4 10487808 31991807 21504000 10.3G FreeBSD
Partition 1 does not start on physical sector boundary.
Disk /dev/mapper/pve-vm--107--disk--1: 15 GiB, 16106127360 bytes, 31457280 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disk /dev/mapper/pve-vm--107--disk--2: 15 GiB, 16106127360 bytes, 31457280 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
root@debian:~# pvscan
PV /dev/nvme0n1p3 VG pve lvm2 [<465.26 GiB / 0 free]
Total: 1 [<465.26 GiB] / in use: 1 [<465.26 GiB] / in no VG: 0 [0 ]
root@debian:~# vgscan
Reading all physical volumes. This may take a while...
Found volume group "pve" using metadata type lvm2
root@debian:~# vgchange -a y
15 logical volume(s) in volume group "pve" now active
root@debian:~# lvscan
ACTIVE '/dev/pve/swap' [4.00 GiB] inherit
ACTIVE '/dev/pve/root' [45.99 GiB] inherit
ACTIVE '/dev/pve/data' [406.95 GiB] inherit
ACTIVE '/dev/pve/vm-101-disk-0' [10.00 GiB] inherit
ACTIVE '/dev/pve/vm-100-disk-0' [15.00 GiB] inherit
ACTIVE '/dev/pve/vm-103-disk-0' [10.00 GiB] inherit
ACTIVE '/dev/pve/vm-104-disk-0' [10.00 GiB] inherit
ACTIVE '/dev/pve/vm-105-disk-0' [8.00 GiB] inherit
ACTIVE '/dev/pve/vm-106-disk-0' [8.00 GiB] inherit
ACTIVE '/dev/pve/vm-102-disk-0' [15.00 GiB] inherit
ACTIVE '/dev/pve/vm-102-disk-1' [15.00 GiB] inherit
ACTIVE '/dev/pve/vm-107-disk-0' [15.00 GiB] inherit
ACTIVE '/dev/pve/vm-110-disk-0' [20.00 GiB] inherit
ACTIVE '/dev/pve/vm-107-disk-1' [15.00 GiB] inherit
ACTIVE '/dev/pve/vm-107-disk-2' [15.00 GiB] inherit
root@debian:~# mount /dev/pve/root /mnt
root@debian:~# chroot /mnt ( for test only )
chroot: failed to run command ‘/bin/bash’: No such file or directory
root@debian:~# /sbin/chroot /mnt ( for test only )
/sbin/chroot: failed to run command ‘/bin/bash’: No such file or directory
root@debian:~# mount --bind /dev /mnt/dev
root@debian:~# mount --bind /proc /mnt/proc
root@debian:~# mount --bind /sys /mnt/sys
root@debian:~# chroot /mnt ( for test only )
chroot: failed to run command ‘/bin/bash’: No such file or directory
root@debian:~# /sbin/chroot /mnt ( for test only )
/sbin/chroot: failed to run command ‘/bin/bash’: No such file or directory
root@debian:~# mount /dev/nvme0n1p2 /mnt/boot/efi
root@debian:~# chroot /mnt
chroot: failed to run command ‘/bin/bash’: No such file or directory
root@debian:~# /sbin/chroot /mnt
/sbin/chroot: failed to run command ‘/bin/bash’: No such file or directory
root@debian:~# mount /dev/nvme0n1p1 /mnt/boot
mount: /mnt/boot: wrong fs type, bad option, bad superblock on /dev/nvme0n1p1, missing codepage or helper program, or other error.
root@debian:~# chroot /mnt /bin/bash
chroot: failed to run command ‘/bin/bash’: No such file or directory
I don't understand how works the start of PVE, it's why I tested some command (https://gist.github.com/uglide/5f6f23903dac6b5f2567).
However, I know that chroot works because commands debootstrap --include=locales-all wheezy /mnt/TEST http://ftp.fr.debian.org/debian then chroot /mnt/TEST works very well.
What is my mistake ? Thank you for your help.