[virt-tools-list] [virt-manager PATCH 2/5] virt-install: Add "Guest OS" options group

Andrea Bolognani abologna at redhat.com
Fri Nov 9 15:36:37 UTC 2018


The --os-variant option doesn't quite fit perfectly into
its current "Installation method" group, plus we want to
add the same option to virt-xml which can't have that
group for obvious reasons.

Signed-off-by: Andrea Bolognani <abologna at redhat.com>
---
 man/virt-install.pod | 38 +++++++++++++++++++++++---------------
 virt-install         | 10 +++++-----
 2 files changed, 28 insertions(+), 20 deletions(-)

diff --git a/man/virt-install.pod b/man/virt-install.pod
index ace0fb8a..df2d788c 100644
--- a/man/virt-install.pod
+++ b/man/virt-install.pod
@@ -472,21 +472,6 @@ file:
 
 --initrd-inject=/path/to/my.ks --extra-args "ks=file:/my.ks"
 
-=item B<--os-variant> OS_VARIANT
-
-Optimize the guest configuration for a specific operating system (ex.
-'fedora29', 'rhel7', 'win10'). While not required, specifying this
-options is HIGHLY RECOMMENDED, as it can greatly increase performance
-by specifying virtio among other guest tweaks.
-
-By default, virt-install will attempt to auto detect this value from
-the install media (currently only supported for URL installs). Autodetection
-can be disabled with the special value 'none'. Autodetection can be
-forced with the special value 'auto'.
-
-Use the command "osinfo-query os" to get the list of the accepted OS
-variants.
-
 =item B<--boot> BOOTOPTS
 
 Optionally specify the post-install VM boot configuration. This option allows
@@ -573,6 +558,29 @@ Use --idmap=? to see a list of all available sub options. Complete details at L<
 
 
 
+=head1 GUEST OS OPTIONS
+
+=over 4
+
+=item B<--os-variant> OS_VARIANT
+
+Optimize the guest configuration for a specific operating system (ex.
+'fedora29', 'rhel7', 'win10'). While not required, specifying this
+options is HIGHLY RECOMMENDED, as it can greatly increase performance
+by specifying virtio among other guest tweaks.
+
+By default, virt-install will attempt to auto detect this value from
+the install media (currently only supported for URL installs). Autodetection
+can be disabled with the special value 'none'. Autodetection can be
+forced with the special value 'auto'.
+
+Use the command "osinfo-query os" to get the list of the accepted OS
+variants.
+
+=back
+
+
+
 
 =head1 STORAGE OPTIONS
 
diff --git a/virt-install b/virt-install
index 2c379ed3..4e16d4c8 100755
--- a/virt-install
+++ b/virt-install
@@ -784,14 +784,14 @@ def parse_args():
     insg.add_argument("--test-stub-command", action="store_true",
             help=argparse.SUPPRESS)
 
-    insg.add_argument("--os-type", dest="distro_type", help=argparse.SUPPRESS)
-    insg.add_argument("--os-variant", dest="distro_variant",
-        help=_("The OS variant being installed in the guest, "
-               "e.g. 'fedora29', 'rhel7', 'win10 etc."))
-
     cli.add_boot_options(insg)
     insg.add_argument("--init", help=argparse.SUPPRESS)
 
+    osg = parser.add_argument_group(_("Guest OS Options"))
+    osg.add_argument("--os-type", dest="distro_type", help=argparse.SUPPRESS)
+    osg.add_argument("--os-variant", dest="distro_variant",
+        help=_("The OS variant being installed in the guest, "
+               "e.g. 'fedora29', 'rhel7', 'win10 etc."))
 
     devg = parser.add_argument_group(_("Device Options"))
     cli.add_disk_option(devg)
-- 
2.19.1




More information about the virt-tools-list mailing list