[virt-tools-list] what does virt-v2v check for in a multiboot os?

Kenneth Armstrong digimars at gmail.com
Mon Jan 31 18:01:03 UTC 2011


Ok, I had the same problem with a completely separate VM.  This one
was originally built on the ESX host, and the Recovery Console was
never installed on it.  There are two separate vmdk files representing
two separate hard disks.  I get the same problem with virt-v2v
thinking this is a multi-OS vm:

[root at rhel6 testing]# guestfish --ro -a SR-VSAV01_1-flat.vmdk -a
SR-VSAV01-flat.vmdk

Welcome to guestfish, the libguestfs filesystem interactive shell for
editing virtual machine filesystems.

Type: 'help' for help with commands
      'quit' to quit the shell

><fs> run
open /dev/kvm: No such file or directory
Could not initialize KVM, will disable KVM support
><fs> list-devices
/dev/vda
/dev/vdb
><fs> list-partitions
/dev/vda1
/dev/vdb1
><fs> mount-ro /dev/vda1 /
><fs> ll /
total 126456
drwxrwxrwx  1 root root     4096 Jan 18 16:23 .
dr-xr-xr-x 20 root root        0 Jan 31 17:55 ..
drwxrwxrwx  1 root root    16384 Jun 30  2009 1185b5784ad98e272191
drwxrwxrwx  1 root root        0 Apr 29  2010 Backups
drwxrwxrwx  1 root root        0 Jan 18 16:36 Config.Msi
drwxrwxrwx  1 root root     4096 Apr 29  2010 Downloads
drwxrwxrwx  1 root root     4096 Apr  6  2009 Exported Packages
drwxrwxrwx  1 root root     4096 Jul 26  2010 GPO
drwxrwxrwx  1 root root        0 Aug 26 19:42 MSOCache
drwxrwxrwx  1 root root     4096 Jan 18 16:15 Program Files
drwxrwxrwx  1 root root        0 Jul 13  2009 RECYCLER
drwxrwxrwx  1 root root     4096 Jan  5 18:56 RMS reinit
drwxrwxrwx  1 root root     4096 Jan 29 04:47 System Volume Information
-rwxrwxrwx  1 root root 78462392 Jun 17  2009 es31sfx.exe
drwxrwxrwx  1 root root     4096 Jul 26  2010 ken_scripts
-rwxrwxrwx  2 root root 50973800 Jul 13  2009 nac312sfx.exe
drwxrwxrwx  1 root root     4096 Jul 13  2009 standalone

><fs> umount /
><fs> mount-ro /dev/vdb1 /
><fs> ll /
total 1578441
drwxrwxrwx  1 root root       8192 Jan 18 16:23 .
dr-xr-xr-x 20 root root          0 Jan 31 17:55 ..
-rwxrwxrwx  1 root root          0 Mar 31  2009 AUTOEXEC.BAT
-rwxrwxrwx  1 root root          0 Mar 31  2009 CONFIG.SYS
drwxrwxrwx  1 root root       4096 Aug 25 14:56 Documents and Settings
drwxrwxrwx  1 root root    1355776 Mar 31  2009 I386
-rwxrwxrwx  1 root root          0 Mar 31  2009 IO.SYS
drwxrwxrwx  1 root root          0 Mar 31  2009 Inetpub
-rwxrwxrwx  2 root root    3627172 Jul  6  2009 MSDE2kLog.txt
-rwxrwxrwx  1 root root          0 Mar 31  2009 MSDOS.SYS
drwxrwxrwx  1 root root          0 Aug 26 19:40 Mail Client
-rwxrwxrwx  1 root root      47772 Feb 18  2007 NTDETECT.COM
drwxrwxrwx  1 root root       8192 Jan 18 16:23 Program Files
drwxrwxrwx  1 root root          0 Sep  1 14:30 RECYCLER
drwxrwxrwx  1 root root          0 Mar 31  2009 System Volume Information
-rwxrwxrwx  1 root root      22870 Mar 11  2007 TZupdate.reg
-rwxrwxrwx  2 root root         65 May 19  2010 TrackitAudit.id
drwxrwxrwx  1 root root     126976 Jan 30 22:02 WINDOWS
-rwxrwxrwx  1 root root     204792 Jul 13  2009 avremove.log
-rwxrwxrwx  1 root root        208 Mar 31  2009 boot.ini
-rwxrwxrwx  1 root root     297072 Feb 18  2007 ntldr
-rwxrwxrwx  1 root root 1610612736 Jan 30 21:59 pagefile.sys
drwxrwxrwx  1 root root          0 Jun 17  2009 sec31
drwxrwxrwx  1 root root          0 Jul 13  2009 temp
drwxrwxrwx  1 root root          0 Mar 31  2009 wmpub

