Offline mirror activation

Jun 13, 2023
1
0
1
Hi,
The IT department at my company has set up a Proxmox Offline Mirror server so that I can activate a subscription on my servers, which do not have internet access.

The documentation states to use the
Code:
proxmox-offline-mirror-helper offline-key
command. I tried this with the product set to pve and the mountpoint set to the URL on the mirror server (using HTTP, which the documentation says you can do). I ran the command like this:
Code:
proxmox-offline-mirror-helper offline-key --product pve --mountpoint http://mydomain.corp/proxmox/
and it tells me
Code:
Error: Medium mountpoint doesn't exist.
Does anyone know how to fix this?

Thanks
 
I opened a support case for this exact question. Handling keys isn't supported with the HTTP media type. It only works if you actually copy the media to the remote server. I hacked up a set of scripts to tarball just enough of the media tree to get the offline keys working. One runs on the POM itself to create the mini-tarball, one runs on the remote host to do the bootstrap setup for the keys and the HTTP-based media (to override the hardcoded assumptions in p.o.m.h) and another runs on the remote host in a cron job to keep the local copy of the mini-tarball and the media it provides up to date.

It would not have been difficult to provide this in the product, I don't know why they only went part-way on the http support.