To create the Linux platform to run virtual machines on you install CentOS 7 on a physical machine using a bootable USB drive. The result is a graphical server installation with enough disk to run several virtual machines.
- [Instructor] In the previous video, we created a CentOS 7 bootable USB drive. Plug this USB drive into the machine you want to install CentOS on, and boot from it. You may have to go into the BIOS to choose to boot off the USB drive. You may also be able to press a hotkey to get a boot menu allowing you to select the thumb drive. If you have successfully booted from the USB drive, you should see this screen. Highlight install CentOS 7 with the cursor keys and press enter. You could also choose a second option to test the install media instead. This is mainly to test optical discs for errors.
We don't usually have to do this for ISO images that reside on the hard drive. However, if you have problems installing from your USB thumb drive, you may want to test it. Here's where we choose the install language. This is the language we use for the installer itself. I'm going to keep it at English and click on continue. Now we see the installation summary screen where we can figure how the OS will be installed. I'm going to click on date and time, change to my time zone and then click on done.
We can also select keyboard and OS language. The next thing we'll want to click on is software selection which is currently set to minimal install. We'll want to change this to server with GUI. The server with GUI configuration doesn't have a ton of packages installed, but still has a full GUI. Don't get too worried about installing software here, as it can all be done later. The difference between these software categories is the list of software packages that get installed now as opposed to what we can install later ourselves. The server with GUI is a fairly minimal install that includes the graphical interface.
This gives us a good base to install other pieces of software. We could choose virtualization host here, but we'll install the virtualization bits later. Now click on done. The next thing we'll want to do is click on installation destination. Make sure that your hard drive is selected here. If you have more than one hard drive, make sure you choose the one you want to install on. We will click I will configure partitioning and click on done. The manual partitioning window should appear now. This window lets us create any partition scheme we want.
We're going to take a shortcut though and click on the link titled click here to create them automatically. This is going to create an automatic setup that we can then look at and maybe edit if we want. What this created, since I have a 50 gigabyte hard drive is one gigabyte for slash boot where the kernel images are stored, 47 gigabytes or so for slash which is where the operation system resides, and we have two gigabytes for swap. We could edit any of this. This setup will use logical volume management for partitioning and XFS for file systems.
We'll talk about more of those things later in this course. Click on done and click on accept changes. We don't need the network configured now, because we're installing from a USB thumb drive. But if you wanted to configure it now, you could click on network & host name and set it up the way you like. I'm going to configure networking later, and just click on begin installation. While the install proceeds, we'll give the root user a password and set up an admin user. Click on root password, and we're going to give the root user a strong password.
You'll note that Linux tells you how strong your password is, so you can try different things. You'll also note at the bottom of the screen it says the passwords do not match. When this goes away, you'll be ready to click on done. We don't want to ever login as root on the GUI. There's too much power and too few safeguards. So on Linux we always create a user. Click on user creation, put in your full name in the top box.
It'll create a lowercase version of this as a username, but you can edit that if you'd like. We'll create a strong password here as well, because we're going to make this first user an administrator by clicking the checkbox labeled make this user an administrator. Installer tells you if your password strength is good or not. Use a combination of numbers, letters that are both upper and lowercase, and symbols for your strong password.
The installer will let you proceed with a weak password if you wish, by clicking done twice. However, it's not recommended. Go ahead and click on done and then wait for your installation to complete. The install will take between 20 minutes and an hour depending on your host computer's hardware. Going to be using a bit of movie magic to speed up the installation on my end, so you'll just want to pause the video until yours gets caught up. As soon as the install is finished, click on the reboot button to reboot into your new CentOS 7 OS.
Soon as your CentOS machine reboots, you will need to accept the license. Click on license information, click the checkbox, I accept the license agreement, and then click on done. Now you can go ahead and click on finish configuration. Login as the user you created. Notice that root isn't even given an option on the GUI. You can specify any user if you click on the not listed link, however I really don't recommend logging in as root on the GUI.
As soon as you login, you will be prompted to choose your language. You will then be prompted to choose your keyboard. And then I'm going to click on skip to skip over creating my online accounts. Now click on start using CentOS Linux. As soon as we're logged in, CentOS displays a getting started window explaining how the CentOS desktop works. For now, let's close this window. Now we have CentOS 7 installed. Go ahead and remove the USB thumb drive from the machine, and reboot one last time to ensure everything works before proceeding with this course.
If you changed your BIOS to boot from the USB thumb drive, you may want to change it back. For the rest of this course, we will be on our new Linux installation.
Instructor Grant McWilliams covers network and internet services administration, kernel management, and intrusion prevention. He shows how to make your systems more efficient with virtualization, manage users and groups, and lock everything down with SELinux mandatory access control. Plus, get access to 25 PDF "cheat sheets" and 100 practice questions so you can solidify and test your knowledge.
- Installing Linux on a physical machine
- Managing systemd services
- Managing reoccurring jobs with cron
- Limiting system access
- Configuring networking
- Creating, editing, and moving files and directories
- Analyzing text with grep and regular expressions
- Installing software and packages
- Managing the kernel
- Managing users, accounts, and groups
- Setting permissions
- Using access control lists
- Securing Linux with SELinux
- Accessing Linux remotely
- Configuring local storage