[SOLVED] Internet communication Problem - VM Clients to Internet

mf1979

Member
Apr 24, 2020
19
0
6
East side of US
Hello,

I'm very new at Proxmox and trying to migrate my home lab from ESXI/.

I installed --> pve-manager/6.1-7/13e58d5e (running kernel: 5.3.18-2-pve)

I configured NFS and other things. Only issue is my Proxmox can connect internet and update. But any VM i installed cannot.

Proxmox and VM can ping each other. I reinstalled Proxmox 3-4 times but could not find any solution.

I will make Cluster system so i added 2 NIC for each Proxmox server.

I want to do;

1. Connect internet from VM machines.
2. I want to make NAT configuration. But i am not really good for this configuration and i don't want to use Firewall or complicated configuration.

now my whole network use 10.0.1.0/24 . I want to use some VMs in my main network. But some of VM machines could be in NAT like 192.168.1.0/24 .

3. I started to convert some vmdk with qemu-img and -c option but it takes whole day. some of my VMs are around 300-400 GB. Is there any option make it more more faster like parallel processes? I want to use compress option because it will take too much space without compress.

4. Is there anyway to convert vmdk with snapshots history not different disk files? I cannot export OVF, I don't know why but It fails. So i copied vmdk files via scp

cat /etc/network/interfaces

auto lo
iface lo inet loopback

iface ens33 inet manual

auto vmbr0
iface vmbr0 inet static
address 10.0.1.182
netmask 255.255.255.0
gateway 10.0.1.1
bridge_ports ens33
bridge_stp off
bridge_fd 0

iface ens34 inet manual

Please let me know about answer.

Thank you
 
I found some different setting. I added another vmbr1 and if VM is using this bridge internet and local network connection is working.

I added this lines;

up ip route add 10.0.1.0/24 via 10.0.1.1 dev vmbr0
up sysctl -p

But it did not change anything for vmbr0.

If i use vmbr0 in windows VM, it gets regular network IP from DHCP but still there is not internet connection or network ping.

If I use vmbr0 in Linux VM, ever it does not get Ip from DHCP and there is no network connection.

I added this in system and modified /etc/sysctl.conf but it still did not change anything in system.

sysctl -w net.ipv4.ip_forward=1


# /etc/network/interfaces

auto lo
iface lo inet loopback

iface ens192 inet manual
iface ens224 inet manual

auto vmbr0
iface vmbr0 inet static
address 10.0.1.190
netmask 255.255.255.0
network 10.0.1.0
broadcast 10.0.1.255
gateway 10.0.1.1
bridge_ports ens192
bridge_stp off
bridge_fd 0
up ip route add 10.0.1.0/24 via 10.0.1.1 dev vmbr0
up sysctl -p

auto vmbr1
iface vmbr1 inet static
address 10.0.2.1
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '10.0.2.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.0.2.0/24' -o vmbr0 -j MASQUERADE

How come when i use vmbr1 and it work perfectly and vmbr0 is not working.

I think there is a forwarding or some other parameter in the system but i cannot find it.

In Proxmox, Datacenter, proxmox and vm leve, Firewall is NO position. so this is not about firewall issue. I need to make change in proxmox i guess.

Can you please check details and tell me where is the issue?
 
Hello,

I changed file like that but still when i use vmbr0 in VM network, VM cannot connect internet.

And i don't know why Windows machines get IP from my main network and cannot connect internet.

And why linux machines cannot get IP..

Could someone tell me where is issue?

# cat /etc/network/interfaces
auto lo
iface lo inet loopback

iface ens192 inet manual
iface ens224 inet manual

auto vmbr0
iface vmbr0 inet static
address 10.0.1.190
netmask 255.255.255.0
gateway 10.0.1.1
bridge_ports ens192
bridge_stp off
bridge_fd 0

auto vmbr1
iface vmbr1 inet static
address 10.0.2.1
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '10.0.2.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.0.2.0/24' -o vmbr0 -j MASQUERADE
 
Hi,

Can you post output of the following commands:
pveversion -v ip a cat /etc/hosts qm config <VMID>
and last edit of network configuration cat /etc/network/interfaces
 
Hello,

I solved error. It was about Esxi configuration.

I installed Proxmox in Esxi as a another VM. Esxi does not allow. but now it's working.

Thank you
 

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!