1.5 KiB
1.5 KiB
Windows 10 VM with Qemu
Create installer iso
mkisofs -o ~/Downloads/win-install.iso /tmp/windows-installers/
Snapshot qcow2 storage
# 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
- Ensure the video device is set to "QXL" on the host
- Download virt-win-guest-tools and install on guest
- Download spice-guest-tools and install on guest
- Shutdown the guest machine
- view -> Scale Display -> Auto resize VM with window
- Start the guest machine, it should now auto resize
virtio network driver
- Download virt-win-guest-tools and install on guest
- Shutdown the guest machine
- Change the network device model to virtio
- Start the guest machine
virtio boot disk
- Attempted virt-win-guest-tools install but boots with boot_device_not_found error
Auto login at boot
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
- Add a key: AutoAdminLogon, string, 1
- Add a key: DefaultUserName, string, autoadmin
- Add a key: DefaultPassword, string, autopassword