Comments (5)
The error says you have no permission to write to device_cgroup_rules
but Im not sure why.
You can try adding privileged: true
to the compose file, to run the container with more permissions. But normally that shouldnt be necessary!
from windows.
@kroese
Thank you.
I can try that.
Three things that I've done or changed since I posted this issue.
-
I am no longer trying to deploy the container with Portainer anymore. It would download the Win11 ISO and would go through the process of extracting the installer, but then when it needs to reboot to actually launch the installer, it will fail to stay connected.
-
So, now I am just using the normal "docker run" command.
-
Even outside of the Portainer environment, I tried deploying said Docker container via docker-compose up -d, and that resulted in the same thing as when I was trying to deploy this from within Portainer.
Not really sure why that is.
I also had to add in two additional options to the docker run command:
--security-opt apparmor:unconfined
and also --sysctl net.ipv4.ip_forward=1
for it to work properly.
I haven't tried to get this to pick up an IPv4 address from my router's DHCP server, as I am having limited success with getting this to run the way I think that it is supposed to.
Once I solve those pieces, then I can work on getting it to pick up an IPv4 address from my router's DHCP server, but I need the "recipe" to be working in a stable and consistent manner first.
Thank you.
from windows.
Just to add here:
I am running it in an unprivilege LXC container.
My docker-compose.yml file now looks like this:
version: "3"
services:
win11:
image: dockurr/windows
container_name: win11
devices:
- /dev/kvm
environment:
VERSION: "win11"
RAM_SIZE: "8G"
CPU_CORES: "4"
cap_add:
- NET_ADMIN
volumes:
- ./win11:/storage
security_opt:
- apparmor:unconfined
sysctls:
net.ipv4.ip_forward: 1
networks:
vlan:
ipv4_address: 10.172.194.142
ports:
- 8006:8006
- 3389:3389/tcp
- 3389:3389/udp
stop_grace_period: 2m
restart: on-failure
networks:
vlan:
external: true
from windows.
So the issue is solved now?
In any case you wont be able to use DHCP mode in a unprivileged LXC container, as the macvlan
interface can only be created using mknod
which wont work within unprivileged LXC.
See vdsm/virtual-dsm#382 for more background on that.
from windows.
Ahh...okay. Gotcha.
Thank you.
I was able to "create" the macvlan (both when I ran it with "standalone Docker/docker compose") and in Portainer, I would create the macvlan configuration, and then deploy the config by calling it vlan.
The driver shows up as null, but I am able to connect to it at the IP that I have assigned in the docker-compose.yml file, so it works enough for me. (DHCP is not 100% necessary/critical. At least not yet.)
from windows.
Related Issues (20)
- Error: macvlan add DHCP: "Y",the container cannot be started HOT 1
- [Bug]: not exactly a bug report, just posting how to mount custom iso HOT 2
- [Question]: 使用本地系统镜像Windows-server2022时报Windows 无法从无人参与应答文件读取设置 HOT 1
- [Feature]: view-only VNC HOT 2
- [Feature]: Add custom init script HOT 8
- [Feature]: Support for RemoteAPP via RDP HOT 4
- Installing Duo RDP broke the RDP connection HOT 1
- [Question]: Why can't I use wmic in docker windows? HOT 4
- [Feature]: Allow custom XML injection HOT 4
- [Bug]: Cannot access shared folder "Windows cannot access \\host.lan\Data" HOT 5
- [Question]: Installing operating system from recovery USB HOT 1
- [Feature]: Preconfigured SSH HOT 2
- [Question]: 性能损耗大概是多少呢 HOT 2
- Windows 11 pro 23H2 cannot connect with rdp when using HOT 5
- When installing winxp in windows 11, you cannot use rdp to connect to winxp in docker HOT 12
- [Question]: how to use this windows server as a file server HOT 5
- [Question]: How do I install it on Manjaro? HOT 2
- [Feature]: keep TLS working and verify downloaded files HOT 7
- [Bug]: winget upgrade failed HOT 1
- Display output is not active[Question]: HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from windows.