Chapter 5.3: Configure ClearOS public IP address
Click on the button Exit to console in the ClearOS VM’s console
Do not insert the password as requested, instead hit the keys ALT + F2
You will be prompted with a standard linux login. Now enter the username root and use the [ClearOS root password]
Type the following command and hit enter
nano /etc/sysconfig/network-scripts/ifcfg-ens18
Edit and add the following lines with these settings
Edit:
BOOTPROTO=static
ONBOOT=yes
Add:
IPADDR=[OVH first additional IP address]
NETMASK=255.255.255.255
GATEWAY=[use the first 3 block of numbers of the OVH main IP address].254
If you followed this tutorial from the beginning, you can find the IP addresses that you need in your OVH server control panel:
This is how it should look:
Save your edits by pressing CONTROL + O (the letter O, not zero) and hit enter, then press CONTROL + X to exit
Type the following command and hit enter
nano /etc/sysconfig/network-scripts/route-ens18
Add the following lines with these settings:
[use the first 3 block of numbers of the OVH main IP address].254 dev ens18
default via [use the first 3 block of numbers of the OVH main IP address].254 dev ens18
This is how it should look:
Save your edits by pressing CONTROL + O (the letter O, not zero) and hit enter, then press CONTROL + X to exit
Poweroff the ClearOS virtual machine in Proxmox
Go back to the OVH IP control panel and click on Add a virtual MAC. Be sure to do so on the same line of the additional IP address you set up before (the one in the file ifcfg-ens18)
Create the new [OVH MAC address] using the name ClearOS (this name is not very important, just avoid duplicates in the future), and use OVH as the type of virtual MAC and click on Confirm
Go back to Proxmox, select the ClearOS VM in the left sidebar and click on Hardware. Then double click on the network device vmbr0
Now in the OVH control panel you should be able to see the [OVH MAC address] you just generated, copy it
Paste the [OVH MAC address] in the correct field in Proxmox (substitute the old one with the new one) and press OK
Start the ClearOS VM
Wait for the VM to boot completely, then point your browser to the address:
https://[OVH first additional IP address]:81
After confirming the certificate security exeption, you should see the ClearOS login page