RHEL_9_Foreman_Guide

Knowledge Base Install Discovery and Provisioning libvirt proxmox external DNS&DHCP diskless pxe-boot using zfs

proxmox

install

create_proxmox_vm promox_install proxmox_finish

login via your local browser using “root” along with the password you set in installation-process


add a host-mapping:

create a self-signed ssl-cert

ERF42-5577 [Foreman::Exception]: Failed to create Proxmox compute resource:
SSL_read: unexpected eof while reading (OpenSSL::SSL::SSLError).
Either provided credentials or FQDN is wrong or your server cannot connect to Proxmox due to network issues.

create a private key:

$ openssl genpkey -algorithm RSA -out private_key.pem

encrypt your private key:

$ openssl rsa -in private_key.pem -out encrypted_private_key.pem
writing RSA key

create a csr:

$ openssl req -new -key private_key.pem -out csr.pe
You are about to be asked to enter information that will be incorporated 
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [XX]:de
State or Province Name (full name) []:
Locality Name (eg, city) [Default City]:
Organization Name (eg, company) [Default Company Ltd]:
Organizational Unit Name (eg, section) []:
Common Name (eg, your name or your server's hostname) []:my.proxmox-server.de 
Email Address []:<YOUR EMAIL!!!!>
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:<YOUR CHALLENGE-PASS!!!>
An optional company name []:

create the self-signed cert using the just created csr:

 $ openssl x509 -req -days 365 -in csr.pem -signkey private_key.pem -out certificate.pem
Certificate request self-signature ok
...

check out the files:

$ ls
certificate.pem  csr.pem   encrypted_private_key.pem  private_key.pem ...

upload your cert + encrypted privatekey to proxmox: upload_ssl

configure foreman

configure firewall:

$ firewall-cmd --add-port=5900-5930/tcp
$ firewall-cmd --add-port=5900-5930/tcp --permanent

install foreman_fog_proxmox:

$ sudo dnf install rubygem-foreman_fog_proxmox

restart foreman service:

$ sudo systemctl restart foreman.service

add the proxmox-computeresource:

finish_compute_resource


Knowledge Base Install Discovery and Provisioning libvirt proxmox external DNS&DHCP diskless pxe-boot using zfs