Re: Plans for the new Ubuntu installer and a new release?

2020-05-29 Thread Fabiano Fidêncio
e even happier to review a MR adding the unattended scripts for the new installer. Best Regards, -- Fabiano Fidêncio

Re: virt-install command line provide additional parameters. Automating KVM VM creation using automation tool

2020-05-10 Thread Fabiano Fidêncio
top|jeos),admin-password-file=/path/to/admin/password/file,user-password-file=/path/to/user/password/file This second option will rely on the libosinfo project to get the optimal values for memory, vcpus, disk size, os-variant, etc. Best Regards, -- Fabiano Fidêncio

Re: [virt-tools-list] [virt-viewer PATCH] ovirt-foreign-menu: Fix warnings on Rawhide

2019-08-15 Thread Fabiano Fidêncio
On Thu, Aug 15, 2019 at 9:03 PM Eduardo Lima (Etrunko) wrote: > > On 8/15/19 12:07 PM, Fabiano Fidêncio wrote: > > gmaovirt-foreign-menu.c: In function 'storage_domains_fetched_cb': > > ovirt-foreign-menu.c:721:9: error: format not a string literal and no > >

[virt-tools-list] [virt-viewer PATCH] ovirt-foreign-menu: Fix warnings on Rawhide

2019-08-15 Thread Fabiano Fidêncio
awhide/589/ Signed-off-by: Fabiano Fidêncio --- src/ovirt-foreign-menu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ovirt-foreign-menu.c b/src/ovirt-foreign-menu.c index 75f9ac4..4ec0858 100644 --- a/src/ovirt-foreign-menu.c +++ b/src/ovirt-foreign-menu.c @@ -71

[virt-tools-list] [virt-manager PATCH] virt-install: Use minutes instead of seconds on get_time_string()

2019-07-25 Thread Fabiano Fidêncio
installation to complete. Signed-off-by: Fabiano Fidêncio --- virt-install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virt-install b/virt-install index af6c75bf..8efa4960 100755 --- a/virt-install +++ b/virt-install @@ -610,7 +610,7 @@ class WaitHandler: self

[virt-tools-list] [virt-manager PATCH 9/9] osdict: Use identify_tree()

2019-07-16 Thread Fabiano Fidêncio
Let's use identify_tree(), which is part of libosinfo v1.6.0 release, instead of using guess_os_from_tree(). The API has been implemented on libosinfo in order to be consistent with what was already done for medias. Signed-off-by: Fabiano Fidêncio --- virtinst/osdict.py | 15 +++--

[virt-tools-list] [virt-manager PATCH 7/9] unattended, installer: Pass _OsTree to prepare_install_script()

2019-07-16 Thread Fabiano Fidêncio
Later on, it'll be used to generate the install-script and the kernel command-line based on the specific tree being used. Signed-off-by: Fabiano Fidêncio --- virtinst/install/installer.py | 5 - virtinst/install/unattended.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-)

[virt-tools-list] [virt-manager PATCH 8/9] unattended: Use generate_*_for_tree()

2019-07-16 Thread Fabiano Fidêncio
nerate the install-script and kernel command-line. It's important to mention that those APIs are part of libosinfo v1.6.0 release and that's the reason the check for them has been added. Signed-off-by: Fabiano Fidêncio --- virtinst/install/unattended.py | 19 ---

[virt-tools-list] [virt-manager PATCH 5/9] installertreemedia: Add os_tree to the _LocationData class

2019-07-16 Thread Fabiano Fidêncio
Let's get the _OsTree object and have it added to the _LocationData class. Signed-off-by: Fabiano Fidêncio --- virtinst/install/installertreemedia.py | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/virtinst/install/installertreemedia.py b/virtinst/in

[virt-tools-list] [virt-manager PATCH 6/9] installertreemedia: Add get_os_tree()

2019-07-16 Thread Fabiano Fidêncio
Let's allow to get the tree object from InstallerTreeMedia class. Signed-off-by: Fabiano Fidêncio --- virtinst/install/installertreemedia.py | 5 + 1 file changed, 5 insertions(+) diff --git a/virtinst/install/installertreemedia.py b/virtinst/install/installertreemedia.py index 6b9

[virt-tools-list] [virt-manager PATCH 4/9] urldetect: Add get_os_tree()

2019-07-16 Thread Fabiano Fidêncio
Let's add a method that allows the tree object to be retrieved from the _DistroTree class. Signed-off-by: Fabiano Fidêncio --- virtinst/install/urldetect.py | 6 ++ 1 file changed, 6 insertions(+) diff --git a/virtinst/install/urldetect.py b/virtinst/install/urldetect.py index d20

[virt-tools-list] [virt-manager PATCH 2/9] osdict: Return a _OsTree instead of OsinfoTree when guessing an OS

2019-07-16 Thread Fabiano Fidêncio
Instead of returning an OsinfoTree, let's be consistent with what we already do in guess_os_from_iso() and return our internal _OsTree object. This change doesn't affect any code as the only place using it doesn't care about the returned tree object. Signed-off-by: F

[virt-tools-list] [virt-manager PATCH 1/9] osdict: Add _OsTree() class

2019-07-16 Thread Fabiano Fidêncio
Similarly to the _OsMedia() class, let's create a _OsTree() class which, at least for now, has only one method that returns the OsinfoTree object. Although this class & method are not extrictly needed, having them makes the code more consistent. Signed-off-by: Fabiano Fidêncio ---

[virt-tools-list] [virt-manager PATCH 0/9] Use generate_*_for_tree

2019-07-16 Thread Fabiano Fidêncio
Let's use generate_*_for_tree() whenever it's possible in order to have the install-script and kernel command-line generated specifically for the tree being used. Fabiano Fidêncio (9): osdict: Add _OsTree() class osdict: Return a _OsTree instead of OsinfoTree when guessing an OS

