[libvirt-users] domain not present after shutdown

I hope this is simple I have one kvm host that lists all my domains even after shut down. 'virsh list --all' shows machines in 'running' and 'shut off' states. If I copy those over to another machine and it only shows the virt machines in running state. vmhost2:~$ virsh list --all Id Name State ---------------------------------- 4 mybox4 running vmhost2:~$ virsh version Compiled against library: libvir 0.8.3 Using library: libvir 0.8.3 Using API: QEMU 0.8.3 Running hypervisor: QEMU 0.12.5 vmhost1:~$ virsh list --all Id Name State ---------------------------------- - mybox3 shut off 2 mybox4 running vmhost1:~$ virsh version Compiled against library: libvir 0.7.5 Using library: libvir 0.7.5 Using API: QEMU 0.7.5 Running hypervisor: QEMU 0.12.3 question -- why doesn't mybox3 show up on vmhost2? where should I start looking? hope this isn't too open ended...

于 2011年04月21日 08:36, David White 写道:
I hope this is simple
I have one kvm host that lists all my domains even after shut down. 'virsh list --all' shows machines in 'running' and 'shut off' states. If I copy those over to another machine and it only shows the virt machines in running state.
What do you mean "copy" here?
vmhost2:~$ virsh list --all Id Name State ---------------------------------- 4 mybox4 running
vmhost2:~$ virsh version Compiled against library: libvir 0.8.3 Using library: libvir 0.8.3 Using API: QEMU 0.8.3 Running hypervisor: QEMU 0.12.5
vmhost1:~$ virsh list --all Id Name State ---------------------------------- - mybox3 shut off 2 mybox4 running
vmhost1:~$ virsh version Compiled against library: libvir 0.7.5 Using library: libvir 0.7.5 Using API: QEMU 0.7.5 Running hypervisor: QEMU 0.12.3
question -- why doesn't mybox3 show up on vmhost2? where should I start looking?
hope this isn't too open ended...
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users

nm, got it. Forgot a step virsh define /etc/libvirt/qemu/myguest.xml On 04/21/2011 05:47 AM, dave white wrote:
What do you mean "copy" here?
I mean file copy, using scp. I've copied the qcow2 image and the xml config file. virt-manager gives me the same result. If I log in to the guest and shut it down, it disappears from the UI.
-dmw
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users

于 2011年04月21日 21:20, dave white 写道:
nm, got it. Forgot a step
virsh define /etc/libvirt/qemu/myguest.xml
Yeah, that was my guessing, the shutoff domain on your source host is trasicient. Cheers Osier
On 04/21/2011 05:47 AM, dave white wrote:
What do you mean "copy" here?
I mean file copy, using scp. I've copied the qcow2 image and the xml config file. virt-manager gives me the same result. If I log in to the guest and shut it down, it disappears from the UI.
-dmw
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users

于 2011年04月21日 21:20, dave white 写道:
nm, got it. Forgot a step
virsh define /etc/libvirt/qemu/myguest.xml
Yeah, that was my guessing, shutoff domains on your source host are transicient, they don't have domain xml store on disk in /etc/libvirt/qemu/ Cheers Osier
On 04/21/2011 05:47 AM, dave white wrote:
What do you mean "copy" here?
I mean file copy, using scp. I've copied the qcow2 image and the xml config file. virt-manager gives me the same result. If I log in to the guest and shut it down, it disappears from the UI.
-dmw
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users

In fact the domain xml *was* under /etc/libvirt/qemu . Apparently once the domain is 'defined', it is made known by libvirt in some other way, but I haven't been able to figure out where that information is stored. On 04/21/2011 06:11 PM, Osier Yang wrote:
于 2011年04月21日 21:20, dave white 写道:
nm, got it. Forgot a step
virsh define /etc/libvirt/qemu/myguest.xml
Yeah, that was my guessing, shutoff domains on your source host are transicient, they don't have domain xml store on disk in /etc/libvirt/qemu/
Cheers Osier
On 04/21/2011 05:47 AM, dave white wrote:
What do you mean "copy" here?
I mean file copy, using scp. I've copied the qcow2 image and the xml config file. virt-manager gives me the same result. If I log in to the guest and shut it down, it disappears from the UI.
-dmw
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users
participants (3)
-
dave white
-
David White
-
Osier Yang