VirtualBox

Opened 11 years ago

Last modified 4 years ago

#11903 new enhancement

Add VboxControl guestproperty with vm's name.

Reported by: Fat-Zer Owned by:
Component: guest control Version: VirtualBox 4.2.14
Keywords: feature-request VboxControl guestproperty Cc:
Guest type: all Host type: all

Description

Please add a property to access virtual machine's name via VboxControl it will be very nice for e.g. automatically set hostname of cloned machines.

Attachments (2)

virtualbox-add_vbox_name_to_propetties.patch (717 bytes ) - added by Fat-Zer 11 years ago.
a sample patch
patch-src_VBox_Main_src-client_ConsoleImpl.cpp (773 bytes ) - added by Derek Schrock 4 years ago.
6.x version to add /VirtualBox/VirtualMachine/Name with VM's name viewed via guest VBoxControl

Download all attachments as: .zip

Change History (8)

by Fat-Zer, 11 years ago

a sample patch

comment:1 by Fat-Zer, 11 years ago

The patch is quite naive but it works it would be nice if some other virtual machine parametrs would be enable from the guest. But this should be done my somebody who is more experienced then I am.

comment:2 by Derek Schrock, 9 years ago

Is there any reason this patch can't be applied to 4.x or 5.x release? I too would find this to be a very useful feature.

comment:3 by domiel, 9 years ago

Can someone please mainline this patch. It would be of considerable utility; being able to create a VM template that can autoconfig itself vis-a-vis hostname would be extremely useful and create a very lightweight alternative to having a DHCP/DNS/Kerberos/PXE-boot framework for spinning up simple labs.

comment:4 by pentagonik, 9 years ago

While this would be technically quite easy to do, we (still) did not make up our minds whether we want to include (and enable by default) this functionality. So we need to re-evaluate this internally first.

comment:5 by Derek Schrock, 4 years ago

pentagonik, any chance this has been re-evaluated?

Fat-Zer, happen to port this to 6.x?

comment:6 by Derek Schrock, 4 years ago

Working with Fat-Zer got the following patch for this feature in 6.x

by Derek Schrock, 4 years ago

6.x version to add /VirtualBox/VirtualMachine/Name with VM's name viewed via guest VBoxControl

Note: See TracTickets for help on using tickets.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette