Atlas-OS / Atlas

🚀 An open and lightweight modification to Windows, designed to optimize performance, privacy and usability.
https://atlasos.net
GNU General Public License v3.0
13.01k stars 506 forks source link

Installer does not pick `Autounattend.xml` placed on disk `e:\` #312

Closed shanduur closed 1 year ago

shanduur commented 1 year ago

Not filling out this template will lead to the issue being closed

Describe the bug When starting the installer, it does not pick Autounattend.xml placed on disk e:\:

x:\> dir e:\
 Volume in drive E is WindowsAnswerFile
 Volume Serial Number is BF29-0C78

 Directory of e:\

11/24/2022  12:27 PM                23,290 Autounattend.xml
                1 File(s)            23,290 bytes
                0 Dir(s)                  0 bytes free

To Reproduce Steps to reproduce the behavior:

  1. Go to http://windowsafg.com
  2. Generate new Answer File.
  3. Save it as Autounattend.xml and place on empty pendrive.
  4. Plug both usb sticks, one with Atlas installer and one with Autounattend.xml into the powered off device.
  5. Power on device and start installer.
  6. Installer stays on the initial installer page:
image

Expected behavior Automated install of the AtlasOS using Autounattend.xml.

Screenshots

image

Desktop Info (please complete the following information):

Additional context Installation was attempted using Packer.

Command used for installation:

packer init pve.pkr.hcl && \
packer build \
    -force \
    -var-file variables.pkrvars.hcl \
    pve.pkr.hcl

All files used for installation:

- `pve.pkr.hcl`: ```hcl packer { required_plugins { name = { version = ">= 1.0.8" source = "github.com/hashicorp/proxmox" } } } variable "name" { type = string default = "atlas-0.5.2" } variable proxmox_addr {} variable proxmox_node {} variable proxmox_username {} variable proxmox_password {} variable proxmox_token { type = string default = env("PACKER_PVE_TOKEN") } variable vm_prefix {} variable iso_storage {} source "proxmox" "pve" { // proxmox config insecure_skip_tls_verify = true node = "${var.proxmox_node}" os = "l26" proxmox_url = "https://${var.proxmox_addr}:8006/api2/json" username = "${var.proxmox_username}" password = "${var.proxmox_password}" // vm vm_name = "${var.vm_prefix}-${var.name}-template" communicator = "winrm" winrm_username = "robot" winrm_password = "P@ssw0rd1+" winrm_insecure = true winrm_use_ssl = true // template template_name = "${var.vm_prefix}-${var.name}-template" template_description = "${var.name}, generated on ${formatdate("YYYY MMM DD HH:mm:ss", timestamp())}" // ISO unmount_iso = true iso_url = "https://github.com/Atlas-OS/atlas-releases/releases/download/20H2-v0.5.2/Atlas_v0.5.2.iso" iso_checksum = "c0c90fb4ff7c4122d03658fa42a1367fce99f81cfdaa7637360b94a7bf661d9f" iso_storage_pool = "${var.iso_storage}" additional_iso_files { cd_files = [ "./scripts/Autounattend.xml" ] cd_label = "WindowsAnswerFile" device = "sata3" iso_storage_pool = "${var.iso_storage}" unmount = false } // CPU and memory cpu_type = "host" cores = "2" memory = "4096" // disk scsi_controller = "virtio-scsi-pci" disks { disk_size = "64G" storage_pool = "base-pool" storage_pool_type = "zfspool" type = "sata" } // network network_adapters { bridge = "vmbr0" firewall = true model = "e1000" } // graphics vga { type = "std" } } build { sources = ["source.proxmox.pve"] } ``` - `variables.pkrvars.hcl`: ```hcl proxmox_addr = "192.168.1.100" // replace with ip of your ProxmoxVE machine proxmox_node = "pve" // replace with name of your node proxmox_username = "root@pam" // replace with your username proxmox_password = "P@ssw0rd" // replace with your password vm_prefix = "hl" iso_storage = "zfs-storage" // replace with your storage ``` - `scripts/Autounattend.xml`: ```xml F:\viostor\w10\amd64 F:\NetKVM\w10\amd64 F:\Balloon\w10\amd64 F:\pvpanic\w10\amd64 F:\qemupciserial\w10\amd64 F:\qxldod\w10\amd64 F:\vioinput\w10\amd64 F:\viorng\w10\amd64 F:\vioscsi\w10\amd64 F:\vioserial\w10\amd64 en-US 0409:00000409 en-US en-US en-US en-US en-US 0409:00000409 en-US en-US en-US en-US 1 Primary 100 true 2 Primary true NTFS 1 1 0x27 true NTFS C 2 2 0 true 0 2 false true robot W269N-WFGWX-YVC9B-4J6C9-T83GX 1 Primary 100 true 2 Primary true NTFS 1 1 0x27 true NTFS C 2 2 0 true 0 2 false true robot W269N-WFGWX-YVC9B-4J6C9-T83GX false false 1 1 0409:00000409 en-US en-US en-US en-US 0409:00000409 en-US en-US en-US en-US true true 0 0 -PC W269N-WFGWX-YVC9B-4J6C9-T83GX -PC W269N-WFGWX-YVC9B-4J6C9-T83GX RobotCI@1+ true</PlainText> </Password> <Enabled>false</Enabled> <Username>robot</Username> </AutoLogon> <OOBE> <HideEULAPage>true</HideEULAPage> <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen> <HideOnlineAccountScreens>true</HideOnlineAccountScreens> <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE> <NetworkLocation>Home</NetworkLocation> <SkipUserOOBE>true</SkipUserOOBE> <SkipMachineOOBE>true</SkipMachineOOBE> <ProtectYourPC>2</ProtectYourPC> </OOBE> <UserAccounts> <LocalAccounts> <LocalAccount wcm:action="add"> <Password> <Value>RobotCI@1+</Value> <PlainText>true</PlainText> </Password> <Description></Description> <DisplayName>robot</DisplayName> <Group>Administrators</Group> <Name>robot</Name> </LocalAccount> </LocalAccounts> </UserAccounts> <RegisteredOrganization></RegisteredOrganization> <RegisteredOwner>robot</RegisteredOwner> <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet> <FirstLogonCommands> <SynchronousCommand wcm:action="add"> <Description>Control Panel View</Description> <Order>1</Order> <CommandLine>reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v StartupPage /t REG_DWORD /d 1 /f</CommandLine> <RequiresUserInput>true</RequiresUserInput> </SynchronousCommand> <SynchronousCommand wcm:action="add"> <Order>2</Order> <Description>Control Panel Icon Size</Description> <RequiresUserInput>false</RequiresUserInput> <CommandLine>reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v AllItemsIconView /t REG_DWORD /d 0 /f</CommandLine> </SynchronousCommand> <SynchronousCommand wcm:action="add"> <Order>3</Order> <RequiresUserInput>false</RequiresUserInput> <CommandLine>cmd /C wmic useraccount where name="robot" set PasswordExpires=false</CommandLine> <Description>Password Never Expires</Description> </SynchronousCommand> </FirstLogonCommands> <TimeZone>UTC</TimeZone> </component> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <AutoLogon> <Password> <Value>RobotCI@1+</Value> <PlainText>true</PlainText> </Password> <Enabled>false</Enabled> <Username>robot</Username> </AutoLogon> <OOBE> <HideEULAPage>true</HideEULAPage> <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen> <HideOnlineAccountScreens>true</HideOnlineAccountScreens> <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE> <NetworkLocation>Home</NetworkLocation> <SkipUserOOBE>true</SkipUserOOBE> <SkipMachineOOBE>true</SkipMachineOOBE> <ProtectYourPC>2</ProtectYourPC> </OOBE> <UserAccounts> <LocalAccounts> <LocalAccount wcm:action="add"> <Password> <Value>P@ssw0rd1+</Value> <PlainText>true</PlainText> </Password> <Description></Description> <DisplayName>robot</DisplayName> <Group>Administrators</Group> <Name>robot</Name> </LocalAccount> </LocalAccounts> </UserAccounts> <RegisteredOrganization></RegisteredOrganization> <RegisteredOwner>robot</RegisteredOwner> <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet> <FirstLogonCommands> <SynchronousCommand wcm:action="add"> <Description>Control Panel View</Description> <Order>1</Order> <CommandLine>reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v StartupPage /t REG_DWORD /d 1 /f</CommandLine> <RequiresUserInput>true</RequiresUserInput> </SynchronousCommand> <SynchronousCommand wcm:action="add"> <Order>2</Order> <Description>Control Panel Icon Size</Description> <RequiresUserInput>false</RequiresUserInput> <CommandLine>reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v AllItemsIconView /t REG_DWORD /d 0 /f</CommandLine> </SynchronousCommand> <SynchronousCommand wcm:action="add"> <Order>3</Order> <RequiresUserInput>false</RequiresUserInput> <CommandLine>cmd /C wmic useraccount where name="robot" set PasswordExpires=false</CommandLine> <Description>Password Never Expires</Description> </SynchronousCommand> <SynchronousCommand wcm:action="add"> <CommandLine>reg add HKLM\System\CurrentControlSet\Control\Network\NewNetworkWindowOff</CommandLine> <Description>Disable the network discovery prompt window</Description> <Order>4</Order> <RequiresUserInput>true</RequiresUserInput> </SynchronousCommand> <SynchronousCommand wcm:action="add"> <CommandLine>cmd.exe /c a:\00-run-all-scripts.cmd</CommandLine> <Description>Run all *.bat and *.cmd scripts on drive A:</Description> <Order>5</Order> <RequiresUserInput>true</RequiresUserInput> </SynchronousCommand> <SynchronousCommand wcm:action="add"> <Order>6</Order> <CommandLine>powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1'))"</CommandLine> </SynchronousCommand> <SynchronousCommand wcm:action="add"> <Order>7</Order> <CommandLine>powershell -NoProfile -ExecutionPolicy Bypass -Command "netsh advfirewall firewall set rule group='Windows Remote Management' new enable=yes"</CommandLine> </SynchronousCommand> <SynchronousCommand wcm:action="add"> <Order>8</Order> <CommandLine>powershell -NoProfile -ExecutionPolicy Bypass -Command "netsh advfirewall firewall add rule name='ICMP Allow incoming V4 echo request' protocol=icmpv4:8,any dir=in action=allow"</CommandLine> </SynchronousCommand> <SynchronousCommand wcm:action="add"> <Order>9</Order> <CommandLine>powershell -NoProfile -ExecutionPolicy Bypass -Command "Get-NetAdapter | foreach { Disable-NetAdapterBinding -InterfaceAlias $_.Name -ComponentID ms_tcpip6 }"</CommandLine> </SynchronousCommand> <SynchronousCommand wcm:action="add"> <Order>10</Order> <CommandLine>powershell -NoProfile -ExecutionPolicy Bypass -Command "F:\guest-agent\qemu-ga-x86_64.msi /quiet"</CommandLine> </SynchronousCommand> </FirstLogonCommands> <TimeZone>UTC</TimeZone> </component> </settings> </unattend> ``` </details> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/shanduur"><img src="https://avatars.githubusercontent.com/u/32583062?v=4" />shanduur</a> commented <strong> 1 year ago</strong> </div> <div class="markdown-body"> <p>If you ever attempted installation using <code>Autounattend.xml</code>, you succeeded and still have the file available somewhere, I would be grateful for sharing it. Even though I tested multiple different Answer files, some generated, some written by hand, I was unable to install the OS or obtain any log.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/shanduur"><img src="https://avatars.githubusercontent.com/u/32583062?v=4" />shanduur</a> commented <strong> 1 year ago</strong> </div> <div class="markdown-body"> <p>For context:</p> <ul> <li>Packer Version: <pre><code>Packer v1.8.4</code></pre></li> </ul> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/uncognic"><img src="https://avatars.githubusercontent.com/u/92607100?v=4" />uncognic</a> commented <strong> 1 year ago</strong> </div> <div class="markdown-body"> <p>Atlas already has a autounattend.xml</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/shanduur"><img src="https://avatars.githubusercontent.com/u/32583062?v=4" />shanduur</a> commented <strong> 1 year ago</strong> </div> <div class="markdown-body"> <p>@uncognic so there is no way to override that one already provided, or extend it?</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/uncognic"><img src="https://avatars.githubusercontent.com/u/92607100?v=4" />uncognic</a> commented <strong> 1 year ago</strong> </div> <div class="markdown-body"> <p>Yes, just replace Atlas's autounattend.xml with yours</p> </div> </div> <div class="page-bar-simple"> </div> <div class="footer"> <ul class="body"> <li>© <script> document.write(new Date().getFullYear()) </script> Githubissues.</li> <li>Githubissues is a development platform for aggregating issues.</li> </ul> </div> <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> <script src="/githubissues/assets/js.js"></script> <script src="/githubissues/assets/markdown.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/go.min.js"></script> <script> hljs.highlightAll(); </script> </body> </html>