<div dir="ltr"><div><div><div>Hi Rich<br><br></div>I'm able to solve the problem regarding PAPR in libguestfs on my powerpc ubuntu.By default the libguestfs was configuring pseries machine and afterwards I changed it to my original machine i.e ppce500 .The changes are performed in ./src/guestfs-internal.h file.<br>
<br></div>However still my VM is stucking in spawning state.The compute node is not able generate the xml file required for running the instances which I have checked by comparing the nova-compute logs of controller node aw well as compute node since I'm able to run VM on controller node.<br>
<br></div>Thanks for the help,I'll let you know if any further issues. <br><div><div> <br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Jun 7, 2014 at 5:06 PM, Richard W.M. Jones <span dir="ltr"><<a href="mailto:rjones@redhat.com" target="_blank">rjones@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Tue, May 27, 2014 at 03:25:10PM +0530, abhishek jain wrote:<br>
> Hi Daniel<br>
><br>
> Thanks for the help.<br>
> The end result of my setup is that the VM is stucking at Spawning state on<br>
> my compute node whereas it is working fine on the controller node.<br>
> Therefore I'm comparing nova-compute logs of both compute node as well as<br>
> controller node and trying to proceed step by step.<br>
> I'm having all the above packages enabled<br>
><br>
> Do you have any idea regarding reason for VM stucking at spawning state.<br>
<br>
</div>The most common reason is that nested virt is broken. libguestfs is the canary<br>
in the mine here, not the cause of the problem.<br>
<br>
Rich.<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
><br>
> On Tue, May 27, 2014 at 2:38 PM, Daniel P. Berrange <<a href="mailto:berrange@redhat.com">berrange@redhat.com</a>>wrote:<br>
><br>
> > On Tue, May 27, 2014 at 12:04:23PM +0530, abhishek jain wrote:<br>
> > > Hi<br>
> > > Below is the code to which I'm going to reffer to..<br>
> > ><br>
> > > vim /opt/stack/nova/nova/virt/disk/vfs/api.py<br>
> > ><br>
> > > #####################################################################<br>
> > ><br>
> > > try:<br>
> > > LOG.debug(_("Trying to import guestfs"))<br>
> > > importutils.import_module("guestfs")<br>
> > > hasGuestfs = True<br>
> > > except Exception:<br>
> > > pass<br>
> > ><br>
> > > if hasGuestfs:<br>
> > > LOG.debug(_("Using primary VFSGuestFS"))<br>
> > > return importutils.import_object(<br>
> > > "nova.virt.disk.vfs.guestfs.VFSGuestFS",<br>
> > > imgfile, imgfmt, partition)<br>
> > > else:<br>
> > > LOG.debug(_("Falling back to VFSLocalFS"))<br>
> > > return importutils.import_object(<br>
> > > "nova.virt.disk.vfs.localfs.VFSLocalFS",<br>
> > > imgfile, imgfmt, partition)<br>
> > ><br>
> > > #######################################################<br>
> > ><br>
> > > When I'm launching VM from the controller node onto compute node,the<br>
> > > nova compute logs on the compute node displays...Falling back to<br>
> > > VFSLocalFS and the result is that the VM is stuck in spawning state.<br>
> > > However When I'm trying to launch a VM onto controller node form the<br>
> > > controller node itself,the nova compute logs on the controller node<br>
> > > dislpays ...Using primary VFSGuestFS and I'm able to launch VM on<br>
> > > controller node.<br>
> > > Is there any module in the kernel or any package that i need to<br>
> > > enable.Please help regarding this.<br>
> ><br>
> > VFSGuestFS requires the libguestfs python module & corresponding native<br>
> > package to be present, and only works with KVM/QEMU enabled hosts.<br>
> ><br>
> > VFSLocalFS requires loopback module, nbd module, qemu-nbd, kpartx and<br>
> > a few other misc host tools<br>
> ><br>
> > Neither of these should cause a VM getting stuck in the spawning<br>
> > state, even if stuff they need is missing.<br>
> ><br>
> > Regards,<br>
> > Daniel<br>
> > --<br>
> > |: <a href="http://berrange.com" target="_blank">http://berrange.com</a> -o- <a href="http://www.flickr.com/photos/dberrange/:|" target="_blank">http://www.flickr.com/photos/dberrange/:|</a><br>
> > |: <a href="http://libvirt.org" target="_blank">http://libvirt.org</a> -o- http://virt-manager.org:|<br>
> > |: <a href="http://autobuild.org" target="_blank">http://autobuild.org</a> -o- <a href="http://search.cpan.org/~danberr/:|" target="_blank">http://search.cpan.org/~danberr/:|</a><br>
> > |: <a href="http://entangle-photo.org" target="_blank">http://entangle-photo.org</a> -o- <a href="http://live.gnome.org/gtk-vnc:|" target="_blank">http://live.gnome.org/gtk-vnc:|</a><br>
> ><br>
> > _______________________________________________<br>
> > OpenStack-dev mailing list<br>
> > <a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
> > <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
> ><br>
<br>
> _______________________________________________<br>
> OpenStack-dev mailing list<br>
> <a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Richard Jones, Virtualization Group, Red Hat <a href="http://people.redhat.com/~rjones" target="_blank">http://people.redhat.com/~rjones</a><br>
Read my programming and virtualization blog: <a href="http://rwmj.wordpress.com" target="_blank">http://rwmj.wordpress.com</a><br>
virt-builder quickly builds VMs from scratch<br>
<a href="http://libguestfs.org/virt-builder.1.html" target="_blank">http://libguestfs.org/virt-builder.1.html</a><br>
</font></span><div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</div></div></blockquote></div><br></div>