[virt-tools-list] [virt-manager PATCH 3/9] urldetect: Store _OsTree object

2019-07-16 Thread Fabiano Fidêncio
As already done for _OsMedia, let's store the _OsTree object detected as it'll be used later on in order to improve the installer script and the kernel command line used for (tree based) unattended installations. Signed-off-by: Fabiano Fidêncio --- virtinst/install/urldetect.py | 4 ++

Re: [virt-tools-list] [virt-manager PATCH] cloudinit: Add root-password-generate=yes|no instead of root-password=xxxx

2019-07-16 Thread Fabiano Fidêncio
gt; @@ -21,12 +21,10 @@ class CloudInitData(): > return fobj.readline().rstrip("\n\r") > > def get_root_password(self): > -if self.root_password == "generate": > +if self.root_password_generate: > return self.generate_password() > elif self.root_password_file: > return self._get_password(self.root_password_file) > -else: > -return self.root_password > > > def create_metadata(scratchdir): > -- > 2.20.1 > > ___ > virt-tools-list mailing list > virt-tools-list@redhat.com > https://www.redhat.com/mailman/listinfo/virt-tools-list Reviewed-by: Fabiano Fidêncio ___ virt-tools-list mailing list virt-tools-list@redhat.com https://www.redhat.com/mailman/listinfo/virt-tools-list

Re: [virt-tools-list] [vort-manager PATCH v2] cloudinit: Add cli option root-password-file=/path/to/file

2019-07-16 Thread Fabiano Fidêncio
; +return fobj.readline().rstrip("\n\r") > + Not for now, but later on we can have this together with the one used for unattended-installations. > def get_root_password(self): > if self.root_password == "generate": > return self.generate_pa

[virt-tools-list] [virt-manager PATCH 3/5] unattended: Pass OsinfoMedia to OSInstallScript

2019-07-12 Thread Fabiano Fidêncio
Let's pass the OsinfoMedia object down to the OSInstallScript class so it can be used, later on, to generate the install-script and kernel command-line specifically for the media being used. Signed-off-by: Fabiano Fidêncio --- virtinst/install/unattended.py | 7 +-- 1 file chang

[virt-tools-list] [virt-manager PATCH 2/5] osdict: Add get_osinfo_media() to _OsMedia class

2019-07-12 Thread Fabiano Fidêncio
Let's add a way to get the OsinfoMedia from the _OsMedia class. It's going to be needed in order to properly generate the command line for the unattended installations, when doing an installation from a media. Signed-off-by: Fabiano Fidêncio --- virtinst/osdict.py | 3 +++ 1 file

[virt-tools-list] [virt-manager PATCH 4/5] unattended: Use generate_*_for_media when possible

2019-07-12 Thread Fabiano Fidêncio
PI or not. Signed-off-by: Fabiano Fidêncio --- virtinst/install/unattended.py | 8 1 file changed, 8 insertions(+) diff --git a/virtinst/install/unattended.py b/virtinst/install/unattended.py index 98bcbb21..e34b8ae2 100644 --- a/virtinst/install/unattended.py +++ b/virtinst/install/unatte

[virt-tools-list] [virt-manager PATCH 0/5] unattended: Use generate_*_for_media() APIs

2019-07-12 Thread Fabiano Fidêncio
just using the normal resources. Fabiano Fidêncio (5): unattended: Simplify _generate_debug() osdict: Add get_osinfo_media() to _OsMedia class unattended: Pass OsinfoMedia to OSInstallScript unattended: Use generate_*_for_media when possible unattended: Always set "media" as

[virt-tools-list] [virt-manager PATCH 5/5] unattended: Always set "media" as install-source for ISOs

2019-07-12 Thread Fabiano Fidêncio
Let's set "media" as installation source for all the ISOs, even the net-installer ones, as this can be dealt with on osinfo-db side. Signed-off-by: Fabiano Fidêncio --- .../compare/virt-install-osinfo-netinst-unattended.xml| 2 +- virtinst/instal

[virt-tools-list] [virt-manager PATCH 1/5] unattended: Simplify _generate_debug()

2019-07-12 Thread Fabiano Fidêncio
Instead of a creating a new Config object and setting and the needed fields, let's just save the original user & admin passwords, set the "[SCRUBBLED]" one for generating the debug output, and reset the original values after that. Signed-off-by: Fabiano Fidêncio --

Re: [virt-tools-list] [virt-bootstrap PATCHv2 0/3] Resolve SElinux issues

2019-07-05 Thread Fabiano Fidêncio
On Fri, Jul 5, 2019 at 10:30 AM Fabiano Fidêncio wrote: > > On Fri, Jul 5, 2019 at 9:10 AM Cedric Bosdonnat wrote: > > > > Hey! > > > > I know nothing of SELinux, the patches look good though I'm helpless on > > that topic. > > Please, let me give

Re: [virt-tools-list] [virt-bootstrap PATCHv2 0/3] Resolve SElinux issues

2019-07-05 Thread Fabiano Fidêncio
On Fri, Jul 5, 2019 at 9:10 AM Cedric Bosdonnat wrote: > > Hey! > > I know nothing of SELinux, the patches look good though I'm helpless on > that topic. Please, let me give it a try before pushing. I'll do so after lunch and give my Ack here. :-) > > -- > Cedric > > On Thu, 2019-07-04 at 21:59

[virt-tools-list] [virt-bootstrap PATCH] Don't expose the root_password via command line

