Discussion:
[vbox-dev] frontend with no display/framebuffer
DRACULAX
2014-09-17 10:03:40 UTC
Permalink
Hi, guys, I recently build my frontend which based on VBoxHeadless.exe

except that I do not create any framebuffer for it.

When I start my frontend it got the following error output.

It looks like the vga device failed to start.

Am I missing something? Is the framebuffer object needed anyway?



Best regards for you



VirtualBox VM 4.3.10 r93012 win.amd64 (Mar 26 2014 18:53:57) release log

00:00:00.824047 Log opened 2014-09-17T08:54:22.362547900Z

00:00:00.824047 Build Type: release

00:00:00.963055 DMI Product Name: 3443A96

00:00:00.968055 DMI Product Version: ThinkPad X1 Carbon

00:00:00.968055 Host RAM: 3776MB total, 880MB available

.

.

00:00:03.319951 CPUM: SetGuestCpuIdFeature: Enabled APIC

00:00:03.335542 PIT: mode=3 count=0x10000 (65536) - 18.20 Hz (ch=0)

00:00:03.353628 Shared Folders service loaded.

00:00:03.364024 PDM: Failed to construct 'vga'/0! VERR_INVALID_STATE (-79) -
Generic invalid state error.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.virtualbox.org/pipermail/vbox-dev/attachments/20140917/5159b4c0/attachment.html
Klaus Espenlaub
2014-09-18 13:02:33 UTC
Permalink
Post by DRACULAX
Hi, guys, I recently build my frontend which based on VBoxHeadless.exe
except that I do not create any framebuffer for it.
When I start my frontend it got the following error output.
It looks like the vga device failed to start.
Am I missing something? Is the framebuffer object needed anyway?
Yes, as long as the VGA card is configured (in 4.3 you can actually
disable it using CLI) it needs a framebuffer. Wonder why it's worth
implementing a framebuffer-less VBoxHeadless look-alike.

It's required to get at the screen content, and it was considered too
unusual to have a VGA card and no framebuffer. When disabling VGA it's a
valid setup.

Klaus
Post by DRACULAX
Best regards for you
VirtualBox VM 4.3.10 r93012 win.amd64 (Mar 26 2014 18:53:57) release log
00:00:00.824047 Log opened 2014-09-17T08:54:22.362547900Z
00:00:00.824047 Build Type: release
00:00:00.963055 DMI Product Name: 3443A96
00:00:00.968055 DMI Product Version: ThinkPad X1 Carbon
00:00:00.968055 Host RAM: 3776MB total, 880MB available
...
...
00:00:03.319951 CPUM: SetGuestCpuIdFeature: Enabled APIC
00:00:03.335542 PIT: mode=3 count=0x10000 (65536) - 18.20 Hz (ch=0)
00:00:03.353628 Shared Folders service loaded.
00:00:03.364024 PDM: Failed to construct 'vga'/0! VERR_INVALID_STATE
(-79) - Generic invalid state error.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.virtualbox.org/pipermail/vbox-dev/attachments/20140918/5152924f/attachment-0001.html
DRACULAX
2014-09-22 04:00:31 UTC
Permalink
Thanks and I write a nullframebuffer (grab from VBoxHeadless) and it work
now.

And now I has another question. It seem that the own-defined frontend only
can start from virtualbox installed folder.

If I put my MyFrontEnd.exe into another folder and start it, the log say the
vm can not find the vboxvmm.dll and the path is wrong.

It look for core dlls from my exe?s dir.

Is it harden-coding?



???: Klaus Espenlaub [mailto:klaus.espenlaub at oracle.com]
????: 2014?9?18? 21:03
???: vbox-dev at virtualbox.org
??: Re: [vbox-dev] frontend with no display/framebuffer



On 17.09.2014 12:03, DRACULAX wrote:



Hi, guys, I recently build my frontend which based on VBoxHeadless.exe

