mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +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
@@ -169,8 +169,7 @@ class Router(BaseNode):
|
||||
"mac_addr": self._mac_addr,
|
||||
"system_id": self._system_id}
|
||||
|
||||
# return the relative path if the IOS image is in the images_path directory
|
||||
router_info["image"] = self.manager.get_relative_image_path(self._image)
|
||||
router_info["image"] = self.manager.get_relative_image_path(self._image, self.project.path)
|
||||
|
||||
# add the slots
|
||||
slot_number = 0
|
||||
@@ -484,7 +483,7 @@ class Router(BaseNode):
|
||||
:param image: path to IOS image file
|
||||
"""
|
||||
|
||||
image = self.manager.get_abs_image_path(image)
|
||||
image = self.manager.get_abs_image_path(image, self.project.path)
|
||||
|
||||
await self._hypervisor.send('vm set_ios "{name}" "{image}"'.format(name=self._name, image=image))
|
||||
|
||||
|
||||
Reference in new issue
Block a user