Unfortunately, I have not been able to do this; can someone help me with this?
OR
Previously, I had the Windows VM running directly on the Ubuntu server, and I managed it via another Linux machine with the virt-manager GUI.
Here, I had 2 network adapters: the same macvlan that I have now, AND the default one that was created. This one was in a 192.168 range, and through this adapter, I could access the host (10.0.1.12).
This was easy to set up with a route add command by directing traffic to 10.0.1.xxx via the gateway of that default adapter in the 192.168 range.
But unfortunately, I haven't been able to achieve this with this container either.
Operating system
Ubuntu Server 24.04
Description
Hello everyone,
I am using Ubuntu Server 24.04 LTS as the host.
On this, I have a Docker container running.
I have assigned the Windows VM running in this container the IP address 10.0.1.7.
The Ubuntu Host has the IP address 10.0.1.12.
I understand that it is normal for the VM to be able to connect to everything in your local network except the host (10.0.1.12) itself.
In the FAQ, I see that this can be solved by adding a second macvlan, and they refer to the following website: https://blog.oddbit.com/post/2018-03-12-using-docker-macvlan-networks/#host-access
Unfortunately, I have not been able to do this; can someone help me with this?
OR
Previously, I had the Windows VM running directly on the Ubuntu server, and I managed it via another Linux machine with the virt-manager GUI.
Here, I had 2 network adapters: the same macvlan that I have now, AND the default one that was created. This one was in a 192.168 range, and through this adapter, I could access the host (10.0.1.12).
This was easy to set up with a route add command by directing traffic to 10.0.1.xxx via the gateway of that default adapter in the 192.168 range.
But unfortunately, I haven't been able to achieve this with this container either.
Does anyone have any tips or tricks?
Kind regards,
Buck Baggen
Docker compose
services: windows: image: dockurr/windows container_name: windows11 environment: ARGUMENTS: "-cpu host,-vmx" DISPLAY: "disabled" VERSION: "win11" LANGUAGE: "Dutch" REGION: "nl-NL" KEYBOARD: "en-US" DISK_SIZE: "128G" RAM_SIZE: "8G" CPU_CORES: "4" DHCP: "Y" MANUAL: "Y" volumes:
volumes: windows11: networks: vlan: external: true
Docker log
nvt
Screenshots (optional)
No response