Red Hat Bugzilla – Bug 1268001
[patch] Make virt-manager recognize RHEL Atomic Host
Last modified: 2016-11-03 21:58:45 EDT
Please apply these changes:
--- .treeinfo.orig 2015-10-01 10:10:27.218978154 -0400
+++ .treeinfo 2015-10-01 10:26:12.159677094 -0400
@@ -1,9 +1,9 @@
-name = RHEL Atomic Host-7
-family = RHEL Atomic Host
+name = Red Hat Enterprise Linux Atomic Host 7.2
+family = Red Hat Enterprise Linux Atomic Host
timestamp = 1443626400.77
-version = 7
+version = 7.2
arch = x86_64
@@ -14,7 +14,7 @@
kernel = images/pxeboot/vmlinuz
initrd = images/pxeboot/initrd.img
upgrade = images/pxeboot/upgrade.img
-installer.iso = images/installer.iso
+boot.iso = images/installer.iso
kernel = images/pxeboot/vmlinuz
This makes Atomic Host similar to RHEL and virt-manager is able to detect the OS type/version properly.
Note: As of now virt-manager detects both RHEL 7.2 and Atomic 7.2 (with the patch applied) as "Red Hat Enterprise Linux 7.0". It's probably a bug in virt-manager but I have not been able to find it yet. Will update Bugzilla when I have more info.
The change to use installer.iso is intentional, as it is different from boot.iso - it includes content. AFAIK virt-manager just uses the kernel/initrd, and the initrd retrieves squashfs, right?
Unfortunately I can't change the name/family because of ISO length limit restrictions. "Red Hat Enterprise Linux" is close to the limit already, and anything after that would break it.
So we'll have to teach virt-manager about this.
See also https://bugzilla.redhat.com/show_bug.cgi?id=1193268 for the first hunk.
I think this is the change required in virt-manager to recognize the Atomic Host ISO as RHEL:
diff --git a/virtinst/urlfetcher.py b/virtinst/urlfetcher.py
index ed062fe..e4a85f0 100644
@@ -818,7 +818,7 @@ class RHELDistro(RedHatDistro):
- m = re.match(".*Red Hat Enterprise Linux.*",
+ m = re.match(".*(Red Hat Enterprise Linux|RHEL).*",
ret = (m is not None)
Could you confirm if it works for you?
Yes, this patch works for me.
(In reply to Colin Walters from comment #2)
> See also https://bugzilla.redhat.com/show_bug.cgi?id=1193268 for the first
I'm looking at it:
Looks like the name is truncated and it looks good. Is this going to update .treeinfo as well ?
It's too late for RHEL-7.2, moving to RHEL-7.3.
I sent the patch upstream:
fixed upstream by:
Author: Giuseppe Scrivano <email@example.com>
Date: Mon Oct 5 09:41:09 2015 +0200
urlfetcher: Recognize RHEL Atomic Host ISOs
Signed-off-by: Giuseppe Scrivano <firstname.lastname@example.org>
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see email@example.com with any questions
I gave a try for installing rhel-atomic-installer-7.1-1.x86_64.iso and rhel-atomic-installer-7.2-13.x86_64.iso w/ virt-manager-1.3.2-1.el7.noarch, but the result is failed, it exists sevaral questions.
1. automatically detect OS based on install media
it's okay for rhel-atomic-installer-7.1-1
it's not okay for rhel-atomic-installer-7.2-13
OS type: Unknown
2. customize OS type to Linux (for rhel-atomic-installer-7.2-13)
Version only provides Red Hat Enterprise Linux Atomic Host 7.0 and 7.1, there is no 7.2, which should be in production since Nov 11, 2015.
3. can't succesfully install rhel-atomic-installer-7.1-1 or rhel-atomic-installer-7.2-13, got error as follows.
Unable to complete install: 'internal error: process exited while connecting to monitor: 2016-05-04T10:10:56.815367Z qemu-kvm: -chardev pty,id=charserial0: Failed to create PTY: Operation not permitted'
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 90, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/create.py", line 2277, in _do_async_install
File "/usr/share/virt-manager/virtinst/guest.py", line 501, in start_install
File "/usr/share/virt-manager/virtinst/guest.py", line 416, in _create_guest
dom = self.conn.createLinux(start_xml or final_xml, 0)
File "/usr/lib64/python2.7/site-packages/libvirt.py", line 3585, in createLinux
if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: internal error: process exited while connecting to monitor: 2016-05-04T10:10:56.815367Z qemu-kvm: -chardev pty,id=charserial0: Failed to create PTY: Operation not permitted
# rpm -q virt-manager virt-install libvirt qemu-kvm-rhev libosinfo
Would you pls help to check comment 11,thanks.
Hi, the information is obtained from libosinfo package so I guess that you need to create a bug to update libosinfo to include the new version of RHEL Atomic.
(In reply to Pavel Hrdina from comment #13)
> Hi, the information is obtained from libosinfo package so I guess that you
> need to create a bug to update libosinfo to include the new version of RHEL
Thanks for your reply.
File a bug against libosinfo:
Bug 1268001 - [patch] Make virt-manager recognize RHEL Atomic Host
Verify with new build:
1. Prepare install media rhel-atomic-installer-7.1-1.x86_64.iso .
2. Lauch virt-manager.
3. Click Create A New Virtual Machine and Select "Local Install Media".
4. In step 2 of 5, Browse "rhel-atomic-installer-7.1-1.x86_64.iso", check automatically detect OS.
5. Then untick automatically detect OS based on install media. Select linux as OS type, check version drop list.
6. Continue the installation to check if it can be installed successfully.
After step4, automatically detect OS as as "Red Hat Enterprise Linux Atomic Host 7.1".
After step5, there are "Red Hat Enterprise Linux Atomic Host 7.0" and "Red Hat Enterprise Linux Atomic Host 7.1" in drop list.
After step6, the guest can be installed successfully.
According to the result above in the latest version of virt-manager, move this bug from ON_QA to VERIFIED.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.