Howdy, below is an attempt to document the procedure of installed cloudmin (www.virtualmin.com) Virtualization software on a root server from Hetzner. This is particularly tricky due to the peculiar way of networking on the Hetzner side. This procedure assume you have one ethernet eth0 with several additional ip address ordered via the robot login.
1. From the Rescue console of the Root server, Install Ubuntu 14.04 or Debian, As I havent yet tested with Centos as it seems even more tricky config to achieve.
2. Update OS: apt-get update & apt-get upgrade
3. Reboot OS:
4. Download couldmin script under the /tmp folder: (http://www.webmin.com/cinstall-kvm.html)
a. Wget http://cloudmin.virtualmin.com/gpl/scripts/cloudmin-kvm-debian-install.sh
b. Cd /tmp
c. chmod +x cloudmin-gpl-debian-install.sh
5. Install cloudmin via the script:
6. ./cloudmin-gpl-debian-install.sh
7. Post successful install, reboot OS to be sure all is ok. You should be able to login to the cloudmin gui via http://server-ip-adress:10000
8. It is always good to setup a FQDN or hostname on the server, but you can do this now.
9. This specific config needs to be done on the hetzner servers for it to work, nano into this file(/etc/sysctl.conf) and add appropriate flags. Save the file.
a. sysctl -w net.ipv4.ip_forward=1
b. Forwarding for IPv6 needs to be activated as well. This setting is also already in the Hetzner default installation and needs to be changed.
c. sysctl -w net.ipv6.conf.all.forwarding=1
10. Reboot the OS.
11. We have to configure the bridge networking as per the config settings described here (https://www.virtualmin.com/documentation/cloudmin/virtualization/kvm)
12. For KVM instances to access the host system's network, you must setup a network bridge. These instructions assume that your host system has only one network interface, and it is eth0 .
13. This changes your system from using eth0 for it's primary network interface, to br0, a bridge device, You will want to make a backup of your current network configuration before making these changes. It is also highly recommended to have console access to your server when the changes are being made. If something goes wrong network access can be lost.
a. Go to Webmin -> Networking -> Network Configuration -> Network Interfaces, and select the ** Activated at Boot** tab.
b. Click on eth0 and change the IPv4 address to No address configured. Remember the current IP address and netmask, as they will be needed in the next step. Click the Save button.
c. Click Add a new bridge, and fill in the IP address and netmask that used to be assigned to eth0.
d. In the Connect bridge to interface field select eth0, then click Create.
e. Return to the main page of the Network Configuration module, and click on Routing and Gateways . Find the current default IPv4 gateway from the Active configuration tab, and enter it on the Boot time configuration tab with br0 selected as the interface.
f. Go back to the main page of the Network Configuration module, and click the Apply Configuration button.
14. Note that after the above steps. the eth0 device will no longer have an IP address; the br0 device has the IP after bridging is operational.
1. If you have an IPv6 address, you will want to perform the above steps for the IPv6 address as well.
15. Network configuration file( /etc/network/interfaces) should look like something like this, notice the pointopoint
### Hetzner Online GmbH - installimage
# Loopback device:
auto lo br0 eth0
iface lo inet loopback
iface lo inet6 loopback
# device: eth0
iface eth0 inet static
address 144.76.8.226
netmask 255.255.255.255
pointopoint 144.76.8.225
gateway 144.76.8.225
iface br0 inet static
address 144.76.8.226
netmask 255.255.255.255
bridge_ports none
bridge_stp off
bridge_fd 0
up ip route add 144.76.8.244/32 dev br0
up ip route add 144.76.8.249/32 dev br0
up ip route add 144.76.8.250/32 dev br0
16. Reboot the OS, to verify if you still can ping the ip addresss and have access to the host system.
17. Trying creating your first KVM and check if you able to assign an ipaddress and if it does have access to both the host and to the internet
18. Enjoy :), drop us a note if this helped you or if you need help..
http://re-views.tech/cloudmin-installation-hetzner-root-server/
rohit@interstellarconsulting.com