install_notes/windows10/windows10.md

2.4 KiB

Windows 10

Virtual Machine

To do

  • Fix shutdown command from PVE

Guest agent

https://pve.proxmox.com/wiki/Qemu-guest-agent

First you have to download the virtio-win driver iso (see Windows VirtIO Drivers).

Then install the virtio-serial driver:

  • Attach the ISO to your windows VM (virtio-*.iso)
  • Go to the windows Device Manager
  • Look for "PCI Simple Communications Controller"
  • Right Click -> Update Driver and select on the mounted iso in DRIVE:\vioserial<OSVERSION>\ where is your Windows Version (e.g. 2k12R2 for Windows 2012 R2)

After that, you have to install the qemu-guest-agent:

  • Go to the mounted ISO in explorer
  • The guest agent installer is in the directory guest-agent
  • Execute the installer with double click (either qemu-ga-x86_64.msi (64-bit) or qemu-ga-i386.msi (32-bit)

Basic software

Terminal

You can try doing it through the windows store but that was giving me issues if I didn't log into a microsoft account. Instead just use this command from powershell

winget install --id Microsoft.WindowsTerminal -e

Downloads

Resize Boot Disk

The boot disk includes a recovery partion after the C: partition so increasing the partition size after resizing the virtual disk is problematic.

From admin powershell:

reagentc /info
reagentc /disable
reagentc /info

This should now report Disabled

Now it's time to remove the recovery partition

diskpart

From within diskpart run the following (changing the disk and partition numbers of course)

list disk
select disk 0
list partition
select partition 3
delete partition override
exit

Then from the disk management GUI, extend the C: partition to fill the disk.