[SOLVED] Window VM doesn't have internet

Hi,

Can you more explain your issue? - as I understand you are using VMware from Hetzner and your Windows has no network?

If so you need to ask in VMware community.
 
Hi,

Can you more explain your issue? - as I understand you are using VMware from Hetzner and your Windows has no network?

If so you need to ask in VMware community.
Sorry I meant to say Virtual Machine, I'm using proxmox and I've got no clue what information to give
 
Hi,

Please post output of the following commands:

VM config: qm config <VMID>
your network configuration: cat /etc/network/interfaces
Proxmox VE version: pveversion -v
 
Hi,

Please post output of the following commands:

VM config: qm config <VMID>
your network configuration: cat /etc/network/interfaces
Proxmox VE version: pveversion -v

Code:
boot: order=sata0;ide2;net0
cores: 4
ide2: local:iso/17763.737.190906-2324.rs5_release_svc_refresh_SERVER_EVAL_x64FRE_en-us_1.iso,media=cdrom
memory: 6048
net0: e1000=34:97:F6:5A:0A:37,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
sata0: local:100/vm-100-disk-0.raw,size=100G
scsihw: virtio-scsi-pci
smbios1: uuid=d435ebb0-c177-484e-a651-0bdca4e2bfc9
sockets: 1
vmgenid: 504cb56b-0596-40ce-99a1-dd4873ed1e65

Code:
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

iface lo inet6 loopback

iface enp4s0 inet manual

auto vmbr0
iface vmbr0 inet static
        address 88.99.139.192/26
        gateway 88.99.139.193
        bridge-ports none
        bridge-stp off
        bridge-fd 0


Rich (BB code):
proxmox-ve: 6.3-1 (running kernel: 5.4.73-1-pve)
pve-manager: 6.3-2 (running version: 6.3-2/22f57405)
pve-kernel-5.4: 6.3-1
pve-kernel-helper: 6.3-1
pve-kernel-5.4.73-1-pve: 5.4.73-1
ceph-fuse: 12.2.11+dfsg1-2.1+b1
corosync: 3.0.4-pve1
criu: 3.11-3
glusterfs-client: 5.5-3
ifupdown: residual config
ifupdown2: 3.0.0-1+pve3
libjs-extjs: 6.0.1-10
libknet1: 1.16-pve1
libproxmox-acme-perl: 1.0.5
libproxmox-backup-qemu0: 1.0.2-1
libpve-access-control: 6.1-3
libpve-apiclient-perl: 3.0-3
libpve-common-perl: 6.2-6
libpve-guest-common-perl: 3.1-3
libpve-http-server-perl: 3.0-6
libpve-storage-perl: 6.3-1
libqb0: 1.0.5-1
libspice-server1: 0.14.2-4~pve6+1
lvm2: 2.03.02-pve4
lxc-pve: 4.0.3-1
lxcfs: 4.0.3-pve3
novnc-pve: 1.1.0-1
proxmox-backup-client: 1.0.5-1
proxmox-mini-journalreader: 1.1-1
proxmox-widget-toolkit: 2.4-3
pve-cluster: 6.2-1
pve-container: 3.3-1
pve-docs: 6.3-1
pve-edk2-firmware: 2.20200531-1
pve-firewall: 4.1-3
pve-firmware: 3.1-3
pve-ha-manager: 3.1-1
pve-i18n: 2.2-2
pve-qemu-kvm: 5.1.0-7
pve-xtermjs: 4.7.0-3
qemu-server: 6.3-1
smartmontools: 7.1-pve2
spiceterm: 3.1-1
vncterm: 1.6-2


Here u go
 
Read it carefully its confused but if you read it more time you will understand.

However, if you have a single IP from Hetzner do like this Masquerading (NAT) with iptables, if you afraid because of broke your server make a original copy from your network configuration and start cron job to restore the original settings if you make mistake


Bash:
*/30 * * * * /bin/cp /etc/network/interfaces.orginal /etc/network/interfaces ; systemctl restart networking.service

