Network interface 'eth0' does not exist inside the container

21 views
Skip to first unread message

joyce

unread,
Jun 12, 2025, 11:27:44 AMJun 12
to gVisor Users [Public]
I met an error "ERROR: Network interface 'eth0' does not exist inside the container!
❯ ERROR: Please add the following setting to your container: -e "VM_NET_DEV=NAME" to specify another interface name." when I using gVisor as my docker runtime. What should I do? Thank you for your help!
here is myu docker compose:
services:
  windows10:
    image: dockurr/windows
    container_name: windows10
    environment:
        USERNAME: "bill"
        PASSWORD: "gates"
        DISK_SIZE: "50G"
    devices:
        - /dev/kvm
    cap_add:
        - NET_ADMIN
    ports:
        - 7010:8006
        - 13310:3389/tcp
        - 13310:3389/udp
    stop_grace_period: 2m
    volumes:
      - ./win10/storage:/storage
      - ./win10/data:/data
      - ./win10_LTSC.ISO:/custom.iso

docker logs:
windows10  | ❯ Starting Windows for Docker v4.05...
windows10  | ❯ For support visit https://github.com/dockur/windows
windows10  | ❯ CPU: unknown | RAM: 7/8 GB | DISK: 36 GB (v9fs) | KERNEL: 4.4.0...
windows10  |
windows10  | ❯ Extracting local ISO image...
windows10  | ❯ Detecting version from ISO image...
windows10  | ❯ Detected: Windows 10 LTSC (Chinese)
windows10  | ❯ Adding drivers to image...
windows10  | ❯ Adding win10x64-ltsc.xml for automatic installation...
windows10  | ❯ Building Windows 10 image...
windows10  | ❯ Creating a 50G growable disk image in raw format...
windows10  | ❯ ERROR: Network interface 'eth0' does not exist inside the container!
windows10  | ❯ ERROR: Please add the following setting to your container: -e "VM_NET_DEV=NAME" to specify another interface name.

Etienne Perot

unread,
Jun 12, 2025, 2:03:31 PMJun 12
to joyce, gVisor Users [Public]
The image you are using (dockurr/windows) runs Windows inside a virtual machine inside a container (hence needing /dev/kvm). gVisor does not currently support virtualization inside the sandbox, so this image will not work in gVisor. The error message about eth0 would just be the first in a long series of incompatibility issues for this image.

--
You received this message because you are subscribed to the Google Groups "gVisor Users [Public]" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gvisor-users...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/gvisor-users/fda6ac4c-fc6e-4466-8c34-67a87d5a9eedn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages