GtHost Dedicated Server Virtualization by Proxmox

I manage several Linux for my clients, and I searched a low cost reliable server solution for years !

I got IONOS deal server XL6 for $33/month with free Plesk license, 2 TB hosting space, unlimited bandwidth.

But I still not found a suitable server solution to suit my needs.

I rent each server individually for each of my client, and that takes more money from me! Actually I expecting a virtualization feature in dedicated server, so that I can take a high-spec dedicated server and create a single VPS for each of my client.

At last I got the perfect solution at GtHost.com

GtHost provides the Proxmox virtualization OS along with their dedicated server services.

I'm going to setup the GtHost server today with Proxmox, for future reference.

1) After deployed the dedi-server, login to Proxmox panel at

https://dediserveripaddress:8006

Using the server's root user and password.

2) Access CLI inside Proxmox panel

Datacenter > Select Master OS > Shell

3) Then create a network Bridge by command;

nano /etc/network/interfaces

Add the below lines to the Master OS's end of the "/etc/network/interfaces" file:

# bridge network for child VMs
auto vmbr0

#private sub network
iface vmbr0 inet static
        address 10.172.192.1/24
        gateway 10.172.192.1
        dns-nameservers 8.8.8.8 1.1.1.1
        bridge-ports none
        bridge-stp off
        bridge-fd 0

# nat ip forwarding
        post-up   echo 1 > /proc/sys/net/ipv4/ip_forward

# guest to host masquerading to access internet via host IP
        post-up   iptables -t nat -A POSTROUTING -s '10.172.192.0/24' -o enp2s0f0 -j MASQUERADE

# firewall conntrack zones fix for outgoing connections
        post-up   iptables -t raw -I PREROUTING -i fwbr+ -j CT --zone 1

# guest to host masquerading to access internet via host IP
        post-down iptables -t nat -D POSTROUTING -s '10.172.192.0/24' -o enp2s0f0 -j MASQUERADE

# firewall conntrack zones fix for outgoing connections
        post-down iptables -t raw -D PREROUTING -i fwbr+ -j CT --zone 1

After adding the lines, your network interface file should look like the image below:

 

proxmox bridge network and nat

 4) Upload the OS images (ISO)

Datacenter > Select Master OS > Select "local" (storage) > ISO Images > Upload

5) Assemble the second hard-disk for VM storage

Datacenter > Select Master OS > Disks > LVM > Create: Volume Group

Generally the second disk is automatically selected/obtained. Give a name for this VM storage location as All-Child-VM-Storage

6) Start creating virtual machine VMs

Navigate to the Master OS Summery Page

Look at the upper right corner a button for "Create VM"

Click "Create VM"

Give the VM a name (e.g.: ubuntu-virtualmin.example.com)

Click Next

Select "Use CD/DVD disc image file (iso)" and select "Storage: local" then select one of your uploaded ISO Image

Click Next

Click Next to the "Disks" tab

If you want to setup an old version OS, select the Bus/Device as "IDE", or else the default selection is ok

Select the Disk Storage which we reserved for VMs
(e.g.: All-Child-VM-Storage)

Choose a disk size for the new child VM

Click Next

In the "CPU" tab, remember to enter the CPU Socket to 1
Never enter more than 1 socket, because the dedi-server motherboard has 1 socket/processor. (If you rent a dual processor dedi server, then you may enter 2 socket)

You can increase Core as suitable

Select the CPU type to host "Type: host"

Click Next

Choose the Memory/RAM size for the new child VM

Click Next

7) Run child vm, start installing OS, configure network manually

When installation started in child vm, configure network manually, as the dhcp server is not configured in Master System. Make sure the first vm will be allocated with the sub-network's second IP (10.172.192.2)

Finish the installation steps.

8) Port forwarding

Over the NAT configuration we need to forward specific port to specific VM's private IP.

Below is an example (write to the Master OS's end of the "/etc/network/interfaces" file):

# port 3389 forwarding host to guest
post-up iptables -t nat -A PREROUTING -i enp2s0f0 -p tcp --dport 3389 -j DNAT --to 10.172.192.3:3389
post-down iptables -t nat -D PREROUTING -i enp2s0f0 -p tcp --dport 3389 -j DNAT --to 10.172.192.3:3389

Post a Comment