Temporary network between Proxmox Host and VM

impeding8615

New Member
Aug 27, 2022
7
0
1
Hi,

I am using Ansible to install Packer on my Proxmox host.
Then I use Ansible to start Packer which creates a VM, does an unattended Debian installation and converts it to a VM template.

In this process Packer runs a webserver to serve files to the VM. This is necessary to get the config file for the unattended installation into the VM.
(Any other webserver would suffice too)

Problem: I have the Firewall enabled on Proxmox so the VM can't connect to the webserver running on the Proxmox host.
By default it uses a random port so I can't create a firewall rule for it.
I could change that to a static port, but I need this maybe once a month and I don't want to have a rule with this open port when nothing is behind it most of the time.

What would be viable options to get that working?
Could I create a internal network only between the Proxmox host and the VM and access the webserver like so? How would I do that?
Or can I easily inject a single static file in the webserver that serves the Proxmox WebUI so that it is available under port 8006?
 

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!