Hi All,
I am working on developing a guest software to install on virtual box. I want to create an configuration variable to be read by my guest software.
Can any one tell me is there any global and VM specific config file in virtual box where I can add my user defined configuration variable which can be read by my guest
software during boot ?
Thanks................
config file in virtual box for reading by guest software/OS
-
- 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: config file in virtual box for reading by guest software
Yes, you can do that via guest properties.
From the host, see IMachine::getGuestProperty() and the next methods.
From the guest, you'll need to look into the source code of VboxControl, which is part of the guest additions, as I am not familiar with that part - or you can ask on the Dev Mailing List.
From the host, see IMachine::getGuestProperty() and the next methods.
From the guest, you'll need to look into the source code of VboxControl, which is part of the guest additions, as I am not familiar with that part - or you can ask on the Dev Mailing List.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Manage your VirtualBox infrastructure the free way!
Re: config file in virtual box for reading by guest software
thanks. I gave a try running VboxControl on my linux guest after setting value on my windows host and it worked fine. but I want to get the property during booting
my guest software (so that it should read the value and act accordingly) not when the booting is done. is it possible ?
my guest software (so that it should read the value and act accordingly) not when the booting is done. is it possible ?
-
- 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: config file in virtual box for reading by guest software
I don't *actually* know if it is possible, but I guess Virtualbox creates a special kind of device (or a memory map?) to pass that data between the host and the guest.
The sources are available so I don't see a reason why you couldn't do it at boot time, but that would be best asked on the Dev Mailing list or on the IRC channel.
The sources are available so I don't see a reason why you couldn't do it at boot time, but that would be best asked on the Dev Mailing list or on the IRC channel.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Manage your VirtualBox infrastructure the free way!