[fusion_builder_container hundred_percent=”yes” overflow=”visible”][fusion_builder_row][fusion_builder_column type=”1_1″ background_position=”left top” background_color=”” border_size=”” border_color=”” border_style=”solid” spacing=”yes” background_image=”” background_repeat=”no-repeat” padding=”” margin_top=”0px” margin_bottom=”0px” class=”” id=”” animation_type=”” animation_speed=”0.3″ animation_direction=”left” hide_on_mobile=”no” center_content=”no” min_height=”none”]
This note covers the setup of a CentOS 7 minimal image on a VMware Workstation host.
Included are the steps to install a basic windowing system such as Xfce as well as how to install VMware tools.
The minimal version of Centos is pretty incomplete; not even the networking works out of the box.
Using these directions you can install the minimal version, add a windowing system such as Xfce and install VMware tools so that you can use a high resolution desktop.
The main benefit of doing things this way is that you avoid the crud the full desktop installs provide. I don’t want or need Enlightment, OpenOffice or many of the dozens of other packages that are typically installed by default.
First thing, create a new machine and boot from the minimal ISO to install CentOS 7.
After you’ve logged in for the first time you will need to enable networking, first by determining the name of your network interface and then enabling that interface: (Yes, ifconfig is missing; it’s added with the net-tools package later in the install process.)
sudo ip a sh sudo /etc/sysconfig/network-scripts/ifup eno16777736
Now adjust the configuration so that networking is enabled at boot.
sudo vi /etc/sysconfig/network-scripts/ifcfg-eno16777736 change ONBOOT=no to ONBOOT=yes
After that you should update your system to ensure you’ve got the latest patches.
sudo yum update
Add Xfce Repo
Freshly patched, it’s time to add the repo that allows you to install Xfce.
sudo yum install http://epel.mirror.nucleus.be/beta/7/x86_64/epel-release-7-1.noarch.rpm
Install X and Xfce
Go ahead and install X and Xfce.
sudo yum groupinstall "X Window system" xfce -y
At this point you should have a working windowing system. You can test it by starting Xfce: (Note: full resolution of your monitor is not available until the VMware tools have been installed. Also note that you will need to reboot to continue if you start Xfce at this point.)
sudo systemctl isolate graphical.target
Prepare for VMware Tools Install
To finish, first install the packages required by the VMware tools installation:
sudo yum install perl gcc net-tools kernel-headers kernel-devel xterm -y
Log out and log in to continue. Otherwise the installer won’t find the kernel headers.
Install VMware Tools
Initiate the VMware tools installation from the VMware console. Then install the VMware tools:
sudo mount /dev/cdrom /media cd /tmp tar -xvf /media/VMwareTools-9.6.2-1688356.tar.gz cd vmware-tools-distrib/ sudo perl vmware-install.pl
The installation notes an error related to the shared folder feature; a fix is unknown at this time but other than the missing functionality of shared folders this bug doesn’t affect the system in any other way.
Starting Xfce Automatically
If you want Xfce to start at boot time, perform the following steps:
sudo rm /etc/systemd/system/default.target sudo ln -s /lib/systemd/system/graphical.target /etc/systemd/system/default.target
If you prefer to start Xfce manually, do the following:
sudo systemctl isolate graphical.target
Sites referenced to create this guide:
Full text of error:
In file included from /tmp/modconfig-PRAvXo/vmhgfs-only/inode.c:36:0: /tmp/modconfig-PRAvXo/vmhgfs-only/inode.c: In function ‘HgfsPermission’: /tmp/modconfig-PRAvXo/vmhgfs-only/./shared/compat_dcache.h:57:38: \ error: ‘struct dentry’ has no member named ‘d_count’ #define compat_d_count(dentry) dentry->d_count ^ /tmp/modconfig-PRAvXo/vmhgfs-only/inode.c:1904:23: note: in expansion of macro compat_d_count’ int dcount = compat_d_count(dentry); ^ make[/fusion_builder_column][fusion_builder_column type="1_1" background_position="left top" background_color="" border_size="" border_color="" border_style="solid" spacing="yes" background_image="" background_repeat="no-repeat" padding="" margin_top="0px" margin_bottom="0px" class="" id="" animation_type="" animation_speed="0.3" animation_direction="left" hide_on_mobile="no" center_content="no" min_height="none"]: *** [/tmp/modconfig-PRAvXo/vmhgfs-only/inode.o] Error 1 make: *** [_module_/tmp/modconfig-PRAvXo/vmhgfs-only] Error 2 make: Leaving directory `/usr/src/kernels/3.10.0-123.8.1.el7.x86_64' make: *** [vmhgfs.ko] Error 2 make: Leaving directory `/tmp/modconfig-PRAvXo/vmhgfs-only' The filesystem driver (vmhgfs module) is used only for the shared folder feature. The rest of the software provided by VMware Tools is designed to work independently of this feature. If you wish to have the shared folders feature, you can install the driver by running vmware-config-tools.pl again after making sure that gcc, binutils, make and the kernel sources for your running kernel are installed on your machine. These packages are available on your distribution's installation CD.