📜 ⬆️ ⬇️

Organizing your virtualization host at hetzner

imageimage

Proxmox Virtual Environment (Proxmox VE) is an open source virtualization system based on Debian GNU / Linux. Developed by the Austrian company Proxmox Server Solutions GmbH, sponsored by the Internet Foundation Austria.

... and, I must say, a very pleasant system to maintain and operate.
')
I have been working with my clients (in most cases web design studios, or standalone clients) for about 5 years. All my clients use the services of the German hosting provider Hetzner. You can talk for a long time about the quality of the services they provide, the quality of the hardware in their servers - but the fact remains: Hetzner's offers in the root server segment are out of competition in terms of price / quality ratio.

Reference: as of the time of this writing, the cost of the monthly rental of the EX60 line server (Intel Core i7-920, 48 GB DDR3 RAM, 2 x 2 TB SATA 3Gb / s 7200 rpm HDD) is only € 59 per month. Agree, quite inexpensive.

In this article, I would like to describe a small howto for installing on the root server of the proxmox virtualization system to simply show how easy and accessible it is. I will not describe the options for clustering a system of 2 or more servers (perhaps I’ll do this in the next article if the community is interested), but I’ll sign for the simplest option.

So, first of all we need the server itself. I recommend EX60 , because it is inexpensive, productive and does not have such an unpleasant feature as a one-time setup fee (be careful when ordering other models!)

We ordered a server. Great, we are waiting for us to install it, but as the coveted letter arrives, we proceed directly to the process. It is worth saying that for the purposes of virtualization we will need additional IP addresses. You can purchase them up to 3 pieces separately, or you can buy a subnet at once (requires an additional package of services FlexiPack, 15 euros per month + the cost of renting the subnet). To do this, go to the server control panel robot.your-server.de and, in fact, make an order on the IPs tab. Be sure to specify Purpose of use!



In the case of ordering multiple IP addresses, repeat to taste.

Now we need to load the server in recovery mode. To do this, go to the Rescue tab, select the Operating system Linux, Architecture 64 bit and safely click on the Activate rescue system.



Write the password that the system will offer us



And restart the server:



Log in to the server with the previously recorded password, and execute the following commands:
root@rescue ~ # passwd root@rescue ~ # installimage 

That is, we change the password to us more convenient, and run the installation process.

In the opened wizard, select Virtualization -> Proxmox-Virtualization-on-Debian-Wheezy

The installation configuration file editor opens. I will quote it completely, already with all the necessary corrections, removing unnecessary comments:
Config configuration
## =============================================== ===
## Hetzner Online AG - installimage - standardconfig.
## =============================================== ===

## ====================
## HARD DISK DRIVE (S):
## ====================
DRIVE1 / dev / sda
DRIVE2 / dev / sdb

## ===============
## SOFTWARE RAID:
## ===============
SWRAID 1
SWRAIDLEVEL 1

## ============
## BOOTLOADER:
## ============

BOOTLOADER grub

## ==========
## HOSTNAME:
## ==========

HOSTNAME your_hostname_here

## ==========================
## PARTITIONS / FILESYSTEMS:
## ==========================

PART / boot ext3 512M
PART lvm vg0 all
LV vg0 root / ext4 20G
LV vg0 swap swap swap 8G

## ========================
## OPERATING SYSTEM IMAGE:
## ========================

IMAGE /root/.oldroot/nfs/install/../images/Debian-76-wheezy-64-minimal.tar.gz


We press F10, keeping the changes and agree with the terrible warning that the data on the disks will be lost



And we go to drink coffee.

When a cup of coffee is drunk, and a pleasant warm wave runs through your body, most likely the installation of our server is already complete. All we have to do is reboot by typing in the console.
 root@rescue ~ # reboot 


Download our newly installed server, and go to:
  https: // your_ip_address: 8006 

Log in as root and the password that you changed before installation. Changed because? If not, then use the one that gave us hetzner =)


We continue the setting.
Add storage.
Datacenter -> Storage -> Add -> LVM


Great, we connected our Volume Group. A little patience, a little bit left =)

Configure the network.
Datacenter -> Node1 -> Network
We lead to the form shown in the screenshot. Please note that you need to configure the network as a bridge! Feel free to operate with the settings, until the reboot, they still will not apply ...


And actually restart the server with the Restart button in the upper right corner.
We eat up the cookies remaining after coffee, the server is loaded and ready to go.
Login to the Proxmox control panel again, and click on Create VM from the top right.
An intuitive wizard starts up, about which only 3 things should be said.


Actually, how to generate MAC for the ordered IP.
Go to the server control panel robot.your-server.de , go to the IPs tab and click on Request separate MAC address. We get the MAC, we drive in the settings of the virtual machine, and we get on it IP via DHCP.

What else is worth adding.


It seems like everyone else. You can pour yourself another cup of coffee and deservedly rest.
Thank you for your attention, I hope this material will be useful.

PS Added a vote on whether it is interesting to the respected community about clustering Proxmox servers.

Source: https://habr.com/ru/post/242031/


All Articles