Ich habe Glück, indem ich das guestproperty
in VBoxManage
und einstelle VBoxControl
.
Auf dem host:
VBoxManage guestproperty set SampleVm GuestName SampleVm
Dann auf den Gast:
VBoxControl --nologo guestproperty get GuestName
Nachteile sind, dass dies VirtualBox Guest Additions (für VBoxControl) und einen zusätzlichen Aufruf vom Host erfordert.