Page 1 of 1

VBOX2.1 LogoPath and bioslogoimagepath

Posted: 23. Dec 2008, 10:18
by kihjin
Anyone had any success with the bioslogoimagepath option? The documentation says "The image must be an
uncompressed 256 color BMP file" although it doesn't specify what the resolution should be I assumed it would be 640x480.

I ran

VBoxManage modifyvm vm -biosbootmenu messageandmenu -bioslogodisplaytime 10000 -bioslogoimagepath /vps/bios.bmp

(I used 10s here just as a test to see it if was working or not)

and then ran VBoxHeadless -s vm

No change to the bios logo, however, the log file shows:

Code: Select all

00:00:00.091 [/Devices/vga/0/Config/] (level 4)
00:00:00.091   VRamSize         <integer> = 0x0000000000400000 (4194304)
00:00:00.091   FadeIn           <integer> = 0x0000000000000001 (1)
00:00:00.091   FadeOut          <integer> = 0x0000000000000001 (1)
00:00:00.091   LogoTime         <integer> = 0x0000000000002710 (10000)
00:00:00.091   LogoFile         <string>  = "/vps/bios.bmp" (cch=14)
00:00:00.091   ShowBootMenu     <integer> = 0x0000000000000002 (2)
00:00:00.091   CustomVideoModes <integer> = 0x0000000000000000 (0)
00:00:00.091   HeightReduction  <integer> = 0x0000000000000000 (0)

Posted: 24. Dec 2008, 20:35
by kihjin
Obviously this isn't critical, but has anyone tried this??

Please try this and see if you can get it to work. It's very easy to do.

Thanks

Tested with success

Posted: 24. Dec 2008, 23:52
by shelbywill
I tested this with PUEL version 2.10 and it works.

All I needed was a 256-color bitmap.

Posted: 24. Dec 2008, 23:54
by kihjin
I created a 640x480 image in GIMP, and set the color mode to Indexed. Then I saved as Bitmap.

What are the dimensions of your image?

Posted: 25. Dec 2008, 00:13
by shelbywill
I used GIMP as well to create the 640x480 bitmap with an indexed color mode of 256 colors. I tried both very simple and very complex images (i.e. all 256 colors on the pallette used).

I created a new VM (named test) and modified it in the same method you posted:
VBoxManage modifyvm test -biosbootmenu messageandmenu -bioslogodisplaytime 10000 -bioslogoimagepath /home/shelby/logo.bmp

In my VM log however, I have:
00:00:01.268 LogoFile <string> = "/home/shelby/logo.bmp" (cch=22)

Posted: 25. Dec 2008, 01:04
by kihjin
Thank you for trying this out for me! I still haven't solved the problem on my end though.

I tested it with a broken (missing) file and the VBox.log shows the error. However, testing with a "good" file, no error, no message, and I still get the default Sun bios logo.

test.xml after running VBoxManage modifyvm test -bioslogoimagepath /home/kyle/test.bmp -biosbootmenu messageandmenu -bioslogodisplaytime 10000

Code: Select all

      <BIOS>
        <ACPI enabled="true"/>
        <IOAPIC enabled="false"/>
        <Logo fadeIn="true" fadeOut="true" displayTime="10000" imagePath="/home/kyle/test.bmp"/>
        <BootMenu mode="MessageAndMenu"/>
        <TimeOffset value="0"/>
        <PXEDebug enabled="false"/>
        <IDEController type="PIIX4"/>
      </BIOS>
$ file test.bmp
test.bmp: PC bitmap data, Windows 3.x format, 640 x 480 x 1

$ display -verbose test.bmp
test.bmp BMP 640x480 640x480+0+0 PseudoClass 2c 8-bit 37.5605kb

Posted: 25. Dec 2008, 01:13
by kihjin
OK I got it to work.

display -verbose test.bmp
test.bmp BMP 640x480 640x480+0+0 PseudoClass 216c 8-bit 300.896kb

It doesn't seem to work if there are only two colors. So now the image still only has two colors, but the palette has 216.

Thank you for your help! I felt like I was losing my mind :-P

Re: VBOX2.1 LogoPath and bioslogoimagepath

Posted: 28. Apr 2009, 21:23
by Docproc
Hi

I'm having a similar problem (using VB 2.2.2 on OS X 10.5.6, with an Ubuntu guest). I've tried everything but I can't get any custom image to appear at all - I only ever get the default Sun box logo.

Imagemagick says this about my image:

/Users/me/Desktop/logo.bmp BMP 640x480 640x480+0+0 DirectClass 8-bit 1.17193mb

which seems to me to fulfil all the criteria - BMP, 8-bit, 640x480, uncompressed. The actual image is here.

I've used vboxmanage to set the --bioslogoimagepath and --bioslogodisplaytime parameters. The display time is definitely picked up, but the image isn't. The relevant section of the XML file is

Code: Select all

 <BIOS>
        <ACPI enabled="true"/>
        <IOAPIC enabled="false"/>
        <Logo fadeIn="true" fadeOut="true" displayTime="5000" imagePath="/Users/me/Desktop/logo.bmp"/>
        <BootMenu mode="Disabled"/>
        <TimeOffset value="0"/>
        <PXEDebug enabled="false"/>
      </BIOS>
... but it just won't display. Am I missing something really obvious here?

Thanks in advance!

Glenn.

Re: VBOX2.1 LogoPath and bioslogoimagepath

Posted: 28. Apr 2009, 21:43
by kihjin
I haven't yet tried with 2.2.* so there MAY be a bug with the release.

My above post refers to the 2.1.4 release so you may want to try your image with that version if you haven't already.

Ceteris paribus, it seems like there is something wrong with your image. 1.17193mb seems a bit too large. The images that I have produced are around 300 KB. I think that you are saving your image in RGB mode, when you want to save in indexed mode. In GIMP you can find this under "Image->Mode"

Re: VBOX2.1 LogoPath and bioslogoimagepath

Posted: 28. Apr 2009, 22:02
by Docproc
Thanks for the quick reply - saving the image in RGB mode was one of the increasingly desperate things I tried to see if I could get it to display. I've used GIMP to change it back to indexed and it's down to a more manageable 64k - but VirtualBox still doesn't want to display it!

I've tried the same thing with the 2.1.something OSE edition on an Ubuntu host, with a similar lack of success.

I'll keep investigating. One favour - could you post/send the image that you have which works for you? That would remove one variable from the equation.

Regards

Glenn.

Re: VBOX2.1 LogoPath and bioslogoimagepath

Posted: 28. Apr 2009, 22:10
by kihjin
I'll whip up a basic one when I get home from work.

Re: VBOX2.1 LogoPath and bioslogoimagepath

Posted: 29. Apr 2009, 05:07
by kihjin
Example image is attached. I had to gzip it because the forum wouldn't permit me to upload a bmp.

Re: VBOX2.1 LogoPath and bioslogoimagepath

Posted: 29. Apr 2009, 08:50
by Docproc
Thanks - your image worked fine - the logo displayed first time! So now I just have to figure out what the difference is between your working version and my non-working version.

It's progress at least!

Regards

Glenn.

Re: VBOX2.1 LogoPath and bioslogoimagepath

Posted: 29. Apr 2009, 09:39
by Docproc
Solved it - the DPI of my original image was something other than 72x72. Once I changed it to be 72x72, it displayed fine. I only noticed this when doing a side-by-side comparison of your working image and my non-working image.

Thanks for your help!

Glenn.

Re: VBOX2.1 LogoPath and bioslogoimagepath

Posted: 29. Apr 2009, 14:30
by kihjin
Congratulations :)