Losing connection after installing cPanel

Businezz

New Member
Jan 6, 2023
15
1
3
Hi all,

I have some issues with the network i guess... When i install cPanel on almalinux or centos 7 VM, after rebooting it's losing connection.

If i type ping 91.xx.xx.xx retrurns to:

Code:
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2

92 bytes from 194.xx.xx.xx: Destination Host Unreachable
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 5400 b051   0 0000  2f  01 6226 192.168.0.101  91.xx.xx.xx
 
HI,
please post your network configuration cat /etc/network/interfaces and the configs for the VMs which are not working qm config <VMID>.

Is the output of ping you are showing from within the VM, trying to reach the outside or are you trying to ping the VM from the outside?
 
HI,
please post your network configuration cat /etc/network/interfaces and the configs for the VMs which are not working qm config <VMID>.

Is the output of ping you are showing from within the VM, trying to reach the outside or are you trying to ping the VM from the outside?
This is the output:

Code:
auto lo
iface lo inet loopback

auto primary
iface primary inet static
  address 194.xx.xx.16/32
  pointopoint 194.xx.xx.1
  gateway 194.xx.xx.1
  post-up echo 1 > /proc/sys/net/ipv4/ip_forward
  post-up echo 1 > /proc/sys/net/ipv4/conf/primary/proxy_arp

iface enp1s0f0 inet manual

auto vmbr0
iface vmbr0 inet static
    address 194.xx.xx.16/32
    bridge-ports none
    bridge-stp off
    bridge-fd 0
    up ip route add 91.xx.xx.81/32 dev vmbr0
    up ip route add 91.xx.xx.82/32 dev vmbr0
    up ip route add 91.xx.xx.84/32 dev vmbr0
# dns-* options are implemented by the resolvconf package, if installed Added during provisioning

auto vmbr1
iface vmbr1 inet static
    address 10.0.0.1/16
    bridge-ports none
    bridge-stp off
    bridge-fd 0

Code:
agent: 0
boot: order=scsi0;ide2;net0
cores: 4
ide2: local:iso/AlmaLinux-8.7-x86_64-minimal.iso,media=cdrom,size=1695M
memory: 4096
meta: creation-qemu=7.1.0,ctime=1673528999
name: Almalinux-cpanel
net0: virtio=FA:4B:B5:16:70:BD,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
scsi0: local:100/vm-100-disk-0.qcow2,iothread=1,size=80G
scsihw: virtio-scsi-single
smbios1: uuid=ef292755-9a56-4431-b00f-20e65e09b98f
sockets: 1
vmgenid: d7ceda1a-804e-432e-ab3a-1bed31d317d9

I'm trying to ping it from outside. Basically when im trying to login to WHM with port :2087 it does nothing. Then i pinged it and returned those errors. Still i have access to proxmox and the VM console, but it's impossible accessing the VM from outside.
 
Hi,
you have seemingly the same IP address for the bridge vmbr0 and the primary interface. For an example of a routed network config see https://pve.proxmox.com/pve-docs/pve-admin-guide.html#sysadmin_network_routed

Also, is the VM reachable before you install cPanel, maybe the installer mangles with you network configuration? Further you could checked the network traffic with tcpdump on the proxmox host as well as inside the VM.
 
Last edited:
I t
Hi,
you have seemingly the same IP address for the bridge vmbr0 and the primary interface. For an example of a routed network config see https://pve.proxmox.com/pve-docs/pve-admin-guide.html#sysadmin_network_routed

Also, is the VM reachable before you install cPanel, maybe the installer mangles with you network configuration? Further you could checked the network traffic with tcpdump on the proxmox host as well as inside the VM.
yes i can access the VM from outside before the cPanel installation, but seems like it’s disconnected afterwards
 
Hi,
you have seemingly the same IP address for the bridge vmbr0 and the primary interface. For an example of a routed network config see https://pve.proxmox.com/pve-docs/pve-admin-guide.html#sysadmin_network_routed

Also, is the VM reachable before you install cPanel, maybe the installer mangles with you network configuration? Further you could checked the network traffic with tcpdump on the proxmox host as well as inside the VM.
That’s how the provider had explain in their own tutorials so I followed it … what’s the best way to set them up?
 
yes i can access the VM from outside before the cPanel installation, but seems like it’s disconnected afterwards
This indicates that the installation probably changed the network configuration in your VM. Check IP address ecc. within VM
 
Last edited:
This indicates that the installation probably changed the network configuration in your VM. Check IP address ecc. within VM
Here's what I'm getting when i type arp -a:

Code:
? (91.xx.xx.65) at 54:1e:56:6d:a7:61 [ether] on primary
? (91.xx.xx.82) at <incomplete> on vmbr0
? (91.xx.xx.81) at <incomplete> on vmbr0
? (91.xx.xx.84) at <incomplete> on vmbr0
? (194.xx.xx.1) at 54:1e:56:6d:a7:61 [ether] on primary

82,81,84 are the IPv4 that i can use. Looks like they are disconnected ...?
 
Is there a firewall which might interfere?
 

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!