2019-07-05 Thread Fabiano Fidêncio
file:' selector should be used instead. Signed-off-by: Fabiano Fidêncio --- man/virt-bootstrap.pod | 16 ++-- src/virtBootstrap/__init__.py | 2 +- src/virtBootstrap/virt_bootstrap.py | 14 ++ tests/__init__.py | 8 ++

[virt-tools-list] [virt-manager PATCH v2 2/2] unattended: Don't log user & admin passwords

2019-07-03 Thread Fabiano Fidêncio
0183' has been assigned to the virt-install --unattended admin-password=xxx disclosure issue. Signed-off-by: Fabiano Fidêncio --- virtinst/install/unattended.py | 26 +++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/virtinst/install/unattended.py

[virt-tools-list] [virt-manager PATCH v2 0/2] unattended: Don't expose user & admin passwords

2019-07-03 Thread Fabiano Fidêncio
archives/virt-tools-list/2019-July/msg00013.html - passowrd -> password; - pwd.read().rstrip("\n\r") -> pwd.readline().rstrip("\n\r") + document this in our manpage; - create a new config, with the sanitised password, and use it to print the script content as a debug

[virt-tools-list] [virt-manager PATCH v2 1/2] unattended: Read the passwords from a file

2019-07-03 Thread Fabiano Fidêncio
Let's not expose the user/root password in the CLI and, instead, let's rely on a file passed by the admin and read the password from there. 'CVE-2019-10183' has been assigned to the virt-install --unattended admin-password=xxx disclosure issue. Signed-off-by: Fabiano Fid

Re: [virt-tools-list] [virt-manager PATCH 2/2] unattended: Don't log user & admin passwords

2019-07-03 Thread Fabiano Fidêncio
On Wed, Jul 3, 2019 at 1:54 PM Pavel Hrdina wrote: > > On Tue, Jul 02, 2019 at 09:21:45PM +0200, Fabiano Fidêncio wrote: > > Logging user & admin passwords in the command-line is a security issue, > > let's avoid doing so by: > > - Not printing the values se

Re: [virt-tools-list] [virt-manager PATCH 1/2] unattended: Read the passwords from a file

2019-07-03 Thread Fabiano Fidêncio
On Wed, Jul 3, 2019 at 10:53 AM Pavel Hrdina wrote: > > On Tue, Jul 02, 2019 at 09:21:44PM +0200, Fabiano Fidêncio wrote: > > Let's not expose the user/root password in the CLI and, instead, let's > > rely on a file passed by the admin and read the password from th

[virt-tools-list] [virt-manager PATCH 2/2] unattended: Don't log user & admin passwords

2019-07-02 Thread Fabiano Fidêncio
0183' has been assigned to the virt-install --unattended admin-password=xxx disclosure issue. Signed-off-by: Fabiano Fidêncio --- virtinst/install/unattended.py | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/virtinst/install/unattended.py b/virtinst/install/

[virt-tools-list] [virt-manager PATCH 0/2] unattended: Don't expose user & admin passwords

2019-07-02 Thread Fabiano Fidêncio
Let's not expose user & admin passwords neither by having an option to be used to set those passwords nor in the debug messages. 'CVE-2019-10183' has been assigned to the virt-install --unattended admin-password=xxx disclosure issue. Fabiano Fidêncio (2): unattended: Read t

[virt-tools-list] [virt-manager PATCH 1/2] unattended: Read the passwords from a file

2019-07-02 Thread Fabiano Fidêncio
Let's not expose the user/root password in the CLI and, instead, let's rely on a file passed by the admin and read the password from there. 'CVE-2019-10183' has been assigned to the virt-install --unattended admin-password=xxx disclosure issue. Signed-off-by: Fabiano Fid

Re: [virt-tools-list] [virt-manager PATCH] osdict: Use identify_tree() instead of guess_os_from_tree()

2019-06-26 Thread Fabiano Fidêncio
On Wed, Jun 26, 2019 at 4:38 PM Cole Robinson wrote: > > On 6/26/19 7:43 AM, Fabiano Fidêncio wrote: > > guess_os_from_tree() has been depracated in libosinfo 1.6.0 release and > > identify_tree() should be used instead. > > > > Signed-off-by: Fabiano Fidêncio >

[virt-tools-list] [virt-manager PATCH] osdict: Use identify_tree() instead of guess_os_from_tree()

2019-06-26 Thread Fabiano Fidêncio
guess_os_from_tree() has been depracated in libosinfo 1.6.0 release and identify_tree() should be used instead. Signed-off-by: Fabiano Fidêncio --- I'm aware of the "let's not depend on something new for things that are not crucial" policy ... although as I'm alre

Re: [virt-tools-list] [virt-manager PATCH] installer: Prefer "cdrom" over "floppy"

2019-06-07 Thread Fabiano Fidêncio
gt; >> > > On Fri, Jun 07, 2019 at 12:00:56PM +0200, Fabiano Fidêncio wrote: >> > > > Instead of using "floppy" as the way to perform unattended >> > > > installations >> > > > for Windoes, let's prefer using "cdro

[virt-tools-list] [virt-manager PATCH 1/3] unattended: Do not create a "unattended" dir

2019-06-07 Thread Fabiano Fidêncio
Let's just use mktemp() as done in several other places and avoid the risk of having the content of the folder overwritten in case of parallel installations. Signed-off-by: Fabiano Fidêncio --- virtinst/unattended.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vir

[virt-tools-list] [virt-manager PATCH 2/3] installer: Log when cleaning up the unattended files

2019-06-07 Thread Fabiano Fidêncio
Similarly to what's already done in installertreeinfo.py, let's log when removing the files used during the unattended installation. Signed-off-by: Fabiano Fidêncio --- virtinst/installer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/virtinst/installer.py b/virtinst/installe

[virt-tools-list] [virt-manager PATCH 0/3] A few cleanups related to unattended installation

