LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-20-2020, 06:59 PM   #1
LegionOfHell
Member
 
Registered: Jul 2020
Posts: 41

Rep: Reputation: Disabled
Trying to install “Ubuntu Base” in Vmware but getting a kernel panic!


Here is how I install Ubuntu Base in Vmware:

Quote:
load the live media
sudo passwd root
su root

parted -a optimal /dev/sda

* mklabel gpt
* print
* remove remaining partitions.(if there are any).
* unit mib
* mkpart primary 1 512
* name 1 boot
* set 1 boot on
* mkpart primary 512 -1
* name 2 rootfs
* print
* quit

mkfs.fat -F 32 /dev/sda1
mkfs.ext4 /dev/sda2

mount /dev/sda2 /mnt

tar xvfz ubuntu-base-20.04.1-base-amd64.tar.gz -C /mnt

cp /etc/resolv.conf /mnt/etc/resolv.conf

mount --rbind /sys /mnt/sys
mount --rbind /proc /mnt/proc
mount --rbind /dev /mnt/dev

chroot /mnt
mount /dev/sda1 /boot

apt-get update
apt-get install --no-install-recommends grub-efi
apt-get install --no-install-recommends linux-image-5.4.0-48-generic
apt-get install --no-install-recommends initramfs-tools
apt-get install --no-install-recommends nano

nano -w /etc/default/grub
update-grub
grub-install --target=x86_64-efi --efi-directory=/boot

nano -w /etc/fstab
----
/dev/sda1 /boot vfat defaults,noatime 0 2
/dev/sda2 / ext4 noatime 0 1
----

adduser l3gi0n
addgroup l3gi0n adm
addgroup l3gi0n sudo

passwd root

exit

reboot


I am getting this Kernel Panic: https://ibb.co/XFTKBtN


What did I do wrong ?

Last edited by LegionOfHell; 10-20-2020 at 07:33 PM.
 
Old 10-21-2020, 03:46 PM   #2
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,355

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
Reconfigure initramfs. The efi partition on /boot maybe the problem as fat32 doesn't support symlinks. On ubuntu systems the efi partition is usually mounted at /boot/efi and the boot partition if one exist mounted at /boot and normally formatted ext4. Any errors when running the apt-get commands? Does /usr/sbin/init exist?
 
Old 10-21-2020, 04:35 PM   #3
LegionOfHell
Member
 
Registered: Jul 2020
Posts: 41

Original Poster
Rep: Reputation: Disabled
I get this error during the kernel's installation(through apt) : https://ibb.co/PDJtFVF

Is this error why I get the kernel panic ? Can you tell me exactly what to do to get rid of this error ?

Instead of mount /dev/sda1 /boot I should do:

Quote:
mount /dev/sda1 /boot/efi
Instead of grub-install --target=x86_64-efi --efi-directory=/boot I should do:

Quote:
grub-install --target=x86_64-efi --efi-directory=/boot/efi
and my /etc/fstab line should read:

Quote:
/dev/sda1 /boot/efi vfat defaults,noatime 0 2
/dev/sda2 / ext4 noatime 0 1

On my Kubuntu laptop, /dev/sda1 is formatted as fat32...

Many Thanks

Last edited by LegionOfHell; 10-21-2020 at 04:46 PM.
 
Old 10-21-2020, 05:23 PM   #4
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,355

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
The efi partition should be formatted fat32, on your system is /dev/sda1
 
Old 10-21-2020, 06:09 PM   #5
LegionOfHell
Member
 
Registered: Jul 2020
Posts: 41

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
The efi partition should be formatted fat32, on your system is /dev/sda1
I already partitioned it as fat32:

Quote:
mkfs.fat -F 32 /dev/sda1
also:

https://ibb.co/z8Kb4p0
 
Old 10-21-2020, 07:49 PM   #6
LegionOfHell
Member
 
Registered: Jul 2020
Posts: 41

Original Poster
Rep: Reputation: Disabled
Resolved the issue by editing /etc/kernel-img.conf and adding:

Quote:
do_symlinks = no
no_symlinks = yes
 
Old 10-21-2020, 07:56 PM   #7
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,355

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
You will have less issues if you run the apt-get install commands in reverse order and add
Code:
apt-get install --no-install-recommends init
to the list
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
aptitude -f install Fails as "gcc-4.9-base" breaks "gcc-4.4-base" isaacarsenal Debian 2 07-04-2015 12:32 AM
Getting Error: Cannot find base url for repo: base (CentOS 6) tverbeek Linux - Newbie 8 10-04-2013 10:49 AM
How to configure 1000 Base T ethernet card to send at 1000 Base T? trist007 Linux - Newbie 12 09-23-2009 12:59 AM
Redhat base and Dedian base linux??? nw53 Linux - Newbie 6 04-29-2007 01:16 PM
Slackware 9 Kernel Panic while trying to install in VMWare 4 Jesterace Slackware 4 10-28-2003 08:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration