Out of memory allocating the partition descriptor

Discussions related to using VirtualBox on Linux hosts.
thenilo
Posts: 3
Joined: 17. Apr 2009, 17:42
Primary OS: Ubuntu 8.10
VBox Version: OSE Debian
Guest OSses: Windows Vista

Re: Out of memory allocating the partition descriptor

Post by thenilo »

Hello

Is there any solution of this issue?
I have the same problem.

My fdisk -l

Code: Select all

Gerät  boot.     Anfang        Ende     Blöcke   Id  System
/dev/sda1               1          16      128488+  de  Dell Utility
/dev/sda2   *          17        8940    71680000    7  HPFS/NTFS
/dev/sda3            8940       35712   215040000    7  HPFS/NTFS
/dev/sda4           35713       38913    25712032+   5  Erweiterte
/dev/sda5           38306       38913     4883728+  82  Linux Swap / Solaris
/dev/sda6           35713       37089    11060689+  83  Linux
/dev/sda7           37090       38305     9767488+  83  Linux
My VBoxManage listpartitions

Code: Select all

linux:~$ VBoxManage internalcommands listpartitions -rawdisk /dev/sda
VirtualBox Command Line Management Interface Version 2.0.4_OSE
(C) 2005-2008 Sun Microsystems, Inc.
All rights reserved.

Number  Type   StartCHS       EndCHS      Size (MiB)  Start (Sect)
1       0xde  0   /1  /1   15  /254/63           125           63
2       0x07  16  /16 /1   1023/254/63         70000       258048
3       0x07  1023/254/63  1023/254/63        210000    143618048
6       0x83  1023/254/63  1023/254/63         10801    573713406
7       0x83  1023/254/63  1023/254/63          9538    595834848
5       0x82  1023/254/63  1023/254/63          4769    615369888
My fdisk /x /p

Code: Select all

Befehl (m für Hilfe): x

Expertenkommando (m für Hilfe): p

Festplatte /dev/sda: 255 Köpfe, 63 Sektoren, 38913 Zylinder

Nr AF  Kp Sek  Zyl  Kp Sek  Zyl     Anfang     Größe ID
 1 00   1   1    0 254  63   15         63     256977 de
 2 80  16   1   16 254  63 1023     258048  143360000 07
 3 00 254  63 1023 254  63 1023  143618048  430080000 07
 4 00 254  63 1023 254  63 1023  573713280   51424065 05
 5 00 254  63 1023 254  63 1023   41656608    9767457 82
 6 00 254  63 1023 254  63 1023        125   22121379 83
 7 00 254  63 1023 254  63 1023         63   19534977 83
Thanks for your help.
tytus
Posts: 10
Joined: 11. Feb 2009, 23:47

Re: Out of memory allocating the partition descriptor

Post by tytus »

I have not been able to find a workaround for this issue.
TerryE
Volunteer
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
Contact:

Re: Out of memory allocating the partition descriptor

Post by TerryE »

tytus, as I said: there's a bug in the code. I am not sure if there is a workaround with second logical partition such as yours until the Dev team fix the bug. Sorry
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
tytus
Posts: 10
Joined: 11. Feb 2009, 23:47

Re: Out of memory allocating the partition descriptor

Post by tytus »

Appreciate your help Terry.
sken
Posts: 1
Joined: 29. Apr 2009, 11:16
Primary OS: Debian Lenny
VBox Version: OSE Debian
Guest OSses: Windows Xp

Re: Out of memory allocating the partition descriptor

Post by sken »

Hi All,
I'm Luca, currently running Debian lenny and Windows xp in dualboo: I just tried to virtualized my Windows XP physical partition, but I got the same error of you (I partioned some times ago and most likely I created and subsequentially deleted extended extended partions).
Any further progress/workaround in resolving this bug?

Thanks in advance

Luca
drvi
Posts: 26
Joined: 25. Aug 2008, 08:19

Re: Out of memory allocating the partition descriptor

Post by drvi »

hi,
i'm having the same problem even with 2.2.2 , in Ubuntu 9.04

Code: Select all

$ sudo VBoxManage internalcommands createrawvmdk -filename /home/drvi/.VirtualBox/HardDisks/Windows7.vmdk -rawdisk /dev/sda -partitions 2 -relative -register
VirtualBox Command Line Management Interface Version 2.2.2
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

Out of memory allocating the partition descriptor for '/dev/sda'
The raw disk vmdk file was not created

Code: Select all

$ sudo VBoxManage internalcommands listpartitions -rawdisk /dev/sda
VirtualBox Command Line Management Interface Version 2.2.2
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

Number  Type   StartCHS       EndCHS      Size (MiB)  Start (Sect)
1       0x07  0   /1  /1   1023/254/63         14001           63
2       0x07  1023/0  /1   1023/254/63         16300     28676025
8       0x83  1023/254/63  1023/254/63          9216     62059221
6       0x83  1023/254/63  1023/254/63         62259     80935533
7       0x83  1023/254/63  1023/254/63          9224    208443438
5       0x82  1023/254/63  1023/254/63          3467    227335878

Code: Select all

$ sudo fdisk -l

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x492b8267

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        1785    14337981    7  HPFS/NTFS
/dev/sda2            1786        3863    16691535    7  HPFS/NTFS
/dev/sda3            3864       14593    86188725    5  Extended
/dev/sda5           14152       14593     3550333+  82  Linux swap / Solaris
/dev/sda6            5039       12975    63753921   83  Linux
/dev/sda7           12976       14151     9446188+  83  Linux
/dev/sda8            3864        5038     9438124+  83  Linux

