Document:Installing Windows Server on QEMU (ARM64)

1. Download and install QEMU 2.11 for Windows: 32-bit version 64-bit version

2. Download Linaro UEFI 15.12 64-bit and copy this file to the QEMU installation folder.

3. Download USB Mass Storage UEFI driver for ARM64.

4. Create needed VHD files by using the  utility. For this, run the following commands. (Note that these files will be created in a directory on your C drive called "arm64", and they will be mounted under the drive letters M, P and W).

create vdisk file="C:\arm64\usb.vhd" maximum=4000 type=expandable select vdisk file="C:\arm64\usb.vhd" attach vdisk convert gpt create partition primary format quick fs=fat32 assign letter=m create vdisk file="C:\arm64\hdd.vhd" maximum=60000 type=expandable select vdisk file="C:\arm64\hdd.vhd" attach vdisk convert gpt create partition efi size=100 format quick fs=fat32 assign letter=p create partition primary format quick assign letter=w exit

5. Import the USB driver and system image by copying the file  to M:\ and then eject the M drive, and then mounting the ISO image of this build and running the following commands in an elevated command prompt (assuming that D is the letter of the drive you mounted the ISO to):

dism /apply-image /imagefile:D:\sources\install.wim /index:1 /applydir:W:\ bcdboot W:\Windows /s P: /f UEFI

After that, eject P or W. Once ejected, P remains and disappears after a reboot.

6. Run QEMU by going to your QEMU installation folder, saving the following text to a batch file, and then running it to start the emulator:

7. If you want to change screen resolution press F2 to enter EFI settings, enter  and then. Change the resolution to the desired one then commit the changes and exit. Choose  in the QEMU menu and then reset the emulator.

8. Load the USB driver and start the system by pressing F2 to enter the EFI settings, selecting, and then select. Enter a drive letter (such as ) in the shell and run the following commands:

load UsbMassStorageDxe_arm64.efi map -r

(The above commands give you access to the USB drive)

efi\boot\bootaa64.efi

(efi\boot\bootx64.efi)

(The above commands allow you to start the OOBE).

After the completion of the OOBE, you can boot into the system.

9. Log in. First, wait patiently for the configuration to complete, then do the following: Press Ctrl + Alt + 2 to switch to the QEMU Monitor and then input  and press Enter, then press Ctrl + Alt + 1 to switch back to the system display. Enter your password to log in.

Each time you reboot, you need to redo step 10.

10. If you want to make an automatic login quit QEMU and mount. Run  on your host and click , then click on the menu item "File", then "Load Hive...", and open. Give any name to the hive when prompted, then navigate to. Create a new string value named  and set its value to 1. Create another string value named  and set its value to. Then, create a third string value named  and set its value to the password you already set during the OOBE. Navigate back to, then click on the menu item "File", then "Unload Hive..." and choose "Yes" for the dialog box.

''You can also install it via installation media. For this:''

1. Download the Red Hat VirtIO drivers package.

2. Create needed VHD files by using the  utility. For this, run the following commands. (Note that these files will be created in a directory on your C drive called "arm64", and they will be mounted under the drive letters P and W).

create vdisk file="C:\arm64\setup.vhd" maximum=4096 type=fixed select vdisk file="C:\arm64\setup.vhd" attach vdisk convert gpt create partition primary format quick fs=fat32 assign letter=p create vdisk file="C:\arm64\hdd.vhd" maximum=60000 type=expandable select vdisk file="C:\arm64\hdd.vhd" attach vdisk convert gpt create partition efi size=100 format quick fs=fat32 create partition primary format quick assign letter=w exit

3. Copy the contents of the installation media over to partition P, followed by the contents of the SCSI hard drive controller driver directory within the VirtIO driver package located in. Eject all currently attached virtual drives from the machine, and paste and run the contents of the below script onto a batch file within the QEMU installation directory:

Load the VirtIO SCSI disk controller driver at the partition selection page and continue installation through normal means.