|
|
4ebc84 |
From 5686e157c90ccbe65d7c719f53d36028b6364b11 Mon Sep 17 00:00:00 2001
|
|
|
4ebc84 |
From: Pino Toscano <ptoscano@redhat.com>
|
|
|
4ebc84 |
Date: Thu, 28 Feb 2019 11:00:27 +0100
|
|
|
4ebc84 |
Subject: [PATCH] v2v: -o libvirt: write win2k19 osinfo ID
|
|
|
4ebc84 |
|
|
|
4ebc84 |
When writing the libosinfo metadata in the libvirt XML, use the newly
|
|
|
4ebc84 |
added (in osinfo-db) ID for Windows Server 2019; sadly, this version of
|
|
|
4ebc84 |
Windows has the same version as Windows Server 2016, so distinguish it
|
|
|
4ebc84 |
by looking at its product name.
|
|
|
4ebc84 |
|
|
|
4ebc84 |
(cherry picked from commit bb11507fff8c65275afc0f29806d3b3de387c7f9)
|
|
|
4ebc84 |
---
|
|
|
4ebc84 |
v2v/create_libvirt_xml.ml | 5 +++++
|
|
|
4ebc84 |
1 file changed, 5 insertions(+)
|
|
|
4ebc84 |
|
|
|
4ebc84 |
diff --git a/v2v/create_libvirt_xml.ml b/v2v/create_libvirt_xml.ml
|
|
|
4ebc84 |
index a8dc1f2f0..dbc24315f 100644
|
|
|
4ebc84 |
--- a/v2v/create_libvirt_xml.ml
|
|
|
4ebc84 |
+++ b/v2v/create_libvirt_xml.ml
|
|
|
4ebc84 |
@@ -124,6 +124,11 @@ let get_osinfo_id = function
|
|
|
4ebc84 |
| { i_type = "windows"; i_major_version = 6; i_minor_version = 3 } ->
|
|
|
4ebc84 |
Some "http://microsoft.com/win/8.1"
|
|
|
4ebc84 |
|
|
|
4ebc84 |
+ | { i_type = "windows"; i_major_version = 10; i_minor_version = 0;
|
|
|
4ebc84 |
+ i_product_variant = "Server"; i_product_name = product }
|
|
|
4ebc84 |
+ when String.find product "2019" >= 0 ->
|
|
|
4ebc84 |
+ Some "http://microsoft.com/win/2k19"
|
|
|
4ebc84 |
+
|
|
|
4ebc84 |
| { i_type = "windows"; i_major_version = 10; i_minor_version = 0;
|
|
|
4ebc84 |
i_product_variant = "Server" } ->
|
|
|
4ebc84 |
Some "http://microsoft.com/win/2k16"
|
|
|
4ebc84 |
--
|
|
|
4ebc84 |
2.21.0
|
|
|
4ebc84 |
|