Virtualbox Configuration Manager

Discussion about using the VirtualBox API, Tutorials, Samples.
Post Reply
burhan
Posts: 12
Joined: 11. Sep 2015, 15:21

Virtualbox Configuration Manager

Post by burhan »

I am trying to use the cfgm.cpp functions like CFGMR3QueryBytes( ) to access data from the configuration xml file but it just crashes the VM before even starting. The log says CFGMR3QueryBytes( ) is undefined symbol. I have included the necessary header files. I also looked at DevPCNet.cpp which is using the same functions in its pcnetConstruct( ) function successfully.
burhan
Posts: 12
Joined: 11. Sep 2015, 15:21

Re: Virtualbox Configuration Manager

Post by burhan »

Here is the last few lines of the log

00:00:00.537548 rtldrNativeLoad: dlopen('/home/burhanwani/VirtualBox-4.3.28/out/linux.amd64/debug/bin/libvirtdevice.so', RTLD_NOW | RTLD_LOCAL) failed: /home/burhanwani/VirtualBox-4.3.28/out/linux.amd64/debug/bin/libvirtdevice.so: undefined symbol: CFGMR3AreValuesValid
00:00:00.537572 VMSetError: /home/burhanwani/VirtualBox-4.3.28/src/VBox/VMM/VMMR3/PDMLdr.cpp(307) int pdmR3LoadR3U(PUVM, const char*, const char*); rc=VERR_FILE_NOT_FOUND
00:00:00.537583 VMSetError: Unable to load R3 module /home/burhanwani/VirtualBox-4.3.28/out/linux.amd64/debug/bin/libvirtdevice.so (libvirtdevice): /home/burhanwani/VirtualBox-4.3.28/out/linux.amd64/debug/bin/libvirtdevice.so: undefined symbol: CFGMR3AreValuesValid
00:00:00.537634
00:00:00.537634 !!Assertion Failed!!
00:00:00.537635 Expression: <NULL>
00:00:00.537636 Location : /home/burhanwani/VirtualBox-4.3.28/src/VBox/VMM/VMMR3/PDMDevice.cpp(625) int pdmR3DevLoad(PVM, PPDMDEVREGCBINT, const char*, const char*)
00:00:00.537663 Failed to load /home/burhanwani/VirtualBox-4.3.28/out/linux.amd64/debug/bin/libvirtdevice libvirtdevice!
burhan
Posts: 12
Joined: 11. Sep 2015, 15:21

Re: Virtualbox Configuration Manager

Post by burhan »

libvirtdevice.so is the binary of my virtual device which I am writing on my own and adding it to Virtualbox. Everything was working fine and the file would load just fine before I tried to use the configuration manager functions.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Virtualbox Configuration Manager

Post by Perryg »

Moved to VirtualBox API
noteirak
Site Moderator
Posts: 5229
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Virtualbox Configuration Manager

Post by noteirak »

This really belongs on the dev mailing list. Make sure to explain in detail what you are trying to achieve and then how you are trying to achieve it and how things fail. Include a full log file, not just part of it.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
burhan
Posts: 12
Joined: 11. Sep 2015, 15:21

Re: Virtualbox Configuration Manager

Post by burhan »

What do you mean by dev mailing list? And how do I include the whole log file ? Copy and paste it ?
noteirak
Site Moderator
Posts: 5229
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Virtualbox Configuration Manager

Post by noteirak »

I mean this and you use e-mails, so you just attach your file to it.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Post Reply