mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-06 15:21:13 +02:00
Allow virtual machines to use files in project directory as disk images.
This commit is contained in:
1 parent
3861d6a274
commit
3497deaa31
5 files changed
+52
-31
No files matched your search
@@ -75,7 +75,7 @@ class IOUVM(BaseNode):
|
||||
self._iou_stdout_file = ""
|
||||
self._started = False
|
||||
self._nvram_watcher = None
|
||||
self._path = self.manager.get_abs_image_path(path)
|
||||
self._path = self.manager.get_abs_image_path(path, project.path)
|
||||
self._license_check = True
|
||||
|
||||
# IOU settings
|
||||
@@ -137,7 +137,7 @@ class IOUVM(BaseNode):
|
||||
:param path: path to the IOU image executable
|
||||
"""
|
||||
|
||||
self._path = self.manager.get_abs_image_path(path)
|
||||
self._path = self.manager.get_abs_image_path(path, self.project.path)
|
||||
log.info('IOU "{name}" [{id}]: IOU image updated to "{path}"'.format(name=self._name, id=self._id, path=self._path))
|
||||
|
||||
@property
|
||||
@@ -232,8 +232,7 @@ class IOUVM(BaseNode):
|
||||
"command_line": self.command_line,
|
||||
"application_id": self.application_id}
|
||||
|
||||
# return the relative path if the IOU image is in the images_path directory
|
||||
iou_vm_info["path"] = self.manager.get_relative_image_path(self.path)
|
||||
iou_vm_info["path"] = self.manager.get_relative_image_path(self.path, self.project.path)
|
||||
return iou_vm_info
|
||||
|
||||
@property
|
||||
|
||||
Reference in new issue
Block a user