Pawan Bahuguna

Let's Learn and Share
Menu
  • Home
  • Certification Guide
  • Tips
  • Disclaimer
  • Privacy
  • Contact

Home
Linux
“Section %packages does not end with %end. Pane is dead” Error in CentOS 8 / RHEL 8
Linux

“Section %packages does not end with %end. Pane is dead” Error in CentOS 8 / RHEL 8

Pawan Bahuguna

If you are looking for a solution to fix the error “Section %packages does not end with %end. Pane is dead” while installing CentOS 8 / RHEL 8 on VMware workstation, then this is the article for you.

Pane is dead Error in CentOS 8

In our previous article, we showed you how to install CentOS 8 on VMware workstation and during that time we faced above-mentioned error, which did not allow us to install CentOS 8.

CentOS 8 Pane is dead

It seems to be a CentOS 8 bug at first thought, but after researching I found some people also faced the same issue and were asked to contact their Virtual software vendors.

So I started contemplating and thought to check the settings of my virtual machine on VMware Workstation and surprisingly, I found CD/DVD drive added to my virtual machine hardware settings which were using autoinst.iso image.

Don’t know why VMware Workstation added this extra drive without asking or giving any notice. I tried to analyze the content of the autoinst.iso which was present in the same location as my CentOS 8 virtual machine files according to the error “The following error occurred on line 31 of the kickstart file: Section %packages does not end with %end. Pane is dead“

C:\Users\<account>\Documents\Virtual Machines\Cent8

Content of autoinst.iso

After analyzing, I was not able to link the line number on the error message to KS.CFG file present in ISO. Below are the screenshot and content of KS.cfg for your reference. If you want you can take a look and let me know your thoughts.

autoinst iso Content

#langsupport --default en_US
network --bootproto dhcp
cdrom
keyboard us
zerombr yes
clearpart --all --initlabel
part /boot --size 300
part swap --recommended
part / --size 3000 --grow
#part biosboot --fstype=biosboot --size=1
install
#mouse generic3ps/2
firstboot --disable
firewall --enabled
timezone --utc America/Los_Angeles
xconfig --startxonboot --resolution=800x600
rootpw --iscrypted $1$uzIbrDro$RhfwbnmqkvsVwwORfm9Vo1
reboot
auth --useshadow --enablemd5
bootloader --location=mbr
#key --skip
%packages
python
@ X Window System
@ GNOME Desktop Environment
@ Graphical Internet
@ Development Tools

