Giving Guest dedicated network addresses

pascalku

Member
Mar 5, 2020
33
0
11
23
Hey,

in my Proxmox environment, I want to assign clear network addresses to virtual machines (KVMs). It should also be possible to assign multiple network addresses to a guest.

Unfortunately, I find relatively few on Google or simply look for the wrong one. Can you give me some hints how I can assign a fixed network address (Ipv4) from the host system (at best with the Proxmox API) without the guest being able to manipulate it? So even if the guest sets a wrong network address, it shouldn't be possible to act over it if the host has it.

Thanks, for your help!
 
A guest is a independent system - it can be anything, from a simple Windows, to a Linux to *BSD to some self programmed Operating System - you cannot configure the network for all those infinity OS possibilities in a sane way. If you want that and use Linux guests then just use Container, there it is possible (due to a restricted set of Distros we can support9

There are things like CloudInit or the QEMU Guest Agent, which when installed in the guest, can be used to manage such things for the more common operating systems.

without the guest being able to manipulate it? So even if the guest sets a wrong network address, it shouldn't be possible to act over it if the host has it.

You can restrict the guest to be only allowed to use a single or multiple specified IP through setting up Firewall rules - just reject everything with a source IP different than those you want to allow.
 
Okay, I think I understand about the firewall now. So I created a firewall rule in which I set the following properties:

Bildschirmfoto 2020-03-19 um 20.56.11.png

I have set the destination under IPSet There I have stored all accepted addresses:
Bildschirmfoto 2020-03-19 um 20.56.33.png

I can no longer reach my machine at the set addresses - unless I release them in the firewall. This is exactly what I wanted to achieve. Now however the question how I get the address initially. I would like to read it from an external "address pool" and assign it dedicated. Are there any wiki contributions that I just can't find?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!