Skip to contentSkip to conversation

#yocto - meta-anaconda installer gives "An unknown error has occurred"

DISCUSSION [email protected] 2 participants 6 messages Jun 18, 2020 – Jun 19, 2020

lore
Share & tools
lore
#0 lore raw

Hello all,

I created a core-image-full-cmdline for genericx86-64 machine. I am trying to configure meta-anaconda with it. I have used the following bblayers.conf file and added the requirements in the local.conf file.

1. Target Build:
bblayers.conf:
BBLAYERS ?= " \
/opt/graylog-poky/meta \
/opt/graylog-poky/meta-poky \
/opt/graylog-poky/meta-yocto-bsp \
/opt/graylog-poky/meta-graylog \
/opt/graylog-poky/meta-openembedded/meta-oe \
/opt/graylog-poky/meta-openembedded/meta-python \
/opt/graylog-poky/meta-openembedded/meta-networking \
/opt/graylog-poky/meta-openembedded/meta-gnome \
/opt/graylog-poky/meta-openembedded/meta-filesystems \
/opt/graylog-poky/meta-openembedded/meta-initramfs \
/opt/graylog-poky/meta-anaconda \
"
local.conf file:
PACKAGE_CLASSES ?= "package_deb package_rpm"
DISTRO_FEATURES_append = " systemd keyboard ldconfig pam"
EXTRA_IMAGE_FEATURES_append = " package-management ssh-server-openssh" CORE_IMAGE_EXTRA_INSTALL_append = " kernel-modules iptables bash vim parted tcpdump dhcp-server dhcp-client" VIRTUAL-RUNTIME_init_manager = "systemd"
DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
VIRTUAL-RUNTIME_initscripts = ""
IMAGE_FSTYPES = "ext4 iso wic wic.vmdk"

The target directory is /opt/graylog-poky/build.

Then I created the install build with the following bblayers.conf and local.conf with the following customizations

bblayers.conf:
BBLAYERS ?= " \
/opt/graylog-poky/meta \
/opt/graylog-poky/meta-poky \
/opt/graylog-poky/meta-yocto-bsp \
/opt/graylog-poky/meta-graylog \
/opt/graylog-poky/meta-openembedded/meta-oe \
/opt/graylog-poky/meta-openembedded/meta-python \
/opt/graylog-poky/meta-openembedded/meta-networking \
/opt/graylog-poky/meta-openembedded/meta-gnome \
/opt/graylog-poky/meta-openembedded/meta-filesystems \
/opt/graylog-poky/meta-openembedded/meta-initramfs \
/opt/graylog-poky/meta-anaconda \
"

local.conf:
MACHINE ??= "qemux86-64"
PACKAGE_CLASSES ?= "package_ipk" PACKAGE_CLASSES = "package_rpm"
DISTRO = "anaconda"
INSTALLER_TARGET_IMAGE = "core-image-full-cmdline" INSTALLER_TARGET_BUILD = "/opt/graylog-poky/build"

It gave me an iso, when I try to boot in a vmware or on a virtualbox with the iso, it boots up and then after opening up the anaconda installer it comes up with the error message "An unknown error has occurred" and it hangs on the screen.

Any help will be highly appreciated.

Also would like to know if it is possible to boot an x86-64 using the above method.

#1 lore raw
Quoted 6 lines · On 2020-06-18 22:28, [email protected] wrote:

Hello all,

I created a core-image-full-cmdline for genericx86-64 machine. I am trying to configure meta-anaconda with it. I have used the following bblayers.conf file and added the requirements in the local.conf file.

I was recently able to build and boot an x86_64 image and install it via anaconda from dunfell layer on real hardware and in XenServer i did notice depending on the vm template used some would error, centos/ununtu templates appeared ok, though not sure if you have templates for os installs in vmware, never used it.

Quoted 64 lines

1. Target Build:
bblayers.conf:
BBLAYERS ?= " \
/opt/graylog-poky/meta \
/opt/graylog-poky/meta-poky \
/opt/graylog-poky/meta-yocto-bsp \
/opt/graylog-poky/meta-graylog \
/opt/graylog-poky/meta-openembedded/meta-oe \
/opt/graylog-poky/meta-openembedded/meta-python \
/opt/graylog-poky/meta-openembedded/meta-networking \
/opt/graylog-poky/meta-openembedded/meta-gnome \
/opt/graylog-poky/meta-openembedded/meta-filesystems \
/opt/graylog-poky/meta-openembedded/meta-initramfs \
/opt/graylog-poky/meta-anaconda \
"
local.conf file:
PACKAGE_CLASSES ?= "package_deb package_rpm" DISTRO_FEATURES_append = " systemd keyboard ldconfig pam" EXTRA_IMAGE_FEATURES_append = " package-management ssh-server-openssh"

CORE_IMAGE_EXTRA_INSTALL_append = " kernel-modules iptables bash vim parted tcpdump dhcp-server dhcp-client" VIRTUAL-RUNTIME_init_manager = "systemd" DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit" VIRTUAL-RUNTIME_initscripts = ""
IMAGE_FSTYPES = "ext4 iso wic wic.vmdk"

The target directory is /opt/graylog-poky/build.

Then I created the install build with the following bblayers.conf and local.conf with the following customizations

bblayers.conf:
BBLAYERS ?= " \
/opt/graylog-poky/meta \
/opt/graylog-poky/meta-poky \
/opt/graylog-poky/meta-yocto-bsp \
/opt/graylog-poky/meta-graylog \
/opt/graylog-poky/meta-openembedded/meta-oe \
/opt/graylog-poky/meta-openembedded/meta-python \
/opt/graylog-poky/meta-openembedded/meta-networking \
/opt/graylog-poky/meta-openembedded/meta-gnome \
/opt/graylog-poky/meta-openembedded/meta-filesystems \
/opt/graylog-poky/meta-openembedded/meta-initramfs \
/opt/graylog-poky/meta-anaconda \
"
local.conf:
MACHINE ??= "qemux86-64"
PACKAGE_CLASSES ?= "package_ipk" PACKAGE_CLASSES = "package_rpm"
DISTRO = "anaconda"
INSTALLER_TARGET_IMAGE = "core-image-full-cmdline" INSTALLER_TARGET_BUILD = "/opt/graylog-poky/build"

It gave me an iso, when I try to boot in a vmware or on a virtualbox with the iso, it boots up and then after opening up the anaconda installer it comes up with the error message "An unknown error has occurred" and it hangs on the screen.

Any help will be highly appreciated.

Also would like to know if it is possible to boot an x86-64 using the above method.

#2 lore raw

I am using zeus as the yocto version.

I tried both the boot modes Legacy as well as UEFI. But failed. I thing it is a python issue but as the screen is stuck I cannot see the error nor click on debug.

#3 lore raw

Hello All,

I was finally able to view the error message. It says configparser.NoSectionError: No section: 'Rootfs'. This comes as soon as the anaconda installer starts and then it hangs on this screen.

-=Srijan

#4 lore raw

Every time i reboot it, it hangs. But i get to see a piece of error message that I write down. This time before the configparser.NoSectionError: No section: 'Rootfs' error message,

it showed the following lines:

File '/usr/lib/python3.7/site-packages/pyanaconda/threading.py' Before the final error comes up:
configparser.NoSectionError: No section: 'Rootfs'