Comments (11)
The unattended xml creates an user called Docker with an empty password. It would be possible to change the name in the way you describe.
But it is already possible in the current version. You can download the win11x64.xml
, modify it (replace all instances of Docker with the username you want) and then bind mount the xml file in your compose file:
volumes:
- /path/custom.xml:/run/assets/win11x64.xml
Ofcourse your suggestion of an environment variable would be easier than overriding the xml file, but I am sure we would end up providing variables for almost every entry in the xml (because if you can modify the username, why not the computername?, etc).
from windows.
Ohh, and btw, is the unnattend file automatically used? As i just tried reinstalling my win11 instance, deleted everything and rerun the docker run command and it seems not to be working correctly. The bypass nro feature doesnt seem to work to be precise. I tried installing windows 11 and i could only install it using a microsoft account. I tried installing the netkvm driver before and tried without it. No luck. In both situations, i was unable to get beyond the "login with your microsoft account" or the "you are not connected through the internet" message.
from windows.
The unattended xml creates an user called Docker with an empty password. It would be possible to change the name in the way you describe.
But it is already possible in the current version. You can download the
win11x64.xml
, modify it (replace all instances of Docker with the username you want) and then bind mount the xml file in your compose file:volumes: - /path/custom.xml:/run/assets/win11x64.xmlOfcourse your suggestion of an environment variable would be easier than overriding the xml file, but I am sure we would end up providing variables for almost every entry in the xml (because if you can modify the username, why not the computername?, etc).
Hm, interesting. Maybe i´ll look into it and make a pr for this functionality, if you want. I think this feature might come in handy, though the unattended file would need to be applied automatically, without placing and bind mounting it in the compose file or docker run command
from windows.
Do you have set MANUAL=Y
or have a custom.iso
file in your storage folder? In all other cases the installation should be fully automatic without user interaction or account creation screens.
from windows.
I had to place a custom win11 iso in the /storage folder, as i got banned by microsoft for automatic downloading. Will try without the iso
from windows.
Though wouldnt it be possible to add the unattended xml even to a custom.iso file?
from windows.
That explains why your installation is not automatic. If you use a custom.iso
then two things change:
- Its not modified to remove the "Press any key to boot from DVD..." prompt. So you will always end up in UEFI shell and must boot it manually
- The
unattend.xml
is not used, because its different for every Windows version, and I cannot know which version is inside the custom ISO.
from windows.
Ok, interesting
from windows.
Maybe there could be an env variable to overwrite any existing unattended.xml for custom.iso if the version variable is set aswell? This could make it easier to identify the version of windows. Afaik the unattended options only change between larger windows updates (so 10->11) and not between smaller uipdates (11 22h2 -> 11 23h2).
Or the default behaviour could be to replace any custom.iso with the pre-configured unattended.xml if the version varialbe is set, and dont do it, if another variable is set. Something like "overwriteUnattended", which is true by default and can be set to false. So users who had to download a custom.iso due to download limitations can still use your modifications, IF they set the version parameter correctly.
I knows this would imply, that users would have to configure this correctly, but i think it might be more useful than doing nothing for custom.iso´s. But thats just my opinion :)
from windows.
Yeah, you have some valid points, but Im afraid applying the .xml will bring more problems than it solves.
Basicly the only situations where its necessary to use a custom.iso
are:
- When you want to install an ISO like Tiny11. So something that is very similar to Windows, but with heavy modifications.
- When you want to install old versions (like Windows 7 or XP)
- When you want to install an ISO with a different language pack
In all these 3 cases it will not work to apply an XML. For Tiny11 or Win7 they dont exist in the assets folder, and for a different language ISO you dont want it applied because it sets the language to English during installation.
Outside of these situations, I can not see a need to use a custom.iso
, and yours was an exception because you were blocked by the server.
To get back to the original issue: that there were no local accounts created. We figured out the reason for that, so I guess that solves the issue.
from windows.
@Joly0 In the new version (v1.06) I decided to implement your suggestion. For custom ISO's, it will now detect the version inside the ISO, and automaticly applies the corresponding .xml file.
However, this is only done when supplying an URL in the VERSION
variable. The behaviour of the custom.iso
file was not changed, as it is more of a fallback method and not even described in the readme.
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 10
- [Question]: how to use this windows server as a file server HOT 5
- [Question]: How do I install it on Manjaro?
- [Feature]: keep TLS working and verify downloaded files HOT 5
- [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.