Ask Your Question
0

Xen - Compute node is trying to run pygrub in DomU - bug?

asked 2013-05-31 12:41:19 -0500

jay-janardhan gravatar image

updated 2013-05-31 12:43:02 -0500

Configuration:
Hypervisor: XenServer 5.6
Compute VM (running on Xen): CentOS 6.4 (PV guest)

System preped per this document link.
When I create a VM, VM does not find the boot disk to boot and from the logs I can tell that compute node is trying to run pygrub command from within the VM (which it is supposed to run in Dom0). I'm curious to know whether anybody has success in running Grizzly with Xen and any solution?

2013-05-31 12:54:01.789 ERROR nova.virt.xenapi.vmutils [req-062ab4bd-1888-478f-aab1-255317231743 26979576dc834c13b41e3c53029f2ae5 8de480e0cbde4d3abd8f8910007ae0e8] Error while executing pygrub! Please, ensure the binary is installed correctly, and available in your PATH; on some Linux distros, pygrub may be installed in /usr/lib/xen-X.Y/bin/pygrub. Attempting to boot in HVM mode.
2013-05-31 12:54:01.789 5945 TRACE nova.virt.xenapi.vmutils Traceback (most recent call last):
2013-05-31 12:54:01.789 5945 TRACE nova.virt.xenapi.vmutils   File "/usr/lib/python2.6/site-packages/nova/virt/xenapi/vmutils.py", line 1934, in isvdipv
2013-05-31 12:54:01.789 5945 TRACE nova.virt.xenapi.vmutils     out, err = utils.execute('pygrub', '-qn', devpath, runasroot=True)
2013-05-31 12:54:01.789 5945 TRACE nova.virt.xenapi.vmutils   File "/usr/lib/python2.6/site-packages/nova/utils.py", line 239, in execute
2013-05-31 12:54:01.789 5945 TRACE nova.virt.xenapi.vmutils     cmd=' '.join(cmd))
2013-05-31 12:54:01.789 5945 TRACE nova.virt.xenapi.vmutils ProcessExecutionError: Unexpected error while running command.
2013-05-31 12:54:01.789 5945 TRACE nova.virt.xenapi.vmutils Command: sudo nova-rootwrap /etc/nova/rootwrap.conf pygrub -qn /dev/xvdb
2013-05-31 12:54:01.789 5945 TRACE nova.virt.xenapi.vmutils Exit code: 1
2013-05-31 12:54:01.789 5945 TRACE nova.virt.xenapi.vmutils Stdout: ''
2013-05-31 12:54:01.789 5945 TRACE nova.virt.xenapi.vmutils

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-06-04 15:06:55 -0500

armando-migliaccio gravatar image

There is nothing wrong with Grizzly and Xen per se. From your log it looks like you are trying to boot a VM in para-virtualized mode, and you haven't specified an external ramdisk and kernel. To this aim, your compute service is trying to find them inside the image using pygrub. However pygrub does not look to be installed correctly. See message:

Error while executing pygrub! Please, ensure the binary is installed correctly, and available in your PATH; on some Linux distros, pygrub may be installed in /usr/lib/xen-X.Y/bin/pygrub. Attempting to boot in HVM mode.

With XenServer and nova-compute in domU, pygrub must be available in your CentOS guest otherwise you won't be able to boot raw images, but only vhd's based or three-part images.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2013-05-31 12:41:19 -0500

Seen: 240 times

Last updated: Jun 04 '13