webvirtmgr icon indicating copy to clipboard operation
webvirtmgr copied to clipboard

Two KVM Server Running vhostserver [ instance migate] error

Open h101com opened this issue 7 years ago • 7 comments

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!

h101com avatar Dec 20 '18 10:12 h101com

You can migrate if instance is started Or suspended

catborise avatar Dec 21 '18 19:12 catborise

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 .

h101com avatar Dec 24 '18 01:12 h101com

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

catborise avatar Dec 25 '18 11:12 catborise

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

h101com avatar Dec 26 '18 02:12 h101com

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

catborise avatar Dec 26 '18 17:12 catborise

OK, Thanks .

h101com avatar Dec 28 '18 10:12 h101com

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 ] .

h101com avatar Jan 18 '19 02:01 h101com