2019-06-07 Thread Fabiano Fidêncio
that's not desirable, just ignore the patch. Fabiano Fidêncio (3): unattended: Do not create a "unattended" dir installer: Log when cleaning up the unattended files installer*.py: Remove temporary dirs virtinst/installer.py | 11 +++ virtinst/installertreemed

[virt-tools-list] [virt-manager PATCH 3/3] installer*.py: Remove temporary dirs

2019-06-07 Thread Fabiano Fidêncio
Together with the temporary files removal, let's also remove the directories created to store those files. Signed-off-by: Fabiano Fidêncio --- virtinst/installer.py | 10 ++ virtinst/installertreemedia.py | 9 + 2 files changed, 19 insertions(+) diff --git a/vir

[virt-tools-list] [virt-manager PATCH] installer: Prefer "cdrom" over "floppy"

2019-06-07 Thread Fabiano Fidêncio
rating the ISO depends on genisofs, tho. However, it's not a big deal as genisofs is already a virt-manager dependency. Signed-off-by: Fabiano Fidêncio --- virt-manager.spec.in | 5 virtinst/{floppyinject.py => cdrominject.py} | 26 +++

Re: [virt-tools-list] [virt-manager PATCH 07/12] unattended: Prefer cdrom instead of floppy for Windows

2019-06-06 Thread Fabiano Fidêncio
On Thu, Jun 6, 2019 at 4:12 PM Fabiano Fidêncio wrote: > > Instead of using "floppy" as the way to perform unattended installations > for Windows, let's prefer using "cdrom" instead. > > The main reasons behind this change are: > - VMs using q35 may

[virt-tools-list] [virt-manager PATCH 12/12] installer: pre/post install drivers

2019-06-06 Thread Fabiano Fidêncio
Let's download and pre/post install the drivers available. In order to do so, we have to keep the cdrom containing the files as it'll be used after the machine does its first reboot. Signed-off-by: Fabiano Fidêncio --- virtinst/installer.py | 20 ++-- 1 file c

[virt-tools-list] [virt-manager PATCH 09/12] osdict: Also return pre-installable devices as part of _get_all_devices()

2019-06-06 Thread Fabiano Fidêncio
When getting all_devices(), we should also take into consideration the pre-installable drivers. Signed-off-by: Fabiano Fidêncio --- virtinst/osdict.py | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/virtinst/osdict.py b/virtinst/osdict.py index 90aa3d5d..31446380

[virt-tools-list] [virt-manager PATCH 11/12] unattended: Deal with multiple install scripts

2019-06-06 Thread Fabiano Fidêncio
Windows(es) may provide more than one installer script. Those scripts are used to perform pre/post installation of drivers. Signed-off-by: Fabiano Fidêncio --- virtinst/installer.py | 16 ++-- virtinst/installertreemedia.py | 18 ++ virtinst/osdict.py

[virt-tools-list] [virt-manager PATCH 08/12] osdict: Add methods to deal with pre/post install drivers

2019-06-06 Thread Fabiano Fidêncio
Let's add a couple of methods to: - get the pre/post installable drivers (these will return a list of OsinfoDeviceDrivers); - get the pre/post installable drivers location (these will return a list of strings); Signed-off-by: Fabiano Fidêncio --- virtinst/osdict.py

[virt-tools-list] [virt-manager PATCH 05/12] installer: Log when cleaning up the unattended files

2019-06-06 Thread Fabiano Fidêncio
Similarly to what's already done in installertreeinfo.py, let's log when removing the files used during the unattended installation. Signed-off-by: Fabiano Fidêncio --- virtinst/installer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/virtinst/installer.py b/virtinst/installe

[virt-tools-list] [virt-manager PATCH 04/12] installer: Cleanup process id & unattended cache dirs

2019-06-06 Thread Fabiano Fidêncio
Any unattended installation creates a (or similar to) ~/.cache/virt-manager/$pid/unattended directory where the unattended installations related files are stored. Let's clean those dirs up during the clean up process. Signed-off-by: Fabiano Fidêncio --- virtinst/installer.py | 10

[virt-tools-list] [virt-manager PATCH 10/12] unattended: Add method to download drivers

2019-06-06 Thread Fabiano Fidêncio
This will be used by unattended installations. The drivers are downloaded in the very same directory where the unattended files are generated. Signed-off-by: Fabiano Fidêncio --- virtinst/unattended.py | 16 1 file changed, 16 insertions(+) diff --git a/virtinst/unattended.py

[virt-tools-list] [virt-manager PATCH 06/12] installertreemedia: Cleanup process id & unattended cache dirs

2019-06-06 Thread Fabiano Fidêncio
Any unattended installation creates a (or similar to) ~/.cache/virt-manager/$pid/unattended directory where the unattended installations related files are stored. Let's clean those dirs up during the clean up process. Signed-off-by: Fabiano Fidêncio --- virtinst/installertreemedia.p

[virt-tools-list] [virt-manager PATCH 01/12] util: Add {make, get}_unattended_cache_dir()

2019-06-06 Thread Fabiano Fidêncio
s created by the "make" method. Signed-off-by: Fabiano Fidêncio --- virtinst/util.py | 13 + 1 file changed, 13 insertions(+) diff --git a/virtinst/util.py b/virtinst/util.py index 7219d49f..d8b19b7e 100644 --- a/virtinst/util.py +++ b/virtinst/util.py @@ -271,6 +27

[virt-tools-list] [virt-manager PATCH 07/12] unattended: Prefer cdrom instead of floppy for Windows

