retspen / webvirtmgr

WebVirtMgr panel for manage virtual machine
http://retspen.github.io
2.04k stars 536 forks source link

Two KVM Server Running vhostserver [ instance migate] error #677

Open h101com opened 5 years ago

h101com commented 5 years ago

Two KVM Server Running vhostserver [ instance migate] , click [ Migate ] button , display error [ Requested operation is not valid: domain is not running ] , Please Help , thanks very much!

catborise commented 5 years ago

You can migrate if instance is started Or suspended

h101com commented 5 years ago

You can migrate if instance is started Or suspended

thanks , Now ,instance is started Or suspended , But , Another error , [ Failed to open file '/data/vmdata/tplt-clone132.qcow2': No such file or directory ] , But ,This file is already existing 。 thanks .

catborise commented 5 years ago

why dont you use webvirtcloud?

your question: connect your kvm host. run that commands: virsh pool-list -> get your pool name virsh vol-list -> check if your image on that list or not

h101com commented 5 years ago

root@vm04:~# virsh pool-list Name State Autostart

default active yes

root@vm04:~# virsh vol-list default Name Path

tplt-clone-10.qcow2 /data/vmdata/tplt-clone-10.qcow2
tplt-clone-11.qcow2 /data/vmdata/tplt-clone-11.qcow2
tplt-clone-2.qcow2 /data/vmdata/tplt-clone-2.qcow2
tplt-clone-3.qcow2 /data/vmdata/tplt-clone-3.qcow2
tplt-clone-4.qcow2 /data/vmdata/tplt-clone-4.qcow2
tplt-clone-5.qcow2 /data/vmdata/tplt-clone-5.qcow2
tplt-clone-6.qcow2 /data/vmdata/tplt-clone-6.qcow2
tplt-clone-7.qcow2 /data/vmdata/tplt-clone-7.qcow2
tplt-clone-8.qcow2 /data/vmdata/tplt-clone-8.qcow2
tplt-clone-9.qcow2 /data/vmdata/tplt-clone-9.qcow2
tplt-clone51-clone.qcow2 /data/vmdata/tplt-clone51-clone.qcow2
tplt.qcow2 /data/vmdata/tplt.qcow2
tplt93-clone.qcow2 /data/vmdata/tplt93-clone.qcow2
vim /data/vmdata/vim

catborise commented 5 years ago

As you see the specified volume is not listed. Libvirt does not see the image. Run that command virsh pool-refresh default

Then Check it with again virsh vol-list default

h101com commented 5 years ago

OK, Thanks .

h101com commented 5 years ago

To use WebVirtMgr for instance migate, I need to configure shared storage pools to use them, right? Thanks . So .. Now [ instance is started Or suspended , But , Another error , [ Failed to open file '/data/vmdata/tplt-clone132.qcow2': No such file or directory ] , But ,This file is already existing ] .