Proxmox VM'S with public IP
fr:Proxmox VM'S avec IP publique en:Proxmox VM'S with public IP
Introduction
In this article, we will explain how to configure your Hypervisor so that you can use public IPs in your VMs.
Installation Proxmox Debian 10
Normally, if you have requested it, the hypervisor will already be installed on your server. If this is not the case, please see here the steps to install it.
Add the Proxmox VE repository:
echo "deb [arch=amd64] http://download.proxmox.com/debian/pve buster pve-no-subscription" > /etc/apt/sources.list.d/pve-install-repo.list
Add the Proxmox VE repository key:
wget http://download.proxmox.com/debian/proxmox-ve-release-6.x.gpg -O /etc/apt/trusted.gpg.d/proxmox-ve-release-6.x.gpg chmod +r /etc/apt/trusted.gpg.d/proxmox-ve-release-6.x.gpg # optional, if you have a non-default umask
Update network settings from Proxmox :
apt install ifupdown2
Update your repository and your system by running :
apt update && apt full-upgrade
Install the Proxmox VE packages
apt install proxmox-ve postfix open-iscsi
To access your Proxmox interface
https://xxx.xxx.xxx.xxx:8006
x- to be replaced by the @IP of your server
Network Setup
- First of all, please install this package if you have not already done so (on the server via SSH).
apt install ifupdown2
- When you access the Proxmox interface for the first time, please confirm the network settings.You may find one or two cards already present on the server.
- Explanations
In order to use public IP on our VM's, our network interface eth0 (can have another name) "Network Device" must be connected by a virtual network card noted vmbrX.
If the virtual network card does not exist, just click on "Create" to create it "Linux Bridge".
Leave everything blank at this point, we will come back to the configuration later.
Configuring the network cards
Notes: Please make the changes on both boards before applying the configuration.
- eth0
The card must be configured as follows:
- vmbr0
x-Corresponds to the @IP of your server.
- Once you are done, to apply the new network configuration, please click on "Apply Configuration".
Conclusion
From now on you can create VM's with the public @IPs you have ordered. To configure the VM's network, you just have to assign the virtual network card (vmbr0).
For network addressing on the VM use additional @IPs ordered with the same subnet mask as your server and the same gateway.
Please follow this example:
Did you find this article useful ?
Enable comment auto-refresher