[libvirt-users] virsh dom state

Brian Rak brak at gameservers.com
Mon Mar 23 21:54:34 UTC 2015


On 3/23/2015 12:49 PM, Michal Privoznik wrote:
> On 23.03.2015 16:02, Fiorenza Meini wrote:
>> Hi there,
>> I'm running KVM under Openstack .
>>
>> When I give virsh list command, I see some VM in NON persistent state.
>> What does it mean? How can I move it to a persisten state ?
> You can do that by running:
>
> virsh dumpxml $dom > dom.xml && virsh define dom.xml
You want `virsh dumpxml --security-info $dom`, not just `virsh 
dumpxml`.  There is a *critical* difference in that the former will 
preserve any passwords you have set (like say, VNC) whereas the latter 
will not.  This is sadly not very obvious.




More information about the libvirt-users mailing list