{"id":280,"date":"2021-01-16T02:21:23","date_gmt":"2021-01-16T02:21:23","guid":{"rendered":"https:\/\/pure-media.info\/?p=280"},"modified":"2021-01-16T02:21:25","modified_gmt":"2021-01-16T02:21:25","slug":"proxmox-network-setup-on-hetzner-dedicated-server","status":"publish","type":"post","link":"https:\/\/pure-media.info\/index.php\/2021\/01\/16\/proxmox-network-setup-on-hetzner-dedicated-server\/","title":{"rendered":"Proxmox Network Setup on Hetzner Dedicated Server"},"content":{"rendered":"\n<p>Proxmox Virtual Environment is an open-source server virtualization management platform. It is a Debian-based Linux distribution with a modified Ubuntu LTS kernel and allows deployment and management of virtual machines and containers. We will show you a simple way to setup subnets and additional IPs. Using the Robot API from Hetzner.<\/p>\n\n\n\n<p>The Proxmox-Version depends on your OS:<br>Proxmox 5.x on Debian Jessie and Proxmox 6.x on Debian Buster<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Install Proxmox on your server<\/li><li>Let&#8217;s Encrypt Certificate for the Proxmox-Interface<\/li><li>Option to use Thin-Pool Storage<\/li><li>Read the Server-IPs (Single-IP and Subnet) from the Hetzner-Robot<\/li><li>Write the Network-Config<\/li><li>Option to create private IPs if you use a vSwitch<\/li><\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Install Dependencies  \napt -y update\napt -y install php-cli php-curl wget\ncd \/root\nwget https:\/\/download.schaal-it.net\/hetzner-proxmox.tgz\ntar xfz hetzner-proxmox.tgz\ncd proxmox<\/pre>\n\n\n\n<p>To install Proxmox, please read the following notes before running the script.<\/p>\n\n\n\n<p>The directory custom contains several files that are used during the installation.<\/p>\n\n\n\n<p>In the <strong>custom directory<\/strong> you will find:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>etc\/aliases<\/li><li>etc\/cron.d\/trim.example<\/li><li>etc\/sysctl.d\/pve.conf<\/li><li>root\/trim.sh.example<\/li><li>root\/update-lxc.sh.example<\/li><li>ssh (empty)<\/li><\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">php install-proxmox.php<\/pre>\n\n\n\n<p><strong>You will be asked the following questions:<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Full qualified hostname (FQDN) of the server [server]:<\/pre>\n\n\n\n<p>Add the full name here (i.e. server.example.com). Otherwise you can not use Let&#8217;s Encrypt.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">IP of the server [100.150.0.100]:<\/pre>\n\n\n\n<p>Make sure that the recognized ip is also the one from your server<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Network Card [enp0s31f6]:<\/pre>\n\n\n\n<p>Usually, you don&#8217;t have to change the detected value.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Do you want to autoconfigure the network? (y,n) [y]:<\/pre>\n\n\n\n<p>Choose <strong>y<\/strong> to let the script generate the network-config.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Enter your credentials for the Hetzner-API\nrobot_url [https:\/\/robot-ws.your-server.de]:\nrobot_user []: \nrobot_password []:<\/pre>\n\n\n\n<p>Enter your robot-credentials if you did not already stored them in robot.conf.php.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>If you just want to setup network only with your current network setup used the following<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">php network-manual.php<\/pre>\n\n\n\n<p>You find the generated config in \/root\/interfaces.generated<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Contributing<\/h2>\n\n\n\n<p>Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.<\/p>\n\n\n\n<p>Please make sure to update tests as appropriate.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Bugtracker<\/h2>\n\n\n\n<p>Visit our <a href=\"https:\/\/git.schaal-it.com\/hetzner\/proxmox\/issues\">issue tracker<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Proxmox Virtual Environment is an open-source server virtualization management platform. It is a Debian-based Linux distribution with a modified Ubuntu<\/p>\n","protected":false},"author":1,"featured_media":281,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[85],"tags":[366,31,362,10,364,363,4,11,365],"class_list":["post-280","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech-tip","tag-additional","tag-debian","tag-hetzner","tag-install","tag-network","tag-proxmox","tag-server","tag-setup","tag-subnet"],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/pure-media.info\/wp-content\/uploads\/2021\/01\/hetzner-vswitch-proxmox.jpg?fit=1280%2C720&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7oBs4-4w","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/posts\/280","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/comments?post=280"}],"version-history":[{"count":1,"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/posts\/280\/revisions"}],"predecessor-version":[{"id":282,"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/posts\/280\/revisions\/282"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/media\/281"}],"wp:attachment":[{"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/media?parent=280"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/categories?post=280"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/tags?post=280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}