Network unreachable for vm

Can you please give a bit more information?

For example the /etc/network/interfaces file of your server and the VM config? qm config <VMID>

Mask public IP addresses if you have them.