Bug 612386

Summary: [RFE]V2V should support to convert Win7
Product: Red Hat Enterprise Linux 5 Reporter: Rita Wu <rwu>
Component: virt-v2vAssignee: Matthew Booth <mbooth>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: high Docs Contact:
Priority: medium    
Version: 5.5CC: cwei, llim, mbooth, mkenneth, rjones
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-07-08 08:55:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Rita Wu 2010-07-08 05:06:29 UTC
Description of problem:
Currently there is no package and file about Win7 specified in /etc/virt-v2v.conf and /var/lib/virt-v2v/software, so we cannot convert Win7 successfully. 

...
 <!-- Windows -->
  <app os='windows' major='5' minor='1' arch='i386' name='viostor'>
    <path>windows/xp/i386/viostor.sys</path>
  </app>
  <app os='windows' major='5' minor='2' arch='i386' name='viostor'>
    <path>windows/2003/i386/viostor.sys</path>
  </app>
  <app os='windows' major='5' minor='2' arch='x86_64' name='viostor'>
    <path>windows/2003/x86_64/viostor.sys</path>
  </app>
  <app os='windows' major='6' arch='i386' name='viostor'>
    <path>windows/2008/i386/viostor.sys</path>
  </app>
  <app os='windows' major='6' arch='x86_64' name='viostor'>
    <path>windows/2008/x86_64/viostor.sys</path>
  </app>
  <!-- RHSrvAny is compiled as a 32 bit app even on 64 bit Windows -->
  <app os='windows' name='rhsrvany'>
    <path>windows/rhsrvany.exe</path>
  </app>
...

# cat /var/lib/virt-v2v/software/windows/
2003/          firstboot.bat  rhsrvany.exe   
2008/          rhev-apt.exe   xp/
# cat /var/lib/virt-v2v/software/windows/2008/
i386/   x86_64/ 


Version-Release number of selected component (if applicable):
virt-v2v-0.6.1-1.el5


How reproducible:
always

Steps to Reproduce:

  
Actual results:


Expected results:


Additional info:

Comment 1 Richard W.M. Jones 2010-07-08 07:53:37 UTC
I think you may be confused about this.  "Windows 7"
has the internal release number 6.1 and is therefore
covered by the W2K8 drivers.

Did you try updating an actual Windows 7 machine?

Try running virt-inspector on the image to find out the
real Windows internal version.

Comment 3 Rita Wu 2010-07-08 08:55:51 UTC
Hi Richard,

Thanks for your info. the internal version of Win7 is 6.1(the same as Window2008r2).And I retest it, v2v can convert win7 successfully.

#virt-inspector --perl win7-32.raw
$VAR1 = '/dev/sda2';
$VAR2 = {
          'arch' => 'i386',
          'apps' => [],
          'os' => 'windows',
          'major_version' => '6',
          'root_device' => '/dev/sda2',
          'filesystems' => {
                             '/dev/sda2' => {
                                              'arch' => 'i386',
                                              'windows_registered_owner' => 'root-32',
                                              'content' => 'windows-root',
                                              'is_root' => 1,
                                              'windows_current_type' => 'Multiprocessor Free',
                                              'windows_system_hive' => '/Windows/System32/config/SYSTEM',
                                              'windows_installation_type' => 'Client',
                                              'os_minor_version' => '1',
                                              'fsos' => 'windows',
                                              'systemroot' => '/Windows',
                                              'windows_software_hive' => '/Windows/System32/config/SOFTWARE',
                                              'windows_software_type' => 'System',
                                              'windows_registered_organization' => '',
                                              'windows_current_build' => '7600',
                                              'windows_edition_id' => 'Ultimate',
                                              'is_mountable' => 1,
                                              'os_major_version' => '6',
                                              'product_name' => 'Windows 7 Ultimate',
                                              'boot_ini' => undef,
                                              'fstype' => 'ntfs'
                                            }
                           },
          'root' => $VAR2->{'filesystems'}{'/dev/sda2'},
          'minor_version' => '1',
          'mounts' => {
                        '/' => '/dev/sda2'
                      },
          'product_name' => 'Windows 7 Ultimate'
        };