CentOS Installation
If you followed the VirtualBox VM creation guide, your next step is to start the VM and get CentOS installed.
The first step here is to select your vm and click start. When the machine starts, it should bring up a startup disk screen that looks like this:
Click the folder button with the green icon and navigate to your CentOS image.
With your new CentOS image selected, click Start
Once the machine comes up, you should see 3 options, move the selection up to Install CentOS 7 and press enter
Choose your language and click Continue
On the main menu, click Installation Destination:
Click "I will configure partitioning".
Then click Done
Click “Create here to create them automatically”
Resize the home partition to about 20GB
and then resize the / partition to take the rest of the space
Click done and then confirm the changes by clicking “Accept changes” in the dialog
Back at the main menu, click “Network & Host Name”
In the Network menu, click the first adapter (enp0s3) and ensure it’s turned on. You should see an IP address similar to what is shown below:
Next, click the second adapter(enp0s8) and turn this one on and then click done.
Back at the main menu click begin installation.
Click root password and ensure you set a root password you will remember as this is what you will use to manage your machine
DO NOT CREATE A LOCAL USER
Once your machine finishes installation and reboots, you have one final step and that’s to configure the host only address.
To configure the host-only adapter, we have to log into the machine via the local console, and run:
vi /etc/sysconfig/network-scripts/ifcfg-enp0s8
Change the contents to match the screenshot below and then restart the machine
With the machine rebooted, verify you can connect to it by running the following command from the host:
ping 192.168.56.101
If you get a response, your network is working as intended and you should be all set.
The final thing you will need to do is add a few firewall rules
firewall-cmd --zone=public --permanent --add-service=http
firewall-cmd --zone=public --permanent --add-service=https
firewall-cmd --zone=public --permanent --add-service=samba
service firewalld restart |
With that complete, your CentOS box is ready and you can continue with the rest of the project setup https://relias.atlassian.net/wiki/spaces/CEMVP/pages/512851999
Enjoy your new base CentOS box