Kali Linux upgrade - boot - kernel panic

Discussion in 'Linux Virtual Machine' started by MarcM11, Sep 10, 2023.

  1. MarcM11

    MarcM11 Bit poster

    Messages:
    2
    Hello,

    i have updated Kali Linux , now the Kali is not booting with Kernel 6.4

    Anybody knows how to solve this?

    Regards
     
  2. csftech

    csftech Bit poster

    Messages:
    5
    Best Answer
    The main reason for the kernel panic is due to changes in the Linux Kernel in the following two commits:
    (1) https://github.com/torvalds/linux/commit/54d020692b342f7bd02d7f5795fb5c401caecfcc
    (2) https://github.com/torvalds/linux/commit/3e3271549670783be20e233a2b78a87a0b04c715

    Here is a quick workaround, but it's not an official solution provided by Parallels. If it is not urgently needed, it is recommended to wait for an official update of Parallels Tools.
    First, boot Kali with the old kernel (6.4.0) and use the attached file to patch the following two files. Afterward, you can upgrade the kernel to 6.5.0 using `apt update`:
    (1) /var/lib/dkms/parallels-tools/19.0.0.54570/source/prl_fs/SharedFolders/Guest/Linux/prl_fs/file.c
    (2) /var/lib/dkms/parallels-tools/19.0.0.54570/source/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg_compat.h
     

    Attached Files:

  3. MarcM11

    MarcM11 Bit poster

    Messages:
    2
    Screenshots from error:
     

    Attached Files:

  4. csftech

    csftech Bit poster

    Messages:
    5
    Best Answer
    The main reason for the kernel panic is due to changes in the Linux Kernel in the following two commits:
    (1) https://github.com/torvalds/linux/commit/54d020692b342f7bd02d7f5795fb5c401caecfcc
    (2) https://github.com/torvalds/linux/commit/3e3271549670783be20e233a2b78a87a0b04c715

    Here is a quick workaround, but it's not an official solution provided by Parallels. If it is not urgently needed, it is recommended to wait for an official update of Parallels Tools.
    First, boot Kali with the old kernel (6.4.0) and use the attached file to patch the following two files. Afterward, you can upgrade the kernel to 6.5.0 using `apt update`:
    (1) /var/lib/dkms/parallels-tools/19.0.0.54570/source/prl_fs/SharedFolders/Guest/Linux/prl_fs/file.c
    (2) /var/lib/dkms/parallels-tools/19.0.0.54570/source/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg_compat.h
     

    Attached Files:

  5. cyb3rw0lf

    cyb3rw0lf Junior Member

    Messages:
    12
    Thanks a lot, this worked!

    After a failed attempt to upgrade to kernel 6.5.0 I did the following to fix it
    1. I booted my kali VM with kernel 6.3.0 and Uninstalled kernel 6.5.0 (this also autoremoved linux-image-arm64 and linux-header-arm64)
    user$ sudo apt remove linux-headers-6.5.0-kali1-arm64 linux-image-6.5.0-kali1-arm64 linux-headers-6.5.0-kali1-common linux-kbuild-6.5.0-kali1

    2. Manually deleted the /lib/modules/6.5.0-kali1-arm64 folder
    sudo rm -rf /lib/modules/6.5.0-kali1-arm64

    3. Reinstalled parallel tools
    user$ sudo mount -oro,exec,remount /media/cdrom
    user$ sudo /media/cdrom/install


    4. Patched the files with your patch
    root# cd /var/lib/dkms/parallels-tools/19.0.0.54570/source
    root# patch -p1 < /home/user/Downloads/parallels-tools_kernel_6_5_0.txt


    5. Reinstalled the new kernel and headers
    sudo apt update
    sudo apt install linux-image-arm64 linux-header-arm64
     
  6. ring0

    ring0 Bit poster

    Messages:
    3
    Thanks csftech, cyb3rw0lf. The patch worked great.
     

Share This Page