SDK question
-
bovus
- Posts: 4
- Joined: 4. Dec 2009, 10:39
- Primary OS: Ubuntu other
- VBox Version: OSE Debian
- Guest OSses: Windows 7
SDK question
I am interesting in using the VirtualBox SDK in .NET. I am looking for a function that will allow me to copy a file from a guest machine onto my host machine and vice-versa. I looked through the SDK reference manual but was not able to find anything useful. Did I miss something? Thanks.
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: SDK question
Nope, you didn't miss anything. The SDK is about starting and stopping VMs etc, i.e. manipulating the VirtualBox application in various ways. What you are talking about is manipulating the guest OS, requiring intimate knowledge of the guest OS (e.g. its filesystem or active networking and security protocols), beyond the scope of the SDK.
-
bovus
- Posts: 4
- Joined: 4. Dec 2009, 10:39
- Primary OS: Ubuntu other
- VBox Version: OSE Debian
- Guest OSses: Windows 7
Re: SDK question
Thanks for your reply. Do you have suggestions on anything I can look into for file sharing between host and guest OS outside of the VirtualBox SDK? I know I will only be using Windows-based guest OS's.
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: SDK question
I'm not sure what you are asking. You can use VirtualBox shared folders or an ordinary network share. If you were willing to contemplate COM programming then I doubt you need advice from me on how to access a network drive in software.bovus wrote:Do you have suggestions on anything I can look into for file sharing between host and guest OS outside of the VirtualBox SDK?
-
rjzak
- Posts: 7
- Joined: 16. Dec 2008, 16:24
- Primary OS: Ubuntu other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Ubuntu, Windows, BSD
Re: SDK question
Not to resurrect dead threads, but the latest SDK, 4.1, has functions copyToGuest() and copyFromGuest(). Skip to page 88 in the SDK PDF.
IProgress IGuest::copyToGuest(
[in] wstring source,
[in] wstring dest,
[in] wstring userName,
[in] wstring password,
[in] unsigned long flags)
source Source file on the host to copy.
dest Destination path on the guest.
userName User name under which the copy command will be executed; the user has to exist
and have the appropriate rights to write to the destination path.
password Password of the user account specified.
flags CopyFileFlag flags. Not used at the moment and should be set to 0.
Copies files/directories from host to the guest.
If this method fails, the following error codes may be reported:
• VBOX_E_IPRT_ERROR: Error while copying.