Skip to content

Instantly share code, notes, and snippets.

@DerPauli
Created June 13, 2024 13:20
Show Gist options
  • Save DerPauli/cf7066653991ee1c23e287dfca706efd to your computer and use it in GitHub Desktop.
Save DerPauli/cf7066653991ee1c23e287dfca706efd to your computer and use it in GitHub Desktop.
#kvm #qemu Extend Win10 disk (and move it to NFS)

Move .qcow2 to NFS

Move

mv disk.qcow2 /mnt/nfs/disk.qcow2

Resize

qemu-img resize disk.qcow2 150G

Restore corrupted Windows10 disk QEMU

Insert /home/kvm/driver/new/virtio-win.iso as CD/DVD from manual path (scsi read-only is fine)

Boot into Command Line

Verify iso:

diskpart

list vol

^C

drvload F:\viostor\w10\amd64\viostor.inf
dism /image:c:\ /add-driver /driver:f:\viostor\w10\amd64\viostor.inf

bcdboot C:\Windows

Change bootable disk to virtio instead of sata.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment