Files
Workstation/qemu_winXP.md
2023-01-22 10:23:32 -05:00

65 lines
1.6 KiB
Markdown

# Windows 10 VM with Qemu
## Not booting from ISO
Switch from UEFI to BIOS
## Valid Key
4X7WM-GTH3D-DWVCV-H382J-HPMRD
## Bypass Microsoft Account Requirement
1. shift + f10 to open command prompt during setup
2. `oobe\bypassnro`
3. shift + f10 again to open command prompt
4. `ipconfig /release` to disconnect the internet
5. Continue with limited setup
## Create installer iso
mkisofs -o ~/Downloads/win-install.iso /tmp/windows-installers/
## Snapshot qcow2 storage
```bash
# list
qemu-img snapshot -l win10.qcow2
# create
qemu-img snapshot -c $SNAPSHOT_NAME $DISK_IMAGE
# apply
qemu-img snapshot -a $SNAPSHOT_NAME $DISK_IMAGE
# delete
qemu-img snapshot -d \
$SNAPSHOT_NAME \
$DISK_IMAGE
```
## Setup
Install and configure windows as normal to start. Boot into the installation and finish the setup.
## Auto resize display
1. Ensure the video device is set to "QXL" on the host
2. Download [virt-win-guest-tools](https://github.com/virtio-win/virtio-win-pkg-scripts) and install on guest
3. Download [spice-guest-tools](https://www.spice-space.org/download.html#windows-binaries) and install on guest
4. Shutdown the guest machine
5. view -> Scale Display -> Auto resize VM with window
6. Start the guest machine, it should now auto resize
## virtio network driver
1. Download [virt-win-guest-tools](https://github.com/virtio-win/virtio-win-pkg-scripts) and install on guest
2. Shutdown the guest machine
3. Change the network device model to virtio
4. Start the guest machine
## virtio boot disk
1. Attempted virt-win-guest-tools install but boots with boot_device_not_found error