@alejo wrote:
Summary
If the user needs to deploy a new VIRL server from OVA or bare metal, there may be images of simulation nodes (snap shots or third party VMs) which the user may want to transfer. At this time, there is no automated method for moving the images. The user will need to follow the steps outlined here in order to move and register the images onto the new VIRL server.
Steps
With both VIRL servers up and running (Old and New) you will need to copy the appropriate images from Old Server to New server
1. Find the image(s) you want to migrate/move
From Old VIRL server:
virl@virl:~$ glance image-list
+--------------------------------------+--------------+ | ID | Name | +--------------------------------------+--------------+ | b30a5521-e7b1-4533-91d2-407ade51ae86 | IOSvL2-oSNAP | | 25bfc93e-c3b6-43fe-9d4c-091aca3e742d | IOSv | | 4c66de95-bdc3-45c8-a4fe-0b429321b7f6 | IOSvL2 | | bcd332a3-9449-437b-858d-61b8c5f8e657 | ASAv | | 9bf7b0c3-6bbb-4604-bdc1-4c24ae74651f | NX-OSv | | 821d3560-09f7-4cde-bf4f-e6c87b51ba6f | server | | cee1de98-583b-4445-a87b-f533048c717b | IOS XRv | | 1003649a-015b-44a0-8bdc-0467f871c96d | CSR1000v | +--------------------------------------+--------------+
In this example we will move IOSvL2-oSNAP
Get all the information for the image as well:virl@virl:~$ glance image-show b30a5521-e7b1-4533-91d2-407ade51ae86 +----------------------+--------------------------------------+ | Property | Value | +----------------------+--------------------------------------+ | checksum | 0e063db3c424d94d847af96c3cc48f4e | | config_disk_type | disk | | container_format | bare | | created_at | 2015-12-10T19:50:53Z | | disk_format | qcow2 | | hw_disk_bus | virtio | | hw_serial_port_count | 2 | | hw_vif_model | e1000 | | id | b30a5521-e7b1-4533-91d2-407ade51ae86 | | min_disk | 2 | | min_ram | 0 | | name | IOSvL2-oSNAP | | owner | 8d922de7374e4ae29390c7a76cc01dd8 | | protected | False | | release | 15.2.4055 | | serial | 2 | | size | 97058816 | | status | active | | subtype | IOSvL2 | | tags | [] | | updated_at | 2015-12-10T19:50:55Z | | version | oSNAP | | virtual_size | None | | visibility | public | +----------------------+--------------------------------------+
2. Copy the image from the Old server, to a temporary location on the New server
scp /var/lib/glance/images/b30a5521-e7b1-4533-91d2-407ade51ae86 virl@new_server:/tmp/
3. Open UWM of your New VIRL server and log in
Navigate to Node Resources > Images and then click on Add (top right of the Images section)
Assign the appropriate Subtype; give it a Name/Version; Release and then type the path to the/tmp/
directory and then click CreateYou have just imported your image and should now be available via VM Maestro and also seen in UWM.
Clean-up
This procedure creates a copy of the original image file. To save space you can now delete the copy of the image you placed in
/tmp
since the same image now lives in/var/lib/glance/images/
.Enjoy, and happy packets!
Posts: 1
Participants: 1