vmbuilder randomly fails to install grub
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
VMBuilder |
New
|
Undecided
|
Unassigned | ||
vm-builder (Ubuntu) |
Confirmed
|
High
|
Unassigned |
Bug Description
Command line and options are identical between runs, except for the hostname and LV (as passed to --raw)
# vmbuilder kvm ubuntu --hostname=$1 --raw=/dev/vg0/$1 -c /etc/vmbuilder.cfg --debug -o --rootsize=8192 --swapsize=2048 --mem=512
# egrep -v "^$|^#" /etc/vmbuilder.cfg
[DEFAULT]
[ubuntu]
mirror = http://
security-mirror = http://
suite = lucid
flavour = virtual
[kvm]
libvirt = qemu:///system
bridge = br0
Successful run excerpt:
2010-07-28 11:25:00,179 DEBUG : ['rsync', '-a', '/tmp/tmpXcZ1l2
2010-07-28 11:25:00,233 DEBUG : ['chroot', '/tmp/tmpXcZ1l2', 'grub', '--device-
2010-07-28 11:25:00,234 DEBUG : stdin was set and it was a string: root (hd0,0)
setup (hd0)
EOT
2010-07-28 11:25:01,239 DEBUG :
2010-07-28 11:25:01,239 DEBUG : [ Minimal BASH-like line editing is supported. For
2010-07-28 11:25:01,240 DEBUG : the first word, TAB lists possible command
2010-07-28 11:25:01,240 DEBUG : completions. Anywhere else TAB lists the possible
2010-07-28 11:25:01,240 DEBUG : completions of a device/filename. ]
2010-07-28 11:25:01,241 DEBUG : grub> root (hd0,0)
2010-07-28 11:25:01,241 DEBUG : grub> setup (hd0)
2010-07-28 11:25:01,241 DEBUG : Checking if "/boot/grub/stage1" exists... yes
2010-07-28 11:25:01,241 DEBUG : Checking if "/boot/grub/stage2" exists... yes
2010-07-28 11:25:01,242 DEBUG : Checking if "/boot/
2010-07-28 11:25:01,242 DEBUG : Running "embed /boot/grub/
2010-07-28 11:25:01,242 DEBUG : Running "embed /boot/grub/
2010-07-28 11:25:01,242 DEBUG : Running "install /boot/grub/stage1 (hd0) /boot/grub/stage2 p /boot/grub/menu.lst "... succeeded
2010-07-28 11:25:01,243 DEBUG : Done.
2010-07-28 11:25:01,243 DEBUG : grub> EOT
2010-07-28 11:25:01,244 DEBUG : ['chroot', '/tmp/tmpXcZ1l2', '/usr/sbin/
2010-07-28 11:25:01,381 INFO : Searching for GRUB installation directory ... found: /boot/grub
2010-07-28 11:25:01,447 INFO : Searching for default file ... Generating /boot/grub/default file and setting the default boot entry to 0
2010-07-28 11:25:01,449 INFO : Searching for GRUB installation directory ... found: /boot/grub
2010-07-28 11:25:01,460 INFO : Testing for an existing GRUB menu.lst file ...
2010-07-28 11:25:01,460 INFO :
2010-07-28 11:25:01,460 INFO : Could not find /boot/grub/menu.lst file.
2010-07-28 11:25:01,460 INFO : Generating /boot/grub/menu.lst
2010-07-28 11:25:01,582 INFO : Searching for splash image ... none found, skipping ...
2010-07-28 11:25:01,825 INFO : grep: /boot/config*: No such file or directory
2010-07-28 11:25:01,966 INFO : Updating /boot/grub/menu.lst ... done
2010-07-28 11:25:01,966 INFO :
Failed run:
2010-07-28 11:28:16,816 DEBUG : ['rsync', '-a', '/tmp/tmpa5EOR4
2010-07-28 11:28:16,870 DEBUG : ['chroot', '/tmp/tmpa5EOR4', 'grub', '--device-
2010-07-28 11:28:16,870 DEBUG : stdin was set and it was a string: root (hd0,0)
setup (hd0)
EOT
2010-07-28 11:28:17,526 DEBUG :
2010-07-28 11:28:17,527 DEBUG : [ Minimal BASH-like line editing is supported. For
2010-07-28 11:28:17,527 DEBUG : the first word, TAB lists possible command
2010-07-28 11:28:17,527 DEBUG : completions. Anywhere else TAB lists the possible
2010-07-28 11:28:17,528 DEBUG : completions of a device/filename. ]
2010-07-28 11:28:17,528 DEBUG : grub> root (hd0,0)
2010-07-28 11:28:17,528 DEBUG : grub> setup (hd0)
2010-07-28 11:28:17,528 DEBUG : Checking if "/boot/grub/stage1" exists... no
2010-07-28 11:28:17,529 DEBUG : Checking if "/grub/stage1" exists... no
2010-07-28 11:28:17,529 DEBUG :
2010-07-28 11:28:17,529 DEBUG : Error 15: File not found
2010-07-28 11:28:17,530 DEBUG : grub> EOT
2010-07-28 11:28:17,530 DEBUG : ['chroot', '/tmp/tmpa5EOR4', '/usr/sbin/
2010-07-28 11:28:17,664 INFO : Searching for GRUB installation directory ... found: /boot/grub
2010-07-28 11:28:17,728 INFO : Searching for default file ... Generating /boot/grub/default file and setting the default boot entry to 0
2010-07-28 11:28:17,731 INFO : Searching for GRUB installation directory ... found: /boot/grub
2010-07-28 11:28:17,741 INFO : Testing for an existing GRUB menu.lst file ...
2010-07-28 11:28:17,742 INFO :
2010-07-28 11:28:17,742 INFO : Could not find /boot/grub/menu.lst file.
2010-07-28 11:28:17,742 INFO : Generating /boot/grub/menu.lst
2010-07-28 11:28:17,863 INFO : Searching for splash image ... none found, skipping ...
2010-07-28 11:28:18,112 INFO : grep: /boot/config*: No such file or directory
2010-07-28 11:28:18,255 INFO : Updating /boot/grub/menu.lst ... done
2010-07-28 11:28:18,255 INFO :
Have tried different mirrors, {python,
It works approximately half the time:
Changed in vm-builder (Ubuntu): | |
status: | Incomplete → New |
Seems to be related to the size and/or position of the LV on disk or partitioning setup inside the LV. 1TB drives (software RAID 1) with LBA enabled.
4 GB LV, 2 GB root, 2GB swap:
test01. txt:2010- 07-28 13:39:00,848 DEBUG : Checking if "/boot/grub/stage1" exists... yes txt:2010- 07-28 13:40:32,217 DEBUG : Checking if "/boot/grub/stage1" exists... yes txt:2010- 07-28 13:42:08,167 DEBUG : Checking if "/boot/grub/stage1" exists... yes txt:2010- 07-28 13:43:46,199 DEBUG : Checking if "/boot/grub/stage1" exists... yes txt:2010- 07-28 13:45:20,067 DEBUG : Checking if "/boot/grub/stage1" exists... yes txt:2010- 07-28 13:46:53,004 DEBUG : Checking if "/boot/grub/stage1" exists... yes txt:2010- 07-28 13:48:25,589 DEBUG : Checking if "/boot/grub/stage1" exists... yes txt:2010- 07-28 13:49:56,128 DEBUG : Checking if "/boot/grub/stage1" exists... yes txt:2010- 07-28 13:51:27,426 DEBUG : Checking if "/boot/grub/stage1" exists... yes txt:2010- 07-28 13:53:00,229 DEBUG : Checking if "/boot/grub/stage1" exists... yes
test02.
test03.
test04.
test05.
test06.
test07.
test08.
test09.
test10.
40 GB LV, 32 GB root, 8 GB swap:
test11. txt:2010- 07-28 13:55:45,188 DEBUG : Checking if "/boot/grub/stage1" exists... yes txt:2010- 07-28 13:57:23,889 DEBUG : Checking if "/boot/grub/stage1" exists... yes txt:2010- 07-28 13:59:04,599 DEBUG : Checking if "/boot/grub/stage1" exists... yes txt:2010- 07-28 14:00:43,285 DEBUG : Checking if "/boot/grub/stage1" exists... yes txt:2010- 07-28 14:02:25,818 DEBUG : Checking if "/boot/grub/stage1" exists... yes txt:2010- 07-28 14:04:04,428 DEBUG : Checking if "/boot/grub/stage1" exists... yes txt:2010- 07-28 14:05:46,409 DEBUG : Checking if "/boot/grub/stage1" exists... yes txt:2010- 07-28 14:07:26,049 DEBUG : Checking if "/boot/grub/stage1" exists... no txt:2010- 07-28 14:09:08,828 DEBUG : Checking if "/boot/grub/stage1" exists... yes txt:2010- 07-28 14:10:48,468 DEBUG : Checking if "/boot/grub/stage1" exists... yes
test12.
test13.
test14.
test15.
test16.
test17.
test18.
test19.
test20.
10 GB LV, 8 GB root, 2 GB swap:
test21. txt:2010- 07-28 14:14:40,718 DEBUG : Checking if "/boot/grub/stage1" exists... yes txt:2010- 07-28 14:16:20,228 DEBUG : Checking if "/boot/grub/stage1" exists... no txt:2010- 07-28 14:17:59,287 DEBUG : Checking if "/boot/grub/stage1" exists... no txt:2010- 07-28 14:19:37,439 DEBUG : Checking if "/boot/grub/stage1" exists... yes txt:2010- 07-28 14:21:12,338 DEBUG : Checking if "/boot/grub/stage1" exists... no txt:2010- 07-28 14:22:51,709 DEBUG : Checking if "/boot/grub/stage1" exists... no txt:2010- 07-28 14:24:26,248 DEBUG : Checking if "/boot/grub/stage1" exists... yes txt:2010- 07-28 14:26:02,670 DEBUG : Checking if "/boot/grub/stage1" exists... yes txt:2010- 07-28 14:27:36,028 DEBUG : Checking if "/boot/grub/stage1" exists... yes txt:2010- 07-28 14:29:12,604 DEBUG : Checking if "/boot/grub/stage1" exists... yes
test22.
test23.
test24.
test25.
test26.
test27.
test28.
test29.
test30.