Building a XenServer at Home with a Local Repository

I have gone over the process of setting up a XenServer before, but this time there is one major difference. It will be using a local repository instead of using a NAS as an ISO repository.

This was a little tricky but not too bad.

Once I had XenServer installed and configured, I opened an SSH session on the server.

I used the following commands to create a local repository;

mkdir -p /var/opt/xen/ISO_Store

xe sr-create name-label=LocalISO type=iso device-config:location=/var/opt/xen/ISO_Store device-config:legacy_mode=true content-type=iso

Now when I open XenCenter, there was a local repository attached to the server. I renamed the repository form within XenCenter to be more clear.


Now I can use wget to download files to the repository like so;

cd /var/opt/xen/ISO_Store



Now I can create a new vm and use this local ISO! Once the download is complete, the file will be visible in the list;