Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1694890

Summary: Host installation fails with error "OSError: [Errno 2] No such file or directory: 'new-kernel-pkg'"
Product: Red Hat Enterprise Virtualization Manager Reporter: Abhishekh Patil <abpatil>
Component: redhat-virtualization-hostAssignee: Yuval Turgeman <yturgema>
Status: CLOSED NOTABUG QA Contact: cshao <cshao>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.2.8CC: cshao, huzhao, jikwang, lsurette, nlevy, qiyuan, sbonazzo, weiwang, yaniwang, ycui, yturgema
Target Milestone: ---Flags: lsvaty: testing_plan_complete-
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-02 06:22:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Node RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 1 Qin Yuan 2019-04-02 05:39:03 UTC
In the customer ticket, I saw "liveimg --url=ftp://ipaddr/pub/rhvh/LiveOS/squashfs.img" was specified in the ks file, squashfs.img under LiveOS was used as the installation image, which is incorrect. Users should follow section "5.2.2.1" in https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.2/html/installation_guide/advanced_rhvh_install to extract the squashfs.img from RHVH ISO:
"
6. Extract the squashfs.img hypervisor image file from the RHVH ISO:

# mount -o loop /path/to/RHVH-ISO /mnt/rhvh
# cp /mnt/rhvh/Packages/redhat-virtualization-host-image-update* /tmp
# cd /tmp
# rpm2cpio redhat-virtualization-host-image-update* | cpio -idmv 

This squashfs.img file, located in the /tmp/usr/share/redhat-virtualization-host/image/ directory, is called redhat-virtualization-host-version_number_version.squashfs.img. It contains the hypervisor image for installation on the physical machine. It should not be confused with the /LiveOS/squashfs.img file, which is used by the Anaconda inst.stage2 option. 
"

BTW, I tried to install RHVH using LiveOS/squashfs.img in RHVH-4.2-20190219.0-RHVH-x86_64-dvd1.iso, the installation failed with the same error "OSError: [Errno 2] No such file or directory: 'new-kernel-pkg'". While using redhat-virtualization-host-4.2-20190219.0.el7_6.squashfs.img extracted from RHVH-4.2-20190219.0-RHVH-x86_64-dvd1.iso, installation succeeded.

Comment 2 Yuval Turgeman 2019-04-02 06:20:32 UTC
*** Bug 1694889 has been marked as a duplicate of this bug. ***

Comment 3 Yuval Turgeman 2019-04-02 06:22:01 UTC
Qin is correct, closing based on comment 1