Jump to content

Strange console Error behavior with shutting down Windows 11 VM


Recommended Posts

Posted

The VM is fine, but whenever shutting down the VM, it does not shut down and needs to be forcefully stopped.

This is the error on the console: 

BTRFS: error (device loop2: State A) in btrfs_unlink_subvol:4552:: errno=-2 No such entry

BTRFS: error (device loop2: state EA) in btrfs_delete_subvolume: 4762: errorno=-2 No such entry

 

Not sure 

Let me know if you need my diagnostics to check anything or not.   Windows boots up without any issue with the VM but not sure what is going on with the shutting down.  Not sure when this started, it might have been to 1 or 2 builds ago.  This is with 6.12.13

Posted

Not sure if this may or may not help?

 

Sep 16 11:48:42 Tower nginx: 2024/09/16 11:48:42 [crit] 12152#12152: *6137139 connect() to unix:/var/tmp/Windows_10_(work).sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.0.251, server: , request: "GET /logterminal/Windows_10_(work)/ HTTP/1.1", upstream: "http://unix:/var/tmp/Windows_10_(work).sock:/", host: "192.168.0.200", referrer: "http://192.168.0.200/VMs"

Sep 16 11:49:14 Tower kernel: br0: port 3(vnet5) entered disabled state

Sep 16 11:49:14 Tower kernel: device vnet5 left promiscuous mode

Sep 16 11:49:14 Tower kernel: br0: port 3(vnet5) entered disabled state

Sep 16 11:49:14 Tower kernel: usb 5-2: reset full-speed USB device number 2 using xhci_hcd

Sep 16 11:49:15 Tower kernel: Bluetooth: hci1: BCM: chip id 63

Sep 16 11:49:15 Tower kernel: Bluetooth: hci1: BCM: features 0x07

Sep 16 11:49:15 Tower kernel: Bluetooth: hci1: WIN10-WORK Sep 16 11:49:15 Tower kernel: Bluetooth: hci1: BCM20702A1 (001.002.014) build 1346

Sep 16 11:49:15 Tower kernel: Bluetooth: hci1: BCM: firmware Patch file not found, tried:

Sep 16 11:49:15 Tower kernel: Bluetooth: hci1: BCM: 'brcm/BCM20702A1-0b05-17cb.hcd'

Sep 16 11:49:15 Tower kernel: Bluetooth: hci1: BCM: 'brcm/BCM-0b05-17cb.hcd'

Sep 16 11:50:21 Tower kernel: br0: port 3(vnet6) entered blocking state

Sep 16 11:50:21 Tower kernel: br0: port 3(vnet6) entered disabled state

Sep 16 11:50:21 Tower kernel: device vnet6 entered promiscuous mode

Sep 16 11:50:21 Tower kernel: br0: port 3(vnet6) entered blocking state

Sep 16 11:50:21 Tower kernel: br0: port 3(vnet6) entered forwarding state

Sep 16 11:50:22 Tower acpid: input device has been disconnected, fd 6

Sep 16 11:50:33 Tower nginx: 2024/09/16 11:50:33 [crit] 12152#12152: *6138178 connect() to unix:/var/tmp/Windows_10_(work).sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.0.251, server: , request: "GET /logterminal/Windows_10_(work)/ HTTP/1.1", upstream: "http://unix:/var/tmp/Windows_10_(work).sock:/", host: "192.168.0.200", referrer: "http://192.168.0.200/VMs"

Sep 16 11:52:03 Tower kernel: usb 1-2.1: reset full-speed USB device number 6 using xhci_hcd

Posted

Sorry, missed your previous reply, loop2 is the libvirt image, and it is corrupt:

 

Aug 31 10:50:42 Tower kernel: BTRFS: Transaction aborted (error -2)
Aug 31 10:50:42 Tower kernel: WARNING: CPU: 9 PID: 13351 at fs/btrfs/inode.c:4552 btrfs_unlink_subvol+0x280/0x3c4

 

Do you have a backup?

Posted (edited)

Not really, Is there a way to repair the libvert ?   I  have 2 VM's running on it but the other VM does not show any problem restarting or shutting down.  Is there anything I can do to fix it without losing anything.  I can live with it the way it currently is as the problem is only when shutting down.   But I wonder if I created the issue when going from the non TPM Windows 10, and choosing the latest virtio file and going to Windows 11.     What are my options?

 

I do have some libvert backups.  I found one but it was from Early 2023.  What exactly is in libvert, is that the virtual image>  if that is the case, the backup is no use because the data would be too old.  

Edited by GeorgeJetson20
Posted

libvirt stores the VMs XMLs and related files, and I would recommend always having a current backup of it.

 

Since the image is still mounting, you should be able to copy the XML files from /etc/libvirt/qemu, you may also need the nvram folder, but not exactly sure if you just need to restore those to the new image, or if you need something else, @SimonFshould know better.

