Comments (10)
Thank you.
from windows.
I was not even aware that this container needed "privilege: true" in Kubernetes to be honest. So what happens when you set "privileged: false"?
from windows.
There a few other issues that are already closed that were solved by adding the privilege access. They've shown issues with "NET_ADMIN". I'm assuming that it is because of something that you're inheriting rather than an issue that you are specifically creating.
#373
#341
from windows.
Ow yes, I see now they received a RTNETLINK answers: File exists
error.
I am not sure what it means, so possibly there is a simple workaround for that. But the sole reason why you see the message about NET_ADMIN
is because most of the time when that line fails, it will say RTNETLINK answers: permission denied
when NET_ADMIN
was missing. So I just wanted to provide a hint about the reason, and I just assume its the permission error, but the File exists
error is very different and might have nothing to do with NET_ADMIN
at all.
In any case: it fails while it tries to create a bridge. So the most easy solution would be to use DHCP mode, so that it does not try to create a bridge at all. That would be a quick fix to prevent running with privileged: true
.
from windows.
That's awesome. I'll try DHCP mode.
from windows.
Also, I am not really sure there is a real need to worry about running the container privileged.
If you are worried about my code doing something fishy, you can just read it as its open-source, and confirm that it does nothing bad.
If you are worried that some software in Windows is malicious, its already running inside the QEMU/KVM sandbox, which is much better isolation than Docker can ever provide (even with privileged=false).
So I cannot think of any real-world security risk of running it privileged.
from windows.
I'm able to get "started" in k8s, but I'm having some trouble with some settings.
As you can see in the attached image, the container is expecting /dev/net/tun (whatever that is) and NET_ADMIN
Any ideas how to turn on /dev/net/tun without NET_ADMIN?
from windows.
There is an example Kubernetes file:
https://github.com/dockur/windows/blob/master/kubernetes.yml
which works fine.
from windows.
I'm really trying to solve this so other users don't have to run the privildge: true
Update... I was able to add DHCP. I had to look at the original QEMU image, then their entry.sh script, which led me to the netowrk.sh script. It's looking for the environment variable to be set.
env:
- name: DHCP
value: "Y"
I now have these resultant errors. We're getting closer, @kroese This is going to be even more awesomer when we solve this.
from windows.
I already explained to you why this privileged flag is a non-issue for this container: #491 (comment)
And I am the creator of that "original QEMU image", so that DHCP mode will create a macvtap
interface which will need even more privileges than the simple bridge from the normal mode.
There might be a way to create this bridge without privileges, so if you want to spend time on a fix then thats great. But for me personally I dont think its important at all, so Im not going to look into it.
from windows.
Related Issues (20)
- [Question]: How do I specify an IP to Windows? HOT 5
- [Bug]: Cannot download any Windows image "Reason: 4" HOT 2
- [Question]: Mounting WinPE ISO and Working on Installed OS Drive HOT 5
- [Question]: Multiple network interfaces HOT 1
- [Question]: Running a service and accessing from outside HOT 1
- [Question]: noVNC view only mode? HOT 1
- Can this container boot Windows 11 (with virtio drivers installed) installed on a physical disk (e.g. /dev/mmcblk1)? HOT 7
- [Bug]: Typo in README.md on line 159 (/storage/shared) HOT 2
- [Feature]: Add a way to bypass RAM check for systems with ZFS HOT 7
- [Question]: Any Tutorials for installing this on Truenas via Docker/ Kubernetes? HOT 5
- [Question]: ERROR: You are using Docker Desktop for Windows which does not support macvlan, please revert to bridge networking! HOT 16
- docker: invalid reference format. HOT 2
- [Feature]: Separated/Dedicated interfaces for VNC & VM HOT 6
- ERROR: Timeout while waiting for QEMU to boot the machine! HOT 16
- How can I run multiple containers at the same time HOT 6
- [Question]: I have two questions..!! HOT 8
- [Question]: commiting changes HOT 2
- Forcefully terminating Windows, reason: 0.. HOT 5
- [Question]: Is it possible to boot pre nt windows HOT 4
- [Issue]: Can't login into windows HOT 10
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.