1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-24 17:28:08 +00:00

Add VirtualBox guest property "NameInGNS3".

This commit is contained in:
Jeremy 2014-11-06 10:11:39 -07:00
parent a98a8b1acc
commit a4e20cd6f6

View File

@ -674,6 +674,9 @@ class VirtualBoxVM(object):
result = self._execute("startvm", args)
log.debug("started VirtualBox VM: {}".format(result))
# add a guest property to let the VM know about the GNS3 name
self._execute("guestproperty", ["set", self._vmname, "NameInGNS3", self._name])
if self._enable_console:
# starts the Telnet to pipe thread
pipe_name = self._get_pipe_name()