This article describes the process of installing a Proxmox Virtual Environment (an open source server virtualization management), creating a virtual machine, adding a separate IP address for a virtual machine, and an example network configuration.
Install Proxmox VE on Debian Buster
Install a standard Debian Buster and configure a static IP.
Add an /etc/hosts entry for your IP address:
127.0.0.1 localhost.localdomain localhost
22.214.171.124 your_server_name.proxmox.com your_server_name
Add the Proxmox VE repository:
echo "deb 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
Update your repository and system by running:
apt update && apt full-upgrade
Install Proxmox VE packages:
apt install proxmox-ve postfix open-iscsi
Finally, reboot the server, the new Proxmox VE kernel should be automatically selected in the GRUB menu.
After that you can connect to the admin web interface (https://your__server’s_ip_address:8006). Since we have a fresh install and didn’t have any users yet, we should use the root account with our Linux root password, and select «PAM authentication» to log in.
We will try to configure access to virtual machines using the DHCP setting and set up a network bridge.
It is required to obtain a separate MAC address for the IP address of the virtual machine. You can get a separate MAC address only for a single IP address. You cannot use multiple IP addresses on the same virtual machine.
Packet forwarding between interfaces (IP forwarding) on the host system must be enabled. In order for the forwarding to be switched on automatically, the appropriate changes must be made in the /etc/sysctl.conf file upon reboot. Note that redirection is disabled by default.
sysctl -w net.ipv4.ip_forward = 1
Next we configure the network bridge. This can be done either in the graphical interface or in the console.
If you want to configure a network bridge vmbr0 through a graphical interface, you need to go to the tab System -> Network. And choose Create — Linux Bridge:
In the field Bridge ports you need to add your network device.
As a result, you get such a network configurations:
If you want to configure check the network settings through the console, you need to go and edit /etc/network/interfaces:
If you make changes to this file, you need to apply the changes:
service networking restart
Adding a mac-address for VM
After that, you can create a virtual machine.
You need to click on the Create VM button and fill in the appropriate fields, go to network setup.
In the fields you need to enter the MAC address of your IP address that is available to you as an additional address.
Overview of virtual machine access and check network configuration
After the virtual machine has been successfully created, we connect to it and see that the network has been configured automatically. And we have access to the network.
The example uses the Windows operating system.
In the selected fields you should have the settings of your additional IP address.