Xen Server Admin Cheat Sheet
Here are some helpful snippets for Xen servers.
Web Interface
Disabling
I have yet to find out how to disable this completely because I found another solution that is better in my opinion.
You can simply edit/delete the file /opt/xensource/www/Citrix-index.html
and change it to a redirect to your home page like this:
<meta http-equiv="refresh" content="0; URL=https://example.com/" />
(You really only need this line in the file as most browsers will interpret that correctly.)
If you want to go further with this (ie. remove all files in the webroot), you can also do the following:
$ ssh root@your-server.your.domain
# rm /opt/xensource/www/*
# echo "<meta http-equiv=\"refresh\"; content=\"0; URL=http://example.com/\">" > /opt/xensource/www/index.html
XenCenter
If you ever choose/need to install XenCenter, here are the locations:
/opt/xensource/packages/iso/XenCenter.iso
/var/xen/xc-install/XenCenterSetup.exe
Software Repositories
List all available software repos
- Command:
xe sr-list
Create a local iso repo
- Command:
xe sr-create
- Params:
name-label
- Nametype
- iso for iso filescontent-type
- iso for iso filesdevice-config:location
- Path to the folder containing iso filesdevice-config:legacy_mode=true
- Can’t find what this does just that it’s important 🙄
- Example:
xe sr-create name-label=isos type=iso device-config:location=/var/opt/xen/isoRepo device-config:legacy_mode=true content-type=iso