Debian 10 VMware: Trying to Create a Grub 40_custom Menuentry for Kali Linux
by Summarill from LinuxQuestions.org on (#51ZM2)
So I am on VMware using Debian 10 trying to get a Grub Boot Menuentry for Kali Linux for a project for college however I have been unable to get it to run the iso.
I have put my Iso file in /mnt/iso and made sure to copy the name correctly.
I then put this into 40_custom
where I am supposed to
~ Code ~
menuentry 'kali-linux-amd64.iso' {
set isofile='/mnt/iso/kali-linux-2020.lb-live-amd64.iso'
loopback loop $isofile
linux (loop)/live/vmlinuz boot=live findiso=$isofile noconfig=sudo username=root hostname=kali
initrd (loop)/live/initrd.img
}
~
This is exactly what my teacher wanted us to put in 40_custom
After putting it in I did update-grub
and then rebooted.
When I got to the Grub menu my entry showed up but when I went to run it, it gave me an error.
~ Error ~
error: file '/mnt/iso/kali-linux-2020.lb-live-amd64.iso'
error: disk 'loop' not found
error: you need to load the kernel first.
Press any key to continue
~
I am unsure what to do from here.


I have put my Iso file in /mnt/iso and made sure to copy the name correctly.
I then put this into 40_custom
where I am supposed to
~ Code ~
menuentry 'kali-linux-amd64.iso' {
set isofile='/mnt/iso/kali-linux-2020.lb-live-amd64.iso'
loopback loop $isofile
linux (loop)/live/vmlinuz boot=live findiso=$isofile noconfig=sudo username=root hostname=kali
initrd (loop)/live/initrd.img
}
~
This is exactly what my teacher wanted us to put in 40_custom
After putting it in I did update-grub
and then rebooted.
When I got to the Grub menu my entry showed up but when I went to run it, it gave me an error.
~ Error ~
error: file '/mnt/iso/kali-linux-2020.lb-live-amd64.iso'
error: disk 'loop' not found
error: you need to load the kernel first.
Press any key to continue
~
I am unsure what to do from here.