Victor Seva
2011-Oct-02 20:10 UTC
[Pkg-xen-devel] Bug#644100: pygrub error if the root disk value is not the first in the list.
Package: xen-utils-4.0 Version: 4.0.1-2 Severity: normal File: pygrub pygrub error when trying to run a image created by xen-create-image with partitions option. ---------------------------------------------------------------------------------------------------------------------------------------- [2011-10-02 21:36:08 1512] DEBUG (XendDomainInfo:101) XendDomainInfo.create(['vm', ['name', 'builder'], ['memory', '512'], ['on_poweroff', 'destroy'], ['on_reboot', 'restart'], ['on_crash', 'restart'], ['on_xen d_start', 'ignore'], ['on_xend_stop', 'ignore'], ['vcpus', '1'], ['oos', 1], ['bootloader', '/usr/lib/xen-default/bin/pygrub'], ['bootloader_args', ''], ['image', ['linux', ['root', '/dev/xvda2 ro'], ['videoram ', 4], ['tsc_mode', 0], ['nomigrate', 0]]], ['s3_integrity', 1], ['device', ['vbd', ['uname', 'phy:/dev/data/builder-var'], ['dev', 'xvda5'], ['mode', 'w']]], ['device', ['vbd', ['uname', 'phy:/dev/data/builder -usr'], ['dev', 'xvda4'], ['mode', 'w']]], ['device', ['vbd', ['uname', 'phy:/dev/data/builder-tmp'], ['dev', 'xvda3'], ['mode', 'w']]], ['device', ['vbd', ['uname', 'phy:/dev/data/builder-root'], ['dev', 'xvda 2'], ['mode', 'w']]], ['device', ['vbd', ['uname', 'phy:/dev/data/builder-swap'], ['dev', 'xvda1'], ['mode', 'w']]], ['device', ['vif', ['ip', '192.168.0.40'], ['mac', '00:16:3E:E0:4F:D4'], ['bridge', 'eth0']]] ]) [2011-10-02 21:36:08 1512] DEBUG (XendDomainInfo:2508) XendDomainInfo.constructDomain [2011-10-02 21:36:08 1512] DEBUG (balloon:220) Balloon: 995444 KiB free; need 16384; done. [2011-10-02 21:36:08 1512] DEBUG (XendDomain:464) Adding Domain: 3 [2011-10-02 21:36:08 1512] DEBUG (XendDomainInfo:2818) XendDomainInfo.initDomain: 3 256 [2011-10-02 21:36:08 14338] DEBUG (XendBootloader:113) Launching bootloader as ['/usr/lib/xen-default/bin/pygrub', '--args=root=/dev/xvda2 ro ', '--output=/var/run/xend/boot/xenbl.24899', '/dev/data/builder-var ']. [2011-10-02 21:36:08 1512] ERROR (XendBootloader:214) Boot loader didn't return any data! [2011-10-02 21:36:08 1512] ERROR (XendDomainInfo:483) VM start failed Traceback (most recent call last): File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomainInfo.py", line 469, in start XendTask.log_progress(31, 60, self._initDomain) File "/usr/lib/xen-4.0/lib/python/xen/xend/XendTask.py", line 209, in log_progress retval = func(*args, **kwds) File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomainInfo.py", line 2820, in _initDomain self._configureBootloader() File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomainInfo.py", line 3266, in _configureBootloader bootloader_args, kernel, ramdisk, args) File "/usr/lib/xen-4.0/lib/python/xen/xend/XendBootloader.py", line 215, in bootloader raise VmError, msg VmError: Boot loader didn't return any data! [2011-10-02 21:36:08 1512] DEBUG (XendDomainInfo:3053) XendDomainInfo.destroy: domid=3 [2011-10-02 21:36:08 1512] DEBUG (XendDomainInfo:2416) No device model [2011-10-02 21:36:08 1512] DEBUG (XendDomainInfo:2418) Releasing devices [2011-10-02 21:36:08 1512] ERROR (XendDomainInfo:106) Domain construction failed Traceback (most recent call last): File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomainInfo.py", line 104, in create vm.start() File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomainInfo.py", line 469, in start XendTask.log_progress(31, 60, self._initDomain) File "/usr/lib/xen-4.0/lib/python/xen/xend/XendTask.py", line 209, in log_progress retval = func(*args, **kwds) File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomainInfo.py", line 2820, in _initDomain self._configureBootloader() File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomainInfo.py", line 3266, in _configureBootloader bootloader_args, kernel, ramdisk, args) File "/usr/lib/xen-4.0/lib/python/xen/xend/XendBootloader.py", line 215, in bootloader raise VmError, msg VmError: Boot loader didn't return any data! ------------------------------------------------------------------------------------------------------------------------------------------------- [snip] root = '/dev/xvda2 ro' disk = [ 'phy:/dev/data/builder-var,xvda5,w', 'phy:/dev/data/builder-usr,xvda4,w', 'phy:/dev/data/builder-tmp,xvda3,w', 'phy:/dev/data/builder-root,xvda2,w', 'phy:/dev/data/builder-swap,xvda1,w', ] [snip] ------------------------------------------------------------------------------------------------------------------------------------------------ I noticed the bootloader was trying to use builder-var partition instead of right one builder-root. I placed the root line first and just worked. I really don't know if this is a bug in pygrub or xend but I hope this report helps anyway. Thanks in advance.
Seemingly Similar Threads
- Bug#644100: Boot loader didn't return any data! if reboot domU with disk DRBD
- domUs doesn''t boot after upgrade to xen 3.2
- Successfully running VM, subsequently startup gives this error -- VmError: Boot loader didn''t return any data!
- RuntimeError: Unable to find partition containing kernel
- Pygrub problem