except that I do not create any framebuffer for it.

When I start my frontend it got the following error output.

It looks like the vga device failed to start.

Am I missing something? Is the framebuffer object needed anyway?

Yes, as long as the VGA card is configured (in 4.3 you can actually disable
it using CLI) it needs a framebuffer. Wonder why it's worth implementing a
framebuffer-less VBoxHeadless look-alike.

It's required to get at the screen content, and it was considered too
unusual to have a VGA card and no framebuffer. When disabling VGA it's a
valid setup.

Klaus




Best regards for you



VirtualBox VM 4.3.10 r93012 win.amd64 (Mar 26 2014 18:53:57) release log

00:00:00.824047 Log opened 2014-09-17T08:54:22.362547900Z

00:00:00.824047 Build Type: release

00:00:00.963055 DMI Product Name: 3443A96

00:00:00.968055 DMI Product Version: ThinkPad X1 Carbon

00:00:00.968055 Host RAM: 3776MB total, 880MB available

?

?

00:00:03.319951 CPUM: SetGuestCpuIdFeature: Enabled APIC

00:00:03.335542 PIT: mode=3 count=0x10000 (65536) - 18.20 Hz (ch=0)

00:00:03.353628 Shared Folders service loaded.

00:00:03.364024 PDM: Failed to construct 'vga'/0! VERR_INVALID_STATE (-79) -
Generic invalid state error.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.virtualbox.org/pipermail/vbox-dev/attachments/20140922/97d3f8af/attachment.html
Klaus Espenlaub
2014-10-06 15:53:08 UTC
Permalink
Post by DRACULAX
Thanks and I write a nullframebuffer (grab from VBoxHeadless) and it
work now.
And now I has another question. It seem that the own-defined frontend
only can start from virtualbox installed folder.
If I put my MyFrontEnd.exe into another folder and start it, the log say
the vm can not find the vboxvmm.dll and the path is wrong.
It look for core dlls from my exe?s dir.
Is it harden-coding?
Yes and no - it uses the directory where the executable lives to locate
the DLLs, and when you put the executable in a different place than the
VirtualBox install directory, it will not find key components.

Hard to fix this generically...

Klaus
Post by DRACULAX
*???:*Klaus Espenlaub [mailto:klaus.espenlaub at oracle.com]
*????:*2014?9?18?21:03
*???:*vbox-dev at virtualbox.org
*??:*Re: [vbox-dev] frontend with no display/framebuffer
Hi, guys, I recently build my frontend which based on VBoxHeadless.exe
except that I do not create any framebuffer for it.
When I start my frontend it got the following error output.
It looks like the vga device failed to start.
Am I missing something? Is the framebuffer object needed anyway?
Yes, as long as the VGA card is configured (in 4.3 you can actually
disable it using CLI) it needs a framebuffer. Wonder why it's worth
implementing a framebuffer-less VBoxHeadless look-alike.
It's required to get at the screen content, and it was considered too
unusual to have a VGA card and no framebuffer. When disabling VGA it's a
valid setup.
Klaus
Best regards for you
VirtualBox VM 4.3.10 r93012 win.amd64 (Mar 26 2014 18:53:57) release log
00:00:00.824047 Log opened 2014-09-17T08:54:22.362547900Z
00:00:00.824047 Build Type: release
00:00:00.963055 DMI Product Name: 3443A96
00:00:00.968055 DMI Product Version: ThinkPad X1 Carbon
00:00:00.968055 Host RAM: 3776MB total, 880MB available
?
?
00:00:03.319951 CPUM: SetGuestCpuIdFeature: Enabled APIC
00:00:03.335542 PIT: mode=3 count=0x10000 (65536) - 18.20 Hz (ch=0)
00:00:03.353628 Shared Folders service loaded.
00:00:03.364024 PDM: Failed to construct 'vga'/0! VERR_INVALID_STATE
(-79) - Generic invalid state error.
Loading...