[Libguestfs] [PATCH v4] windows: delay installation of qemu-ga MSI

2020-03-05 Thread Tomáš Golembiovský
Instead of running firstboot script during early boot schedule a task delayed for 2 minutes. During the first boot, after virt-v2v conversion, Windows installs the drivers injected by virt-v2v. When this installation is finished Windows enforces some kind of internal reboot. This unfortunately

[Libguestfs] [PATCH v2 3/4] appliance: Pass root=UUID= instead of appliance device name (RHBZ#1804207).

2020-03-05 Thread Richard W.M. Jones
Appliance device names are not reliable since the kernel no longer enumerates virtio-scsi devices serially. Instead get the UUID of the appliance and pass this as the parameter. Note this requires supermin >= 5.1.18 (from around July 2017). --- docs/guestfs-building.pod | 2 +-

[Libguestfs] [PATCH v2 2/4] daemon: Print device names when they are translated.

2020-03-05 Thread Richard W.M. Jones
This helps to debug problems with the new device name translation code. We can think about removing this later when the code is known to work well. --- daemon/device-name-translation.c | 8 1 file changed, 8 insertions(+) diff --git a/daemon/device-name-translation.c

[Libguestfs] [PATCH v2 0/4] daemon: Translate device names if Linux device is unstable (RHBZ#1804207).

2020-03-05 Thread Richard W.M. Jones
v1 was here: https://www.redhat.com/archives/libguestfs/2020-February/msg00220.html This patch series is a little bit better. It's still a bit of a hack. The _real_ fix for this is outlined in the TODO file (see patch 1) but that requires a lot more work than we could do before 1.42 is released,

[Libguestfs] [PATCH v2 1/4] daemon: Translate device names if Linux device ordering is unstable (RHBZ#1804207).

2020-03-05 Thread Richard W.M. Jones
Linux from around 5.6 now enumerates individual disks in any order (whereas previously it enumerated only drivers in parallel). This means that /dev/sdX ordering is no longer stable - in particular we cannot be sure that /dev/sda inside the guest is the first disk that was attached to the

[Libguestfs] [PATCH v2 4/4] DEBUG - DROP THIS PATCH LATER

2020-03-05 Thread Richard W.M. Jones
--- daemon/device-name-translation.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/daemon/device-name-translation.c b/daemon/device-name-translation.c index b17f3c683..39266fdd7 100644 --- a/daemon/device-name-translation.c +++ b/daemon/device-name-translation.c @@ -100,6

Re: [Libguestfs] [PATCH v3] windows: delay installation of qemu-ga MSI

2020-03-05 Thread Richard W.M. Jones
On Thu, Mar 05, 2020 at 12:47:58PM +0100, Tomáš Golembiovský wrote: > On Thu, Mar 05, 2020 at 08:49:04AM +, Richard W.M. Jones wrote: > > On Tue, Mar 03, 2020 at 03:45:49PM +0100, Tomáš Golembiovský wrote: > > > Instead of running firstboot script during early boot schedule a task > > >

Re: [Libguestfs] [PATCH v3] windows: delay installation of qemu-ga MSI

2020-03-05 Thread Tomáš Golembiovský
On Thu, Mar 05, 2020 at 08:49:04AM +, Richard W.M. Jones wrote: > On Tue, Mar 03, 2020 at 03:45:49PM +0100, Tomáš Golembiovský wrote: > > Instead of running firstboot script during early boot schedule a task > > delayed for 2 minutes. > > > > During the first boot, after virt-v2v conversion,

Re: [Libguestfs] Having integration tests "test the future" with QEMU

2020-03-05 Thread Richard W.M. Jones
On Wed, Mar 04, 2020 at 03:48:34PM +0100, Markus Armbruster wrote: > I understand libguestfs comes with integration tests. You might be > interested in something I'm developing for QEMU 5.0 to permit "testing > the future". I'd like to ensure it is actually useful before I > continue. Let me

Re: [Libguestfs] Bug: readdir() returning null on large number of files

2020-03-05 Thread Richard W.M. Jones
On Wed, Mar 04, 2020 at 03:28:33PM +0300, Sergey Ivanov wrote: > There's a bug (https://bugzilla.redhat.com/show_bug.cgi?id=1674392) and > it's almost a year since it has been reported. Is there any > plans/suggestions on its fixing? Didn't find any commits regarding this > issue but maybe I'm

Re: [Libguestfs] [PATCH v3] windows: delay installation of qemu-ga MSI

2020-03-05 Thread Richard W.M. Jones
On Tue, Mar 03, 2020 at 03:45:49PM +0100, Tomáš Golembiovský wrote: > Instead of running firstboot script during early boot schedule a task > delayed for 2 minutes. > > During the first boot, after virt-v2v conversion, Windows installs the > drivers injected by virt-v2v. When this installation is