Hide Forgot
Description of problem: * During a minimal RHEL 7.3 installation, open-vm-tools-desktop is getting installed along with plenty of X library packages as its dependencies * X11 is included on a minimal install on VMware. I expect a minimal install to be without unneeded packages. Version-Release number of selected component (if applicable): - Red Hat Enterprise Linux Server release 7.3 (Maipo) How reproducible: - take a sample given kickstart file to install minimal RHEL 7.3 ~~~ # cat /var/www/html/test.cfg lang en_US url --url http://<http_source>/rh7.3/ keyboard us timezone America/New_York --isUtc rootpw redhat bootloader --location=mbr zerombr clearpart --all --initlabel autopart auth --passalgo=sha512 --useshadow selinux --enforcing firewall --disabled firstboot --disable text skipx %packages --nobase @Core %end ~~~ And the 'open-vm-tools-desktop' package got installed on the system. ~~~ # cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.3 (Maipo) # rpm -qa |grep open-vm-tools open-vm-tools-10.0.5-2.el7.x86_64 open-vm-tools-desktop-10.0.5-2.el7.x86_64 ~~~ Actual results: - for minimal install, open-vm-tools-desktop should not get installed since its causes installing other X library files as its dependencies Expected results: - only open-vm-tools package should install and not 'open-vm-tools-desktop' Additional info: - However on RHEL 7.2, I didn't see 'open-vm-tools' package installed on the system with the same kickstart.
I'm certain that open-vm-tools only is supposed to be installed, not the -desktop subpackage. I think this should probably be reassigned to comps, however I'm not sure what component that would be. Cathy, could you have a look at this? I'm on holiday for the next 3 weeks.
Change component to releng, this issue is caused by Bug https://bugzilla.redhat.com/show_bug.cgi?id=1128287
There are two use cases: 1. OS being installed without X (headless) NOTE: open-vm-tools must be installed in this case 2. OS being installed with X (with desktop environment) NOTE: open-vm-tools-desktop must be installed in this case I believe minimal install falls under #1 above.
This package gets installed as part of @guest-agents, @guest-desktop and @platform-vmware yum groups. This group is not being installed by default in our configs -bash-4.1$ egrep "guest.*agents|platform-vmware" variants-rhel-7.4.xml <group default="false">guest-agents</group> <group default="false">platform-vmware</group> <group default="false">guest-desktop-agents</group> <group default="false">platform-vmware</group> <group default="false">guest-agents</group> <group default="false">guest-desktop-agents</group> <group default="false">platform-vmware</group> <group default="false">guest-agents</group> <group default="false">guest-desktop-agents</group> <group default="false">platform-vmware</group> <group default="false">guest-agents</group> <group default="false">guest-desktop-agents</group> <group default="false">platform-vmware</group> rel-eng does not own these profile definitions in rhel-7 (we still own them in <= RHEL-6). Moving to anaconda
Anaconda installs all mandatory and default packages from the group '@platform-<name>', where <name> is a detected name of a virtualization platform, in this case wmware. It is a result of the requests https://bugzilla.redhat.com/show_bug.cgi?id=884385 and https://bugzilla.redhat.com/show_bug.cgi?id=1128287 . We can enable the option to remove the specific packages with '-<package>' in the %package section, in this case '-open-vm-tools-desktop', but we suggest to make the open-vm-tools-desktop package optional in the @platform-vmware group. In that case, anaconda will not install the open-vm-tools-desktop package by default.
(In reply to Vendula Poncova from comment #6) > We can enable the option to remove the specific packages with '-<package>' > in the %package section, in this case '-open-vm-tools-desktop', but we > suggest to make the open-vm-tools-desktop package optional in the > @platform-vmware group. In that case, anaconda will not install the > open-vm-tools-desktop package by default. This seem sensible. Just make sure that open-vm-tools itself remains mandatory.
commit f052afedece48a5a2d19626f24924bee37efed3a Author: Lubos Kocman <lkocman> Date: Mon Mar 6 11:46:36 2017 -0500 rhel-7.4: make open-vm-tools-desktop optional in @platform-vmware. rhbz#1128287 diff --git a/comps-rhel-7.4.xml b/comps-rhel-7.4.xml index 7a20da2..9c68bae 100644 --- a/comps-rhel-7.4.xml +++ b/comps-rhel-7.4.xml @@ -5245,7 +5245,7 @@ <uservisible>false</uservisible> <packagelist> <packagereq type="default">open-vm-tools</packagereq> - <packagereq type="default">open-vm-tools-desktop</packagereq> + <packagereq type="optional">open-vm-tools-desktop</packagereq> </packagelist> </group> <group> diff --git a/comps-rhel-7.4.xml.in b/comps-rhel-7.4.xml.in index b0035a6..3863ad1 100644 --- a/comps-rhel-7.4.xml.in +++ b/comps-rhel-7.4.xml.in @@ -1820,7 +1820,7 @@ <uservisible>false</uservisible> <packagelist> <packagereq type="default">open-vm-tools</packagereq> - <packagereq type="default">open-vm-tools-desktop</packagereq> + <packagereq type="optional">open-vm-tools-desktop</packagereq> </packagelist> </group> <group>
verify this bug with RHEL7.4 guest on VMware ESXi6.0 Verify version: kernel-3.10.0-632.el7.x86_64 open-vm-tools-10.1.5-3.el7.x86_64 open-vm-tools-desktop-10.1.5-3.el7.x86_64 Verify steps: 1. Minimal install RHEL7.4 gust on the VMware ESXi6.0 host. 2. Reboot the guest after installation finished. 3. Check the open-vm-tools with command: $rpm -qa open-vm-tools $rpm -qa open-vm-tools-desktop The test result: Verified The open-vm-tools-desktop not installed, only open-vm-tools installed with minimal installation.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:1850