2019-06-06 Thread Fabiano Fidêncio
rating the ISO depends on genisofs, which is not a big deal as it's already a virt-manager dependency. Signed-off-by: Fabiano Fidêncio --- virt-manager.spec.in | 5 - virtinst/cdrominject.py | 26 ++ virtinst/floppyinject.py | 35

[virt-tools-list] [virt-manager PATCH 03/12] floppyinject: Simplify perform_floppy_injections()

2019-06-06 Thread Fabiano Fidêncio
Instead of passing a scratch dir and creating another dir inside it, let's just take advantage of util's util.make_unattended_cache_dir() and create the "unattended.img" file there. Signed-off-by: Fabiano Fidêncio --- virtinst/floppyinject.py | 11 +-- virtinst/

[virt-tools-list] [virt-manager PATCH 02/12] unattended: Use make_unattended_cache_dir()

2019-06-06 Thread Fabiano Fidêncio
Let's use this util's method and avoid creating the cache dir by our own. Signed-off-by: Fabiano Fidêncio --- virtinst/unattended.py | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/virtinst/unattended.py b/virtinst/unattended.py index 11de2fed..e79c1a47 10

[virt-tools-list] [virt-manager PATCH 00/12] A few fixes/improvements for Windows(es) unattended install

2019-06-06 Thread Fabiano Fidêncio
when dealing with unattended installs? - Everytime the unattended cdrom is added, a new pool is created. It's already the current behaviour with the floppy. Fabiano Fidêncio (12): util: Add {make,get}_unattended_cache_dir() unattended: Use make_unattended_cache_dir()

Re: [virt-tools-list] [virt-manager PATCH] cli: Add --iothreads

2019-06-03 Thread Fabiano Fidêncio
"maxMemory", "maxMemorySlots", "memory", "_currentMemory", > "blkiotune", "memtune", "memoryBacking", > "_vcpus", "vcpu_current", "vcpu_placement", > @@ -178,7 +178,9 @@

Re: [virt-tools-list] [virt-manager PATCH v2] cli: Add --disk rawio

2019-05-20 Thread Fabiano Fidêncio
On Mon, May 20, 2019 at 1:45 PM Athina Plaskasoviti wrote: > > XML mapping: > > > ... > > > Signed-off-by: Athina Plaskasoviti Reviewed-by: Fabiano Fidêncio [snip] Best Regards, -- Fabiano Fidêncio ___ virt-tools-list

Re: [virt-tools-list] [virt-manager PATCH] cli: Add --disk rawio

