[openstack-dev] nova-compute vfsguestfs

abhishek jain ashujain9727 at gmail.com
Tue Jun 10 16:59:43 UTC 2014


Hi Rich

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.

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.

Thanks for the help,I'll let you know if any further issues.



On Sat, Jun 7, 2014 at 5:06 PM, Richard W.M. Jones <rjones at redhat.com>
wrote:

> On Tue, May 27, 2014 at 03:25:10PM +0530, abhishek jain wrote:
> > Hi Daniel
> >
> > Thanks for the help.
> > The end result of my setup is that the VM is stucking at Spawning state
> on
> > my compute node whereas it is working fine on the controller node.
> > Therefore I'm comparing nova-compute logs of both compute node as well as
> > controller node and trying to proceed step by step.
> > I'm having all the above packages enabled
> >
> > Do you have any idea regarding reason for VM stucking at spawning state.
>
> The most common reason is that nested virt is broken.  libguestfs is the
> canary
> in the mine here, not the cause of the problem.
>
> Rich.
>
> >
> >
> > On Tue, May 27, 2014 at 2:38 PM, Daniel P. Berrange <berrange at redhat.com
> >wrote:
> >
> > > On Tue, May 27, 2014 at 12:04:23PM +0530, abhishek jain wrote:
> > > > Hi
> > > > Below is the code to which I'm going to reffer to..
> > > >
> > > >  vim /opt/stack/nova/nova/virt/disk/vfs/api.py
> > > >
> > > > #####################################################################
> > > >
> > > > try:
> > > >             LOG.debug(_("Trying to import guestfs"))
> > > >             importutils.import_module("guestfs")
> > > >             hasGuestfs = True
> > > >         except Exception:
> > > >             pass
> > > >
> > > >         if hasGuestfs:
> > > >             LOG.debug(_("Using primary VFSGuestFS"))
> > > >             return importutils.import_object(
> > > >                 "nova.virt.disk.vfs.guestfs.VFSGuestFS",
> > > >                 imgfile, imgfmt, partition)
> > > >         else:
> > > >             LOG.debug(_("Falling back to VFSLocalFS"))
> > > >             return importutils.import_object(
> > > >                 "nova.virt.disk.vfs.localfs.VFSLocalFS",
> > > >                 imgfile, imgfmt, partition)
> > > >
> > > > #######################################################
> > > >
> > > > When I'm launching  VM from the controller node onto compute node,the
> > > > nova compute logs on the compute node displays...Falling back to
> > > > VFSLocalFS and the result is that the VM is stuck in spawning state.
> > > > However When I'm trying to launch a VM onto controller node form the
> > > > controller node itself,the nova compute logs on the controller node
> > > > dislpays ...Using primary VFSGuestFS and I'm able to launch VM on
> > > > controller node.
> > > > Is there any module in the kernel or any package that i need to
> > > > enable.Please help regarding this.
> > >
> > > VFSGuestFS requires the libguestfs python module & corresponding native
> > > package to be present, and only works with KVM/QEMU enabled hosts.
> > >
> > > VFSLocalFS requires loopback module, nbd module, qemu-nbd, kpartx and
> > > a few other misc host tools
> > >
> > > Neither of these should cause a VM getting stuck in the spawning
> > > state, even if stuff they need is missing.
> > >
> > > Regards,
> > > Daniel
> > > --
> > > |: http://berrange.com      -o-
> http://www.flickr.com/photos/dberrange/:|
> > > |: http://libvirt.org              -o-
> http://virt-manager.org:|
> > > |: http://autobuild.org       -o-
> http://search.cpan.org/~danberr/:|
> > > |: http://entangle-photo.org       -o-
> http://live.gnome.org/gtk-vnc:|
> > >
> > > _______________________________________________
> > > OpenStack-dev mailing list
> > > OpenStack-dev at lists.openstack.org
> > > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> > >
>
> > _______________________________________________
> > OpenStack-dev mailing list
> > OpenStack-dev at lists.openstack.org
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
> --
> Richard Jones, Virtualization Group, Red Hat
> http://people.redhat.com/~rjones
> Read my programming and virtualization blog: http://rwmj.wordpress.com
> virt-builder quickly builds VMs from scratch
> http://libguestfs.org/virt-builder.1.html
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140610/06bd7a2a/attachment-0001.html>


More information about the OpenStack-dev mailing list