CentOS 6.x on VMware Player: Part 2

Note these documents are subject to update, this one was last edited 04/26/2014

Part 2: Installing the OS

  • Important to note that the majority of this series applies to any CentOS installation, not just VMware installations.
  • Highlight the VM you made in Part 1 and Select Play virtual machine.
  • Select Install or upgrade an existing system.
  • Select OK or Skip the media test. On physical DVDs I do the test. On ISO DVDs I do not. Honestly I have never found an error yet, but it can not hurt.
  • CentOS 6: Select Next.
  • What language: Select English, Next.
  • Appropriate keyboard: Select U.S. English, Next.
  • What type of devices will your installation involve? Select Basic Storage Devices radio button, Next.
  • Storage Device Warning: Select Yes, discard any data.
  • Type in your hostname: example – woohoo.shadowshift.com
  • Select Configure Network.
  • Highlight System eth0, Select Edit…

centos6.01

  • On the Wired tab check-mark Connect automatically and Available to all users.
  • On the IPv4 Settings tab Select Method: Manual.
  • Addresses: Select Add and type in your IP Address, Netmask and Gateway.
  • Add your DNS servers, in this case Google: 8.8.8.8, 8.8.4.4
  • Select Apply, Select Close, Select Next.
  • Type in your root password twice, Select Next.
  • What type of installation would you like? Select Replace Existing Linux System(s) and check-mark Review and modify partitioning layout. Select Next.
  • Personally I could be satisfied with the default, but I’m going highlight and Edit lv_swap = 4096MB, lv_root = 61440MB and lv_home = 30720MB.
  • To use the free space balance I’m going to Select Create, Select Create LVM, LVM Logical Volume (vg_woohoo), Select Create.

centos6.02

centos6.03

  • Make Mount Point: /www  and Logical Volume Name: lv_www and Select OK, Select Next.
  • Format Warnings: Select Format, Select Write changes to disk.
  • When its done formatting if you want a boot loader password Select Change password, otherwise Select Next.
  • In the next screen I would leave Desktop and Customize later selected and Select Next.
  • Now the operating system and packages, etc. will be installed and it takes around 10 minutes to an hour plus…
  • BTW while its doing this you may want to call your ISP and see if they block port 25 for SMTP. My ISP AT&T does block it and Sendmail will need this port open or you will not be able to run a mail server.
  • If all went well, you should now see a Congratulations screen, Select Reboot.
  • Welcome: Select Forward.
  • License Information: Yes, I agree to the License Agreement, Select Forward.
  • Create User: You know the routine, Select Forward.
  • Date and Time: Check-mark Synchronize date and time over the network, Select Forward.
  • There will be insufficient memory to enable kdump, Select OK, Select Finish.
  • Logon as user created above and Part 2 is done. Congratulations!
  • There is much more to do – for starters you may want to confirm the network is working and start Firefox to check if you can reach a website.

centos6.04

If you have any questions or suggestions don’t hesitate to reach out to me!

Next: Part 3 – Start Configuring the OS

CentOS 6.x on VMware Player: Part 1

Note these documents are subject to update, this one was last edited 04/27/2014

vmware-player.01

In today’s data center virtualization is a must for the efficient use of server resources, manageability and advanced functions like high availability. In addition to a standard web server install, there are optional portions throughout this how to for virtualized hosts.

It’s a great working solution if you have even a spare windows system with as little as 2GB RAM. However 4GB is a little more comfortable starter amount of RAM to multi-OS with very little if any performance degradation. I would definitely recommend 8GB+ if your system or pocketbook allows it.

For me this makes a phenomenal backup and development server solution. You will see these VMs are easy to install, use very little disk space and are easy to switch in and out of production. I have CentOS, Fedora and Red Hat Linux VMs and most Linux distributions will run as well as Windows Server in VMs.

ESXi and VMware player are readily available for free at www.vmware.com. Installing VMware player is super simple, I won’t go into that. I would advise you to make a directory to store the VMs in; I use /vm, and within that I store each VM in a directory like /vm/linux01. VMware Player will work with Linux or Windows. VMware ESXi or any other Linux hypervisor such as KVM or Xen should be on bare metal.

Installing CentOS 6.x on VMware Player 6.01

The prerequisites to fully enact this whole series of installs are:

  • At least 1 dedicated static IP for the server – I would not recommend a static IP for your workstation but the CentOS VM itself must have a static IP.
  • At least 1 dedicated domain name like domain.com or hostname.domain.com
  • You will also need a wildcard DNS entry to create sites on demand without individually configuring DNS if you want to run WordPress Multisite https://codex.wordpress.org/Configuring_Wildcard_Subdomains
  • Your router must have inbound firewall exceptions for at least port 80 for web and possibly port 22 for ssh and port 21 for ftp if you want remote access to these.
  • You may also want an inbound firewall exception for port 25 for a mail server but even if you don’t, you definitely want your ISP to unblock outbound port 25 (many do to stop spammers) so your site can send emails for registration and other administrative notices.
  • We are going to enact many server based security measures but think seriously about your perimeter firewall. If you do not need an opening, then close it – multiple layers of security is a very good thing.

Part 1: Create a Virtual Machine

  • Start VMware Player, Select Create a New Virtual Machine.
  • Select radio button I will install the operating system later, then Next.
  • Select Guest operating system Linux and Version CentOS 64-bit, then Next.
  • Name your Virtual Machine. Browse to the location you would like your VMs to be stored in, make a folder in inside of it to be used only for this particular VM, then select OK. Example c:\vm\centos.01, select Next.
  • Crank up the disk size, I select 160GB; it’s not allocated until it’s used, so feel generous here. Select Split virtual disk into multiple files, select Next.
  • Select the Customize Hardware Button.
  • Adjust memory; 1024MB minimum is recommended for a web server in this configuration.
  • Set CD/DVD to Use ISO image file and browse to your CentOS ISO image.
  • Select the network adapter, then Device status select Connect at power on, Network connection change to Bridged and Replicate. Select Next.
  • Check your settings and then select Finish.

If you have any questions or suggestions don’t hesitate to reach out to me!

Next: Part 2 – Installing the OS