Internet Access from the VM

Lamia

Member
Jun 25, 2020
24
0
6
34
Hello,

I have a vm on a node that doesn't have access to the Internet (on the vm, there is Windows Server running with Active Directory). I would like to have Internet access on that vm.

Here is my etc/network/interfaces file

Code:
auto lo
iface lo inet loopback

iface enp1s0 inet manual

auto vmbr0
iface vmbr0 inet static
    address  192.168.10.247
    netmask  255.255.255.0
    gateway  192.168.10.254
    bridge-ports enp1s0
    bridge-stp off
    bridge-fd 0

Thanks
 
Here it is:

Code:
root@secondserver:~# qm config 100
bootdisk: sata0
cores: 4
ide2: none,media=cdrom
memory: 4096
name: DC2
net0: e1000=42:4E:E5:3A:D9:1F,bridge=vmbr0,tag=200
numa: 0
onboot: 1
ostype: win10
sata0: local:100/vm-100-disk-0.raw,size=200G
scsihw: virtio-scsi-pci
smbios1: uuid=971828e1-e3f0-48e7-b280-a64ac186fd8c
sockets: 1
vmgenid: a768c645-d24f-4253-b4f2-9c8d7188c91c
 
Hello,

no, it is not.

Code:
root@secondserver:~# pve-firewall status
Status: disabled/running
 
net0: e1000=42:4E:E5:3A:D9:1F,bridge=vmbr0,tag=200


So you have a vlan for this interface. I think you need to put the check on the vlan-awere on the bridge vmbr0. Aditional you may need to configure your switch/router with vlan ;)