[virt-tools-list] [virt-install PATCH v2 00/14] Add support for unattended installations

Fabiano Fidêncio fidencio at redhat.com
Fri Feb 22 08:40:07 UTC 2019

This series add support for *network* (--location) unattended
installations of a few OSes that libosinfo/osinfo-db provides support
- Fedora;
- CentOS;
- Debian;
- openSUSE;
- Ubuntu*;

*: Ubuntu needs some pending patches for osinfo-db;

One example** of how to perform a unattended installation is:
`virt-install \
    --name fedora29 \
    --os-variant fedora29 \
    --unattended profile=desktop`

**: https://www.redhat.com/archives/libosinfo/2019-February/msg00173.html
    is needed in order to have the example above working properly

The TODO list:
- Work on Linuxes medias ("--cdrom") unattended installations:
  This will make me bump libosinfo dep to 1.4.0 and we'll also require
  some patches for osinfo-db;
- Work on Windowses medias ("--cdrom") unattended installations:
- Tests, tests, tests ...
- Update man-pages

- Changes since v1:
  - Tried to address comments 2, 2, 4 from Cole's review***, although I
    didn't get to write tests for those changes (yet)
    ***: https://www.redhat.com/archives/virt-tools-list/2019-February/msg00051.html

gitlab: https://gitlab.com/fidencio/virt-manager/tree/wip/v2_unattended

Fabiano Fidêncio (14):
  virt-install: Add --unattended
  osdict: Add get_install_script()
  osdict: Add get_install_script_config()
  osdict: Properly set the timezone for the install script config
  osdict: Properly set language and kbd layout for install script config
  osdict: Add set_install_script_preferred_injection_method()
  osdict: Add set_install_script_installation_source()
  osdict: Add methods for generating the script and its cmdline
  unattended: Add helper method to generate the install script
  installertreemedia: Add unattended_data to the class
  installer: Add set_unattended_data() method
  installertreemedia: Perform a unattended installation
  virt-install: --unattended conflicts with --initrd-inject and
  virt-install: Make --unattended useful

 tests/clitest.py               |   6 +-
 virt-install                   |  28 ++++-
 virtinst/cli.py                |  26 ++++-
 virtinst/installer.py          |   4 +
 virtinst/installertreemedia.py |  24 +++-
 virtinst/osdict.py             | 202 +++++++++++++++++++++++++++++++++
 virtinst/unattended.py         |  45 ++++++++
 7 files changed, 328 insertions(+), 7 deletions(-)
 create mode 100644 virtinst/unattended.py


More information about the virt-tools-list mailing list