[Vmdebootstrap-devel] Bug#822454: vmdebootstrap: fails to install grub on wheezy

Antonio Terceiro terceiro at debian.org
Sun Apr 24 16:54:56 UTC 2016


Package: vmdebootstrap
Version: 1.5-1
Severity: normal

$ sudo http_proxy=http://127.0.0.1:3142 vmdebootstrap --grub --enable-dhcp --image test-grub.img --serial-console --distribution wheezy --verbose --log test-grub.log && echo booting image && kvm -snapshot -nographic test-grub.img
Creating disk image
Creating partitions
Installing MBR
Creating filesystem ext4
Mounting /dev/mapper/loop0p1 on /tmp/tmpigoRa5
Debootstrapping wheezy [amd64]
Give root an empty password
Removing udev persistent cd and net rules
Setting up networking
Updating the initramfs
Configuring grub2
Failed. Is grub2-common installed? Using extlinux.  ← ******************
Installing extlinux
Optimizing image for compression
Cleaning up
booting image

SYSLINUX 6.03 20151108 Copyright (C) 1994-2014 H. Peter Anvin et al
Loading boot/vmlinuz-3.2.0-4-amd64... failed: No such file or directory
boot: 
Loading boot/vmlinuz-3.2.0-4-amd64... failed: No such file or directory
boot: 
[ ^^^^ repeats forever - see #822452 ^^^^ ]

test-grub.log is attached.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.6.0-rc3-amd64 (SMP w/4 CPU cores)
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages vmdebootstrap depends on:
ii  debootstrap         1.0.80
ii  extlinux            3:6.03+dfsg-11
ii  kpartx              0.5.0+git1.656f8865-9
ii  libjs-sphinxdoc     1.3.6-2
ii  mbr                 1.1.11-5+b1
ii  parted              3.2-15
ii  python-cliapp       1.20160316-1
ii  python-distro-info  0.14
ii  python2.7           2.7.11-8
pn  python:any          <none>
ii  qemu-utils          1:2.5+dfsg-5+b1

Versions of packages vmdebootstrap recommends:
ii  grub2-common      2.02~beta2-36
ii  python-guestfs    1:1.32.4-1
ii  qemu-system       1:2.5+dfsg-5+b1
ii  qemu-user-static  1:2.5+dfsg-5+b1
ii  squashfs-tools    1:4.3-3

Versions of packages vmdebootstrap suggests:
pn  cmdtest       <none>
ii  pandoc        1.16.0.2~dfsg-1
pn  u-boot:armhf  <none>

-- no debconf information

-- 
Antonio Terceiro <terceiro at debian.org>
-------------- next part --------------
2016-04-24 13:44:22 INFO vmdebootstrap version 1.5 starts
2016-04-24 13:44:22 DEBUG sys.argv: ['/usr/sbin/vmdebootstrap', '--grub', '--enable-dhcp', '--image', 'test-grub.img', '--serial-console', '--distribution', 'wheezy', '--verbose', '--log', 'test-grub.log']
2016-04-24 13:44:22 DEBUG current working directory: /tmp/test
2016-04-24 13:44:22 DEBUG uid: 0
2016-04-24 13:44:22 DEBUG effective uid: 0
2016-04-24 13:44:22 DEBUG gid: 0
2016-04-24 13:44:22 DEBUG effective gid: 0
2016-04-24 13:44:22 DEBUG environment variables:
2016-04-24 13:44:22 DEBUG environment: LANG=pt_BR.UTF-8
2016-04-24 13:44:22 DEBUG environment: USERNAME=root
2016-04-24 13:44:22 DEBUG environment: TERM=xterm-256color
2016-04-24 13:44:22 DEBUG environment: PS1=\[\]$\[(B\] 
2016-04-24 13:44:22 DEBUG environment: LC_MESSAGES=C
2016-04-24 13:44:22 DEBUG environment: SUDO_COMMAND=/usr/sbin/vmdebootstrap --grub --enable-dhcp --image test-grub.img --serial-console --distribution wheezy --verbose --log test-grub.log
2016-04-24 13:44:22 DEBUG environment: http_proxy=http://127.0.0.1:3142
2016-04-24 13:44:22 DEBUG environment: SUDO_UID=1000
2016-04-24 13:44:22 DEBUG environment: SUDO_GID=1000
2016-04-24 13:44:22 DEBUG environment: SHELL=/bin/bash
2016-04-24 13:44:22 DEBUG environment: LOGNAME=root
2016-04-24 13:44:22 DEBUG environment: USER=root
2016-04-24 13:44:22 DEBUG environment: COLORTERM=truecolor
2016-04-24 13:44:22 DEBUG environment: MAIL=/var/mail/root
2016-04-24 13:44:22 DEBUG environment: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2016-04-24 13:44:22 DEBUG environment: SUDO_USER=terceiro
2016-04-24 13:44:22 DEBUG environment: LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
2016-04-24 13:44:22 DEBUG environment: HOME=/root
2016-04-24 13:44:22 DEBUG environment: DISPLAY=:0
2016-04-24 13:44:22 DEBUG environment: XAUTHORITY=/run/user/1000/gdm/Xauthority
2016-04-24 13:44:22 DEBUG Config:
[config]
output = 
log = test-grub.log
log-level = debug
log-max = 0
log-keep = 10
log-mode = 0600
dump-memory-profile = simple
memory-dump-interval = 300
verbose = True
image = test-grub.img
size = 1000000000
bootsize = 0
boottype = ext2
bootflag = 
bootoffset = 0
use-uefi = False
esp-size = 5242880
part-type = msdos
roottype = ext4
swap = 0
foreign = 
debootstrapopts = 
extlinux = True
tarball = 
apt-mirror = 
mirror = http://httpredir.debian.org/debian/
arch = amd64
distribution = wheezy
package = 
custom-package = 
no-kernel = False
kernel-package = 
enable-dhcp = True
root-password = 
lock-root-password = False
customize = 
hostname = debian
user = 
serial-console = True
serial-console-command = /sbin/getty -L ttyS0 115200 vt100
sudo = False
owner = 
squash = 
configure-apt = False
mbr = False
grub = True
sparse = False
pkglist = False
no-acpid = False
update-initramfs = True
convert-qcow2 = False
systemd-networkd = True
dry-run = False


2016-04-24 13:44:22 DEBUG Python version: 2.7.11+ (default, Apr 17 2016, 14:00:29) 
[GCC 5.3.1 20160409]
2016-04-24 13:44:22 INFO Creating disk image
2016-04-24 13:44:22 DEBUG runcmd: ['qemu-img', 'create', '-f', 'raw', 'test-grub.img', '1000000000'] None {}
2016-04-24 13:44:22 INFO Creating partitions
2016-04-24 13:44:22 DEBUG runcmd: ['parted', '-s', 'test-grub.img', 'mklabel', 'msdos'] None {}
2016-04-24 13:44:22 DEBUG runcmd: ['parted', '-s', 'test-grub.img', 'mkpart', 'primary', '0%', '100%'] None {}
2016-04-24 13:44:22 DEBUG runcmd: ['parted', '-s', 'test-grub.img', 'set', '1', 'boot', 'on'] None {}
2016-04-24 13:44:22 INFO Installing MBR
2016-04-24 13:44:22 DEBUG runcmd: ['install-mbr', 'test-grub.img'] None {}
2016-04-24 13:44:22 DEBUG runcmd: ['kpartx', '-avs', 'test-grub.img'] None {}
2016-04-24 13:44:22 INFO Creating filesystem ext4
2016-04-24 13:44:22 DEBUG runcmd: ['mkfs', '-t', 'ext4', u'/dev/mapper/loop0p1'] None {}
2016-04-24 13:44:23 DEBUG mkdir /tmp/tmpigoRa5
2016-04-24 13:44:23 INFO Mounting /dev/mapper/loop0p1 on /tmp/tmpigoRa5
2016-04-24 13:44:23 DEBUG runcmd: ['mount', u'/dev/mapper/loop0p1', '/tmp/tmpigoRa5'] None {}
2016-04-24 13:44:23 DEBUG mounted /dev/mapper/loop0p1 on /tmp/tmpigoRa5
2016-04-24 13:44:23 DEBUG rootdir=/tmp/tmpigoRa5 rootdev=/dev/mapper/loop0p1
2016-04-24 13:44:23 INFO Debootstrapping wheezy [amd64]
2016-04-24 13:44:23 DEBUG debootstrap arguments: ['debootstrap', u'--arch=amd64', u'--include=linux-image-amd64,acpid,grub-pc']
2016-04-24 13:44:23 DEBUG debootstrap --arch=amd64 --include=linux-image-amd64,acpid,grub-pc wheezy /tmp/tmpigoRa5 http://httpredir.debian.org/debian/
2016-04-24 13:44:23 DEBUG runcmd: ['debootstrap', u'--arch=amd64', u'--include=linux-image-amd64,acpid,grub-pc', 'wheezy', '/tmp/tmpigoRa5', 'http://httpredir.debian.org/debian/'] None {}
2016-04-24 13:45:52 DEBUG runcmd: ['blkid', '-c', '/dev/null', '-o', 'value', '-s', 'UUID', u'/dev/mapper/loop0p1'] None {}
2016-04-24 13:45:52 INFO Give root an empty password
2016-04-24 13:45:52 DEBUG runcmd: ['chroot', '/tmp/tmpigoRa5', 'passwd', '-d', 'root'] None {}
2016-04-24 13:45:52 INFO Removing udev persistent cd and net rules
2016-04-24 13:45:52 DEBUG not removing non-existent /tmp/tmpigoRa5/etc/udev/rules.d/70-persistent-cd.rules
2016-04-24 13:45:52 DEBUG not removing non-existent /tmp/tmpigoRa5/etc/udev/rules.d/70-persistent-net.rules
2016-04-24 13:45:52 INFO Setting up networking
2016-04-24 13:45:52 DEBUG runcmd: ['chroot', '/tmp/tmpigoRa5', 'apt-get', 'clean'] None {}
2016-04-24 13:45:52 DEBUG stdout:

2016-04-24 13:45:52 INFO Updating the initramfs
2016-04-24 13:45:52 DEBUG runcmd: ['chroot', '/tmp/tmpigoRa5', 'usr/sbin/update-initramfs', '-u'] None {}
2016-04-24 13:45:56 DEBUG rootdir=/tmp/tmpigoRa5 rootdev=/dev/mapper/loop0p1
2016-04-24 13:45:56 INFO Configuring grub2
2016-04-24 13:45:56 DEBUG Allowing serial output in grub config /tmp/tmpigoRa5/etc/default/grub
2016-04-24 13:45:56 DEBUG Running grub-install with options: /dev/loop0
2016-04-24 13:45:56 DEBUG runcmd: ['mount', '/dev', '-t', 'devfs', '-obind', '/tmp/tmpigoRa5/dev'] None {}
2016-04-24 13:45:56 DEBUG runcmd: ['mount', '/dev/pts', '-t', 'devpts', '-obind', '/tmp/tmpigoRa5/dev/pts'] None {}
2016-04-24 13:45:56 DEBUG runcmd: ['mount', '/proc', '-t', 'proc', '-obind', '/tmp/tmpigoRa5/proc'] None {}
2016-04-24 13:45:56 DEBUG runcmd: ['mount', '/sys', '-t', 'sysfs', '-obind', '/tmp/tmpigoRa5/sys'] None {}
2016-04-24 13:45:56 DEBUG runcmd: ['chroot', '/tmp/tmpigoRa5', 'update-grub'] None {}
2016-04-24 13:45:57 ERROR command failed: ['chroot', '/tmp/tmpigoRa5', 'update-grub']

No font for gfxterm found.

2016-04-24 13:45:57 WARNING command failed: ['chroot', '/tmp/tmpigoRa5', 'update-grub']

No font for gfxterm found.

2016-04-24 13:45:57 INFO Failed. Is grub2-common installed? Using extlinux.
2016-04-24 13:45:57 DEBUG runcmd: ['umount', '/tmp/tmpigoRa5/sys'] None {}
2016-04-24 13:45:57 DEBUG runcmd: ['umount', '/tmp/tmpigoRa5/proc'] None {}
2016-04-24 13:45:57 DEBUG runcmd: ['umount', '/tmp/tmpigoRa5/dev/pts'] None {}
2016-04-24 13:45:57 DEBUG runcmd: ['umount', '/tmp/tmpigoRa5/dev'] None {}
2016-04-24 13:45:57 INFO Installing extlinux
2016-04-24 13:45:57 DEBUG find: ['initrd.img-3.2.0-4-amd64', 'grub', 'System.map-3.2.0-4-amd64', 'vmlinuz-3.2.0-4-amd64', 'config-3.2.0-4-amd64']
2016-04-24 13:45:57 DEBUG find: ['initrd.img-3.2.0-4-amd64', 'grub', 'System.map-3.2.0-4-amd64', 'vmlinuz-3.2.0-4-amd64', 'config-3.2.0-4-amd64']
2016-04-24 13:45:57 DEBUG runcmd: ['blkid', '-c', '/dev/null', '-o', 'value', '-s', 'UUID', u'/dev/mapper/loop0p1'] None {}
2016-04-24 13:45:57 DEBUG configure extlinux /tmp/tmpigoRa5/extlinux.conf
2016-04-24 13:45:57 DEBUG extlinux config:

default linux
timeout 1

label linux
kernel boot/vmlinuz-3.2.0-4-amd64
append initrd=boot/initrd.img-3.2.0-4-amd64 root=UUID=fc4d29e8-997c-4bef-9201-c741fef6091a ro console=ttyS0,115200
serial 0 115200

2016-04-24 13:45:57 DEBUG runcmd: ['extlinux', '--install', '/tmp/tmpigoRa5'] None {}
2016-04-24 13:45:57 DEBUG runcmd: ['sync'] None {}
2016-04-24 13:45:59 DEBUG adding getty to serial console
2016-04-24 13:45:59 INFO Optimizing image for compression
2016-04-24 13:45:59 DEBUG run external command: [['dd', 'if=/dev/zero', 'of=/tmp/tmpigoRa5/ZEROS', 'bs=1M']]
2016-04-24 13:46:00 DEBUG runcmd: ['rm', '-f', '/tmp/tmpigoRa5/ZEROS'] None {}
2016-04-24 13:46:01 INFO Cleaning up
2016-04-24 13:46:01 DEBUG runcmd: ['umount', '/tmp/tmpigoRa5'] None {}
2016-04-24 13:46:01 DEBUG runcmd: ['kpartx', '-d', 'test-grub.img'] None {}
2016-04-24 13:46:01 INFO vmdebootstrap version 1.5 ends normally
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/vmdebootstrap-devel/attachments/20160424/b15b2f81/attachment-0001.sig>


More information about the Vmdebootstrap-devel mailing list