Lee Garrett
2023-Sep-11 19:03 UTC
[Libguestfs] Fwd: virt-v2v creating image that does not install guest agent on first boot
Hi, On 11.09.23 15:13, Richard W.M. Jones wrote:> On Sun, Sep 10, 2023 at 11:34:22AM +0100, Richard W.M. Jones wrote: >> This message got caught in moderation because the attachment >> was large. I put the attachment here: >> >> http://oirase.annexia.org/tmp/2023-lgarrett-virt-v2v-debug-output.txt >> >> ----- Forwarded message from Lee Garrett <lgarrett at rocketjump.eu> ----- >> >> Date: Sun, 10 Sep 2023 00:09:17 +0200 >> From: Lee Garrett <lgarrett at rocketjump.eu> >> To: libguestfs at redhat.com >> Subject: virt-v2v creating image that does not install guest agent on first >> boot >> >> Hi, >> >> rwmjones from #guestfs on libera IRC pointed me to this mail address. >> >> I've noticed that converting the latest Windows 11 trial image via >> virt-v2v does not install the guest agent any more on first boot. I >> have let the machine settle for ~10 minutes to ensure it's not just >> because I'm too impatient. I can see C:\qemu-ga-x86-64.msi, and also a >> bunch of files in "C:\Program Files\Guestfs\Firstboot\" and >> .\Scripts, so the files are definitely copied onto the VM image, just >> not executed for some reason. > > I can see from the log that these are installed in the image. > >> The vmware image was downloaded from https://developer.microsoft.com/en-us/windows/downloads/virtual-machines/. >> The issue should be 100% reproducible (at least for me). I recall that >> an older image from two, three weeks ago downloaded from the same >> location did not have this issue. There guest agent was installed and >> working on the first boot. Unfortunately I overwrote the image so I >> cannot verify this. >> >> I have attached the debug output of the virt-v2v run of the latest >> image where this issue is apparent (guest agent not being installed). >> >> Please let me know if there's anything else I can check, or if you >> need any further info. > > The main thing to look for is any debugging output which should appear > in c:\program files\guestfs\firstboot\log.txt > > It would be interesting to know if this file is present at all, and > what exactly it contains.There is unfortunately no log.txt in that or related paths.> > I've CC'd my colleague Ming on this to see if she has noticed anything > with recent Windows 11. > > Rich. > >> Cheers, >> Lee >> >> ----- End forwarded message ----- >> >> -- >> Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones >> Read my programming and virtualization blog: http://rwmj.wordpress.com >> libguestfs lets you edit virtual machines. Supports shell scripting, >> bindings from many languages. http://libguestfs.org >> _______________________________________________ >> Libguestfs mailing list >> Libguestfs at redhat.com >> https://listman.redhat.com/mailman/listinfo/libguestfs >
Richard W.M. Jones
2023-Sep-11 19:29 UTC
[Libguestfs] Fwd: virt-v2v creating image that does not install guest agent on first boot
If we suspect that the whole firstboot mechanism might not be working with the new version of Windows, one way to test it (on this one, or a freshly installed Windows VM) would be: $ virt-customize -a windows.img --firstboot-command 'echo hello' and see if "hello" is written in some form to the log.txt file inside the guest after it boots. If that doesn't work then it's likely some change in Windows which is breaking firstboot support. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top