Skip to main content

run almalinux on kvm

Comments

8 comments

  • cPRex Jurassic Moderator

    Hey there!  Does the cPanel instance have a unique IP address from the parent instance?

    0
  • kevin lin

    Hi, the cPanel/KVM guest is currently on libvirt’s default NAT network with an internal IP (192.168.122.124) and does not have its own public IP separate from the host. From the outside, only the host’s IP is reachable.

    0
  • cPRex Jurassic Moderator

    That isn't going to be a supported implementation of cPanel as it would be required to have a separate IP address from the parent server in order to function like a typical VPS/KVM.  I don't have any good recommendations to get this working.

    0
  • kevin lin

    Hi cPRex,
    thanks for clarifying — I understand that cPanel on a KVM guest really needs its own IP in order to work properly. I’ll request an additional public IP from our provider and switch the VM’s NIC to bridged mode.

    If for some reason we can’t get a second IP, is there any reverse-proxy or port-forwarding approach you’d recommend (for example Apache mod_proxy with SSLProxyEngine on)? Or would that simply be too unstable / unsupported?

    Thanks again for your insight!

    0
  • cPRex Jurassic Moderator

    I wouldn't be able to say for sure with any certainty as that just isn't something we test on our end.

    0
  • kevin lin

    Hi cPRex,

    Thank you for the clarification. I understand that running WHM on a NAT’d KVM setup isn’t a scenario you officially test, so it’s outside your supported configurations.

    Could you point me to any documentation or best-practice notes for this kind of environment? Are there known caveats or pitfalls I should watch out for if I proceed with a reverse-proxy or bridged networking approach?

    In the meantime I’ll request a second public IP and switch the VM to bridged mode, but any pointers you can share would be very helpful.

    Thanks again for your time and assistance.

    Best regards,
    Kevin

    0
  • cPRex Jurassic Moderator

    I really don't have any guides that will be helpful here as this just isn't the intended way that cPanel operates.

    You will want to ensure a 1:1 NAT configuration if that's how things are configured on the machine: https://docs.cpanel.net/knowledge-base/general-systems-administration/1-1-nat/

    0
  • kevin lin

    Hi cPRex,

    Thank you for pointing me to the 1:1 NAT guide. I’ll proceed to configure a true one-to-one NAT mapping so that the VM’s internal IP (192.168.122.124) is directly reachable via my host’s public IP on port 443→2087, per your documentation: 

    0

Please sign in to leave a comment.