You are not logged in.

#1 2019-11-13 21:58:20

Simulacrum
Member
Registered: 2017-02-23
Posts: 28

[Solved] Disappearing Virtual Machine

Hey guys,

today i noticed a VM is missing. Beeing more specific, i use a Windows VM with the GPU passed through. Everything worked fine until today the VM just dissappeared.

[user@machine ~]$ sudo virsh list --all
 Id   Name                 State
-------------------------------------
 1    Privacy              running
 -    Saveweb              shut off
 -    Shopping             shut off
 -    SocialMedia          shut off
[user@machine ~]$ ls -al /etc/libvirt/qemu
total 68
drwxr-xr-x 3 root root 4096 Nov 13 16:03 .
drwxr-xr-x 6 root root 4096 Nov 10 03:00 ..
drwxr-xr-x 3 root root 4096 Nov 10 03:00 networks
-rw------- 1 root root 4476 Oct 28 09:34 Privacy.xml
-rw------- 1 root root 4171 Oct 26 17:26 Saveweb.xml
-rw------- 1 root root 4148 Oct 25 18:41 Shopping.xml
-rw------- 1 root root 4183 Sep 30 18:58 SocialMedia.xml
-rw------- 1 root root 5129 Nov 13 16:03 Windows10.xml

As you may see, the Windows10 Machine is the only one missing. Its not getting displayed in virt-manager as well.
The last thing i did (besides turning on and off) was changing the XML file of the VM - but i rebooted the host afterwards and everything worked. I remember doing it directly with Vim, not with virsh-edit.


I hope someone can help. It would be a lot of work to set everything up again.


Best regards and thanks in advance,
Simulacrum

EDIT: If you need any further information, please let me know.

Last edited by Simulacrum (2019-11-15 19:29:29)

Offline

#2 2019-11-13 22:27:12

Simulacrum
Member
Registered: 2017-02-23
Posts: 28

Re: [Solved] Disappearing Virtual Machine

OK - i somewhat managed to fix it. I created a new VM and copied the config of the old XML file in the XML of the newly created.
I guess changeing the XML directly wasnt my brightest moment.

Case closed.

Offline

#3 2019-11-13 23:08:38

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: [Solved] Disappearing Virtual Machine

You can use `virsh define` to import the XML file next time, rather than creating a new VM and manually copying the config over.

Offline

#4 2019-11-15 19:29:01

Simulacrum
Member
Registered: 2017-02-23
Posts: 28

Re: [Solved] Disappearing Virtual Machine

Oh alright, i'll keep that in mind. Thanks man smile

Offline

Board footer

Powered by FluxBB