2019-05-20 Thread Fabiano Fidêncio
s_onoff=True) > diff --git a/virtinst/devices/disk.py b/virtinst/devices/disk.py > index 6556c8cd..cfe57cb7 100644 > --- a/virtinst/devices/disk.py > +++ b/virtinst/devices/disk.py > @@ -643,6 +643,7 @@ class DeviceDisk(Device): > driver_copy_on_read = XMLProperty("./

Re: [virt-tools-list] [virt-viewer][PATCH v2] Introduce bash completion

2019-05-06 Thread Fabiano Fidêncio
Michal Privoznik > --- > > diff to v1: > - Fixed 'make syntax-check' issue > - Introduced support for completing domain IDs > - Introduced --display= completer Reviewed-by: Fabiano Fidêncio [snip] ___ virt-tools-list mailing list virt-tools-list@redhat.com https://www.redhat.com/mailman/listinfo/virt-tools-list

Re: [virt-tools-list] [virt-viewer][PATCH] Introduce bash completion

2019-05-06 Thread Fabiano Fidêncio
On Mon, May 6, 2019 at 9:25 AM Fabiano Fidêncio wrote: > > Michal, > > Take this review (and, spoiler alert, ack) with a grain of salt as > I've been out of virt-viewer development for several years now. > > On Tue, Mar 26, 2019 at 4:28 PM Michal Privoznik wrote: > &

Re: [virt-tools-list] [virt-viewer][PATCH] Introduce bash completion

2019-05-06 Thread Fabiano Fidêncio
; +# Our bash completion script uses virsh to list domains > +Requires: libvirt-client > +%endif > + > + > %if 0%{?enable_autotools} > BuildRequires: autoconf > BuildRequires: automake > @@ -51,6 +59,9 @@ BuildRequires: gettext > %if %{with_govirt} > BuildRequires: pkgconfig(govirt-1.0) >= @GOVIRT_REQUIRED@ > %endif > +%if %{with_bash_completion} > +BuildRequires: pkgconfig(bash-completion) >= @BASH_COMPLETION_REQUIRED@ > +%endif > > %if 0%{?fedora} >= 20 > Obsoletes: spice-client < 0.12.3-2 > @@ -102,5 +113,8 @@ rm -rf $RPM_BUILD_ROOT > %{_datadir}/mime/packages/virt-viewer-mime.xml > %{_mandir}/man1/virt-viewer.1* > %{_mandir}/man1/remote-viewer.1* > +%if %{with_bash_completion} > +%{_datadir}/bash-completion/completions/virt-viewer > +%endif > > %changelog > -- > 2.19.2 > > ___ > virt-tools-list mailing list > virt-tools-list@redhat.com > https://www.redhat.com/mailman/listinfo/virt-tools-list Apart from the two issues pointed out, the patch works as expected! Here's a diff of the changes that have to be squashed: ``` fidencio@laerte ~/src/upstream/virt-viewer $ git diff diff --git a/bash-completion/virt-viewer b/bash-completion/virt-viewer index e4a7544..ad60d46 100644 --- a/bash-completion/virt-viewer +++ b/bash-completion/virt-viewer @@ -67,7 +67,7 @@ _virt_viewer_complete() -*) COMPREPLY=( $( compgen -W '$( _parse_help "$1" -h )' -- "$cur" ) ) -[[ $COMPREPLY == *= ]] && compopt -o nospace +[[ $COMPREPLY == *= ]] && compopt || nospace return ;; esac @@ -87,4 +87,3 @@ _virt_viewer_complete() complete -F _virt_viewer_complete virt-viewer # vim: ft=sh:et:ts=4:sw=4:tw=80 - ``` Reviewed-by: Fabiano Fidêncio ___ virt-tools-list mailing list virt-tools-list@redhat.com https://www.redhat.com/mailman/listinfo/virt-tools-list

Re: [virt-tools-list] [virt-manager PATCH] installertreemedia, unattended: Only use kernel args from libosinfo

2019-04-29 Thread Fabiano Fidêncio
On Mon, Apr 29, 2019 at 1:42 PM Pavel Hrdina wrote: > > On Thu, Apr 25, 2019 at 03:42:36PM +0200, Fabiano Fidêncio wrote: > > When performing a tree based unattended installation, some distros > > require extra arguments to be passed to the kernel command line. > >

[virt-tools-list] [virt-manager PATCH] installertreemedia, unattended: Only use kernel args from libosinfo

2019-04-25 Thread Fabiano Fidêncio
With that in mind and knowing that osinfo-db has been updated accordingly, we can fully rely on the command line returned by libosinfo and stop appending arguments returned by get_kernel_url_arg() when performing unattended installations. Signed-off-by: Fabiano Fidêncio --- osinfo-db patches, stil

Re: [virt-tools-list] virt-viewer 8.0?

2019-03-29 Thread Fabiano Fidêncio
7;s something up to the distros to pick the newest source and/or depend on their update policies. If you need virt-viewer 8.0 in your preferred distro, I'd strongly suggest to open them a bug. Best Regards, -- Fabiano Fidêncio ___ virt-too

[virt-tools-list] [virt-install PATCH] osdict: Fix OsMedia::requires_internet() logic

2019-03-29 Thread Fabiano Fidêncio
In case there's no self.osinfo_media, it means the installation won't happen from the media itself, so it should return "True" (as in, it requires internet). Returning "False", though, should be done when no "netinst" variant was found (but we do have a

Re: [virt-tools-list] [virt-manager PATCH 3/7] unattended: Adapt for Windows

2019-03-29 Thread Fabiano Fidêncio
On Thu, Mar 28, 2019 at 10:45 PM Fabiano Fidêncio wrote: > > The main differences are: > - Windows unattended installation will be performed via "floppy" > injection instead of "initrd"; > - Windows target disk must be a letter ("C", in our case); &g

[virt-tools-list] [virt-manager PATCH 7/7] installer: add support for windows unattended install

2019-03-28 Thread Fabiano Fidêncio
ne in a previous commit, but those were basically: - Not using /dev/*da as a target disk, but use "C" instead; - Set the product-key - Explicitly set the injection method as "floppy" Signed-off-by: Fabiano Fidêncio --- virt-install | 9 + v

[virt-tools-list] [virt-manager PATCH 3/7] unattended: Adapt for Windows

2019-03-28 Thread Fabiano Fidêncio
The main differences are: - Windows unattended installation will be performed via "floppy" injection instead of "initrd"; - Windows target disk must be a letter ("C", in our case); - Windows requires a product-key to be passed Signed-off-by: Fabiano Fidêncio -

[virt-tools-list] [virt-manager PATCH 5/7] installer: deal with unattended files

2019-03-28 Thread Fabiano Fidêncio
Let's have a way to keep track of unattended files that are going to be used when performing a unattended installation of a Windows guest so we can clean them up whenever the installation is done. Signed-off-by: Fabiano Fidêncio --- virtinst/installer.py | 5 + 1 file changed, 5 inser

[virt-tools-list] [virt-manager PATCH 6/7] installer: add unattended data

2019-03-28 Thread Fabiano Fidêncio
Let's add unattended data to the Installer class as it's going to be used whenever a Windows unattended installation is performed. Signed-off-by: Fabiano Fidêncio --- virtinst/installer.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/virtinst/installer.py b/virtinst/installe

[virt-tools-list] [virt-manager PATCH 1/7] Add perform_floppy_injections()

2019-03-28 Thread Fabiano Fidêncio
Similar to perform_initrd_injections(), which is used by Linux(es) unattended installations, perform_floppy_injections() is going to be used by Windows(es) unattended installations. Signed-off-by: Fabiano Fidêncio --- virt-manager.spec.in | 5 + virtinst/floppyinject.py | 34

[virt-tools-list] [virt-manager PATCH 0/7] RFC: Add unattended installation support for Windows guests

2019-03-28 Thread Fabiano Fidêncio
important, they can be added later and, AFAIR, we will have to spend some time figuring out a few things before actually be able to achieve them. Fabiano Fidêncio (7): Add perform_floppy_injections() unattended: Add product-key to Unattended data unattended: Adapt for Windows installer:

[virt-tools-list] [virt-manager PATCH 4/7] installer: deal with floppy devices used during install

2019-03-28 Thread Fabiano Fidêncio
A floppy device is going to be used when performing a unattended installation in a Windows guest. In order to have it done cleanly, let's mimic the what's already existent for dealing with cdrom devices used during installation. Signed-off-by: Fabiano Fidêncio --- virtinst/install

[virt-tools-list] [virt-manager PATCH 2/7] unattended: Add product-key to Unattended data

2019-03-28 Thread Fabiano Fidêncio
Signed-off-by: Fabiano Fidêncio --- tests/clitest.py | 1 + virtinst/cli.py| 1 + virtinst/unattended.py | 1 + 3 files changed, 3 insertions(+) diff --git a/tests/clitest.py b/tests/clitest.py index 3668e26b..d3bd6044 100644 --- a/tests/clitest.py +++ b/tests/clitest.py

Re: [virt-tools-list] [virt-install PATCH v2 3/7] osdict: Add requires_internet() to OsMedia

2019-03-28 Thread Fabiano Fidêncio
On Fri, Mar 22, 2019 at 4:23 PM Fabiano Fidêncio wrote: > > In order to properly do a unattended installation of some medias (as net > installers), we have to check whether the media requires or not > internet. Doing so by checking its variant is not the most beautiful way > (as

[virt-tools-list] [virt-install PATCH v2 2/7] osdict: Add OsinfoMedia class

2019-03-22 Thread Fabiano Fidêncio
The OsinfoMedia class is a wrapper around OsinfoMedia and will help us to keep the logic of dealing with media related stuff from inside osdict.py Signed-off-by: Fabiano Fidêncio --- virtinst/osdict.py | 5 + 1 file changed, 5 insertions(+) diff --git a/virtinst/osdict.py b/virtinst

[virt-tools-list] [virt-install PATCH v2 6/7] installertreemedia: Add requires_internet()

2019-03-22 Thread Fabiano Fidêncio
This method returns whether the installer requires or not internet to perform the installation. Signed-off-by: Fabiano Fidêncio --- virtinst/installertreemedia.py | 10 ++ 1 file changed, 10 insertions(+) diff --git a/virtinst/installertreemedia.py b/virtinst/installertreemedia.py

Re: [virt-tools-list] [virt-install PATCH v2 2/7] osdict: Add OsinfoMedia class

2019-03-22 Thread Fabiano Fidêncio
On Fri, Mar 22, 2019 at 4:23 PM Fabiano Fidêncio wrote: > > The OsinfoMedia class is a wrapper around OsinfoMedia and will help us > to keep the logic of dealing with media related stuff from inside > osdict.py s/OsinfoMedia/OsMedia, in both commit short-log and message. >

[virt-tools-list] [virt-install PATCH v2 4/7] urldetect: return osdict.py:OsMedia instead of Libosinfo.Media

2019-03-22 Thread Fabiano Fidêncio
s internal _get_installation_source() method - rename osdict::get_install_script's media argument to os_media Signed-off-by: Fabiano Fidêncio --- virtinst/installertreemedia.py | 8 virtinst/osdict.py | 3 ++- virtinst/unattended.py | 10 ++ virtinst/urldetect.p

[virt-tools-list] [virt-install PATCH v2 1/7] osdict: Add get_network_install_resources()

2019-03-22 Thread Fabiano Fidêncio
-off-by: Fabiano Fidêncio --- virtinst/osdict.py | 15 +++ 1 file changed, 15 insertions(+) diff --git a/virtinst/osdict.py b/virtinst/osdict.py index 4ffcfa29..c49c45e4 100644 --- a/virtinst/osdict.py +++ b/virtinst/osdict.py @@ -483,6 +483,21 @@ class _OsVariant(object

[virt-tools-list] [virt-install PATCH v2 7/7] installer: Set the network install resources when needed

2019-03-22 Thread Fabiano Fidêncio
r the installation. Signed-off-by: Fabiano Fidêncio --- virtinst/installer.py | 32 ++-- 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/virtinst/installer.py b/virtinst/installer.py index 67cdfb29..b8c048f1 100644 --- a/virtinst/installer.py +++ b/vir

[virt-tools-list] [virt-install PATCH v2 5/7] unattended: Take advantage of OsinfoMedia.requires_internet()

2019-03-22 Thread Fabiano Fidêncio
By using OsinfoMedia.requires_internet() we ensure this logic is not spread in our codebase and also keep _OsinfoIter internal to osdict. Signed-off-by: Fabiano Fidêncio --- virtinst/unattended.py | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/virtinst

[virt-tools-list] [virt-install PATCH v2 3/7] osdict: Add requires_internet() to OsMedia

2019-03-22 Thread Fabiano Fidêncio
an be done with the current state of osinfo-db. Signed-off-by: Fabiano Fidêncio --- virtinst/osdict.py | 8 1 file changed, 8 insertions(+) diff --git a/virtinst/osdict.py b/virtinst/osdict.py index 6486643d..67e70f62 100644 --- a/virtinst/osdict.py +++ b/virtinst/osdict.py @@ -616,3 +6

[virt-tools-list] [virt-install PATCH v2 0/7] Deal with network resources during installation

2019-03-22 Thread Fabiano Fidêncio
- Moved the whole logic about setting-up the guest XML to installer.py Fabiano Fidêncio (7): osdict: Add get_network_install_resources() osdict: Add OsinfoMedia class osdict: Add requires_internet() to OsMedia urldetect: return osdict.py:OsMedia instead of Libosinfo.Media unattended: Take

[virt-tools-list] [virt-install PATCH 2/4] installertreemedia: Add requires_internet()

2019-03-08 Thread Fabiano Fidêncio
This method returns whether the installer requires or not internet to perform the installation. Signed-off-by: Fabiano Fidêncio --- virtinst/installertreemedia.py | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/virtinst/installertreemedia.py b/virtinst

[virt-tools-list] [virt-install PATCH 4/4] installer: Set the network install resources when needed

2019-03-08 Thread Fabiano Fidêncio
Signed-off-by: Fabiano Fidêncio --- virtinst/installer.py | 17 + 1 file changed, 17 insertions(+) diff --git a/virtinst/installer.py b/virtinst/installer.py index 67cdfb29..cd9e7fc2 100644 --- a/virtinst/installer.py +++ b/virtinst/installer.py @@ -152,6 +152,21 @@ class

[virt-tools-list] [virt-install PATCH 1/4] osdict: Add get_network_install_resources()

2019-03-08 Thread Fabiano Fidêncio
-off-by: Fabiano Fidêncio --- virtinst/osdict.py | 14 ++ 1 file changed, 14 insertions(+) diff --git a/virtinst/osdict.py b/virtinst/osdict.py index 08176976..12f625ba 100644 --- a/virtinst/osdict.py +++ b/virtinst/osdict.py @@ -478,6 +478,20 @@ class _OsVariant(object

[virt-tools-list] [virt-install PATCH 0/4] RFC: Deal with network resources during installation

2019-03-08 Thread Fabiano Fidêncio
**: info still to be filled Fabiano Fidêncio (4): osdict: Add get_network_install_resources() installertreemedia: Add requires_internet() guest: Deal with network install resources installer: Set the network install resources when needed virtinst/guest.py | 14

[virt-tools-list] [virt-install PATCH 3/4] guest: Deal with network install resources

2019-03-08 Thread Fabiano Fidêncio
Let's add two new methods to deal with network install resources so those can be set from the installer. Signed-off-by: Fabiano Fidêncio --- virtinst/guest.py | 14 ++ 1 file changed, 14 insertions(+) diff --git a/virtinst/guest.py b/virtinst/guest.py index 2cca3e8d..2bb

Re: [virt-tools-list] [virt-manager PATCH v3 0/9] Unattended installation support (part III)

2019-03-07 Thread Fabiano Fidêncio
On Thu, 2019-03-07 at 13:52 +0100, Fabiano Fidêncio wrote: > This series provides the 3rd part of unattended installation support > and > consists in: > > - "installertreemdia: Set user specified --location as the installer > URL": > - Fix unattended install

[virt-tools-list] [virt-manager PATCH v3 4/9] installertreemedia: Pass media down to prepare_install_script()

2019-03-07 Thread Fabiano Fidêncio
Let's pass the media down to prepare_install_script() as it'll be used to: - select the preferred installation source; - be passed down to the get_install_script() method; Signed-off-by: Fabiano Fidêncio --- virtinst/installertreemedia.py | 2 +- virtinst/unattended.py | 2 +

[virt-tools-list] [virt-manager PATCH v3 8/9] osdict: Deal with medias' installer scripts

2019-03-07 Thread Fabiano Fidêncio
thing. In case no installer script is supported, let's just error out and abort the installation. Signed-off-by: Fabiano Fidêncio --- virtinst/osdict.py | 22 ++ 1 file changed, 22 insertions(+) diff --git a/virtinst/osdict.py b/virtinst/osdict.py index 0ef1617c..08176976 1

[virt-tools-list] [virt-manager PATCH v3 5/9] unattended: Properly set the installation source

2019-03-07 Thread Fabiano Fidêncio
to have its installation source set accordingly. An different approach for this would be to generate the script specifically from the media whenever a media is passed. However, IMO, it would just add two new codepaths and having the media passed around without a real gain against the method chose

[virt-tools-list] [virt-manager PATCH v3 9/9] virt-install: Deal with "--cdrom" unattended installations

2019-03-07 Thread Fabiano Fidêncio
t; work properly when combined with "--cdrom". Signed-off-by: Fabiano Fidêncio --- virt-install | 3 +++ 1 file changed, 3 insertions(+) diff --git a/virt-install b/virt-install index 27b52c6b..d7af107b 100755 --- a/virt-install +++ b/virt-install @@ -449,6 +449,9 @@ def build_installe

[virt-tools-list] [virt-manager PATCH v3 3/9] installertreemedia: Get medias' kernel/initrd paths from Libosinfo

2019-03-07 Thread Fabiano Fidêncio
be used without the user having to explicitly pass them when calling virt-install. Signed-off-by: Fabiano Fidêncio --- virtinst/installertreemedia.py | 8 1 file changed, 8 insertions(+) diff --git a/virtinst/installertreemedia.py b/virtinst/installertreemedia.py index 39f5ac0f..0b8b1

[virt-tools-list] [virt-manager PATCH v3 6/9] osdict: Refactor get_install_script()

2019-03-07 Thread Fabiano Fidêncio
Let's refactor get_install_script() in a way that any addition done in order to get the install scripts from the media would be cleaner. Signed-off-by: Fabiano Fidêncio --- virtinst/osdict.py | 53 -- 1 file changed, 28 insertions(+), 25 dele

[virt-tools-list] [virt-manager PATCH v3 1/9] installertreemdia: Set user specified --location as the installer URL

2019-03-07 Thread Fabiano Fidêncio
reason, their own URLs should be covered as well. Signed-off-by: Fabiano Fidêncio --- virtinst/installertreemedia.py | 3 ++- virtinst/unattended.py | 10 +++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/virtinst/installertreemedia.py b/virtinst/installertreemedia.py

[virt-tools-list] [virt-manager PATCH v3 7/9] unattended: Pass the media down to get_install_script()

2019-03-07 Thread Fabiano Fidêncio
Signed-off-by: Fabiano Fidêncio --- virtinst/osdict.py | 2 +- virtinst/unattended.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/virtinst/osdict.py b/virtinst/osdict.py index a54cc413..0ef1617c 100644 --- a/virtinst/osdict.py +++ b/virtinst/osdict.py @@ -535,7

[virt-tools-list] [virt-manager PATCH v3 2/9] installertremeedia: Add an internal Libosinfo.Media attribute

2019-03-07 Thread Fabiano Fidêncio
Let's add an internal Libosinfo.OsMedia attribute to the InstallerTreeMedia object. By doing this, it'll help us to: - easily get the media's kernel and initrd path - pass down the Libosinfo.Media to the generate_install_script() method Signed-off-by: Fabiano Fidêncio

  1   2   3   4   5   6   7   8   9   10   >