Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


VirtualBox running CentOS 7 Notes

December 2018 - Upgrade to CentOS 7.6:

Best practice is to clone a VM before upgrading so you have a clean starting point.

Got these errors upon trying to upgrade:

Finished Dependency Resolution
Error: Package: marco-1.16.1-3.el7.x86_64 (@epel)
         Removing: libgtop2-2.34.2-2.el7.x86_64 (@base)
         Updated By: libgtop2-2.38.0-3.el7.x86_64 (base)
Error: Package: mate-applets-1.16.0-1.el7.x86_64 (@epel)
         Removing: libgtop2-2.34.2-2.el7.x86_64 (@base)
         Updated By: libgtop2-2.38.0-3.el7.x86_64 (base)
Error: Package: mate-disk-usage-analyzer-1.16.1-1.el7.x86_64 (@epel)
         Removing: libgtop2-2.34.2-2.el7.x86_64 (@base)
         Updated By: libgtop2-2.38.0-3.el7.x86_64 (base)
Error: Package: mate-system-monitor-1.16.0-1.el7.x86_64 (@epel)
         Removing: libgtop2-2.34.2-2.el7.x86_64 (@base)
         Updated By: libgtop2-2.38.0-3.el7.x86_64 (base)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

Success with the following steps using libgtop2-2.36.0-1.fc26.x86_64.rpm:

# yum remove libgpod libgtop2
# yum -y update
# wget
# rpm -ivh libgtop2-2.36.0-1.fc26.x86_64.rpm
# yum install marco mate-applets mate-control-center mate-desktop mate-dictionary mate-disk-usage-analyzer mate-panel mate-panel-libs mate-session-manager mate-system-monitor

Rebooted, updated Guest Additions running on VirtualBox v5.2.22 but full-screen (Host+F) is not working properly.

* An option may be to use Kernel version 4)

  • Then install Kernel headers/tools using this link
  • Remember to update kernel-tools-lib, kernel-doc, kernel-headers, kernel-devel using the swap command in the 2nd link above

Video problem discussion solved in test build.

But Mouse focus problem crops up again. Also see ticket 17827

Note: Bug report for mouse problem in RHEL and CentOS has been submitted

I added comments about the video problem to ticket 18093.

September 2017 - Upgrade to CentOS 7.4:

Best practice is to clone a VM before upgrading so you have a clean starting point.

Right before upgrading to v7.4 I got an error due to a conflict between gstreamer1-plugins-base-1.10.4-1.el7.x86_64 and gstreamer1-plugins-bad-free-1.4.5-6.el7_3.x86_64. This seemed to be caused by the “totem” application but it was resolved in CentOS 7.4. I found a temporary workaround in 7.3 was to remove the RPM gstreamer1-plugins-bad-free which allowed other packages to update:

# yum remove gstreamer1-plugins-bad-free

However, when CentOS 7.4 became available I got another error:

Package dependency errors
Error: Package: libgpod-0.8.3-14.el7.x86_64 (@epel)
         Removing: libplist-1.10-4.el7.x86_64 (@base)
         Updated By: libplist-1.12-3.el7.x86_64 (base)
Error: Package: libgpod-0.8.3-14.el7.x86_64 (@epel)
         Removing: usbmuxd-1.0.8-11.el7.x86_64 (@base)
         Obsoleted By: usbmuxd-1.1.0-1.el7.x86_64 (base)
             Not found
Error: Package: libgpod-0.8.3-14.el7.x86_64 (@epel)
         Removing: libimobiledevice-1.1.5-6.el7.x86_64 (@base)
         Updated By: libimobiledevice-1.2.0-1.el7.x86_64 (base)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Removing this package allowed the upgrade to proceed:

# yum remove usbmuxd

But note these are the dependent packages that get removed:

