[PATCH v2v] Pre-convert Windows guests.
This is my lightly tested patch which allows pre-conversion of Windows guests. You also need to supply rhsrvany.exe and firstboot scripts. 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 06/05/10 17:55, Richard W.M. Jones wrote:
From fe19327ca120f2bc08229e495da0caf0c9141cb6 Mon Sep 17 00:00:00 2001 From: Richard Jones <rjones@redhat.com> Date: Thu, 6 May 2010 17:53:09 +0100 Subject: [PATCH 2/2] Pre-convert Windows guests.
--- lib/Sys/VirtV2V/Converter/Windows.pm | 156 ++++++++++++ lib/Sys/VirtV2V/GuestOS/Windows.pm | 464 ++++++++++++++++++++++++++++++++++ v2v/virt-v2v.conf | 25 ++ 3 files changed, 645 insertions(+), 0 deletions(-) create mode 100644 lib/Sys/VirtV2V/Converter/Windows.pm create mode 100644 lib/Sys/VirtV2V/GuestOS/Windows.pm
With a little cut/paste you could put everything in GuestOS::Windows into Converter::Windows. I'm trying to move things out of there, not in! Matt -- Matthew Booth, RHCA, RHCSS Red Hat Engineering, Virtualisation Team M: +44 (0)7977 267231 GPG ID: D33C3490 GPG FPR: 3733 612D 2D05 5458 8A8A 1600 3441 EA19 D33C 3490
On Fri, May 07, 2010 at 11:10:04AM +0100, Matthew Booth wrote:
On 06/05/10 17:55, Richard W.M. Jones wrote:
From fe19327ca120f2bc08229e495da0caf0c9141cb6 Mon Sep 17 00:00:00 2001 From: Richard Jones <rjones@redhat.com> Date: Thu, 6 May 2010 17:53:09 +0100 Subject: [PATCH 2/2] Pre-convert Windows guests.
--- lib/Sys/VirtV2V/Converter/Windows.pm | 156 ++++++++++++ lib/Sys/VirtV2V/GuestOS/Windows.pm | 464 ++++++++++++++++++++++++++++++++++ v2v/virt-v2v.conf | 25 ++ 3 files changed, 645 insertions(+), 0 deletions(-) create mode 100644 lib/Sys/VirtV2V/Converter/Windows.pm create mode 100644 lib/Sys/VirtV2V/GuestOS/Windows.pm
With a little cut/paste you could put everything in GuestOS::Windows into Converter::Windows. I'm trying to move things out of there, not in!
So then we wouldn't have a GuestOS::Windows class at all, or would we need an empty one? Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones New in Fedora 11: Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 70 libraries supprt'd http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw
On 07/05/10 11:42, Richard W.M. Jones wrote:
On Fri, May 07, 2010 at 11:10:04AM +0100, Matthew Booth wrote:
On 06/05/10 17:55, Richard W.M. Jones wrote:
From fe19327ca120f2bc08229e495da0caf0c9141cb6 Mon Sep 17 00:00:00 2001 From: Richard Jones <rjones@redhat.com> Date: Thu, 6 May 2010 17:53:09 +0100 Subject: [PATCH 2/2] Pre-convert Windows guests.
--- lib/Sys/VirtV2V/Converter/Windows.pm | 156 ++++++++++++ lib/Sys/VirtV2V/GuestOS/Windows.pm | 464 ++++++++++++++++++++++++++++++++++ v2v/virt-v2v.conf | 25 ++ 3 files changed, 645 insertions(+), 0 deletions(-) create mode 100644 lib/Sys/VirtV2V/Converter/Windows.pm create mode 100644 lib/Sys/VirtV2V/GuestOS/Windows.pm
With a little cut/paste you could put everything in GuestOS::Windows into Converter::Windows. I'm trying to move things out of there, not in!
So then we wouldn't have a GuestOS::Windows class at all, or would we need an empty one?
It's not required at all. Matt -- Matthew Booth, RHCA, RHCSS Red Hat Engineering, Virtualisation Team M: +44 (0)7977 267231 GPG ID: D33C3490 GPG FPR: 3733 612D 2D05 5458 8A8A 1600 3441 EA19 D33C 3490
On Fri, May 07, 2010 at 01:25:23PM +0100, Matthew Booth wrote:
On 07/05/10 11:42, Richard W.M. Jones wrote:
On Fri, May 07, 2010 at 11:10:04AM +0100, Matthew Booth wrote:
On 06/05/10 17:55, Richard W.M. Jones wrote:
From fe19327ca120f2bc08229e495da0caf0c9141cb6 Mon Sep 17 00:00:00 2001 From: Richard Jones <rjones@redhat.com> Date: Thu, 6 May 2010 17:53:09 +0100 Subject: [PATCH 2/2] Pre-convert Windows guests.
--- lib/Sys/VirtV2V/Converter/Windows.pm | 156 ++++++++++++ lib/Sys/VirtV2V/GuestOS/Windows.pm | 464 ++++++++++++++++++++++++++++++++++ v2v/virt-v2v.conf | 25 ++ 3 files changed, 645 insertions(+), 0 deletions(-) create mode 100644 lib/Sys/VirtV2V/Converter/Windows.pm create mode 100644 lib/Sys/VirtV2V/GuestOS/Windows.pm
With a little cut/paste you could put everything in GuestOS::Windows into Converter::Windows. I'm trying to move things out of there, not in!
So then we wouldn't have a GuestOS::Windows class at all, or would we need an empty one?
It's not required at all.
The attached version combines everything into a single module. 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
The parent didn't work because I had an old file left over in the Perl blib directory. This patch fixes it. 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
Perl's rules on quoting backslashes within strings are more complex than I imagined: http://en.wikibooks.org/wiki/Perl_Programming/Strings#Single_Quoted_Strings Updated patch should fix the quoting. 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
participants (2)
-
Matthew Booth -
Richard W.M. Jones