[libvirt-users] not able to stop vmware player node through libvirt API

Hi, I have started one node through libvirt API using its start method. I am trying to stop that node using the *destroy *method provided by the API but I am not able to do so. Instead, I am getting one message saying: *libvir: error: internal error Child process (vmrun -T player stop /root/test_folder/myImage.vmx soft) unexpected exit status 255* Can anybody tell me why I am not able to stop the node. Thanks in advance. :)

Hi, from my own experience, I spotted that libvirt, when interfaced with vmware always attempt to issue soft reboots for destroy action (as you can see from CL). Whereas it appears that they are likely to fail. Switching to hard shutdown works. As you can't fix libvirt (unless you want), I'd recommend you use a boostrap script for this, that switch soft to hard. As for example: http://www.pschweitzer.fr/?p=22#more-22 With my best regards, Pierre Schweitzer On 01/24/2013 05:07 PM, varun bhatnagar wrote:
Hi,
I have started one node through libvirt API using its start method. I am trying to stop that node using the *destroy *method provided by the API but I am not able to do so. Instead, I am getting one message saying:
*libvir: error: internal error Child process (vmrun -T player stop /root/test_folder/myImage.vmx soft) unexpected exit status 255*
Can anybody tell me why I am not able to stop the node.
Thanks in advance. :)
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users

Hi Pierre, Thanks for the suggestion..... :) But is there any other method from which we can do hard reboot? This seems little confusing to me.... :(

Unfortunately, I did not find any other suitable solution. I would have thought that: virDomainDestroyFlags(domain, VIR_DOMAIN_DESTROY_GRACEFUL) => issues a soft shutdown virDomainDestroyFlags(domain, VIR_DOMAIN_DESTROY_DEFAULT) => issues a hard shutdown But it appears that you always have a soft shutdown. So, only the bootstrap script has been helpful here. Sorry... On 01/28/2013 04:16 PM, Varun Bhatnagar wrote:
Hi Pierre,
Thanks for the suggestion..... :) But is there any other method from which we can do hard reboot? This seems little confusing to me.... :(
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users
-- Pierre Schweitzer<pierre@reactos.org> System Administrator ReactOS Foundation
participants (3)
-
Pierre Schweitzer
-
Varun Bhatnagar
-
varun bhatnagar