Re: [Libguestfs] Virtio-win RPM?
Does anyone have an idea what this error message means? This was waiting on the console this morning after running a conversion last night using the virt-p2v CD 0.8.3.1: Inspect_os: cannot resolve Windows %SYSTEMROOT% at /usr/share/perl5/sys/VirtConvert/GuestfsHandle.pm line 187, <> line 7. Thanks - Greg Scott From: Fredy Hernández [mailto:hernandez@stylmark.com] Sent: Friday, November 18, 2011 9:12 AM To: Greg Scott Subject: RE: Virtio-win RPM? Yes, Fredy Hernández Systems Administrator 763-574-8734 Office hernandez@stylmark.com <mailto:hernandez@stylmark.com> : From: Greg Scott [mailto:GregScott@Infrasupport.com] Sent: Friday, November 18, 2011 9:08 AM To: Fredy Hernández Subject: RE: Virtio-win RPM? Is there a reference to a log file on that console? From: Fredy Hernández [mailto:hernandez@stylmark.com] Sent: Friday, November 18, 2011 9:08 AM To: Greg Scott Subject: RE: Virtio-win RPM? Good morning Greg, So it died, is there something I need to do? Fredy Hernández Systems Administrator 763-574-8734 Office hernandez@stylmark.com <mailto:hernandez@stylmark.com> : From: Greg Scott [mailto:GregScott@Infrasupport.com] Sent: Friday, November 18, 2011 7:17 AM To: libguestfs@redhat.com Cc: Fredy Hernández Subject: Virtio-win RPM? I should have this in my head by now... I tried migrating a physical Windows host last night using virt-p2v CD. It ran for 3 hours and then died. I'll get details later from the log but as I think about it, I'll bet it died because I never installed virtio-win in my Fedora migration server. The documentation says do "yum install virtio-win" - but this is RHEL documentation and my migration server is a Fedora 14 VM and yum doesn't find it from there. Where do I grab virtio-win and how do I set it up on that Fedora system such that virt-p2v-server will find it and use it during a Windows P2V migration? Thanks - Greg Scott
On Fri, Nov 18, 2011 at 09:16:15AM -0600, Greg Scott wrote:
Does anyone have an idea what this error message means? This was waiting on the console this morning after running a conversion last night using the virt-p2v CD 0.8.3.1:
Inspect_os: cannot resolve Windows %SYSTEMROOT% at /usr/share/perl5/sys/VirtConvert/GuestfsHandle.pm line 187, <> line 7.
It's a bug in libguestfs: http://git.annexia.org/?p=libguestfs.git;a=blob;f=src/inspect_fs_windows.c;h... Does this guest have one of these directories: \windows \winnt \win32 \win and that directory: ...\system32 ...\system32\config ...\system32\cmd.exe ? You could also try running virt-inspector on the guest ('virt-inspector2' on RHEL 6). Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top
Of course the guest has those directories. It's a Windows system. I tried the link to that bug but it just times out. What's the workaround? - Greg -----Original Message----- From: Richard W.M. Jones [mailto:rjones@redhat.com] Sent: Friday, November 18, 2011 11:03 AM To: Greg Scott Cc: libguestfs@redhat.com; Fredy Hernández Subject: Re: [Libguestfs] Virtio-win RPM? On Fri, Nov 18, 2011 at 09:16:15AM -0600, Greg Scott wrote:
Does anyone have an idea what this error message means? This was waiting on the console this morning after running a conversion last night using the virt-p2v CD 0.8.3.1:
Inspect_os: cannot resolve Windows %SYSTEMROOT% at /usr/share/perl5/sys/VirtConvert/GuestfsHandle.pm line 187, <> line 7.
It's a bug in libguestfs: http://git.annexia.org/?p=libguestfs.git;a=blob;f=src/inspect_fs_windows.c;h... Does this guest have one of these directories: \windows \winnt \win32 \win and that directory: ...\system32 ...\system32\config ...\system32\cmd.exe ? You could also try running virt-inspector on the guest ('virt-inspector2' on RHEL 6). Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top
Hold on a second - I never see the guest itself. I only see the source physical machine. We boot the source system from the virt-p2v-image-builder CD and then fire up a migration. The P2V runs for about 3+ hours. Watching RHEV-M, I see the physical space used in the Export store ramp up. And then later, it's back down to < 1 GB and there is no guest virtual disk or VM or anything. The P2V apparently blows up with the error below and then cleans up all traces of itself, at least in the RHEV export domain. So I don't have any virtual disk to inspect. But c'mon - every Windows system in the world has the directories mentioned below. This cannot be the first P2V attempt on the planet earth from a Windows system to RHEV. As a workaround - maybe we can put in a custom edit to GuestfsHandle.pm, maybe there's a newer version somewhere, maybe there's something procedurally we can do differently. I don't have virtio-win on this Fedora conversion server. Does that have anything to do with the problem? Could the bug be that it reports the error below when the real problem is, firstboot can't find a disk to boot from because it doesn't have the right drivers? And if so, where do I find a virtio-win RPM that will install on Fedora 14? - Greg -----Original Message----- From: libguestfs-bounces@redhat.com [mailto:libguestfs-bounces@redhat.com] On Behalf Of Greg Scott Sent: Friday, November 18, 2011 3:06 PM To: Richard W.M. Jones Cc: Fredy Hernández; libguestfs@redhat.com Subject: Re: [Libguestfs] Virtio-win RPM? Of course the guest has those directories. It's a Windows system. I tried the link to that bug but it just times out. What's the workaround? - Greg -----Original Message----- From: Richard W.M. Jones [mailto:rjones@redhat.com] Sent: Friday, November 18, 2011 11:03 AM To: Greg Scott Cc: libguestfs@redhat.com; Fredy Hernández Subject: Re: [Libguestfs] Virtio-win RPM? On Fri, Nov 18, 2011 at 09:16:15AM -0600, Greg Scott wrote:
Does anyone have an idea what this error message means? This was waiting on the console this morning after running a conversion last night using the virt-p2v CD 0.8.3.1:
Inspect_os: cannot resolve Windows %SYSTEMROOT% at /usr/share/perl5/sys/VirtConvert/GuestfsHandle.pm line 187, <> line 7.
It's a bug in libguestfs: http://git.annexia.org/?p=libguestfs.git;a=blob;f=src/inspect_fs_windows.c;h... Does this guest have one of these directories: \windows \winnt \win32 \win and that directory: ...\system32 ...\system32\config ...\system32\cmd.exe ? You could also try running virt-inspector on the guest ('virt-inspector2' on RHEL 6). Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top _______________________________________________ Libguestfs mailing list Libguestfs@redhat.com https://www.redhat.com/mailman/listinfo/libguestfs
OK, I'm being verbose: This link: http://docs.fedoraproject.org/en-US/Fedora/13/html/Virtualization_Guide/chap... says:
Download the virtio-win package with the yum command. # yum install virtio-win
The drivers are also from Microsoft (windowsservercatalog.com).
The virtio-win package installs a CD-ROM image, virtio-win.iso, in the /usr/share/virtio-win/ directory.
OK wonderful, I can follow a cookbook. If only the recipe were right. [root@FedoraP2V bin]# [root@FedoraP2V bin]# yum list available | grep virtio [root@FedoraP2V bin]# [root@FedoraP2V bin]# yum install virtio-win Loaded plugins: langpacks, presto, refresh-packagekit Adding en_US to language list Setting up Install Process No package virtio-win available. Error: Nothing to do [root@FedoraP2V bin]# I know yum is good on this system because I just did a yum update and it applied 600+ updates. So this is the next thing I'm going to try - I have copies of virtio-win.iso all over the place. I'll just put one in /usr/share/virtio-win by hand and then we'll kick off another P2V and see how it goes. - Greg
Well, we tried our P2V again, this time with a copy of virtio-win.iso in /usr/share/virtio-win that I put in by hand. Just like before, it died again after 3+ hours. Here is what I put in place by hand. It was a shot in the dark. [root@FedoraP2V virtio-win]# [root@FedoraP2V virtio-win]# rpm -qa | grep virtio [root@FedoraP2V virtio-win]# [root@FedoraP2V virtio-win]# yum install virtio-win Loaded plugins: langpacks, presto, refresh-packagekit Adding en_US to language list Setting up Install Process No package virtio-win available. Error: Nothing to do [root@FedoraP2V virtio-win]# ls -al /usr/share/virtio-win total 42144 drwxr-xr-x. 2 root root 4096 Nov 18 17:15 . drwxr-xr-x. 292 root root 12288 Nov 18 16:39 .. lrwxrwxrwx. 1 root root 10 Nov 18 16:55 source.txt -> target.txt -rw-r--r--. 1 root root 24 Nov 18 16:55 target.txt -rw-r--r--. 1 root root 1474560 Nov 16 12:28 virtio-drivers-1.0.3-52454.vfd lrwxrwxrwx. 1 root root 30 Nov 18 16:56 virtio-drivers.vfd -> virtio-drivers-1.0.3-52454.vfd -rw-r--r--. 1 root root 41660416 Nov 18 16:36 virtio-win-0.1-15.iso lrwxrwxrwx. 1 root root 21 Nov 18 16:55 virtio-win.iso -> virtio-win-0.1-15.iso lrwxrwxrwx. 1 root root 30 Nov 18 17:15 virtio-win.vfd -> virtio-drivers-1.0.3-52454.vfd [root@FedoraP2V virtio-win]# - Greg -----Original Message----- From: libguestfs-bounces@redhat.com [mailto:libguestfs-bounces@redhat.com] On Behalf Of Greg Scott Sent: Friday, November 18, 2011 4:29 PM To: Richard W.M. Jones Cc: Fredy Hernández; libguestfs@redhat.com Subject: Re: [Libguestfs] Virtio-win RPM? OK, I'm being verbose: This link: http://docs.fedoraproject.org/en-US/Fedora/13/html/Virtualization_Guide/chap... says:
Download the virtio-win package with the yum command. # yum install virtio-win
The drivers are also from Microsoft (windowsservercatalog.com).
The virtio-win package installs a CD-ROM image, virtio-win.iso, in the /usr/share/virtio-win/ directory.
OK wonderful, I can follow a cookbook. If only the recipe were right. [root@FedoraP2V bin]# [root@FedoraP2V bin]# yum list available | grep virtio [root@FedoraP2V bin]# [root@FedoraP2V bin]# yum install virtio-win Loaded plugins: langpacks, presto, refresh-packagekit Adding en_US to language list Setting up Install Process No package virtio-win available. Error: Nothing to do [root@FedoraP2V bin]# I know yum is good on this system because I just did a yum update and it applied 600+ updates. So this is the next thing I'm going to try - I have copies of virtio-win.iso all over the place. I'll just put one in /usr/share/virtio-win by hand and then we'll kick off another P2V and see how it goes. - Greg _______________________________________________ Libguestfs mailing list Libguestfs@redhat.com https://www.redhat.com/mailman/listinfo/libguestfs
On Fri, Nov 18, 2011 at 04:17:53PM -0600, Greg Scott wrote:
But c'mon - every Windows system in the world has the directories mentioned below. This cannot be the first P2V attempt on the planet earth from a Windows system to RHEV.
Asserting this isn't helping anyone to diagnose the problem. Try: - enabling tracing (export LIBGUESTFS_TRACE=1) and providing the complete output - run virt-inspector on the guest, if there is a guest Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top
Sorry about the editorial comment. It's really a left-handed plea for help. When the P2V fails, it apparently deletes everything it set up, so there is no guest to run virt-inspector. Where do I export LIBGUESTFS_TRACE=1? AFAIK, there isn't any interactive shell where I can do this. I edit virt-v2v.conf, boot the source physical machine from the CD, and click some mouse buttons. That launches virt-p2v-server on the back end in the conversion server. Is there a hook someplace in virt-p2v-server or maybe virt-v2v.conf? And where does the output go? Does it make sense to export that variable in an interactive shell and then launch virt-p2v-server by hand? Searching for "TRACE" in virt-p2v-server shows no occurrences. But maybe virt-p2v-server runs an executable program that looks at that variable? Should I still be using Fedora 14 for conversion server or is it better now to try with Fedora 16? - Greg -----Original Message----- From: Richard W.M. Jones [mailto:rjones@redhat.com] Sent: Saturday, November 19, 2011 1:59 AM To: Greg Scott Cc: Fredy Hernández; libguestfs@redhat.com Subject: Re: [Libguestfs] Virtio-win RPM? On Fri, Nov 18, 2011 at 04:17:53PM -0600, Greg Scott wrote:
But c'mon - every Windows system in the world has the directories mentioned below. This cannot be the first P2V attempt on the planet earth from a Windows system to RHEV.
Asserting this isn't helping anyone to diagnose the problem. Try: - enabling tracing (export LIBGUESTFS_TRACE=1) and providing the complete output - run virt-inspector on the guest, if there is a guest Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top
On Sat, Nov 19, 2011 at 08:13:19AM -0600, Greg Scott wrote:
When the P2V fails, it apparently deletes everything it set up, so there is no guest to run virt-inspector.
Where do I export LIBGUESTFS_TRACE=1? AFAIK, there isn't any interactive shell where I can do this. I edit virt-v2v.conf, boot the source physical machine from the CD, and click some mouse buttons. That launches virt-p2v-server on the back end in the conversion server. Is there a hook someplace in virt-p2v-server or maybe virt-v2v.conf? And where does the output go?
Does it make sense to export that variable in an interactive shell and then launch virt-p2v-server by hand? Searching for "TRACE" in virt-p2v-server shows no occurrences. But maybe virt-p2v-server runs an executable program that looks at that variable? Should I still be using Fedora 14 for conversion server or is it better now to try with Fedora 16?
Matt ^^ How should Greg capture trace output from the virt-p2v process? Fedora 16's inspection code has changed quite a lot (libguestfs 1.8 vs 1.14). However functionally it should be just about the same. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming blog: http://rwmj.wordpress.com Fedora now supports 80 OCaml packages (the OPEN alternative to F#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora
Why don't I just set up an i386 F16 conversion server and as soon as I know how to capture the trace stuff we can try with it. For Fredy - I'll give it an IP Address of ...0.58. - Greg -----Original Message----- From: Richard W.M. Jones [mailto:rjones@redhat.com] Sent: Saturday, November 19, 2011 10:11 AM To: Greg Scott Cc: Fredy Hernández; libguestfs@redhat.com; mbooth@redhat.com Subject: Re: [Libguestfs] Virtio-win RPM? On Sat, Nov 19, 2011 at 08:13:19AM -0600, Greg Scott wrote:
When the P2V fails, it apparently deletes everything it set up, so there is no guest to run virt-inspector.
Where do I export LIBGUESTFS_TRACE=1? AFAIK, there isn't any interactive shell where I can do this. I edit virt-v2v.conf, boot the source physical machine from the CD, and click some mouse buttons. That launches virt-p2v-server on the back end in the conversion server. Is there a hook someplace in virt-p2v-server or maybe virt-v2v.conf? And where does the output go?
Does it make sense to export that variable in an interactive shell and then launch virt-p2v-server by hand? Searching for "TRACE" in virt-p2v-server shows no occurrences. But maybe virt-p2v-server runs an executable program that looks at that variable? Should I still be using Fedora 14 for conversion server or is it better now to try with Fedora 16?
Matt ^^ How should Greg capture trace output from the virt-p2v process? Fedora 16's inspection code has changed quite a lot (libguestfs 1.8 vs 1.14). However functionally it should be just about the same. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming blog: http://rwmj.wordpress.com Fedora now supports 80 OCaml packages (the OPEN alternative to F#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora
I've had good luck using F14 as a P2V server. You should be able to get the trace output by typing this on the cli on the p2v server itself: "export LIBGUESTFS_TRACE=1". Then, when you kick off the p2v conversion, your p2v server will start spitting out tons of debug logging to stout. Greg Scott <GregScott@Infrasupport.com> wrote:
Why don't I just set up an i386 F16 conversion server and as soon as I know how to capture the trace stuff we can try with it. For Fredy - I'll give it an IP Address of ...0.58.
- Greg
-----Original Message----- From: Richard W.M. Jones [mailto:rjones@redhat.com] Sent: Saturday, November 19, 2011 10:11 AM To: Greg Scott Cc: Fredy Hernández; libguestfs@redhat.com; mbooth@redhat.com Subject: Re: [Libguestfs] Virtio-win RPM?
On Sat, Nov 19, 2011 at 08:13:19AM -0600, Greg Scott wrote:
When the P2V fails, it apparently deletes everything it set up, so there is no guest to run virt-inspector.
Where do I export LIBGUESTFS_TRACE=1? AFAIK, there isn't any interactive shell where I can do this. I edit virt-v2v.conf, boot the source physical machine from the CD, and click some mouse buttons. That launches virt-p2v-server on the back end in the conversion server. Is there a hook someplace in virt-p2v-server or maybe virt-v2v.conf? And where does the output go?
Does it make sense to export that variable in an interactive shell and then launch virt-p2v-server by hand? Searching for "TRACE" in virt-p2v-server shows no occurrences. But maybe virt-p2v-server runs an executable program that looks at that variable? Should I still be using Fedora 14 for conversion server or is it better now to try with Fedora 16?
Matt ^^
How should Greg capture trace output from the virt-p2v process?
Fedora 16's inspection code has changed quite a lot (libguestfs 1.8 vs 1.14). However functionally it should be just about the same.
Rich.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming blog: http://rwmj.wordpress.com Fedora now supports 80 OCaml packages (the OPEN alternative to F#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora
_______________________________________________ Libguestfs mailing list Libguestfs@redhat.com https://www.redhat.com/mailman/listinfo/libguestfs
So something like - # export LIBGUESTFS_TRACE=1 # /usr/bin/virt-p2v-server > /home/gregs/p2vtrace.log And then fire up another P2V from the source physical server? - Greg -----Original Message----- From: Brian Gold [mailto:bgold@simons-rock.edu] Sent: Saturday, November 19, 2011 2:25 PM To: Greg Scott; Richard W.M. Jones Cc: Fredy Hernández; libguestfs@redhat.com Subject: Re: [Libguestfs] Virtio-win RPM? I've had good luck using F14 as a P2V server. You should be able to get the trace output by typing this on the cli on the p2v server itself: "export LIBGUESTFS_TRACE=1". Then, when you kick off the p2v conversion, your p2v server will start spitting out tons of debug logging to stout.
No need for the second line. /usr/bin/virt-p2v-server is started by the p2v client remotely when it connects. All you should need to do on the p2v server is the first line, and then watch the stdout on your screen as the p2v conversion works its magic.
-----Original Message----- From: Greg Scott [mailto:GregScott@Infrasupport.com] Sent: Saturday, November 19, 2011 3:45 PM To: Brian Gold; Richard W.M. Jones Cc: Fredy Hernández; libguestfs@redhat.com Subject: RE: [Libguestfs] Virtio-win RPM?
So something like -
# export LIBGUESTFS_TRACE=1 # /usr/bin/virt-p2v-server > /home/gregs/p2vtrace.log
And then fire up another P2V from the source physical server?
- Greg
-----Original Message----- From: Brian Gold [mailto:bgold@simons-rock.edu] Sent: Saturday, November 19, 2011 2:25 PM To: Greg Scott; Richard W.M. Jones Cc: Fredy Hernández; libguestfs@redhat.com Subject: Re: [Libguestfs] Virtio-win RPM?
I've had good luck using F14 as a P2V server. You should be able to get the trace output by typing this on the cli on the p2v server itself: "export LIBGUESTFS_TRACE=1". Then, when you kick off the p2v conversion, your p2v server will start spitting out tons of debug logging to stout.
But that export is only in the context of the process where you set it, right? So if I export LIBGUESTFS_TRACE=1 in a terminal window and then virt-p2v-server starts up in a different process, how does virt-p2v-server get its copy of that global variable? Here's an experiment - as you can see below, when I export a variable named GREG, another newly created process does not know about it. [root@FedoraP2V ~]# [root@FedoraP2V ~]# export GREG=1 [root@FedoraP2V ~]# echo $GREG 1 [root@FedoraP2V ~]# ssh -l root 0 The authenticity of host '0 (0.0.0.0)' can't be established. RSA key fingerprint is 89:63:db:18:0d:bf:95:46:cb:a8:0e:ac:62:58:2b:58. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '0,0.0.0.0' (RSA) to the list of known hosts. root@0's password: Last login: Mon Nov 21 16:12:24 2011 from fedorap2v [root@FedoraP2V ~]# echo $GREG [root@FedoraP2V ~]# But if I export LIBGUESTFS_TRACE=1 and then start up a copy of virt-p2v-server in the same window by hand, I wonder if this copy will answer the inbound request from the physical machine, or if the migration server will start up another copy? - Greg -----Original Message----- From: Brian Gold [mailto:bgold@simons-rock.edu] Sent: Monday, November 21, 2011 3:35 PM To: Greg Scott; 'Richard W.M. Jones' Cc: 'Fredy Hernández'; libguestfs@redhat.com Subject: RE: [Libguestfs] Virtio-win RPM? No need for the second line. /usr/bin/virt-p2v-server is started by the p2v client remotely when it connects. All you should need to do on the p2v server is the first line, and then watch the stdout on your screen as the p2v conversion works its magic.
-----Original Message----- From: Greg Scott [mailto:GregScott@Infrasupport.com] Sent: Saturday, November 19, 2011 3:45 PM To: Brian Gold; Richard W.M. Jones Cc: Fredy Hernández; libguestfs@redhat.com Subject: RE: [Libguestfs] Virtio-win RPM?
So something like -
# export LIBGUESTFS_TRACE=1 # /usr/bin/virt-p2v-server > /home/gregs/p2vtrace.log
And then fire up another P2V from the source physical server?
- Greg
-----Original Message----- From: Brian Gold [mailto:bgold@simons-rock.edu] Sent: Saturday, November 19, 2011 2:25 PM To: Greg Scott; Richard W.M. Jones Cc: Fredy Hernández; libguestfs@redhat.com Subject: Re: [Libguestfs] Virtio-win RPM?
I've had good luck using F14 as a P2V server. You should be able to get the trace output by typing this on the cli on the p2v server itself: "export LIBGUESTFS_TRACE=1". Then, when you kick off the p2v conversion, your p2v server will start spitting out tons of debug logging to stout.
On 19/11/11 16:10, Richard W.M. Jones wrote:
On Sat, Nov 19, 2011 at 08:13:19AM -0600, Greg Scott wrote:
When the P2V fails, it apparently deletes everything it set up, so there is no guest to run virt-inspector.
Where do I export LIBGUESTFS_TRACE=1? AFAIK, there isn't any interactive shell where I can do this. I edit virt-v2v.conf, boot the source physical machine from the CD, and click some mouse buttons. That launches virt-p2v-server on the back end in the conversion server. Is there a hook someplace in virt-p2v-server or maybe virt-v2v.conf? And where does the output go?
Does it make sense to export that variable in an interactive shell and then launch virt-p2v-server by hand? Searching for "TRACE" in virt-p2v-server shows no occurrences. But maybe virt-p2v-server runs an executable program that looks at that variable? Should I still be using Fedora 14 for conversion server or is it better now to try with Fedora 16?
Matt ^^
How should Greg capture trace output from the virt-p2v process?
Fedora 16's inspection code has changed quite a lot (libguestfs 1.8 vs 1.14). However functionally it should be just about the same.
The only way to do it right now is to edit the virt-p2v-server executable. Up at the top, you should see: # Uncomment these 2 lines to capture debug information from the conversion # process #$ENV{'LIBGUESTFS_DEBUG'} = 1; #$ENV{'LIBGUESTFS_TRACE'} = 1; On completion, it will write the output to a log file in /var/log/virt-p2v-server.XXXXXXXX.log. Matt -- Matthew Booth, RHCA, RHCSS Red Hat Engineering, Virtualisation Team GPG ID: D33C3490 GPG FPR: 3733 612D 2D05 5458 8A8A 1600 3441 EA19 D33C 3490
OK, I must be living in the Twilight Zone:
The only way to do it right now is to edit the virt-p2v-server executable. Up at the top, you should see:
# Uncomment these 2 lines to capture debug information from the conversion # process #$ENV{'LIBGUESTFS_DEBUG'} = 1; #$ENV{'LIBGUESTFS_TRACE'} = 1;
Is there another virt-p2v-server somewhere? The above lines don't exist. Should I just put them in? [root@FedoraP2V bin]# [root@FedoraP2V bin]# grep DEBUG virt-p2v-server #logmsg_level(DEBUG); logmsg DEBUG, __x('Received: {command} {args}', logmsg DEBUG, "Read $in bytes"; logmsg DEBUG, __x('Sent: {msg}', msg => $msg); logmsg DEBUG, __x('Sent: {msg}', msg => $msg); logmsg DEBUG, __x('Sent: {msg}', msg => $msg); [root@FedoraP2V bin]# [root@FedoraP2V bin]# [root@FedoraP2V bin]# grep TRACE virt-p2v-server [root@FedoraP2V bin]# [root@FedoraP2V bin]# [root@FedoraP2V bin]# find / -name virt-p2v-server /usr/bin/virt-p2v-server [root@FedoraP2V bin]# - Greg
Matt, is there some other variant of virt-p2v-server I should be looking at? The lines you want me to uncomment do not exist in the version installed on this conversion server. When I launch it by hand it identifies itself as version 0.8.3. [root@FedoraP2V bin]# [root@FedoraP2V bin]# ./virt-p2v-server VIRT_P2V_SERVER 0.8.3 ^C [root@FedoraP2V bin]# The output below is garbled, but I searched all over the place and found no matches for the word, "TRACE" and there are no other files named "virt-p2v-server". - Greg -----Original Message----- From: libguestfs-bounces@redhat.com [mailto:libguestfs-bounces@redhat.com] On Behalf Of Greg Scott Sent: Monday, November 21, 2011 5:52 AM To: Matthew Booth; Richard W.M. Jones Cc: Fredy Hernández; libguestfs@redhat.com Subject: Re: [Libguestfs] Virtio-win RPM? OK, I must be living in the Twilight Zone:
The only way to do it right now is to edit the virt-p2v-server executable. Up at the top, you should see:
# Uncomment these 2 lines to capture debug information from the conversion # process #$ENV{'LIBGUESTFS_DEBUG'} = 1; #$ENV{'LIBGUESTFS_TRACE'} = 1;
Is there another virt-p2v-server somewhere? The above lines don't exist. Should I just put them in? [root@FedoraP2V bin]# [root@FedoraP2V bin]# grep DEBUG virt-p2v-server #logmsg_level(DEBUG); logmsg DEBUG, __x('Received: {command} {args}', logmsg DEBUG, "Read $in bytes"; logmsg DEBUG, __x('Sent: {msg}', msg => $msg); logmsg DEBUG, __x('Sent: {msg}', msg => $msg); logmsg DEBUG, __x('Sent: {msg}', msg => $msg); [root@FedoraP2V bin]# [root@FedoraP2V bin]# [root@FedoraP2V bin]# grep TRACE virt-p2v-server [root@FedoraP2V bin]# [root@FedoraP2V bin]# [root@FedoraP2V bin]# find / -name virt-p2v-server /usr/bin/virt-p2v-server [root@FedoraP2V bin]# - Greg _______________________________________________ Libguestfs mailing list Libguestfs@redhat.com https://www.redhat.com/mailman/listinfo/libguestfs
We tried another P2V with a different physical server today. Just now watching with RHEV-M, I saw the used space in my Export domain drop from 64GB to 55, then 24, 20, and < 1 GB. Right in front of my eyes it all went away. As soon as I can get some guidance on capturing the detailed trace info - see below - we will try another P2V and capture it. Meanwhile, the only diagnostic info I can find are these entries from /var/log/messages: The Nov. 20 machine was a Windows XP workstation. The one from today, Nov. 21, is a Windows 2003 server. The "p2v-server started" message from 06:07 today was me starting it by hand to get the version number top post here. [root@FedoraP2V log]# [root@FedoraP2V log]# more /var/log/messages Nov 20 09:11:54 FedoraP2V virt-v2v[1909]: p2v-server started. Nov 20 12:39:01 FedoraP2V virt-v2v[1909]: FATAL: inspect_os: cannot resolve Windows %SYSTEMROOT% at /usr/share/perl5/Sys/VirtConvert/GuestfsHandle.pm line 187, <> line 7.#012 at /usr/bin/virt-p2v-server line 415 Nov 20 12:39:01 FedoraP2V virt-v2v[1909]: p2v-server exited. Nov 21 03:12:02 FedoraP2V pcscd: winscard.c:285:SCardConnect() Reader E-Gate 0 0 Not Found Nov 21 03:12:02 FedoraP2V pcscd: winscard.c:285:SCardConnect() Reader E-Gate 0 0 Not Found Nov 21 03:12:02 FedoraP2V pcscd: winscard.c:285:SCardConnect() Reader E-Gate 0 0 Not Found Nov 21 03:12:02 FedoraP2V pcscd: winscard.c:285:SCardConnect() Reader E-Gate 0 0 Not Found Nov 21 06:06:37 FedoraP2V virt-v2v[9997]: p2v-server started. Nov 21 06:37:03 FedoraP2V virt-v2v[10190]: p2v-server started. Nov 21 12:23:24 FedoraP2V virt-v2v[12368]: p2v-server started. Nov 21 15:03:44 FedoraP2V virt-v2v[12368]: FATAL: Error receiving data: Nov 21 15:03:44 FedoraP2V virt-v2v[12368]: p2v-server exited. [root@FedoraP2V log]# - Greg -----Original Message----- From: libguestfs-bounces@redhat.com [mailto:libguestfs-bounces@redhat.com] On Behalf Of Greg Scott Sent: Monday, November 21, 2011 10:22 AM To: Matthew Booth; Richard W.M. Jones Cc: Fredy Hernández; libguestfs@redhat.com Subject: Re: [Libguestfs] Virtio-win RPM? Matt, is there some other variant of virt-p2v-server I should be looking at? The lines you want me to uncomment do not exist in the version installed on this conversion server. When I launch it by hand it identifies itself as version 0.8.3. [root@FedoraP2V bin]# [root@FedoraP2V bin]# ./virt-p2v-server VIRT_P2V_SERVER 0.8.3 ^C [root@FedoraP2V bin]# The output below is garbled, but I searched all over the place and found no matches for the word, "TRACE" and there are no other files named "virt-p2v-server". - Greg -----Original Message----- From: libguestfs-bounces@redhat.com [mailto:libguestfs-bounces@redhat.com] On Behalf Of Greg Scott Sent: Monday, November 21, 2011 5:52 AM To: Matthew Booth; Richard W.M. Jones Cc: Fredy Hernández; libguestfs@redhat.com Subject: Re: [Libguestfs] Virtio-win RPM? OK, I must be living in the Twilight Zone:
The only way to do it right now is to edit the virt-p2v-server executable. Up at the top, you should see:
# Uncomment these 2 lines to capture debug information from the conversion # process #$ENV{'LIBGUESTFS_DEBUG'} = 1; #$ENV{'LIBGUESTFS_TRACE'} = 1;
Is there another virt-p2v-server somewhere? The above lines don't exist. Should I just put them in? [root@FedoraP2V bin]# [root@FedoraP2V bin]# grep DEBUG virt-p2v-server #logmsg_level(DEBUG); logmsg DEBUG, __x('Received: {command} {args}', logmsg DEBUG, "Read $in bytes"; logmsg DEBUG, __x('Sent: {msg}', msg => $msg); logmsg DEBUG, __x('Sent: {msg}', msg => $msg); logmsg DEBUG, __x('Sent: {msg}', msg => $msg); [root@FedoraP2V bin]# [root@FedoraP2V bin]# [root@FedoraP2V bin]# grep TRACE virt-p2v-server [root@FedoraP2V bin]# [root@FedoraP2V bin]# [root@FedoraP2V bin]# find / -name virt-p2v-server /usr/bin/virt-p2v-server [root@FedoraP2V bin]# - Greg _______________________________________________ Libguestfs mailing list Libguestfs@redhat.com https://www.redhat.com/mailman/listinfo/libguestfs _______________________________________________ Libguestfs mailing list Libguestfs@redhat.com https://www.redhat.com/mailman/listinfo/libguestfs
Finally some usable diagnostic info. Some of the earlier issues documented in this thread may have been network related. We redid some cabling and just tried another P2V test. Looking at /var/log/messages: Nov 21 17:13:57 FedoraP2V virt-v2v[14428]: p2v-server started. Nov 21 18:56:35 FedoraP2V virt-v2v[14428]: FATAL: Installation failed because the fo llowing files referenced in the configuration file are required, but missing: /usr/s hare/virtio-win/drivers/i386/WinXP windows/firstboot.bat windows/rhev-apt.exe window s/rhsrvany.exe Nov 21 18:56:35 FedoraP2V virt-v2v[14428]: p2v-server exited. [root@FedoraP2V ~]# The Fedora documentation says we need to do yum install virtio-win, but no such package apparently exists. [root@FedoraP2V ~]# [root@FedoraP2V ~]# yum install virtio-win Loaded plugins: langpacks, presto, refresh-packagekit Adding en_US to language list Setting up Install Process No package virtio-win available. Error: Nothing to do [root@FedoraP2V ~]# [root@FedoraP2V ~]# rpm -qa | grep virtio [root@FedoraP2V ~]# I remember a version of virtio-win RPM buried on a web/ftp site somewhere a couple years ago. Where would the most recent version reside? - Greg
participants (4)
-
Brian Gold -
Greg Scott -
Matthew Booth -
Richard W.M. Jones