Running CoreOS Container Linux on libvirt

28 views
Skip to first unread message

Richard Achmatowicz

unread,
Sep 5, 2019, 5:51:55 PM9/5/19
to CoreOS Dev
Hello

I have a physical RHEL 7.7 host with libvir and KVM installed:

[root@clusterdev01 ~]# more /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.7 (Maipo)

[root@clusterdev01 ~]# virsh version --daemon
Compiled against library: libvirt 4.5.0
Using library: libvirt 4.5.0
Using API: QEMU 4.5.0
Running hypervisor: QEMU 1.5.3
Running against daemon: 4.5.0

[root@clusterdev01 ~]# yum list installed '*qemu*'
Installed Packages
ipxe-roms-qemu.noarch                                                    20180825-2.git133f4c.el7                                         @rhel-7-server-rpms
libvirt-daemon-driver-qemu.x86_64                                        4.5.0-23.el7_7.1                                                 @rhel-7-server-rpms
qemu-img.x86_64                                                          10:1.5.3-167.el7_7.1                                             @rhel-7-server-rpms
qemu-kvm.x86_64                                                          10:1.5.3-167.el7_7.1                                             @rhel-7-server-rpms
qemu-kvm-common.x86_64                                                   10:1.5.3-167.el7_7.1                                             @rhel-7-server-rpms

I'm following the instructions listed in https://coreos.com/os/docs/latest/booting-with-libvirt.html to install Container Linux on this physical host.

After creating the domain.xml configuration, as per the instructions, starting the VM fails:

[root@clusterdev01 ~]# virsh start container-linux1 
error: Failed to start domain container-linux1
error: internal error: process exited while connecting to monitor: qemu-kvm: -fw_cfg: invalid option

From a search, I see that the issue was discussed here: https://github.com/openshift/installer/issues/455 and here: https://bugzilla.redhat.com/show_bug.cgi?id=1674422 and both issues were closed.

I saw that a suggested workaround to this is to install the version of qemu-kvm included in RedHat Virtualization, namely qemu-kvm-rhev, but that doing so is not supported: https://access.redhat.com/solutions/629513

To me, this looks like running Container Linux on RHEL 7.7 with libvirt is broken, which isn't great as I wanted to install OpenShift on these hosts.

Any ideas on the best way to get around this issue?

Richard

Richard Achmatowicz

unread,
Sep 6, 2019, 3:10:29 PM9/6/19
to CoreOS Dev
By the way:

RHEL 7.7 (Update 7) was released on August 6, 2019.  

[root@clusterdev01 ~]# /usr/libexec/qemu-kvm --version
QEMU emulator version 1.5.3 (qemu-kvm-1.5.3-167.el7_7.1), Copyright (c) 2003-2008 Fabrice Bellard

The version of the QEMU emulator it uses was released on August 27, 2013. The current version of QEMU is 4.1.0

Richard Achmatowicz

unread,
Sep 9, 2019, 4:06:58 PM9/9/19
to CoreOS Dev
I should have read some of the linked issues above. OpenShift 4 is not supported for RHEL 7 with KVM due to exactly this problem: https://github.com/openshift/installer/pull/675


On Thursday, September 5, 2019 at 5:51:55 PM UTC-4, Richard Achmatowicz wrote:
Reply all
Reply to author
Forward
0 new messages