Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


rocky_linux_9_migration_notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
rocky_linux_9_migration_notes [2024/10/09 08:26] juckinsrocky_linux_9_migration_notes [2025/10/20 18:41] (current) juckins
Line 1: Line 1:
 ==== Rocky Linux 9 Migration Notes ==== ==== Rocky Linux 9 Migration Notes ====
 +
 +__2025-10-20__
 +
 +Some kernels were missing from DNF repos; Virtual Box would not start after upgrading.  Downgraded to previous kernel, __rebooted twice__, and then it started OK.
 +
 +
 +__2025-10-18__
 +
 +The network manager icon in the system try disappeared.  Had to do the following: 
 +
 +  dnf install network-manager-applet
 +
 +Go to Applications > Settings > Session and Startup
 +
 +Then Application Autostart > Add
 +
 +Command: /usr/bin/nm-applet
 +
 +Trigger: on login
 +
 +Reboot and the icon stayed.
 +
 +__2025-06-25__
 +
 +Upgrade to Rocky Linux 9.6 initially failed on test VM with package errors.
 +
 +  Trying these steps on a test VM:
 +
 +  dnf remove vlc totem gstreamer1-plugins-bad-free gstreamer1-plugins-ugly-free
 +  dnf update
 +  dnf install vlc totem
 +  
 +Then reinstall VBox Guest Additions.
 +
 +Got message ''/var/log/vboxadd-setup.log to find out what went wrong'' (Building the modules for [current] kernel failed).
 +
 +Rebooted and then tried installing kernel-debug-devel but same problem.
 +
 +Upgraded host computer's VirtualBox to version 7.1-7.1.10 (was running 7.1.4)
 +
 +Now can upgrade from 9.5 to 9.6 on VirtualBox VMs but Xfce logs in for 1 second, a black screens appears, and then the sytem logs out.  
 +
 +<color #ed1c24>The fix is to choose a different window manager on the main login screen (upper right, choose "GNOME Classic on Wayland").  After logging in successfully, log out and then go back to the main screen and choose the "Xfce Session".</color>
 +
 +For my non-virtual, primary Rocky Linux 9 machine the upgrade from 9.5 to 9.6 worked without issue but upon reboot, I got the following error:
 +
 +''VirtualBox can't operate in VMX root mode. Please disable the KVM kernel extension, recompile your kernel and reboot (VERR_VMX_IN_VMX_ROOT_MODE).''
 +
 +Using a [[https://www.google.com/search?q=VirtualBox+can%27t+operate+in+VMX+root+mode.+Please+disable+the+KVM+kernel+extension%2C+recompile+your+kernel+and+reboot+(VERR_VMX_IN_VMX_ROOT_MODE).&oq=VirtualBox+can%27t+operate+in+VMX+root+mode.+Please+disable+the+KVM+kernel+extension%2C+recompile+your+kernel+and+reboot+(VERR_VMX_IN_VMX_ROOT_MODE).&gs_lcrp=EgZjaHJvbWUyBggAEEUYOTIHCAEQIRiPAjIHCAIQIRiPAtIBCTYzNTVqMGoxNagCCLACAfEFCfv4GIhBFt3xBQn7-BiIQRbd&sourceid=chrome&ie=UTF-8|Google Search]], the temporary fix was to do the following {{ :0:virtualbox-vmx-problem.pdf|see PDF}}:
 +
 +  # lsmod | grep kvm
 +  
 +Verified the following output:
 +
 +  kvm_intel             446464  0
 +  kvm                  1404928  1 kvm_intel
 +
 +Disabled the KVM temporarily:
 +
 +  # modprobe -r kvm_intel
 +  
 +Verified nothing was returned with the following command:
 +  
 +  # lsmod | grep kvm
 +  
 +Was then able to start up the VMs using the VirtualBox GUI successfully.
 +
 +Need to reboot machine and see if fix stays.  Otherwise, the permanent fix is the following:
 +
 +  Create a file named kvm-blacklist.conf in /etc/modprobe.d/
 +
 +Add the blacklist entry: Add the appropriate line to the file: 
 +
 +  blacklist kvm_intel 
 +  
 +-or-
 +  
 +  blacklist kvm_amd 
 +
 +Reboot to apply the changes. 
 +
 +__2024-11-25__
 +
 +Old news, but LibreOffice no longer supported by RedHat.  Get the latest LibreOffice from https://www.libreoffice.org/download/download-libreoffice/ 
 +
 +Unpack the tar and verify you see individual RPMs.  Then:
 +
 +  dnf localinstall *.rpm
 +  
 +You can then start an application like this:
 +
 +  libreoffice24.8 --calc test.csv
 +  
 +Make a .bashrc alias for shortcuts.
 +
 +__2024-11-21__
 +
 +Upgrade to Rocky Linux 9.5:
 +
 +Had to run the following due to package problems (which will break 'vlc')
 +
 +  dnf remove compat-ffmpeg4 ffmpeg-libs vlc 
 +  dnf update
 +  dnf install vlc gstreamer1-plugin-openh264
 +  
 +Then security cameras running vlc and totem worked correctly.
  
 __2024-05-13__ __2024-05-13__
Line 43: Line 149:
   * Run the [[dnf_installer_bash_script_rocky_linux_9|Rocky Linux 9 bash setup script]] to get the usual extras, add-ons and other packages   * Run the [[dnf_installer_bash_script_rocky_linux_9|Rocky Linux 9 bash setup script]] to get the usual extras, add-ons and other packages
   * Reboot target computer and login.   * Reboot target computer and login.
 +
 +Change the system hostname
 +
 +  nmcli general hostname
 +  nmcli general hostname new_server_name
 +  systemctl restart systemd-hostnamed
 +
  
   * Since Xfce will be installed by running the bash script noted above, you can copy in pre-existing configs from another machine that already has Xfce installed.   * Since Xfce will be installed by running the bash script noted above, you can copy in pre-existing configs from another machine that already has Xfce installed.
-    * Copy files in ''~/.config/xfce4/'' from another pre-configured machine to this machine +    * Log out of the target machine 
-    * ''cd .config/xfce4; rsync -avzn --delete --progress . XX.XX.XX.XX:~/.config/xfce4/''    +    * Copy files in ''~/.config/xfce4/'' from another pre-configured machine to the target machine 
 +    * ''cd .config/xfce4; rsync -avzn --delete --progress . XX.XX.XX.XX:~/.config/xfce4/''   
 +    * Copy files in ''~/.config/Thunar/'' from another pre-configured machine to the target machine 
 +    * ''cd .config/Thunar; rsync -avzn --delete --progress . XX.XX.XX.XX:~/.config/Thunar/'' 
 +    * Reboot the target machine
     * See {{:xfce.png?linkonly|Xfce Desktop image 1}} or {{:xfce_desktop_layout.png?linkonly|Xfce Desktop image 2}} for suggested icons, placement, etc.     * See {{:xfce.png?linkonly|Xfce Desktop image 1}} or {{:xfce_desktop_layout.png?linkonly|Xfce Desktop image 2}} for suggested icons, placement, etc.
       * [[https://itsfoss.com/install-themes-xfce-xubuntu/|Notes for installing additional Xfce themes]]       * [[https://itsfoss.com/install-themes-xfce-xubuntu/|Notes for installing additional Xfce themes]]
Line 80: Line 197:
       * Can also try ''firewall-config'' to clone rules from previous machine       * Can also try ''firewall-config'' to clone rules from previous machine
     * [[https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-using-firewalld-on-centos-8|Add https and http to firewall rules]]     * [[https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-using-firewalld-on-centos-8|Add https and http to firewall rules]]
-      * ''firewall-cmd --zone=public --add-service=http --permanent'' +      * ''firewall-cmd %%--%%zone=public %%--%%add-service=http %%--%%permanent'' 
-      * ''firewall-cmd --zone=public --add-service=https --permanent''+      * ''firewall-cmd %%--%%zone=public %%--%%add-service=https %%--%%permanent'' 
 +      * May need to reboot
     * [[https://www.cyberciti.biz/faq/how-to-protect-ssh-with-fail2ban-on-centos-8/|Configure fail2ban]]     * [[https://www.cyberciti.biz/faq/how-to-protect-ssh-with-fail2ban-on-centos-8/|Configure fail2ban]]
       * Edit ''/etc/fail2ban/jail.local'' to ban for longer than default of 1 hour       * Edit ''/etc/fail2ban/jail.local'' to ban for longer than default of 1 hour
Line 167: Line 285:
     * Use option settings to make it the default printer and use 600x600 DPI quality     * Use option settings to make it the default printer and use 600x600 DPI quality
     * Test using enscript filename.txt (old a2ps command)     * Test using enscript filename.txt (old a2ps command)
 +    * **When using evince to print out PDFs, it seems you need to choose "Print to "LPR".**  
 +      * Otherwise the output does not fit the page.
 +      * Note that Libre Office can print to the printer name "Brother_HL-2170W" without a problem.
     * See if printer is default with ''lpstat -p -d'' and/or set it with ''lpoptions -d PRINTER_NAME''     * See if printer is default with ''lpstat -p -d'' and/or set it with ''lpoptions -d PRINTER_NAME''
     * ''lpstat -d'' should now show the new printer as the default     * ''lpstat -d'' should now show the new printer as the default
Line 176: Line 297:
   * Check any remaining ''/etc/yum.repos.d/*'' configuration setup   * Check any remaining ''/etc/yum.repos.d/*'' configuration setup
     * For example, [[https://www.speedtest.net/apps/cli|Ookla Speedtest CLI]]     * For example, [[https://www.speedtest.net/apps/cli|Ookla Speedtest CLI]]
 +      * If Ookla becomes a graphical output, might need to consider ''dnf install speedtest-cli''
   * Mount /disk2 (see [[adding_a_second_hard_drive]])   * Mount /disk2 (see [[adding_a_second_hard_drive]])
   * Install [[https://github.com/pwsafe/pwsafe/releases?q=non-windows&expanded=true|PasswordSafe for Linux]]   * Install [[https://github.com/pwsafe/pwsafe/releases?q=non-windows&expanded=true|PasswordSafe for Linux]]
Line 186: Line 308:
     * Right-click top panel > Add New Items     * Right-click top panel > Add New Items
     * Add CPU Graph, Weather Info     * Add CPU Graph, Weather Info
 +  * Adjust keyboard repeat delay and repeat speed (Applications > Settings > Keyboard)
 +    * Repeat delay: 500
 +    * Repeat speed: 65
   * Adjust top and bottom panels   * Adjust top and bottom panels
     * Reverse positions     * Reverse positions
Line 198: Line 323:
 __Post Installation__ __Post Installation__
  
 +  * Possibly want to adjust the grub timeout from the default of 5 seconds to something like 10 or 12 seconds to be sure the menu appears when the machine boots up.
 +    * As root, modify ''/etc/default/grub'' by setting GRUB_TIMEOUT to the desired value.
 +    * As root, run ''grub2-mkconfig -o /boot/grub2/grub.cfg''
 +    * Reboot to test.
   * In /root/bin on old/new machines, see final_sync_for_new_server.txt   * In /root/bin on old/new machines, see final_sync_for_new_server.txt
   * As root, use ''alpine'' to check email from crons that indicate any errors or failures   * As root, use ''alpine'' to check email from crons that indicate any errors or failures
rocky_linux_9_migration_notes.1728476763.txt.gz · Last modified: by juckins