{"id":3726,"date":"2019-07-24T16:24:20","date_gmt":"2019-07-24T04:24:20","guid":{"rendered":"http:\/\/www.zoyinc.com\/?p=3726"},"modified":"2019-09-09T17:45:21","modified_gmt":"2019-09-09T05:45:21","slug":"centos-7-base-vm-for-wordpress-and-mythtv","status":"publish","type":"post","link":"http:\/\/www.zoyinc.com\/?p=3726","title":{"rendered":"CentOS 7 base VM for WordPress and MythTV"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3764\" src=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/CentOS7BaseVM27.jpg\" alt=\"\" width=\"1200\" height=\"160\" srcset=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/CentOS7BaseVM27.jpg 1200w, http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/CentOS7BaseVM27-150x20.jpg 150w, http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/CentOS7BaseVM27-300x40.jpg 300w, http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/CentOS7BaseVM27-768x102.jpg 768w, http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/CentOS7BaseVM27-500x67.jpg 500w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p>I have two primary servers I use all the time, the first is the WordPress VM which run the Zoyinc website and secondly a VM that runs MythTV. Both are currently running Fedora &#8211; WordPress is on F18 and MythTV is on F16. These were installed in July 2012 and February 2011 respectively. So pretty old in the tooth.<\/p>\n<p>The plan is to create a base image that would be used for the next version of both servers and potentially anything else that comes along.<\/p>\n<p>This post is not a lesson on using VMware nor is it a lesson in Linux.<\/p>\n<p><strong>NOTE<\/strong>: During the setup of this VM the name of the host changed from &#8220;centos7_template&#8221; to &#8220;centos7-template&#8221; and finally to &#8220;centos7-base&#8221; due to things like netbios only allowing 15 characters. So some screenshots may have different names<\/p>\n<h2>My Setup<\/h2>\n<p>I am doing this on ESXi 6.0 Update 3 due to my physical hardware not being supported on ESX 6.5. So I am slightly limited by 6.0.<\/p>\n<p>With the advent of ESX 6 use of the \u201cvSphere Client\u201d was deprecated and no longer worked very well. The replacement is the &#8220;VMware Host Client&#8221;, a web interface. This is what I have been using.<\/p>\n<p>My hardware is a Lenovo M58 (7479CTO) small form factor. Which has a Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz.<\/p>\n<h2>VM Creation<\/h2>\n<p>For this VM the setup when creating the VM was<\/p>\n<p>VM Name: centos7-base<br \/>\nCompatibility: ESXi 6.0 virtual machine<br \/>\nGuest OS: Linux<br \/>\nGuest OS Version: CentOS 4\/5\/6\/7 (64-bit)<br \/>\nCPU: 2<br \/>\nCores per Socket: 1<br \/>\nHard Disk: 40 GB (Always find I run out of space in later years so lots of room to grow)<br \/>\nType: Thick Provisioned, lazy zeroed<br \/>\nRAM: 4096<br \/>\nSCSI Controller 0: LSI Logic Parallel<br \/>\nNetwork Adapter 1: VMXNET 3<br \/>\nBoot Options<br \/>\n&#8211; Firmware: BIOS<br \/>\n&#8211; Boot Delay: 5000 milliseconds<\/p>\n<p><a  href=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/CentOS7BaseVM01.jpg\" class=\"thickbox no_icon\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3728\" src=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/CentOS7BaseVM01.jpg\" alt=\"\" width=\"490\" height=\"359\" \/><\/a>I hooked up the CentOS 7 ISO, CentOS-7-x86_64-DVD-1810.iso<\/p>\n<p>Start the VM and select &#8220;Install CentOS 7&#8221; and press &lt;Enter&gt; when prompted.<\/p>\n<p>From the &#8220;Welcome to CentOS 7&#8221; screen select the appropriate language and select &#8220;Continue&#8221;. This will take you to the &#8220;Installation Summary&#8221;. You will likely see a couple of brown triangles, &#8220;setting up installation source&#8230;&#8221;\/&#8221;downloading group metadata&#8230;&#8221; as below, just give it a minute or so to complete these tasks before continuing.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3730\" src=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/CentOS7BaseVM02.jpg\" alt=\"\" width=\"416\" height=\"99\" \/><\/p>\n<p>Click on &#8220;Software Selection&#8221; screen select &#8220;Server with GUI&#8221; as the base environment and then also select the add-ons of:<\/p>\n<ul>\n<li>FTP Server<\/li>\n<li>File and Storage Server<\/li>\n<li>Development Tools<\/li>\n<li>System Administration Tools<\/li>\n<\/ul>\n<p>Then click on &#8220;Done&#8221;<\/p>\n<p><a  href=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/CentOS7BaseVM03.jpg\" class=\"thickbox no_icon\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3732\" src=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/CentOS7BaseVM03.jpg\" alt=\"\" width=\"470\" height=\"357\" \/><\/a><\/p>\n<p>Now it will once again go off and &#8220;Checking software dependencies&#8221;.<\/p>\n<p>At this point I want to partition as I want so select &#8220;Installation Destination&#8221;:<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3733\" src=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/CentOS7BaseVM04.jpg\" alt=\"\" width=\"316\" height=\"81\" srcset=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/CentOS7BaseVM04.jpg 316w, http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/CentOS7BaseVM04-150x38.jpg 150w, http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/CentOS7BaseVM04-300x77.jpg 300w\" sizes=\"auto, (max-width: 316px) 100vw, 316px\" \/>Under &#8220;Other Storage Options&#8221; select &#8220;I will configure partitioning&#8221; and click on the VMware Virtual disk:<\/p>\n<p><a  href=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/CentOS7BaseVM07.jpg\" class=\"thickbox no_icon\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3740\" src=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/CentOS7BaseVM07.jpg\" alt=\"\" width=\"454\" height=\"344\" \/><\/a><\/p>\n<p>Ensure that the device, VMware Virtual disk, has been selected with a white tick showing:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3741\" src=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/CentOS7BaseVM08.jpg\" alt=\"\" width=\"158\" height=\"125\" srcset=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/CentOS7BaseVM08.jpg 158w, http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/CentOS7BaseVM08-150x119.jpg 150w\" sizes=\"auto, (max-width: 158px) 100vw, 158px\" \/><\/p>\n<p>Then click on Done.Because you selected the disk and you want to configure partitioning you will then get to the manual partitioning screen.<\/p>\n<p>If you had a previous install of CentOS you will see an entry like &#8220;CentoOS Linux Linux 7.6 &#8230;&#8221;.<\/p>\n<p><a  href=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/CentOS7BaseVM13.jpg\" class=\"thickbox no_icon\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3746\" src=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/CentOS7BaseVM13.jpg\" alt=\"\" width=\"409\" height=\"292\" \/><\/a>If you have a previous install of CentOS expand\u00a0 the partitioning by clicking on it as above. This will expand to show<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3747\" src=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/CentOS7BaseVM14.jpg\" alt=\"\" width=\"331\" height=\"192\" \/><\/p>\n<p>Select the &#8220;\/boot&#8221; mount and click on the &#8220;-&#8221; button to remove it. You will get a dialog:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3748\" src=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/CentOS7BaseVM15.jpg\" alt=\"\" width=\"482\" height=\"102\" \/><\/p>\n<p>From here select &#8220;Delete all file systems which are used by CentOS Linux&#8230;&#8221; and then click on &#8220;Delete It&#8221;. This should remove the line &#8220;CentOS Linux Linux 7.6.1810 for x86_64&#8221;.<\/p>\n<p>On the same screen in the &#8220;New CentOS 7 Installation&#8221; section click on the &#8220;partitioning scheme&#8221; dropdown, which currently says &#8220;LVM&#8221;:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3750\" src=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/CentOS7BaseVM17.jpg\" alt=\"\" width=\"303\" height=\"117\" \/><\/p>\n<p>This will bring up the &#8220;Add a new mount point&#8221;. To begin with create a &#8220;\/boot&#8221; mount with 300 MB and click &#8220;Add mount point&#8221;:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3743\" src=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/CentOS7BaseVM10.jpg\" alt=\"\" width=\"261\" height=\"187\" \/><\/p>\n<p>Moving forward I would suggest you set the boot to 500 MB to allow for backup kernels that can accumulate<\/p>\n<p>This will show below. At this point I changed the &#8220;File System&#8221; to &#8220;ext4&#8221; because it suits my purposes better:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3758\" src=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/CentOS7BaseVM24.jpg\" alt=\"\" width=\"514\" height=\"283\" \/><\/p>\n<p>Using the same process create mount points for &#8220;swap&#8221; of &#8220;4 GB&#8221; and &#8220;\/&#8221; with no capacity, because &#8220;\/&#8221; will use all remaining space. I did not add &#8220;\/var&#8221; or &#8220;biosboot&#8221;. Note that as with &#8220;\/boot&#8221; I have set &#8220;\/&#8221; to be &#8220;ext4&#8221;. This should now look like:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3759\" src=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/CentOS7BaseVM25.jpg\" alt=\"\" width=\"595\" height=\"328\" \/><\/p>\n<p>Click on &#8220;Done&#8221; to move back to the &#8220;Installation Summary&#8221;, you will get prompted with a &#8220;Summary of changes&#8221;, click on &#8220;Accept Changes&#8221; to continue.<\/p>\n<p>Back on the summary screen click on &#8220;Network &amp; Hostname&#8221;:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3754\" src=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/CentOS7BaseVM20.jpg\" alt=\"\" width=\"471\" height=\"182\" \/><\/p>\n<p>On the &#8220;Network &amp; Hostname&#8221; screen set your desired hostname &#8211; I set mine to &#8220;centos7-base.cantabrian&#8221;, because our workgroup is &#8220;cantabrian&#8221; &#8211; don&#8217;t forget to click on apply..<\/p>\n<p>Next click on the &#8220;Configure&#8230;&#8221; button then from the configuration screen:<\/p>\n<ol>\n<li>Select the &#8220;IPv4 Settings&#8221; tab<\/li>\n<li>Set the &#8220;Method&#8221; to &#8220;Manual&#8221;<\/li>\n<li>Add a static IP, netmask and gateway<\/li>\n<li>Put in your DNS servers, mine are Google. This is a comma separated list.<\/li>\n<li>In search domains put your workgroup\/domain names<\/li>\n<li>Click on &#8220;Save&#8221;<\/li>\n<\/ol>\n<p><a  href=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/CentOS7BaseVM21.jpg\" class=\"thickbox no_icon\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3755\" src=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/CentOS7BaseVM21.jpg\" alt=\"\" width=\"452\" height=\"349\" \/>,8.8.8<\/a>You will now be back on the &#8220;Network &amp; Hostname&#8221; screen click on &#8220;Off&#8221; to connect the network:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3756\" src=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/CentOS7BaseVM22.jpg\" alt=\"\" width=\"290\" height=\"98\" \/><\/p>\n<p>Click on &#8220;Done&#8221; to get back to the &#8220;Installation Summary&#8221;.<\/p>\n<p>Now click on &#8220;Begin Installation&#8221;. This will take you to the configuration screen. Click on &#8220;Root Password&#8221; to set the root password. The installation process will begin:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3760\" src=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/CentOS7BaseVM26.jpg\" alt=\"\" width=\"503\" height=\"102\" srcset=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/CentOS7BaseVM26.jpg 503w, http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/CentOS7BaseVM26-150x30.jpg 150w, http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/CentOS7BaseVM26-300x61.jpg 300w, http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/CentOS7BaseVM26-500x101.jpg 500w\" sizes=\"auto, (max-width: 503px) 100vw, 503px\" \/><\/p>\n<p>When it&#8217;s finished you will see:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3766\" src=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/CentOS7BaseVM28.jpg\" alt=\"\" width=\"381\" height=\"104\" srcset=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/CentOS7BaseVM28.jpg 381w, http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/CentOS7BaseVM28-150x41.jpg 150w, http:\/\/www.zoyinc.com\/wp-content\/uploads\/2019\/07\/CentOS7BaseVM28-300x82.jpg 300w\" sizes=\"auto, (max-width: 381px) 100vw, 381px\" \/><\/p>\n<p>So just click on &#8220;Reboot&#8221;.<\/p>\n<p>When you reboot you will get the &#8220;Initial Setup&#8221; screen just click on &#8220;License Information&#8221; and select &#8220;I accept the license agreement&#8221; followed clicking on &#8220;Done&#8221;. Finally click on &#8220;Finish Configuration&#8221; and you are done.<\/p>\n<p>All you need to is the standard user, keyboard, regional settings and so on.<\/p>\n<p>Once finished you will need to disconnect the ISO so it doesn&#8217;t try to keep installing.<\/p>\n<h2>Post install steps<\/h2>\n<p>Now you have the base VM you will need to consider post install steps. For me, creating a base for WordPress and MythTV I created the post <a  href=\"http:\/\/www.zoyinc.com\/?p=3761\">CentOS 7 VM for WordPress and MythTV &#8211; Post install setup<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have two primary servers I use all the time, the first is the WordPress VM which run the Zoyinc website and secondly a VM that runs MythTV. Both are currently running Fedora &#8211; WordPress is on F18 and MythTV is on F16. These were installed in July 2012 and February 2011 respectively. So pretty [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":3763,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[553,124,552],"tags":[555,556,558,295,554,6,557,308],"class_list":["post-3726","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-esxi","category-redhat","tag-centos","tag-centos7","tag-install","tag-linux","tag-red-hat","tag-redhat","tag-rhel7","tag-vmware"],"_links":{"self":[{"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=\/wp\/v2\/posts\/3726","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3726"}],"version-history":[{"count":17,"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=\/wp\/v2\/posts\/3726\/revisions"}],"predecessor-version":[{"id":6462,"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=\/wp\/v2\/posts\/3726\/revisions\/6462"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=\/wp\/v2\/media\/3763"}],"wp:attachment":[{"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3726"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3726"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3726"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}