Initial creation of the VM
Instructions:
- Download the latest RHEL 7 DVD ISO from https://developers.redhat.com/products/rhel/download
- Open VMware Workstation and create a new Virtual Machine (VM) by pressing Ctrl + N.
- Select Custom (advanced) and click Next.
- Accept the default Hardware Compatability and click Next.
- Select ‘I will install the Operating System later’ and click Next.
- Select ‘Linux’ and then ‘RHEL 7 64bit’ and click Next.
- Give the VM a sensible name and choose where to store it then click Next.
- Accept the default Processor Configuration and click Next.
- Accept the default Memory Configuration and click Next.
- Select ‘Use NAT’ and click Next.
- Accept the default I/O Controller Type and click Next.
- Accept the default Disk Type and click Next.
- Create a new virtual disk and click Next. 10GB should suffice, click Next.
- Accept the default file name and click Next.
- Click Finish.
- Click ‘Edit virtual machine settings’. Click ‘Add…’. Select ‘Hard Disk’ and click Next.
- Accept the default Disk Type and click Next.
- Create a new virtual disk and click Next. 10GB should suffice, click Next.
- Accept the default file name and click Finish.
- Select the CD/DVD, then select ‘Use ISO image file’, then select the ISO downloaded earlier. Click OK.
- The VM can now be powered on.
- You will probably have to click within the window to gain control, then use the cursor keys to select Install and hit Enter.
- Choose your desired language settings and click Continue.
- Select Installation Destination, and then ensure there is a tick on both disks. Select ‘I will configure partitioning’, then click Done.
- Click ‘click here to create them automatically’
- Select the root partition ‘/’ or ‘rhel-root’ and click Modify.
- Ensure that only the first disk is selected, then change the Name field to ‘SystemVG’, then click Save.
- Change the root partition type to ‘ext4’, and the name to ‘rootLV’
- Select the swap partition and change its name to ‘swapLV’
- Click Done followed by ‘Accept Changes’
- Disable KDump
- Click on Network & Hostname and change the hostname to something sensible.
- Click the OFF toggle at the top of the screen, the networking will now be active.
- Make a note of the networking settings on this screen, then click Configure.
IPV4 Manual Add Copy the information into this window Enter the DNS Address Click Save Click Done
- Begin the installation in the background by clicking ‘Begin Installation’
- You can now set the root users password by clicking on it. Enter the password twice and click Done.
- As we do not want to be using the root used by default, we will create another administrator account for our use. Click ‘User Creation’. Enter a Full name and User name.
I suggest ‘ansible’ for both. Ensure the ‘Make this user administrator’ checkbox is checked. Enter a password twice and then click on Done. - Wait for the installation to complete, and then click ‘Reboot’. Wait for the VM to restart.
- Login to the VM using the non-root account.
- To create our second Volume Group, execute the following commands. If prompted about a DOS signature, enter ‘y’.
pvcreate /dev/sdb vgcreate vg_go_app_01 /dev/sdb