#%end
%post
if [ -f /boot/grub/menu.lst -a ! -h /boot/grub/menu.lst ]; then cp /boot/grub/menu.lst /boot/grub/menu.lst.bak && sed -i 's/ rhgb//' /boot/grub/menu.lst; fi
if [ -f /boot/grub/grub.conf -a ! -h /boot/grub/grub.conf ]; then cp /boot/grub/grub.conf /boot/grub/grub.conf.bak && sed -i 's/ rhgb//' /boot/grub/grub.conf; fi
if [ -f /boot/grub2/grub.conf -a ! -h /boot/grub2/grub.conf ]; then cp /boot/grub2/grub.conf /boot/grub2/grub.conf.bak && sed -i 's/ rhgb//' /boot/grub2/grub.conf; fi
if [ -f /etc/rc.d/rc.local ]; then cp /etc/rc.d/rc.local /etc/rc.d/rc.local.backup; fi
cat >>/etc/rc.d/rc.local <<EOF
#!/bin/bash
echo
echo "Installing VMware Tools, please wait..."
if [ -x /usr/sbin/getenforce ]; then oldenforce=\$(/usr/sbin/getenforce); /usr/sbin/setenforce permissive || true; fi
mkdir -p /tmp/vmware-toolsmnt0
for i in hda sr0 scd0; do mount -t iso9660 /dev/\$i /tmp/vmware-toolsmnt0 && break; done
cp -a /tmp/vmware-toolsmnt0 /opt/vmware-tools-installer
chmod 755 /opt/vmware-tools-installer
cd /opt/vmware-tools-installer
mv upgra32 vmware-tools-upgrader-32
mv upgra64 vmware-tools-upgrader-64
mv upgrade.sh run_upgrader.sh
chmod +x /opt/vmware-tools-installer/*upgr*
umount /tmp/vmware-toolsmnt0
rmdir /tmp/vmware-toolsmnt0
if [ -x /usr/bin/rhgb-client ]; then /usr/bin/rhgb-client --quit; fi
cd /opt/vmware-tools-installer
for s in sr0 sr1; do eject -s /dev/\$s; done
./run_upgrader.sh
if [ -f /etc/rc.d/rc.local.backup ]; then mv /etc/rc.d/rc.local.backup /etc/rc.d/rc.local; else rm -f /etc/rc.d/rc.local; fi
rm -rf /opt/vmware-tools-installer
sed -i 's/3:initdefault/5:initdefault/' /etc/inittab
if [ -f /boot/grub/menu.lst.bak ]; then mv /boot/grub/menu.lst.bak /boot/grub/menu.lst; fi
if [ -f /boot/grub/grub.conf.bak ]; then mv /boot/grub/grub.conf.bak /boot/grub/grub.conf; fi
if [ -f /boot/grub2/grub.conf.bak ]; then mv /boot/grub2/grub.conf.bak /boot/grub2/grub.conf; fi
if [ -x /usr/sbin/getenforce ]; then /usr/sbin/setenforce \$oldenforce || true; fi
if [ -x /bin/systemd ]; then systemctl restart prefdm.service; else telinit 5; fi
EOF
chmod 755 /etc/rc.d/rc.local
if [ -x /bin/systemd ]; then systemctl enable rc-local.service; fi
/usr/sbin/adduser pawan
/usr/sbin/usermod -p '$1$uzIbrDro$RhfwbnmqkvsVwwORfm9Vo1' pawan
/usr/bin/chfn -f "Pawan" pawan
/bin/echo done
#%end

The Solution

The solution to this problem is very simple.
 
Just after checking the content of autoinst.iso, I thought to remove the extra CD/DVD drive from the hardware setting and it worked without any issue.
 
Please check the below screenshot for the same.

Cent 8 Pane is dead Solution

I hope this tutorial has helped you and now you are able to install CentOS 8 / RHEL 8 without any problem. If you are still facing any problems, just let me know through your comments. If you have any other suggestions, do let me know.
 

Please also subscribe to my free email newsletter for more tutorials on Linux/Unix and other useful stuff.

Share
Pinterest
Linkedin
Tweet
Google+
Stumble
Email
Prev Article
Next Article

Related Articles

Useful firewalld Commands for Administrators with Examples
Firewalld is a new firewall management tool which is introduced …

Useful firewalld Commands for Administrators with Examples

How to Update Linux Server using YUM
Keeping your Linux/Unix server updated is a very crucial task …

[Linux Basic Tutorial] How to Update Linux Server using YUM

Tags:How To Linux Redhat Redhat Certification RHCE RHCSA Tips

18 Comments

  1. Kedar Korgaonkar

    Hey Pawan.. it worked for me .. Thanks a lot!!

    March 28, 2021
  2. Patrick

    Worked for me, too!

    Many thanks!

    May 21, 2020
  3. Sujeesh

    Thank you
    it worked after your suggestion

    April 22, 2020
    • Pawan Bahuguna

      Thanks for the feedback.

      April 22, 2020
  4. Paco

    Fantastic. Worked like a charm and you saved me a lot of time here. Thank you so much for a work well done!!

    April 8, 2020
    • Pawan Bahuguna

      Thanks for appreciating Paco.

      April 8, 2020
  5. Abhay

    nice ,it worked.

    March 19, 2020
  6. Saksham

    Thanks Buddy for helping me out from this error

    March 15, 2020
  7. Salma

    Thank you it’s working !!

    February 9, 2020
  8. Pradeep Pant

    Thanks Pawan. Disabling another CD drive resolved the issue. Thanks for sharing.

    January 27, 2020
    • Pawan Bahuguna

      Glad that it worked for you and you have a great blog. Keep sharing your knowledge through it.

      January 27, 2020
  9. Troy

    Thanks for the write up. I’m sure the solution that you gave worked, but I tweaked it just a bit and just unchecked the “start at bootup” box and it worked as well. I am thinking that this second CD drive is the either the easy install or vmtools that VMWare is wanting to load.

    January 23, 2020
    • Pawan Bahuguna

      Hi Troy,

      Thanks for taking the time to write the comment. I think your suggestion is also great, I would try that out.

      January 24, 2020
  10. scottj

    Your solution saved me. Thank you!

    January 15, 2020
    • Pawan Bahuguna

      Thanks for reading the solution and commenting.

      January 16, 2020
  11. adapa

    or
    if no second cd created,
    make vm then add the iso

    November 15, 2019
  12. Ap_Roll

    it worked! thanks

    November 15, 2019
    • Pawan Bahuguna

      Glad that it worked. Keep visiting.

      November 15, 2019

Certifications at Discount

> Certified Kubernetes Security Specialist (CKS)
> Certified Kubernetes Application Developer (CKAD)!
> Certified Kubernetes Administrator (CKA)!
> Linux Networking and Administration (LFS211)
> Monitoring Systems and Services with Prometheus (LFS241)
> More at The Linux Foundation

Lets Connect

  • Popular
  • Recent

Free Newsletter

Subscribe NOW!

We don’t spam! Read our privacy policy for more info.

Check your inbox or spam folder to confirm your subscription.

Pawan Bahuguna

Let's Learn and Share
Copyright © 2025 Pawan Bahuguna
Home | Privacy Policy | Disclaimer | Contact