><fs> umount /
><fs> quit

[root at rhel6 testing]# virt-inspector --perl SR-VSAV01-flat.vmdk
SR-VSAV01_1-flat.vmdk
open /dev/kvm: No such file or directory
Could not initialize KVM, will disable KVM support
$VAR1 = '/dev/sda1';
$VAR2 = {
          'arch' => 'i386',
          'apps' => [],
          'os' => 'windows',
          'major_version' => '5',
          'root_device' => '/dev/sda1',
          'filesystems' => {
                             '/dev/sda1' => {
                                              'arch' => 'i386',

'windows_registered_owner' => 'MIS',
                                              'content' => 'windows-root',
                                              'is_root' => 1,
                                              'windows_current_type'
=> 'Uniprocessor Free',
                                              'windows_system_hive' =>
'/WINDOWS/system32/config/system',
                                              'os_minor_version' => '2',
                                              'fsos' => 'windows',
                                              'systemroot' => '/WINDOWS',
                                              'windows_software_hive'
=> '/WINDOWS/system32/config/software',
                                              'windows_software_type'
=> 'SYSTEM',

'windows_registered_organization' => 'Botetourt MIS',
                                              'windows_current_build'
=> '1.511.1 () (Obsolete data - do not use)',
                                              'is_mountable' => 1,
                                              'os_major_version' => '5',
                                              'boot_ini' => '/boot.ini',
                                              'fstype' => 'ntfs',
                                              'product_name' =>
'Microsoft Windows Server 2003'
                                            }
                           },
          'root' => $VAR2->{'filesystems'}{'/dev/sda1'},
          'minor_version' => '2',
          'mounts' => {
                        '/' => '/dev/sda1'
                      },
          'product_name' => 'Microsoft Windows Server 2003'
        };
$VAR3 = '/dev/sdb1';
$VAR4 = {
          'root_device' => '/dev/sdb1',
          'apps' => [],
          'filesystems' => {
                             '/dev/sdb1' => {
                                              'is_mountable' => 1,
                                              'content' => 'windows-root',
                                              'boot_ini' => undef,
                                              'is_root' => 1,
                                              'fsos' => 'windows',
                                              'fstype' => 'ntfs'
                                            }
                           },
          'root' => $VAR4->{'filesystems'}{'/dev/sdb1'},
          'mounts' => {
                        '/' => '/dev/sdb1'
                      },
          'os' => 'windows'
        };


On Thu, Jan 27, 2011 at 3:47 AM, Richard W.M. Jones <rjones at redhat.com> wrote:
> On Wed, Jan 26, 2011 at 10:54:34PM -0500, Kenneth Armstrong wrote:
>> This is with the Recovery Console installed:
>>
>> [root at rhel6 testing]# virt-inspector --perl sr-adc01.BOTETOURTVA.US-flat.vmdk
> [...]
>> It doesn't look that much different except for the additions of the
>> cmdcons directory and the cmldr file on the root of C:\
>
> This can't be the same guest that virt-v2v complained about, because
> virt-inspector clearly doesn't think the guest is multiboot.
>
>> Going back to the very original problem, I wasn't able to use virt-v2v
>> until I deleted my second partition from my vmdk file (which was
>> empty).
>>
>> I had a single vmdk file, with the OS on one partition, and useless
>> data on the second.  I couldn't get virt-v2v to do anything with the
>> vm because it thought (I assume) that the second partition was another
>> OS, so I deleted that partition, and then virt-v2v worked fine.
>
> What makes you think the sescond partition had "useless" data on it?
>
> In any case the second partition doesn't show up at all on the data
> provided above so this useless data seems to be the key to the
> problem.
>
> 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
>




More information about the virt-tools-list mailing list