I have a windows 7 host which uses Virtualbox to run an XP guest. I'm trying to send text data from the guest to host, and vice versa.
I know that guest additions allows for shared folders, but I use the XP guest for testing and therefore re-install XP every few weeks. This means I don't want to go through the process of re-adding a shared folder everytime.
Is there a way to send text data to the guest from the host (and guest-to-host) perhaps through DOS or something? Currently I'm using the bi-directional clipboard function to pass text back and forth, but I'm wondering if there's a more solid method?
Thanks for your help.
How to send text data between host and guest
-
dlharper
- Posts: 291
- Joined: 25. Aug 2011, 19:17
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: MS Windows (several versions); DOS
Re: How to send text data between host and guest
If it is text data, then presumably fairly small files are involved. If they are less than 1.4Mb, then a simple way is to use a floppy image.
-
loukingjr
- Volunteer
- Posts: 8851
- Joined: 30. Apr 2009, 09:45
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: just about all that run
Re: How to send text data between host and guest
You could always email an attachment to yourself.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
There are three groups of people. Those that can count and those that can't.
-
scottgus1
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows, Linux
Re: How to send text data between host and guest
What I would do is get an XP install just the way I want it, get the network established if desired, install Guest Additions if desired, and map the shared folders as needed.re-install XP every few weeks
Then I'd full-clone this XP guest, drive & all, and use the clone for testing. All the settings I made in the source XP will be present in the clone. When I've butchered the clone sufficiently, I would delete the whole cloned guest, drive & all, and make a new full clone off the source XP guest. Rinse & repeat, as they say.
Cloning would likely be a whole lot faster than re-installing and re-configuring XP every time.
As for passing text, if Guest Additions are installed (as it appears they are if you're using the clipboard now), there is the Vboxmanage.exe Guestproperty get & set commands on the host, and Vboxcontrol.exe Guestproperty get & set in the guest. Text can be passed, but I don't know how much. These can be used in batch files, vbscripts & command windows, etc., so may provide another way to get your text passed.
-
loukingjr
- Volunteer
- Posts: 8851
- Joined: 30. Apr 2009, 09:45
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: just about all that run
Re: How to send text data between host and guest
Of course if the user is reinstalling XP every few weeks because he's using a trial version that times out, cloning the original install won't help.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
There are three groups of people. Those that can count and those that can't.
-
dlharper
- Posts: 291
- Joined: 25. Aug 2011, 19:17
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: MS Windows (several versions); DOS
Re: How to send text data between host and guest
Ignore my post above about disk images - I must have been half asleep. I use this method for transferring data between guests. It is more awkward if the host is involved.