1) Login to the server via ssh
or can WinSCP
software to connect using scp
protocal.
2) Create an folder:
mkdir /opt/os
3) Open the folder
cd /opt/os
4) Download setups (.iso) files
wget http://in.mirror.coganng.com/ubuntu-cdimage/20.04.3/ubuntu-20.04.3-desktop-amd64.iso
5) Mount ISO folder
xe sr-create name-label="OS" type=iso device-config:location=/opt/os device-config:legacy_mode=true content-type=iso
Now, create new VM, all the .iso
files will be available in the dropdown.
If you upload any .iso
file after the xe sr-create
, you need to rescan the storage resource (sr) to recognize new .iso
files. To do this follow steps:
1) Find UUID of the sr
xe sr-list
2) Rescan sr
folder:
xe sr-scan uuid=<uuid-of-sr>
Now you will be able to see the new .iso
files.
Reference:
https://www.youtube.com/watch?v=eNuBw3O0SmU
Top comments (0)