diff --git a/autounattend.xml b/autounattend.xml new file mode 100644 index 0000000..20678db --- /dev/null +++ b/autounattend.xml @@ -0,0 +1,319 @@ + + + + + + + +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 +3 +Primary + + + + +true +NTFS + +1 +1 +0x27 + + +true +NTFS + +C +3 +3 + + +0 +true + + + + + +0 +3 + +false + + + +true +cvoges12 +cvoges12woodward-windows-desktop + +W269N-WFGWX-YVC9B-4J6C9-T83GX + + + + + + + + +1 +Primary +100 + + +true +3 +Primary + + + + +true +NTFS + +1 +1 +0x27 + + +true +NTFS + +C +3 +3 + + +0 +true + + + + + +0 +3 + +false + + + +true +cvoges12 +cvoges12woodward-windows-desktop + +W269N-WFGWX-YVC9B-4J6C9-T83GX + + + + + + +true + + + + +true + + + + +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 + + +ms-woodward +W269N-WFGWX-YVC9B-4J6C9-T83GX + + +ms-woodward +W269N-WFGWX-YVC9B-4J6C9-T83GX + + + + + + + +true</PlainText> +</Password> +<Enabled>true</Enabled> +<Username>cvoges12</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>1</ProtectYourPC> +</OOBE> +<UserAccounts> +<LocalAccounts> +<LocalAccount wcm:action="add"> +<Password> +<Value></Value> +<PlainText>true</PlainText> +</Password> +<Description>Admin</Description> +<DisplayName>cvoges12</DisplayName> +<Group>Administrators</Group> +<Name>cvoges12</Name> +</LocalAccount> +</LocalAccounts> +</UserAccounts> +<RegisteredOrganization>cvoges12woodward-windows-desktop</RegisteredOrganization> +<RegisteredOwner>cvoges12</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 0 /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="cvoges12" 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></Value> +<PlainText>true</PlainText> +</Password> +<Enabled>true</Enabled> +<Username>cvoges12</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>1</ProtectYourPC> +</OOBE> +<UserAccounts> +<LocalAccounts> +<LocalAccount wcm:action="add"> +<Password> +<Value></Value> +<PlainText>true</PlainText> +</Password> +<Description>Admin</Description> +<DisplayName>cvoges12</DisplayName> +<Group>Administrators</Group> +<Name>cvoges12</Name> +</LocalAccount> +</LocalAccounts> +</UserAccounts> +<RegisteredOrganization>cvoges12woodward-windows-desktop</RegisteredOrganization> +<RegisteredOwner>cvoges12</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 0 /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="cvoges12" set PasswordExpires=false</CommandLine> +<Description>Password Never Expires</Description> +</SynchronousCommand> +</FirstLogonCommands> +<TimeZone>UTC</TimeZone> +</component> +</settings> +</unattend> \ No newline at end of file diff --git a/init.sh b/init.sh new file mode 100644 index 0000000..a2b20f7 --- /dev/null +++ b/init.sh @@ -0,0 +1,44 @@ +#!/bin/sh + +# extract iso +mkdir -p /mnt/iso +mount -o loop Win10* /mnt/iso + +# copy iso files +mkdir -p win +cp -r /mnt/iso/* win/ + +# clean up mount +umount /mnt/iso +rm -rf /mnt/iso +#rm Win* + +# copy answerfile +cp autounattend.xml + +# recreate iso +dd if=win of=win.iso + +# clean up iso extract +rm -rf win + +# qemu +SPICE_PORT=5924 +qemu-system-x86_64 \ + -enable-kvm \ + -daemonize \ + -cpu host \ + -smp 4 \ + -net nic \ + -net user,hostname=windowsvm \ + -m 8G \ + -vga qxl \ + -boot d \ + -cdrom win.iso \ + -drive file=/dev/sda,cache=none,if=virtio \ + -spice port=${SPICE_PORT},disable-ticketing \ + -device virtio-serial \ + -chardev spicevmc,id=vdagent,name=vdagent \ + -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 + +exec spicy --title Windows 127.0.0.1 -p ${SPICE_PORT}