Read/List VBox Guest extradata from within guest os

Discussion about using the VirtualBox API, Tutorials, Samples.
Post Reply
TiTex
Posts: 4
Joined: 6. Oct 2019, 17:52

Read/List VBox Guest extradata from within guest os

Post by TiTex »

Hi,
Is there any way to get/list the VM extradata from within the guest os ?
Guest OS is Linux in my case, Guest Addiontions are installed.
I would like to use the extradata attributes as parameters to some shell scripts. :roll:
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Read/List VBox Guest extradata from within guest os

Post by socratis »

Which extradata did you have in mind? Maybe there's another way that you could get this info. Please be specific, don't generalize...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
TiTex
Posts: 4
Joined: 6. Oct 2019, 17:52

Re: Read/List VBox Guest extradata from within guest os

Post by TiTex »

Some custom data set , let's say and env property
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Read/List VBox Guest extradata from within guest os

Post by socratis »

socratis wrote:Please be specific, don't generalize...
TiTex wrote:Some custom data set , let's say and env property
I'm really glad that we're in the same wavelength... not.

I ask for specifics, and you come back with "some custom data set" ? :roll:
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
TiTex
Posts: 4
Joined: 6. Oct 2019, 17:52

Re: Read/List VBox Guest extradata from within guest os

Post by TiTex »

Sorry , but there's not much i can add to that

So if set this property with vboxmanage setextradata , is there any way to read the values inside the vm ?

Code: Select all

vboxmanage setextradata 4ac8db0d-ff5a-4e5c-afd9-03bbd0adf072 instance-id a8cb3378-f243-11e9-b7e2-54ab3a2ace90
vboxmanage setextradata 4ac8db0d-ff5a-4e5c-afd9-03bbd0adf072 ENV development
TiTex
Posts: 4
Joined: 6. Oct 2019, 17:52

Re: Read/List VBox Guest extradata from within guest os

Post by TiTex »

socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Read/List VBox Guest extradata from within guest os

Post by socratis »

Just a tad ahead of me replying. Or a tad behind me ;) :
socratis wrote:Which extradata did you have in mind? Maybe there's another way that you could get this info.
That's exactly what I had in mind when I said what kind of extradata are you talking about, that's why I asked for specifics...
  • If you were talking about custom token/value pairs that you needed to pass between host and guest, the GuestProperties is the way to go.
  • If you were talking about the "VBoxManage setextradata <Token> <Value>" then there's no way to get that data.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply