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 [2025/06/25 18: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 ====
  
-__2024-11-21__+__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 with package errors.+Upgrade to Rocky Linux 9.6 initially failed on test VM with package errors.
  
   Trying these steps on a test VM:   Trying these steps on a test VM:
Line 19: Line 40:
 Upgraded host computer's VirtualBox to version 7.1-7.1.10 (was running 7.1.4) 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 but Xfce logs in for 1 second, a black screens appears, and then the sytem logs out.  <color #ed1c24>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>+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__ __2024-11-25__
Line 90: 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.
Line 131: 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 241: 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 253: 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.1750890379.txt.gz · Last modified: by juckins