Accessing Network API

Discussion about using the VirtualBox API, Tutorials, Samples.
Post Reply
johneden
Posts: 7
Joined: 29. Apr 2014, 23:43

Accessing Network API

Post by johneden »

Hello,

I would like to access the host network API (sockets) from inside the VBox guest. Host is Windows, so winsock access should be good enough. How should I proceed in writing code to achieve that? Is it possible through a extension? From inside the guest I would like to access preferably from some VBox library, or some other way to communicate with the VBox process. Restricting the extension to windows only is not a problem. If it's not possible to write an extension or similar for that, I will move on to modifying the OSE, but I would like a less intrusive method if possible.
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: Accessing Network API

Post by noteirak »

Let's be blunt : what you are trying to do is not possible, and doesn't make sense. Why bother using a VM if you want to access the host after?
I think you're just using the wrong tool for the job. Maybe if you describe what you are trying to do in fine, we can help further.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
johneden
Posts: 7
Joined: 29. Apr 2014, 23:43

Re: Accessing Network API

Post by johneden »

I have my reasons. And yes, it is possible, I know how to modify OSE for that purpose. I am just looking for a less intrusive solution.
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: Accessing Network API

Post by noteirak »

If you're not willing to share your goal, nobody can help you. When I said not possible, I meant with the official release - once again, it goes against the very concept of virtualization...
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
johneden
Posts: 7
Joined: 29. Apr 2014, 23:43

Re: Accessing Network API

Post by johneden »

I am under contract, I can't divulge that information.
johneden
Posts: 7
Joined: 29. Apr 2014, 23:43

Re: Accessing Network API

Post by johneden »

A bit more info, I am trying to achieve high speed communication between guest and host. Socket communication is too slow and not suitable for our solution. I am searching for memory mapped direct communication.
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: Accessing Network API

Post by noteirak »

That topic rings a bell, you should search the Virtualbox Dev Mailing list - I'm fairly sure this was already discussed at some point
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Accessing Network API

Post by mpack »

noteirak wrote:That topic rings a bell ... I'm fairly sure this was already discussed at some point
Perhaps you were thinking of this discussion?
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: Accessing Network API

Post by noteirak »

Nope, there was a discussion on the mailing list about shared memory between the host & the guest via shared memory
Ah, found it! https://www.mail-archive.com/vbox-dev@v ... 06474.html
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
johneden
Posts: 7
Joined: 29. Apr 2014, 23:43

Re: Accessing Network API

Post by johneden »

Thank you noteirak, I wil take a look on the discussions.
Post Reply