OpenNetworkLinux
OpenNetworkLinux copied to clipboard
Cannot install ONL on kvm_x86_64 by ONIE
I have install ONIE(tag 2019.08) on kvm, but when I want to install ONL, it failed, the error message is as follows:
grub-install: error: /usr/lib/grub/x86_64-efi/modinfo.sh doesn't exist. Please specify --target or --directory.
Can someone give me a help?
All outps:
ONIE:/ # onie-nos-install latest-DEB9-AMD64-INSTALLED.installer
ONIE:/ # onie-nos-install http://172.100.1.119:8080/latest-DEB9-AMD64-INSTALLED.
installer
discover: installer mode detected.
Stopping: discover... done.
Info: Attempting http://172.100.1.119:8080/latest-DEB9-AMD64-INSTALLED.installer ...
Connecting to 172.100.1.119:8080 (172.100.1.119:8080)
installer 100% |*******************************| 244M 0:00:00 ETA
ONIE: Executing installer: http://172.100.1.119:8080/latest-DEB9-AMD64-INSTALLED.installer
installer: computing checksum of original archive
installer: checksum is OK
installer: extracting pad
1+0 records in
1+0 records out
512 bytes (512B) copied, 0.000020 seconds, 24.4MB/s
installer: copying file before resetting pad
installer: resetting pad
1+0 records in
1+0 records out
512 bytes (512B) copied, 0.000015 seconds, 32.6MB/s
installer: extracting shar into /tmp/sfx-RUGMYy
installer: invoking installer installer.sh
Found installer tmpfs on /tmp/sfx-RUGMYy (/tmp) using opts rw,noatime
Unpacking ONL installer files...
Extracting from /tmp/sfx-RUGMYy/onie-installer.zip: onl-loader-initrd-amd64.cpio.gz ...
Archive: /tmp/sfx-RUGMYy/onie-installer.zip
inflating: onl-loader-initrd-amd64.cpio.gz
Extracting initrd to /tmp/sfx-RUGMYy/initrd-4TjcCA
65714 blocks
Setting up /dev
Setting up /run
Setting up mounts
modprobe: can't change directory to '/lib/modules': No such file or directory
Launching ONL installer
Unmounting /mnt/onie-boot (--force)
Unmounting /boot/efi (--force)
Extracting from /tmp/sfx-RUGMYy/onie-installer.zip: preinstall.sh ...
Archive: /tmp/sfx-RUGMYy/onie-installer.zip
inflating: preinstall.sh
Invoking pre-install actions
Hello from preinstall
Chroot is /tmp/sfx-RUGMYy/initrd-4TjcCA
Examining /dev/vda6 --> ONL-DATA
Examining /dev/vda5 --> ONL-IMAGES
Examining /dev/vda4 --> ONL-CONFIG
Examining /dev/vda3 --> ONL-BOOT
Examining /dev/vda2 --> ONIE-BOOT
Found ONIE boot partition at /dev/vda2
Examining /dev/vda1 --> EFI System
Found EFI System partition at /dev/vda1
Found a clean GPT partition table
getting installer configuration
+ blkid
found ONIE boot device /dev/vda2
found ONIE boot mounted at /mnt/onie-boot
found ONIE initrd at /mnt/onie-boot/onie/initrd.img-4.9.95-onie
extracting initrd /mnt/onie-boot/onie/initrd.img-4.9.95-onie
+ /bin/mkdir /tmp/sfx-RUGMYy/chroot-DVh5KL.d
+ xz -dc /mnt/onie-boot/onie/initrd.img-4.9.95-onie | cpio -imd
63176 blocks
preparing chroot in /tmp/sfx-RUGMYy/chroot-DVh5KL.d
+ mount -v -t proc proc /tmp/sfx-RUGMYy/chroot-DVh5KL.d/proc
+ mount -v -t sysfs sysfs /tmp/sfx-RUGMYy/chroot-DVh5KL.d/sys
+ mount -v -t efivarfs efivarfs /tmp/sfx-RUGMYy/chroot-DVh5KL.d/sys/firmware/efi/efivars
+ mount -v -t devtmpfs devtmpfs /tmp/sfx-RUGMYy/chroot-DVh5KL.d/dev
+ mount -v -t devpts devpts /tmp/sfx-RUGMYy/chroot-DVh5KL.d/dev/pts
extracting initrd /mnt/onie-boot/onie/initrd.img-4.9.95-onie
+ /bin/mkdir /tmp/sfx-RUGMYy/chroot-3kY7Xg.d
+ xz -dc /mnt/onie-boot/onie/initrd.img-4.9.95-onie | cpio -imd
63176 blocks
preparing chroot in /tmp/sfx-RUGMYy/chroot-3kY7Xg.d
+ mount -v -t proc proc /tmp/sfx-RUGMYy/chroot-3kY7Xg.d/proc
+ mount -v -t sysfs sysfs /tmp/sfx-RUGMYy/chroot-3kY7Xg.d/sys
+ mount -v -t efivarfs efivarfs /tmp/sfx-RUGMYy/chroot-3kY7Xg.d/sys/firmware/efi/efivars
+ mount -v -t devtmpfs devtmpfs /tmp/sfx-RUGMYy/chroot-3kY7Xg.d/dev
+ mount -v -t devpts devpts /tmp/sfx-RUGMYy/chroot-3kY7Xg.d/dev/pts
+ chroot /tmp/sfx-RUGMYy/chroot-3kY7Xg.d /bin/sh -c IFS=;onie-sysinfo -h
un-mounting mounts points in chroot /tmp/sfx-RUGMYy/chroot-3kY7Xg.d
+ umount -v /tmp/sfx-RUGMYy/chroot-3kY7Xg.d/sys/firmware/efi/efivars
+ umount -v /tmp/sfx-RUGMYy/chroot-3kY7Xg.d/sys
+ umount -v /tmp/sfx-RUGMYy/chroot-3kY7Xg.d/proc
+ umount -v /tmp/sfx-RUGMYy/chroot-3kY7Xg.d/dev/pts
+ umount -v /tmp/sfx-RUGMYy/chroot-3kY7Xg.d/dev
cleaning up chroot in /tmp/sfx-RUGMYy/chroot-3kY7Xg.d
+ /bin/rm -fr /tmp/sfx-RUGMYy/chroot-3kY7Xg.d
un-mounting mounts points in chroot /tmp/sfx-RUGMYy/chroot-DVh5KL.d
+ umount -v /tmp/sfx-RUGMYy/chroot-DVh5KL.d/sys/firmware/efi/efivars
+ umount -v /tmp/sfx-RUGMYy/chroot-DVh5KL.d/sys
+ umount -v /tmp/sfx-RUGMYy/chroot-DVh5KL.d/proc
+ umount -v /tmp/sfx-RUGMYy/chroot-DVh5KL.d/dev/pts
+ umount -v /tmp/sfx-RUGMYy/chroot-DVh5KL.d/dev
cleaning up chroot in /tmp/sfx-RUGMYy/chroot-DVh5KL.d
+ /bin/rm -fr /tmp/sfx-RUGMYy/chroot-DVh5KL.d
ONL Installer Open Network Linux OS ONL-master, 2019-07-23.01:53-01d1564
ONL installer running chrooted.
Detected platform x86-64-kvm-x86-64-r0
trying a GRUB based installer
+ blkid
found ONIE boot device /dev/vda2
found ONIE boot mounted at /mnt/onie-boot
found ONIE initrd at /mnt/onie-boot/onie/initrd.img-4.9.95-onie
extracting initrd /mnt/onie-boot/onie/initrd.img-4.9.95-onie
+ /bin/mkdir /tmp/sfx-RUGMYy/chroot-PJ6qjb.d
+ xz -dc /mnt/onie-boot/onie/initrd.img-4.9.95-onie | cpio -imd
63176 blocks
preparing chroot in /tmp/sfx-RUGMYy/chroot-PJ6qjb.d
+ mount -v -t proc proc /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/proc
+ mount -v -t sysfs sysfs /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys
+ mount -v -t efivarfs efivarfs /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys/firmware/efi/efivars
+ mount -v -t devtmpfs devtmpfs /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev
+ mount -v -t devpts devpts /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev/pts
un-mounting mounts points in chroot /tmp/sfx-RUGMYy/chroot-PJ6qjb.d
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys/firmware/efi/efivars
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/proc
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev/pts
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev
using native ONIE initrd+chroot GRUB (/mnt/onie-boot)
+ /bin/false --help
loading plugins from /tmp/sfx-RUGMYy/plugin-g1jQs4.py
/tmp/sfx-RUGMYy/plugin-g1jQs4.py: found plugin Plugin
loading plugins from /tmp/sfx-RUGMYy/plugin-ptyL2X.py
/tmp/sfx-RUGMYy/plugin-ptyL2X.py: found plugin Plugin
loading plugins from /usr/lib/python2.7/dist-packages/onl/install/plugins/__init__.py
running plugins: preinstall
hello from preinstall plugin
+ blkid
backing up ONL-CONFIG partition /dev/vda4 to /tmp/sfx-RUGMYy/onl-config-ckwkZd.tar.gz
+ /bin/mkdir /tmp/sfx-RUGMYy/mount-bFXXI0.d
+ mount -v /dev/vda4 /tmp/sfx-RUGMYy/mount-bFXXI0.d
+ tar -zcf /tmp/sfx-RUGMYy/onl-config-ckwkZd.tar.gz -C /tmp/sfx-RUGMYy/mount-bFXXI0.d .
+ umount -v /tmp/sfx-RUGMYy/mount-bFXXI0.d
+ /bin/rmdir /tmp/sfx-RUGMYy/mount-bFXXI0.d
extracting partition UUIDs for /dev/vda
+ mount -v -t proc proc /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/proc
+ mount -v -t sysfs sysfs /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys
+ mount -v -t efivarfs efivarfs /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys/firmware/efi/efivars
+ mount -v -t devtmpfs devtmpfs /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev
+ mount -v -t devpts devpts /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev/pts
+ chroot /tmp/sfx-RUGMYy/chroot-PJ6qjb.d sgdisk -p /dev/vda
un-mounting mounts points in chroot /tmp/sfx-RUGMYy/chroot-PJ6qjb.d
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys/firmware/efi/efivars
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/proc
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev/pts
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev
saving chroot in /tmp/sfx-RUGMYy/chroot-PJ6qjb.d
+ mount -v -t proc proc /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/proc
+ mount -v -t sysfs sysfs /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys
+ mount -v -t efivarfs efivarfs /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys/firmware/efi/efivars
+ mount -v -t devtmpfs devtmpfs /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev
+ mount -v -t devpts devpts /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev/pts
+ chroot /tmp/sfx-RUGMYy/chroot-PJ6qjb.d sgdisk -i 1 /dev/vda
un-mounting mounts points in chroot /tmp/sfx-RUGMYy/chroot-PJ6qjb.d
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys/firmware/efi/efivars
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/proc
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev/pts
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev
saving chroot in /tmp/sfx-RUGMYy/chroot-PJ6qjb.d
+ mount -v -t proc proc /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/proc
+ mount -v -t sysfs sysfs /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys
+ mount -v -t efivarfs efivarfs /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys/firmware/efi/efivars
+ mount -v -t devtmpfs devtmpfs /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev
+ mount -v -t devpts devpts /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev/pts
+ chroot /tmp/sfx-RUGMYy/chroot-PJ6qjb.d sgdisk -i 2 /dev/vda
un-mounting mounts points in chroot /tmp/sfx-RUGMYy/chroot-PJ6qjb.d
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys/firmware/efi/efivars
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/proc
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev/pts
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev
saving chroot in /tmp/sfx-RUGMYy/chroot-PJ6qjb.d
+ mount -v -t proc proc /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/proc
+ mount -v -t sysfs sysfs /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys
+ mount -v -t efivarfs efivarfs /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys/firmware/efi/efivars
+ mount -v -t devtmpfs devtmpfs /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev
+ mount -v -t devpts devpts /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev/pts
+ chroot /tmp/sfx-RUGMYy/chroot-PJ6qjb.d sgdisk -i 3 /dev/vda
un-mounting mounts points in chroot /tmp/sfx-RUGMYy/chroot-PJ6qjb.d
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys/firmware/efi/efivars
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/proc
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev/pts
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev
saving chroot in /tmp/sfx-RUGMYy/chroot-PJ6qjb.d
+ mount -v -t proc proc /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/proc
+ mount -v -t sysfs sysfs /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys
+ mount -v -t efivarfs efivarfs /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys/firmware/efi/efivars
+ mount -v -t devtmpfs devtmpfs /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev
+ mount -v -t devpts devpts /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev/pts
+ chroot /tmp/sfx-RUGMYy/chroot-PJ6qjb.d sgdisk -i 4 /dev/vda
un-mounting mounts points in chroot /tmp/sfx-RUGMYy/chroot-PJ6qjb.d
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys/firmware/efi/efivars
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/proc
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev/pts
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev
saving chroot in /tmp/sfx-RUGMYy/chroot-PJ6qjb.d
+ mount -v -t proc proc /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/proc
+ mount -v -t sysfs sysfs /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys
+ mount -v -t efivarfs efivarfs /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys/firmware/efi/efivars
+ mount -v -t devtmpfs devtmpfs /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev
+ mount -v -t devpts devpts /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev/pts
+ chroot /tmp/sfx-RUGMYy/chroot-PJ6qjb.d sgdisk -i 5 /dev/vda
un-mounting mounts points in chroot /tmp/sfx-RUGMYy/chroot-PJ6qjb.d
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys/firmware/efi/efivars
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/proc
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev/pts
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev
saving chroot in /tmp/sfx-RUGMYy/chroot-PJ6qjb.d
+ mount -v -t proc proc /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/proc
+ mount -v -t sysfs sysfs /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys
+ mount -v -t efivarfs efivarfs /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys/firmware/efi/efivars
+ mount -v -t devtmpfs devtmpfs /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev
+ mount -v -t devpts devpts /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev/pts
+ chroot /tmp/sfx-RUGMYy/chroot-PJ6qjb.d sgdisk -i 6 /dev/vda
un-mounting mounts points in chroot /tmp/sfx-RUGMYy/chroot-PJ6qjb.d
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys/firmware/efi/efivars
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/proc
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev/pts
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev
saving chroot in /tmp/sfx-RUGMYy/chroot-PJ6qjb.d
found ESP partition /dev/vda1
found ESP filesystem UUID C087-3BAE
Installing to /dev/vda starting at partition 3
disk is /dev/vda
found gpt partitions (bsz 512, lbsz 512)
found a disk with 20971520 blocks
examining /dev/vda part 1
skip this part
examining /dev/vda part 2
skip this part
examining /dev/vda part 3
deleting this part
examining /dev/vda part 4
deleting this part
examining /dev/vda part 5
deleting this part
examining /dev/vda part 6
deleting this part
+ partprobe /dev/vda
next usable block is 788480
Allocating 262144 sectors for ONL-BOOT
+ partprobe /dev/vda
Formatting /dev/vda3 (ONL-BOOT) as ext4
+ mkfs.ext4 -v -O ^huge_file -L ONL-BOOT /dev/vda3
mke2fs 1.42.7 (21-Jan-2013)
ext2fs_check_if_mount: Can't check if filesystem is mounted due to missing mtab file while determining whether /dev/vda3 is mounted.
fs_types for mke2fs.conf resolution: 'ext4', 'small'
Filesystem label=ONL-BOOT
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
Stride=0 blocks, Stripe width=0 blocks
32768 inodes, 131072 blocks
6553 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=67371008
16 block groups
8192 blocks per group, 8192 fragments per group
2048 inodes per group
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729
Allocating group tables: done
Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done
Allocating 262144 sectors for ONL-CONFIG
+ partprobe /dev/vda
Formatting /dev/vda4 (ONL-CONFIG) as ext4
+ mkfs.ext4 -v -O ^huge_file -L ONL-CONFIG /dev/vda4
mke2fs 1.42.7 (21-Jan-2013)
ext2fs_check_if_mount: Can't check if filesystem is mounted due to missing mtab file while determining whether /dev/vda4 is mounted.
fs_types for mke2fs.conf resolution: 'ext4', 'small'
Filesystem label=ONL-CONFIG
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
Stride=0 blocks, Stripe width=0 blocks
32768 inodes, 131072 blocks
6553 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=67371008
16 block groups
8192 blocks per group, 8192 fragments per group
2048 inodes per group
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729
Allocating group tables: done
Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done
restoring ONL-CONFIG archive /tmp/sfx-RUGMYy/onl-config-ckwkZd.tar.gz to /dev/vda4
+ /bin/mkdir /tmp/sfx-RUGMYy/mount-Q7XEZy.d
+ mount -v /dev/vda4 /tmp/sfx-RUGMYy/mount-Q7XEZy.d
+ tar -zxf /tmp/sfx-RUGMYy/onl-config-ckwkZd.tar.gz -C /tmp/sfx-RUGMYy/mount-Q7XEZy.d
+ umount -v /tmp/sfx-RUGMYy/mount-Q7XEZy.d
+ /bin/rmdir /tmp/sfx-RUGMYy/mount-Q7XEZy.d
+ /bin/rm /tmp/sfx-RUGMYy/onl-config-ckwkZd.tar.gz
Allocating 2097152 sectors for ONL-IMAGES
+ partprobe /dev/vda
Formatting /dev/vda5 (ONL-IMAGES) as ext4
+ mkfs.ext4 -v -O ^huge_file -L ONL-IMAGES /dev/vda5
mke2fs 1.42.7 (21-Jan-2013)
ext2fs_check_if_mount: Can't check if filesystem is mounted due to missing mtab file while determining whether /dev/vda5 is mounted.
fs_types for mke2fs.conf resolution: 'ext4'
Filesystem label=ONL-IMAGES
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
65536 inodes, 262144 blocks
13107 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=268435456
8 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376
Allocating group tables: done
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
Allocating 17561600 sectors for ONL-DATA
+ partprobe /dev/vda
Formatting /dev/vda6 (ONL-DATA) as ext4
+ mkfs.ext4 -v -O ^huge_file -L ONL-DATA /dev/vda6
mke2fs 1.42.7 (21-Jan-2013)
ext2fs_check_if_mount: Can't check if filesystem is mounted due to missing mtab file while determining whether /dev/vda6 is mounted.
fs_types for mke2fs.conf resolution: 'ext4'
Filesystem label=ONL-DATA
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
548864 inodes, 2194944 blocks
109747 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2248146944
67 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
+ blkid
Installing ONL Software Image (ONL-master_ONL-OS9_2019-07-23.0153-01d1564_AMD64.swi)...
+ /bin/mkdir /tmp/sfx-RUGMYy/mount-PoYyG1.d
+ mount -v /dev/vda5 /tmp/sfx-RUGMYy/mount-PoYyG1.d
+ unzip -p onie-installer.zip ONL-master_ONL-OS9_2019-07-23.0153-01d1564_AMD64.swi > /tmp/sfx-RUGMYy/mount-PoYyG1.d/ONL-master_ONL-OS9_2019-07-23.0153-01d1564_AMD64.swi
+ umount -v /tmp/sfx-RUGMYy/mount-PoYyG1.d
+ /bin/rmdir /tmp/sfx-RUGMYy/mount-PoYyG1.d
Installing kernel to /dev/vda3
+ /bin/mkdir /tmp/sfx-RUGMYy/mount-2ept1p.d
+ mount -v /dev/vda3 /tmp/sfx-RUGMYy/mount-2ept1p.d
+ unzip -p onie-installer.zip kernel-3.16-lts-x86_64-all > /tmp/sfx-RUGMYy/mount-2ept1p.d/kernel-3.16-lts-x86_64-all
+ unzip -p onie-installer.zip kernel-4.9-lts-x86_64-all > /tmp/sfx-RUGMYy/mount-2ept1p.d/kernel-4.9-lts-x86_64-all
+ unzip -p onie-installer.zip kernel-4.14-lts-x86_64-all > /tmp/sfx-RUGMYy/mount-2ept1p.d/kernel-4.14-lts-x86_64-all
+ /bin/cp -a /mnt/installer/onl-loader-initrd-amd64.cpio.gz /tmp/sfx-RUGMYy/mount-2ept1p.d/x86-64-kvm-x86-64-r0.cpio.gz
+ umount -v /tmp/sfx-RUGMYy/mount-2ept1p.d
+ /bin/rmdir /tmp/sfx-RUGMYy/mount-2ept1p.d
Installing grub.cfg to /dev/vda3
+ /bin/mkdir /tmp/sfx-RUGMYy/mount-KP4TjN.d
+ mount -v /dev/vda3 /tmp/sfx-RUGMYy/mount-KP4TjN.d
+ /bin/mkdir -p /tmp/sfx-RUGMYy/mount-KP4TjN.d/grub
+ umount -v /tmp/sfx-RUGMYy/mount-KP4TjN.d
+ /bin/rmdir /tmp/sfx-RUGMYy/mount-KP4TjN.d
Installing boot-config to /dev/vda3
+ /bin/mkdir /tmp/sfx-RUGMYy/mount-ImlPGI.d
+ mount -v /dev/vda3 /tmp/sfx-RUGMYy/mount-ImlPGI.d
+ unzip -p onie-installer.zip boot-config > /tmp/sfx-RUGMYy/mount-ImlPGI.d/boot-config
+ umount -v /tmp/sfx-RUGMYy/mount-ImlPGI.d
+ /bin/rmdir /tmp/sfx-RUGMYy/mount-ImlPGI.d
+ /bin/mkdir /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/tmp/mount-Ew0fJQ.d
+ mount -v -t ext4 /dev/vda3 /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/tmp/mount-Ew0fJQ.d
+ mount -v -t proc proc /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/proc
+ mount -v -t sysfs sysfs /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys
+ mount -v -t efivarfs efivarfs /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys/firmware/efi/efivars
+ mount -v -t devtmpfs devtmpfs /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev
+ mount -v -t devpts devpts /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev/pts
+ chroot /tmp/sfx-RUGMYy/chroot-PJ6qjb.d grub-editenv /tmp/mount-Ew0fJQ.d/grub/grubenv set boot_config_default=TkVUREVWPW1hMQpCT09UTU9ERT1JTlNUQUxMRUQKU1dJPWltYWdlczo6bGF0ZXN0Cg==
un-mounting mounts points in chroot /tmp/sfx-RUGMYy/chroot-PJ6qjb.d
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/tmp/mount-Ew0fJQ.d
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys/firmware/efi/efivars
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/proc
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev/pts
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev
saving chroot in /tmp/sfx-RUGMYy/chroot-PJ6qjb.d
+ /bin/rmdir /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/tmp/mount-Ew0fJQ.d
+ /bin/mkdir /tmp/sfx-RUGMYy/mount-dg4gAM.d
+ mount -v /dev/vda4 /tmp/sfx-RUGMYy/mount-dg4gAM.d
+ umount -v /tmp/sfx-RUGMYy/mount-dg4gAM.d
+ /bin/rmdir /tmp/sfx-RUGMYy/mount-dg4gAM.d
Installing GRUB to /dev/vda
+ mount -v -t proc proc /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/proc
+ mount -v -t sysfs sysfs /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys
+ mount -v -t efivarfs efivarfs /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys/firmware/efi/efivars
+ mount -v -t devtmpfs devtmpfs /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev
+ mount -v -t devpts devpts /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev/pts
+ chroot /tmp/sfx-RUGMYy/chroot-PJ6qjb.d efibootmgr
un-mounting mounts points in chroot /tmp/sfx-RUGMYy/chroot-PJ6qjb.d
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys/firmware/efi/efivars
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/proc
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev/pts
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev
saving chroot in /tmp/sfx-RUGMYy/chroot-PJ6qjb.d
+ /bin/mkdir /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/tmp/mount-NQRFEH.d
+ mount -v /dev/vda1 /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/tmp/mount-NQRFEH.d
+ /bin/mkdir /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/tmp/mount-6FDVAS.d
+ mount -v -t ext4 /dev/vda3 /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/tmp/mount-6FDVAS.d
+ mount -v -t proc proc /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/proc
+ mount -v -t sysfs sysfs /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys
+ mount -v -t efivarfs efivarfs /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys/firmware/efi/efivars
+ mount -v -t devtmpfs devtmpfs /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev
+ mount -v -t devpts devpts /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev/pts
+ chroot /tmp/sfx-RUGMYy/chroot-PJ6qjb.d grub-install --boot-directory=/tmp/mount-6FDVAS.d --target=x86_64-efi --no-nvram --recheck --bootloader-id=ONL --efi-directory=/tmp/mount-NQRFEH.d /dev/vda
grub-install: error: /usr/lib/grub/x86_64-efi/modinfo.sh doesn't exist. Please specify --target or --directory.
un-mounting mounts points in chroot /tmp/sfx-RUGMYy/chroot-PJ6qjb.d
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/tmp/mount-NQRFEH.d
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/tmp/mount-6FDVAS.d
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys/firmware/efi/efivars
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/sys
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/proc
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev/pts
+ umount -v /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/dev
saving chroot in /tmp/sfx-RUGMYy/chroot-PJ6qjb.d
+ /bin/rmdir /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/tmp/mount-6FDVAS.d
+ /bin/rmdir /tmp/sfx-RUGMYy/chroot-PJ6qjb.d/tmp/mount-NQRFEH.d
installer failed
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/onl/install/App.py", line 212, in runLocalOrChroot
code = self.installer.run()
File "/usr/lib/python2.7/dist-packages/onl/install/BaseInstall.py", line 845, in run
return self.installGpt()
File "/usr/lib/python2.7/dist-packages/onl/install/BaseInstall.py", line 825, in installGpt
code = self.installGrub()
File "/usr/lib/python2.7/dist-packages/onl/install/BaseInstall.py", line 750, in installGrub
self.im.grubEnv.install(self.partedDevice.path)
File "/usr/lib/python2.7/dist-packages/onl/install/ConfUtils.py", line 233, in install
_install()
File "/usr/lib/python2.7/dist-packages/onl/install/ConfUtils.py", line 226, in _install
+ [device,])
File "/usr/lib/python2.7/dist-packages/onl/install/InstallUtils.py", line 1254, in check_call
subprocess.check_call(cmd, *args, cwd=cwd, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 511, in check_call
raise CalledProcessError(retcode, cmd)
CalledProcessError: Command '['chroot', '/tmp/sfx-RUGMYy/chroot-PJ6qjb.d', 'grub-install', '--boot-directory=/tmp/mount-6FDVAS.d', '--target=x86_64-efi', '--no-nvram', '--recheck', '--bootloader-id=ONL', '--efi-directory=/tmp/mount-NQRFEH.d', u'/dev/vda']' returned non-zero exit status 1
re-attaching to tty
entering Python debugger (installer_debug=1)
> /usr/lib/python2.7/subprocess.py(511)check_call()
-> raise CalledProcessError(retcode, cmd)
@dingrui37 I'll take a look.
Hi @jnealtowns, does it work now?
@dingrui37 I tried but I couldn't reproduce your problem. Can you shared the details of your EFI KVM?