Archive for มีนาคม 2015

Import ISO image to XenServer

1. Make sure you have ssh access to your Xenserver.
2. Download and install WinSCP on a windows machine or use native scp support on a linux box.
3. Check if the folder “/var/opt/xen/iso_import”* exists. If not, you can create it using *mkdir -p /var/opt/xen/iso_import
4. Copy your ISO-file to /var/opt/xen/iso_import with your scp-software (like WinSCP, Veeam Backup and FastSCP, …)
5. Create a repositoriy:
xe sr-create name-label=”MyISORepository” type=iso device-config:location=/var/opt/xen/iso_import/ device-config:legacy_mode=true content-type=iso
That should bring up a new repository in your XenCenter overview.

One issue:
If you add new ISOs later, it is possible that these ISOs don’t show up in your repo.
Just rightclick the existing repo (MyISORepository*) in Xencenter and choose *”Forget”
After that, you just have to repeat the command above
xe sr-create name-label=”MyISORepository” type=iso device-config:location=/var/opt/xen/iso_import/ device-config:legacy_mode=true content-type=iso

Then your ISOs should be displayed in the repo.

Hope it helps …

Pete