usbmuxd                                            x86_64               1.0.8-11.el7                   @base                  186 k
Removing for dependencies:
brasero                                            x86_64               3.12.1-2.el7                   @base                   11 M
grilo-plugins                                      x86_64               0.2.14-8.el7                   @base                  1.5 M
gvfs-afc                                           x86_64               1.22.4-8.el7                   @base                  148 k
kactivities                                        x86_64               4.10.5-3.el7                   @base                  1.1 M
kate-part                                          x86_64               4.10.5-4.el7                   @base                  7.7 M
kde-plasma-networkmanagement                       x86_64               1:                @base                  1.4 M
kde-plasma-networkmanagement-libs                  x86_64               1:                @base                  5.3 M
kde-plasma-networkmanagement-openvpn               x86_64                       @epel                  153 k
kde-plasma-networkmanagement-vpnc                  x86_64                       @epel                  112 k
kde-runtime                                        x86_64               4.10.5-8.el7                   @base                   14 M
kde-runtime-drkonqi                                x86_64               4.10.5-8.el7                   @base                  518 k
kde-runtime-libs                                   x86_64               4.10.5-8.el7                   @base                  5.0 M
kdelibs                                            x86_64               6:4.14.8-6.el7_3               @updates                41 M
kdelibs-ktexteditor                                x86_64               6:4.14.8-6.el7_3               @updates               272 k
kdepimlibs                                         x86_64               4.10.5-4.el7                   @base                  8.6 M
kdepimlibs-kxmlrpcclient                           x86_64               4.10.5-4.el7                   @base                   62 k
libgpod                                            x86_64               0.8.3-14.el7                   @epel                  898 k
libimobiledevice                                   x86_64               1.1.5-6.el7                    @base                  383 k
mate-applets                                       x86_64               1.16.0-1.el7                   @epel                   16 M
mate-power-manager                                 x86_64               1.16.2-1.el7                   @epel                  7.4 M
nepomuk-core                                       x86_64               4.10.5-5.el7                   @base                  1.7 M
nepomuk-core-libs                                  x86_64               4.10.5-5.el7                   @base                  1.1 M
rhythmbox                                          x86_64               3.3.1-5.el7                    @base                   14 M
tracker                                            x86_64               1.2.7-2.el7                    @base                  5.2 M
upower                                             x86_64               0.99.2-1.el7                   @base                  417 k

After I updated to CentOS 7.4 I was able to reinstall totem without any issues.

VLC also installs OK and it uses the Nux Desktop repository.

An updated mate-themes RPM was released to fix badly-formatted pull-down menus (ex. mate-terminal).

Mutt stopped sending emails on cron and it was reported on Stack Overflow:

Bad IDN in "from": 'machine_name'

The RHEL 7.4 package is mutt-1.5.21-27.el7.x86_64 (in CentOS 7.3 it was mutt-1.5.21-26.el7.x86_64). Downloaded and installed mutt-1.6.2-1.fc22.x86_64.rpm from as a workaround.

On the host machine, samba was upgraded from v4.4 to v4.6 which prevented authentication to the shares.

June 2017 - Adding a CAC smart card:

  • Add the “vboxusers” group to the linux account that normally runs VirtualBox
    • A reboot may be required
  • Download the VirtualBox Extension Pack
  • Open VirtualBox and go to File > Preferences > Extensions
  • Install the Extension Pack you just downloaded
  • As root: VBoxManage list usbhost
  • Follow rest of instructions from work

October 2016:

  • Running a text-only version of a VM guest does not shut down cleanly
    • I thought that changing the GRUB2 default resolution fixed it, but it does not
    • See CentOS 7 Migration Notes for details on how to change default screen resolution
  • Other option is to try setting base memory to 1024 MB (512 MB had problem)

September 2016:

  • Updated host computer to kernel-3.10.0-327.36.1.el7.x86_64 and VirtualBox would not start
  • su - root
  • /sbin/rcvboxdrv setup
  • Took about 10 minutes to run, it reset the DKMS packages and normal startup resumed

When first setting up the VM with Oracle VirtualBox, you may see “failed to access perfctr msr” error appears at initial boot. But the program continues installing normally after several seconds.

CentOS 7 Netinstall Guide

RedHat 7 Disk Partitioning Guide

Disk partitioning used the following, where system RAM was 1536 MB and total disk size was 15GB:

  • /swap 3072MB
  • /boot 768MB
  • / (fill to disk)

CentOS 7 mirror:

yum install wget

Follow instructions to Install MATE Desktop

Note that there might be a problem with installing the “Development Tools” group. If so, follow these instructions:

# yum groupinfo -v "Development Tools"
# yum groups mark install -v "Development Tools"
# yum list updates  (note: you will see a bunch of packages to install now)
# yum -y update

Continue with the rest of the MATE desktop installation steps.

Proceed with CentOS 7 Migration Notes

Before migrating users' $HOME, make a test user on CentOS 7 and on CentOS 6. Login to each graphically. See if the hidden files have changed format and use that info when migrating the $HOME directories.

Remove open-vm-* packages as they are not needed on non-VMWare machines:

  • If open-vm-tools does not want to uninstall, at least remove open-vm-tools-desktop and open-vm-tools-devel.

After everything is configured make a clone and deploy as needed:

  • Change the hostname
  • Change .muttrc files (for each user) for the new hostname
  • Reinitialize MAC address
    • When connecting for the first time, may need to left-click network icon and connect to “Auto Ethernet” network and make sure it's set to auto-connect. Then delete other, pre-existing network.
  • Reserve DHCP IP address in LAN router

For network start/stop failure messages:

  • In /etc/sysconfig/network-scripts/ifcfg-lo try adding “TYPE=Loopback”
virtualbox_for_centos_7_notes.txt · Last modified: 2019/04/19 13:09 by juckins