[Bug 1381383] Re: Vm destroyed when created virsh create without --autodestroy

2014-10-20 Thread Tenho Tuhkala
** Attachment added: Virsh commands and output https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1381383/+attachment/4240355/+files/virsh-command.txt -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1381383] Re: Vm destroyed when created virsh create without --autodestroy

2014-10-20 Thread Tenho Tuhkala
I made little examination about this issue and full console output, which says about all, is attached. So create -command doesn't set Persistent flag to true and doesn't create related xml to under /etc/libvirt/qemu/ no matter is --autodestroy used or not where as define -command sets

[Bug 1381383] Re: Vm destroyed when created virsh create without --autodestroy

2014-10-20 Thread Robie Basak
virt-install is not part of libvirt. It is part of a separate tool, virtinst. It looks like this command is setting the on_poweroffdestroy/on_poweroff that you don't want. I suggest that you read the virt-install documentation carefully, and if this still doesn't explain its behaviour and you

[Bug 1381383] Re: Vm destroyed when created virsh create without --autodestroy

2014-10-20 Thread Tenho Tuhkala
This is not really about virt-install nor virt-manager (other listed virtual machines are created with it), it's about how virsh handles vm creation from xml. With define -command it stays at it should, with create -command it stays only when virsh is connected and/or vm is running, which

[Bug 1381383] Re: Vm destroyed when created virsh create without --autodestroy

2014-10-17 Thread Robie Basak
Thank you for your report. This looks like a local configuration problem, rather than a bug in Ubuntu. Your supplied XML contains on_poweroffdestroy/on_poweroff. Your VM got destroyed on shutdown because this is what you requested. You can find pointers to get help for this sort of problem

[Bug 1381383] Re: Vm destroyed when created virsh create without --autodestroy

2014-10-17 Thread Robie Basak
Thank you for your report. This looks like a local configuration problem, rather than a bug in Ubuntu. Your supplied XML contains on_poweroffdestroy/on_poweroff. Your VM got destroyed on shutdown because this is what you requested. You can find pointers to get help for this sort of problem

[Bug 1381383] Re: Vm destroyed when created virsh create without --autodestroy

2014-10-17 Thread Tenho Tuhkala
So if I dump vm from other host and try to import it to other I need to edit it to make stay persistent after poweroff? You can't know it if it's run for a while (with poweroffs and ons) in host 1 and then you move it to host 2 and it starts behaving like that. As you might know, that's it a

[Bug 1381383] Re: Vm destroyed when created virsh create without --autodestroy

2014-10-17 Thread Robie Basak
It sounds like you have a bigger issue here. Asking libvirt to create a VM that destroys on poweroff and then having it do that is not a bug. But perhaps there is a bug in how you ended up with that XML? As you might know, that's it a default setting of vm... Really? I am not aware of this.