Posted

XML files are in qemu, nvram files are for UEFI boot so would be required. They are stored by uuid.

 

root@computenode:/etc/libvirt/qemu# ls
!Test2.xml           Arch4.xml         DebianQCOW2.xml     LinuxMF.xml        Proxmox.xml         W10MF.xml                          Windows\ 11\ Q35\ GPU.xml   autostart/
!Test3.xml           Arch5.xml         DebianSB.xml        LinuxMigrate.xml   Slackware3.xml      Windows\ 10\ Q35.xml               Windows\ 11\ WSL.xml        networks/
!Test4gpu.xml        Arch6.xml         Fedora.xml          Linuxadadadad.xml  Test.Test.Test.xml  Windows\ 10\ ovmf.xml              Windows\ 11\ WSL_clone.xml  newmodel
!Test4gpu_clone.xml  Arch8.xml         Fedora2.xml         Linuxbec.xml       UNRAIDVM.xml        Windows\ 10\ ovmf_clone.xml        Windows\ 11\ test.xml       nvram/
!TestDeleteZFS.xml   Arch9.xml         HA.xml              Linuxct.xml        Ubuntu.old          Windows\ 10\ ovmf_clone_clone.xml  Windows\ 11-2.xml           rpi.old
!Windows\ 11.xml     Archc\ space.xml  Linux.xml           Linuxgpus.xml      Ubuntu.xml          Windows\ 10\ q35\ test.xml         Windows\ 11-2_clone.xml     snapshot/
AAArch.xml           CentOS.xml        Linux2.xml          Linuxtest.xml      Ubuntu2.old         Windows\ 10\ scsi.xml              Windows\ 11.xml             snapshotdb/
AArch.xml            CentOSa.xml       Linux2X.xml         Linuxtest2.xml     Ubuntu_clone.xml    Windows\ 10\ snaps.xml             Windows\ 11GPU.xml          swtpm/
Arch.xml             ChromeOS.old      Linux2_clone.xml    Linuxtestno.xml    Unraid\ SB.xml      Windows\ 10\ testing.xml           Windows\ 11_clone.xml       unRAIDBios.xml
Arch11.xml           Debian.xml        Linux333.xml        Linuxxfs.xml       Unraid-VM.xml       Windows\ 10.xml                    Windows\ 98.xml             unRAIDBios_clone.xml
Arch12.xml           Debian.xml.save   Linux333_clone.xml  Linuxxx.xml        W\ 10.xml           Windows\ 10h222.xml                Windows\ Server\ 2019.xml
Arch2.xml            Debian22.xml      Linux777.xml        Linuxxxy.xml       W\ 10_clone.xml     Windows\ 10xx.xml                  Windows\ XP.xml
Arch3.xml            DebianQ35.xml     Linux777_clone.xml  ProxBU.xml         W10Clock.xml        Windows\ 11\ ARC.xml               Windows10test7.xml
root@computenode:/etc/libvirt/qemu# cat Arch.xml | grep uuid
  <uuid>9efec3e8-d076-2bed-80cb-132e9e0cdb8a</uuid>
root@computenode:/etc/libvirt/qemu# ls nvram/9efec3e8-d076-2bed-80cb-132e9e0cdb8a*
nvram/9efec3e8-d076-2bed-80cb-132e9e0cdb8aS20240711120808_VARS-pure-efi.fd  nvram/9efec3e8-d076-2bed-80cb-132e9e0cdb8aS20240825213459_VARS-pure-efi.fd
nvram/9efec3e8-d076-2bed-80cb-132e9e0cdb8aS20240724230305_VARS-pure-efi.fd  nvram/9efec3e8-d076-2bed-80cb-132e9e0cdb8aS20240825213516_VARS-pure-efi.fd
nvram/9efec3e8-d076-2bed-80cb-132e9e0cdb8aS20240825213444_VARS-pure-efi.fd  nvram/9efec3e8-d076-2bed-80cb-132e9e0cdb8a_VARS-pure-efi.fd
root@computenode:/etc/libvirt/qemu# 

  • Like 1
Posted
18 hours ago, GeorgeJetson20 said:

Sorry but I don't understand.   I used Krusader, looked in /etc/ but there is no libvirt folder there.   Please explain exactly how to copy this and once I copy it, what do I need to do.   Linux is not my strong side.

Dockers would normal only show /mnt you need to use cmd line as you will not see /etc

Posted

Is there a way to just recreate this file.  I have backup images of both of my Vm's.  Is there a way to just start the libvert over, or does it contain more than just the VM's??  I looked around but not able to find the exactly what I need.

Posted

You can delete and recreate the file, the current VMs shoud work if you copy the files mentioned above, or you can recreate them and point to the original vdisks, but make a backup of the current one before deleting.  

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...