These commands enable you to attach and retrieve string data for a
virtual machine or for an Oracle VM VirtualBox configuration, by
specifying global
instead of a
virtual machine name. You must specify a keyword as a text string
to associate the data with, which you can later use to retrieve
it. For example:
VBoxManage setextradata Fedora5 installdate 2006.01.01 VBoxManage setextradata SUSE10 installdate 2006.02.02
This example would associate the string "2006.01.01" with the keyword installdate for the virtual machine Fedora5, and "2006.02.02" on the machine SUSE10. You could then retrieve the information as follows:
VBoxManage getextradata Fedora5 installdate
This would return the following:
VirtualBox Command Line Management Interface Version version-number
(C) 2005-2018 Oracle Corporation
All rights reserved.
Value: 2006.01.01
You could retrieve the information for all keywords as follows:
VBoxManage getextradata Fedora5 enumerate
To remove a keyword, the setextradata command must be run without specifying data, only the keyword. For example:
VBoxManage setextradata Fedora5 installdate