Coder Social home page Coder Social logo

Comments (5)

kroese avatar kroese commented on July 4, 2024

If you also followed the steps for DHCP=Y I think that is not supported on a Synology device because its kernel (v4) does not have the macvtap interface that newer Linux kernels have.

If you only did macvlan without DHCP=Y i think it should work, but maybe just stick to bridge mode because the Docker on Synology is a bit different than the normal Docker, so I cant garantuee it works.

from windows.

denny0810 avatar denny0810 commented on July 4, 2024

The docker is sticked to brigde mode. Below is the docker-compose I used to create the container. windows dirver was requested when the setup started which i select the option as " Red Hat VirtIO SCSI pass-through controller (D:\amd64\w10\vioscsi.inf)" .

version: "3"
services:
  windows:
    image: dockurr/windows
    container_name: win10_ltsc2019
    devices:
      - /dev/kvm
  #    - /dev/sda
  #    - /dev/sdb
    cap_add:
      - NET_ADMIN
    networks:
      macvlan_net1:
        ipv4_address: 192.168.1.120
#    ports:
#     - 8006:8006
#      - 3389:3389/tcp
#      - 3389:3389/udp
    volumes:
      - /volume1/docker/dockerWin/storage:/storage
    environment:
      VERSION: "https://example.com/win.iso"
#      MANUAL: "Y"
      RAM_SIZE: "4G"
      CPU_CORES: "2"
      DISK_SIZE: "64G"
#      DEVICE: "/dev/sda"
#      DEVICE2: "/dev/sdb"
    stop_grace_period: 2m
    restart: on-failure
networks:
  macvlan_net1:
    external: true

image

If you also followed the steps for DHCP=Y I think that is not supported on a Synology device because its kernel (v4) does not have the macvtap interface that newer Linux kernels have.

If you only did macvlan without DHCP=Y i think it should work, but maybe just stick to bridge mode because the Docker on Synology is a bit different than the normal Docker, so I cant garantuee it works.

from windows.

kroese avatar kroese commented on July 4, 2024

Did you install the NetKVM driver for the networkcard? Otherwise you have no network. Also install virtio-win-gt-x64.msi as described in the FAQ for manual install.

from windows.

denny0810 avatar denny0810 commented on July 4, 2024

It works now aftering installing the NetKVM. Thanks a lot!
I found 2 small issues.

  1. when restarts the docker, windows will always create a new network interface that cause a long list of the network interface in the registry file.
  2. the macvlan is created to possess ipv4 and ipv6 addresses. but in the windows i found the ipv6 cannot work.

from windows.

kroese avatar kroese commented on July 4, 2024

The first issue I dont know about. Maybe Windows does this if the MAC address changes, but I generate the MAC from the container name, so it should stay the same after reboot. Maybe its a problem of the NetKVM driver, but I did not create that driver so it should be fixed by its author.

The second issue is maybe because I dont forward the IPv6 traffic correctly in bridge mode. It can be solved when setting DHCP=Y because that mode has no forwarding. But as you are using a Synology you cannot use this mode, so I dont have a quick solution for that.

from windows.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.