Hope this helps you :)
 
Read it carefully its confused but if you read it more time you will understand.

However, if you have a single IP from Hetzner do like this Masquerading (NAT) with iptables, if you afraid because of broke your server make a original copy from your network configuration and start cron job to restore the original settings if you make mistake


Bash:
*/30 * * * * /bin/cp /etc/network/interfaces.orginal /etc/network/interfaces ; systemctl restart networking.service

Hope this helps you :)
Thanks but it all confuses me, My knowledge in linux is a 0, and there support well isn't useful so I'm sure they are missing stuff
 
Hey, not making a new thread for this but I'm not getting internet still my interfaces is
https://uploader.nathans212.com/coNE6/daJORURU72.png
What could I do to see why its failing? I watched a video and did what he did (Expect the point to thing) and it still fails
you should not add ip route for the /29 on vmbr0.
(as you hava already have setup /29 on vmbr1).
as alternative, you could remove vmbr1, and add ip route /32 for each ip of your /29 in vmbr0.

in you first post, in your windows vm, you can't use 88.99.139.199 as ip address. (this ip, is the ip for vmbr0, and it should be the gateway ip in the vm).
for vm ip, you need to use one of the /32 ip address of vmbr0.




About your /29, if you don't want to split it in /32 on vmbr0, and want to keep it on vmbr1:

Network: 179.9.234.128/29,
you can only use ips addresses from 179.9.234.129 to 179.9.234.134,

Network: 179.9.234.128/29 10110011.00001001.11101010.10000 000 (Class B)
Broadcast: 179.9.234.135 10110011.00001001.11101010.10000 111
HostMin: 179.9.234.129 10110011.00001001.11101010.10000 001
HostMax: 179.9.234.134 10110011.00001001.11101010.10000 110


So, you need for example, use 179.9.234.129 on vmbr1 , and 130->134 for the vms (and 179.9.234.129 is the gateway inside the vms).
 
you should not add ip route for the /29 on vmbr0.
(as you hava already have setup /29 on vmbr1).
as alternative, you could remove vmbr1, and add ip route /32 for each ip of your /29 in vmbr0.

in you first post, in your windows vm, you can't use 88.99.139.199 as ip address. (this ip, is the ip for vmbr0, and it should be the gateway ip in the vm).
for vm ip, you need to use one of the /32 ip address of vmbr0.




About your /29, if you don't want to split it in /32 on vmbr0, and want to keep it on vmbr1:

Network: 179.9.234.128/29,
you can only use ips addresses from 179.9.234.129 to 179.9.234.134,

Network: 179.9.234.128/29 10110011.00001001.11101010.10000 000 (Class B)
Broadcast: 179.9.234.135 10110011.00001001.11101010.10000 111
HostMin: 179.9.234.129 10110011.00001001.11101010.10000 001
HostMax: 179.9.234.134 10110011.00001001.11101010.10000 110


So, you need for example, use 179.9.234.129 on vmbr1 , and 130->134 for the vms (and 179.9.234.129 is the gateway inside the vms).
Thanks for that information, I think I understand and did the changes but I'm still getting no ip and no internet

https://uploader.nathans212.com/coNE6/JedaTise48.png
https://uploader.nathans212.com/coNE6/BuJeDiPA89.png
https://uploader.nathans212.com/coNE6/SEXilaFa77.png
Do u see what is wrong / what i should change?
 
I feel silly now but it just clicked on the issue, I'm going to post it here so if anyone else has the issue I have then they can see how i fixed it
Firstly I did what I'm going to put how the issue started,
I'm using hetzner.com and the issue started on a proxmox reboot
I did what spirit said to do - so confirm that you have done this correctly
Secondly the ip forwarding commands aren't permanent so try and run
sysctl -w net.ipv6.conf.all.forwarding=1

sysctl -w net.ipv4.ip_forward=1

and see if it fixes your issue, Spirit thanks for the info and help