Partition table entries are not in disk order

Code: Select all

$ sudo fdisk /dev/sda

Disk /dev/sda: 255 heads, 63 sectors, 14593 cylinders

Nr AF  Hd Sec  Cyl  Hd Sec  Cyl     Start      Size ID
 1 80   1   1    0 254  63 1023         63   28675962 07
 2 00   0   1 1023 254  63 1023   28676025   33383070 07
 3 00   0   1 1023 254  63 1023   62059095  172377450 05
 4 00   0   0    0   0   0    0          0          0 00
 5 00 254  63 1023 254  63 1023  165276783    7100667 82
 6 00 254  63 1023 254  63 1023         63  127507842 83
 7 00 254  63 1023 254  63 1023         63   18892377 83
 8 00 254  63 1023 254  63 1023        125   18876249 83
after fixing the partition order

Code: Select all

$ sudo fdisk /dev/sda

Disk /dev/sda: 255 heads, 63 sectors, 14593 cylinders

Nr AF  Hd Sec  Cyl  Hd Sec  Cyl     Start      Size ID
 1 80   1   1    0 254  63 1023         63   28675962 07
 2 00   0   1 1023 254  63 1023   28676025   33383070 07
 3 00   0   1 1023 254  63 1023   62059095  172377450 05
 4 00   0   0    0   0   0    0          0          0 00
 5 00 254  63 1023 254  63 1023        126   18876249 83
 6 00 254  63 1023 254  63 1023   18876437  127507842 83
 7 00 254  63 1023 254  63 1023  127507968   18892377 83
 8 00 254  63 1023 254  63 1023   18892503    7100667 82
was hoping to use windows7 from linux , and make full use of the 3D acceleration :(
any solutions yet :?:
TerryE
Volunteer
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
Contact:

Re: Out of memory allocating the partition descriptor

Post by TerryE »

drvi wrote:i'm having the same problem even with 2.2.2 , in Ubuntu 9.04
That's because this bug wasn't fixed in 2.2.2
drvi wrote:was hoping to use windows7 from linux , and make full use of the 3D acceleration :( any solutions yet :?:
3D acceleration is an entirely different subject with its own active topic. Please review this topic.
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
drvi
Posts: 26
Joined: 25. Aug 2008, 08:19

Re: Out of memory allocating the partition descriptor

Post by drvi »

TerryE wrote:That's because this bug wasn't fixed in 2.2.2
ok. i thought that it hadnt been reported, for this version , so added a still exists... to this topic
TerryE wrote:3D acceleration is an entirely different subject with its own active topic. Please review this topic.
i understand 3D acceleration , but previously i had separate windows7 installs[1hard disk , 1vbox] , so i had to switch to the hard disk install if i had to use 3d with the programs i had installed on that drive... [i checked XP and the 3D acceleration worked , so thought that i'd use the harddisk install for windows 7 rather than reinstall the 3D dependent programs, so i deleted the vbox Windows7!!! before i executed the command createrawvmdk !hence the irony]

By the way, 3D acceleration ,using the hardware GPU, is a totally awesome feature... hats off to the devs
and the CPU usage has also drastically reduced, 2.2.2 is a good solid build...
klaus
Oracle Corporation
Posts: 1335
Joined: 10. May 2007, 14:57

Re: Out of memory allocating the partition descriptor

Post by klaus »

We just found time to look into this. The testcases I had are working correctly now with the code in SVN (will take a bit until it propagates to OSE). Next release will contain the fix, so let us know if there are still odd cases which aren't handled correctly.
TerryE
Volunteer
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
Contact:

Re: Out of memory allocating the partition descriptor

Post by TerryE »

Thanks klaus. Much appreciated :-)
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Out of memory allocating the partition descriptor

Post by vbox4me2 »

Unless his first name is Santa.... hahaha, sorry could not resist it :lol:
tytus
Posts: 10
Joined: 11. Feb 2009, 23:47

Re: Out of memory allocating the partition descriptor

Post by tytus »

Unfortunately I don't have this setup any more. I repartition my hard disk several weeks ago. I wonder if somebody else can test it...
drvi
Posts: 26
Joined: 25. Aug 2008, 08:19

Re: Out of memory allocating the partition descriptor

Post by drvi »

klaus wrote: Next release will contain the fix, so let us know if there are still odd cases which aren't handled correctly.
Did you mean the 3.0.0 or yet to be released 2.2.x . if it is fixed in 3.0.0 i can test it out. :)
TerryE
Volunteer
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
Contact:

Re: Out of memory allocating the partition descriptor

Post by TerryE »

@dvri, Why don't you just look at the announcement :-)
VBoxManage: ?xed incorrect partition table processing when creating VMDK ?les giving raw partition access (bug #3510)
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
drvi
Posts: 26
Joined: 25. Aug 2008, 08:19

Re: Out of memory allocating the partition descriptor

Post by drvi »

TerryE wrote:@dvri, Why don't you just look at the announcement :-)
VBoxManage: ?xed incorrect partition table processing when creating VMDK ?les giving raw partition access (bug #3510)
Ah... :oops: thanx

I'll test it out within this week and report back if there are errors .
Post Reply