1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-25 16:28:11 +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()