0

I'm running a headless Debian host with a win10 guest that I seldomly login to via vnc. Last week I upgraded Debian from Buster to Bullseye, and that also upgraded QEMU from v3.1 to v5.2 (and libvirt jumped from 5.0 to 7.0). Of course, my due diligence checklist did not include making a snapshot from the guest. When I now login to the system, I'm greeted by the Windows installer.

I know my way around Debian, but am fairly new to QEMU/Libvirt - any pointers how to try and restore the state of my guest OS? Reinstalling is not that big of a deal, but we live to learn :).

This is the install command I used:

virt-install
--name Win10
--ram 2048
--cpu host
--hvm
--vcpus 2
--os-type windows
--os-variant win10
--disk /var/lib/libvirt/images/win10.qcow2,size=30,bus=virtio
--disk /var/lib/libvirt/boot/Win10_2004_English_x64.iso,device=cdrom,bus=sata
--disk /var/lib/libvirt/boot/virtio-win-0.1.171.iso,device=cdrom,bus=sata
--boot cdrom
--network bridge=br0
--graphics vnc,listen=0.0.0.0,port=5901
--noautoconsole
--check all=off

/EDIT: To clarify: I'm hoping to restore the state of my guest OS to the state it was in before the dist-upgrade. Maybe I need to rely on a filesystem backup (which I have), or maybe I need to update the qemu/libvirt configuration?

zenlord
  • 232
  • 2
  • 9
  • and what is the question or equal issue now? i could not figure it out ;) – djdomi Dec 23 '21 at 10:30
  • Hi @djdomi - thx for your attention :). I'm hoping to restore the state of my guest OS to the state it was in before the dist-upgrade. Maybe I need to rely on a filesystem backup (which I have), or maybe I need to update the qemu/libvirt configuration? – zenlord Dec 23 '21 at 10:34
  • but why do you mount the iso for setup while yoz already installed the windows? and i think boot cdrom should be replaced by hd – djdomi Dec 23 '21 at 17:04

1 Answers1

1

If I remember correctly, the boot order mechanism changed, so specifying --boot cdrom will now remove all but the CD-ROM from the list of bootable media, instead of just affecting ordering.

This might be as simple as adding a ,hd at the end there, or replacing cdrom by hd.

Simon Richter
  • 3,317
  • 19
  • 19
  • Thank you - I already suspected that the state would not be lost, but just hidden by a change in configuration parameters. But looking through the changelogs going from v3.1 to 5.2 left a lot of possible options. replacing 'cdrom' by 'hd' did the trick! – zenlord Dec 24 '21 at 11:40