DEV Community

Pradeep Kumar
Pradeep Kumar

Posted on • Updated on

Create DVD Drive ISO Library XenServer or XCP-ng

1) Login to the server via ssh or can WinSCP software to connect using scp protocal.

2) Create an folder:

mkdir /opt/os
Enter fullscreen mode Exit fullscreen mode

3) Open the folder

cd /opt/os
Enter fullscreen mode Exit fullscreen mode

4) Download setups (.iso) files

wget http://in.mirror.coganng.com/ubuntu-cdimage/20.04.3/ubuntu-20.04.3-desktop-amd64.iso
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

2) Rescan sr folder:

xe sr-scan uuid=<uuid-of-sr>
Enter fullscreen mode Exit fullscreen mode

Now you will be able to see the new .iso files.

Reference:
https://www.youtube.com/watch?v=eNuBw3O0SmU

Top comments (0)