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?
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?