Installing GUEST OS - List of packages

Latest response

Hi RHEL Discussion lists,

I am trying to boot and create from scratch a boot GUEST disk using Kickstart automation.

The virtualization is using KVM as HOST and on GUEST with dedicated disk devices to install the GUEST image.

I am using the following package installation:

%packages
@^graphical-server-environment
@base
@compat-libraries
@core
@desktop-debugging
@development
@fonts
@gnome-desktop
@hardware-monitoring
@input-methods
@internet-browser
@network-tools
@large-systems
@network-file-system-client
@performance
@remote-system-management
@x11
java-1.7.0-openjdk
kexec-tools
pax
python-dmidecode
oddjob
sgpio
device-mapper-persistent-data
samba-winbind
certmonger
pam_krb5
krb5-workstation
perl-DBD-SQLite
nmap
expect
screen
ipmitool
dmidecode
glibc.i686
nss-softokn-freebl.i686
unixODBC-devel
unixODBC
telnet
nmap
tftp
lshw
ntp
system-config-kickstart
ksh
libaio
libaio.i686
libaio-devel
libaio-devel.i686
libgcc.i686
libgcc
libstdc++.i686
libstdc++
libstdc++-devel.i686
libstdc++-devel
libXi.i686
libXi
libXtst.i686
libXtst
sysstat
glibc.i686
glibc
glibc-devel.i686
glibc-devel
net-snmp
lm_sensors
net-snmp-utils
perl-SNMP_Session
tcsh
dos2unix
libXp
libXp.i686
elfutils-libelf-devel
-java-1.8.0-openjdk-devel
-java-1.6.0-openjdk-devel
-java-1.6.0-openjdk
-java-1.8.0-openjdk
%end

But the odd part is that apparently there is some sort of dependency installing libvirt packages in my GUEST, causing it to have not necessary packages. Or:

libvirt-daemon-driver-network-4.5.0-33.el7.x86_64
libvirt-glib-1.0.0-1.el7.x86_64
libvirt-daemon-driver-storage-iscsi-4.5.0-33.el7.x86_64
libvirt-libs-4.5.0-33.el7.x86_64
virt-what-1.18-4.el7.x86_64
libvirt-daemon-config-network-4.5.0-33.el7.x86_64
libvirt-daemon-driver-qemu-4.5.0-33.el7.x86_64
libvirt-daemon-driver-nodedev-4.5.0-33.el7.x86_64
libvirt-daemon-driver-storage-disk-4.5.0-33.el7.x86_64
libgovirt-0.3.4-4.el7.x86_64
libvirt-daemon-driver-secret-4.5.0-33.el7.x86_64
libvirt-gconfig-1.0.0-1.el7.x86_64
libvirt-daemon-driver-storage-logical-4.5.0-33.el7.x86_64
libvirt-daemon-4.5.0-33.el7.x86_64
libvirt-daemon-driver-storage-mpath-4.5.0-33.el7.x86_64
libvirt-daemon-driver-interface-4.5.0-33.el7.x86_64
libvirt-daemon-driver-storage-rbd-4.5.0-33.el7.x86_64
libvirt-daemon-driver-storage-core-4.5.0-33.el7.x86_64
libvirt-daemon-driver-storage-scsi-4.5.0-33.el7.x86_64
libvirt-daemon-driver-nwfilter-4.5.0-33.el7.x86_64
libvirt-daemon-driver-storage-gluster-4.5.0-33.el7.x86_64
libvirt-gobject-1.0.0-1.el7.x86_64
libvirt-daemon-driver-storage-4.5.0-33.el7.x86_64

How can I know what is causing these packages to be installed on my automated Kickstart and avoid them to be installed on my GUEST image?

In advance thanks for the help on this subject since I could not track what is causing these packages to be installed.

Responses

A couple of possible ideas:

  • Something selected above installs virt-what for management of VM images, and that pulls in the libvirt storage drivers
  • @gnome-desktop pulls in gnome-boxes which is a virtualisation manager, and so pulls in the virt dependencies

A brute-force method to determine which packages to remove is to inspect the output of the following command.

# yum erase 'libvirt-*'

Then, update the kickstart %packages section accordingly.