Page 1 of 1

export/import two partitions

Posted: 14. Jun 2010, 22:39
by poesel
Hi,

I'm using 3.2.4 on OS X 10.6.3. I've created a XP guest with two partitions - 'C' with 10Gb and 'E' with 55Mb. Everything runs fine. Now I export per 'export appliance'

Problem: I try to reimport on the same machine. The VM does not boot because somehow the second partition exists twice (the second has a '_1' appended). This second partition has no OS.

Ok, I try the same on a Win7 machine with a fresh VBox install. Same happens. I manually add the 'C'-partition and change the VM to use it. Now XP boots but BSODS because it cannot mount the boot partition (how can it boot when it could not mount?).

IMHO the main problem is why I end with two times the same partition instead of two different ones?

Thanks for your help

Re: export/import two partitions

Posted: 15. Jun 2010, 12:45
by mpack
Your description doesn't make sense to me. Export/import effectively images all of the data on your virtual drives. The fact that some of that data represents one or several "partitions" to whatever filesystem your guest happens to use should be irrelevant to VirtualBox and anything you can do with VirtualBox. So, I don't understand your problem, or whatever you have tried to do to "solve" it.

Re: export/import two partitions

Posted: 15. Jun 2010, 15:36
by Perryg
While I as well did not understand your description I too tried to export Windows XP and then import it to a Linux box and it failed at several places.
  • First I had a shared folder that was on the Windows host and it exports it as well. Then when importing VBox fails stating the path is not absolute. Deleting the share before exporting fixes that.
  • Secondly, the Windows version of XP was set to use SATA and it appears that the SATA for Windows is not compatible with the SATA for Linux and it returns a no bootable media found.
I am in the process of switching the XP VM back to IDE to see if it will complete the export/import, but this all seems rather odd that I would need to do all of this editing before I could export a machine to another. Guess it is the sign of the times..

Note: the XP machine has (2) driver and the second drive is Partitioned to (2) drives, but I don't see this as a problem. The export sees and exports both drives and of course the partition is included in on drive and makes no difference at all.

Re: export/import two partitions

Posted: 15. Jun 2010, 17:44
by Perryg
In case you want to track this here is the link in bugtracker. http://www.virtualbox.org/ticket/7001
I suspect it is (2) drives and not the (2) partitions that is causing the problem, at least it is for me.

Re: export/import two partitions

Posted: 16. Jun 2010, 09:32
by poesel
Sorry if it didn't make sense to you - I didn't understand it either.

My solution was to export only one partition and create the other manually on the target host. I then used an imager to transfer the data from the second partition.
This worked without problems.

Re: export/import two partitions

Posted: 29. Jun 2010, 12:18
by sstolz
Hi,

I'm having the same problem. I've got a VBox on Mac host with a Linux guest (Ubuntu Server 10.04 64 bits) with 2 SATA hard drive that exports fine (OVF file seems to have good information inside and I've got my 2 VMDK files).

But when I'm importing this guest on a different computer (MacOS host, even on a fresh VBox install) the imported guest have two same duplicate hard drive :

Export folder :

Code: Select all

-rwxrwxrwx   1 sstolz staff 1,9G 28 jui 18:04 flanders.vmdk*
-rwxrwxrwx   1 sstolz staff 396M 28 jui 18:04 flanders_home.vmdk*
-rwxrwxrwx   1 sstolz staff  189 28 jui 18:05 otto.mf*
-rwxrwxrwx   1 sstolz staff  17K 28 jui 18:04 otto.ovf*
Vbox hardrive folder after import operation :

Code: Select all

-rw------- 1 sstolz staff 834M 29 jui 11:01 flanders_home.vmdk
-rw------- 1 sstolz staff 834M 29 jui 11:02 flanders_home_1.vmdk
You can see clearly that the "home" hard drive has been duplicated during the import process.

I can find this informations in the OVF file of the export folder :

Code: Select all

<References>
  <File ovf:href="flanders.vmdk" ovf:id="file1" ovf:size="2028270080"/>
  <File ovf:href="flanders_home.vmdk" ovf:id="file2" ovf:size="414712320"/>
</References>
<DiskSection>
  <Info>List of the virtual disks used in the package</Info>
  <Disk ovf:capacity="30333206528" ovf:diskId="vmdisk1" ovf:fileRef="file1" ovf:format="http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized" vbox:uuid="cc4fc36b-5b7a-42a7-a3e3-e795ed7aaa86"/>
  <Disk ovf:capacity="34155266048" ovf:diskId="vmdisk2" ovf:fileRef="file2" ovf:format="http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized" vbox:uuid="b602b089-31df-468c-a6bc-6f087ea70139"/>
</DiskSection>
It seems that OVF file is good too.

I've tried the import process with the GUI and with the command line tool. I will try the export command line instead of the GUI one to see if it changes something.

Any idea about this problem ? I didn't find a revelant bug ticket on that problem.

Thanks,

Sebastien.

Re: export/import two partitions

Posted: 29. Jun 2010, 14:48
by Perryg
See my post above for the ticket number I posted 2 weeks ago.