Citrix XenServer

Overview


Citrix XenServer is a server virtualization platform that allows IT administrators to host, deploy and manage virtual machines. With it’s flexible architecture Citrix XenServer module for HostBill allows to deploy services faster on any cloud. 

Activating the module


  1. If the module is included in your HostBill edition you can download it from your client portal.
  2. If the module is not included in your HostBill edition you can purchase it from our marketplace and then download it from the client area.
  3. Once you download the module extract it in the main HostBill directory.
  4. Go to Settings → Modules → Hosting Modules, find and activate XenServer module.

Connecting HostBill with XenServer


  1. Proceed to Settings → Apps → Add new App
  2. From Applications list select XenServer
  3. Enter:
    • Name - Name of this connection
    • Hostname
    • IP Address
    • Username
    • Password
    • Optionally you can enter VM Operator Username and Password

      4. Verify entered credentials by clicking Test Connection to check if HostBill can connect
      5. Save Changes

Creating pre-installed os templates


  1. Download and install latest XenCenter
  2. Connect to your server and start the creator by clicking on New VM
  3. Using the creator select an OS template and click next
  4. Specify a name for your new template
  5. Choose an installation media, ex:
    for Centos 5 set Install from URL: //mirror.centos.org/centos/5/os/x86_64/
  6. Select the host where this VM will be created, number of CPUs and Memory limits
  7. Configure storage, those settings apply as minimum for the new VMs created from this template, regardless of HostBill Disk space settings
  8. Configure network settings, click next and then Finish.
  9. Start the VM and instal your OS.
  10. Install XenTools on that VM, see Installing XenTools
  11. Shut down your VM, right click it and select Convert to Template...
  12. You can now use this Template to create new VM

Installing XenServer Tools on Linux VMs


  1. Select the VM in the Resources panel, right-click and then click Install XenServer Tools on the shortcut menu. Alternatively, on the VM menu, click Install XenServer Tools
  2. Click Install XenServer Tools on the message dialog to go to the VM's console.
  3. As the root user, mount the image into the VM: 

    mount /dev/xvdd /mnt
  4. Execute the installation script as the root user:

    /mnt/Linux/install.sh
  5. If the kernel has been upgraded, or the VM was upgraded from a previous version, reboot the VM now.

Installing XenServer Tools on Windows VMs


  1. Select the VM in the Resources panel, right-click, and then click Install XenServer Tools on the shortcut menu. Alternatively, on the VM menu, click Install XenServer Tools
  2. Click Install XenServer Tools on the message dialog to go to the VM's console and begin the installation.
  3. If Autoplay is enabled for the VM's CD drive, installation will be started automatically after few moments. If Autoplay is not enabled, double-click on the CD drive to begin installing XenServer Tools.
  4. Follow the on-screen instructions, and reboot the VM when prompted.

Adding XenServer product


  1. In HostBill go to Settings → Products & Services, and Add new order page
  2. From Order Types select XenServer
  3. After creating order page add new product and provide its name
  4. In product configuration section proceed to Connect with App, select XenServer module and App server created in previous steps.
  5. Click Get values from server and select desired OS template and package settings for this setup. Remember that Disk size setting will be applied only on the templates with less space than this value.
  6. Save changes - your package is ready

For more generic product configuration details including price, automation, emails settings refer to Product Configuration article.

Configuring Client Functions   


In Products & Services → Your Order Page  Your Product → Client Functions you can control what features customer will have access to in client portal, by clicking Enable/Disable next to the given option.
Use Edit button to adjust function appearance in the client portal. For Citrix XenServer you can enable a number of standard client functions:

  1. Change Billing Cycle
  2. Change Label
  3. Change Ownership
  4. Edit Forms
  5. Graphs
  6. Login Details
  7. Manual Service Renew
  8. New Direct Link
  9. Related Services
  10. Service Auto Renewal

Adding console support


To enable VNC console for your clients in the client portal:

  1. In your XenCenter setup a user with role "VM Operator". This user will be used for creating console sessions
  2. In HostBill, update connection details you've defined for XenServer in Settings→Apps, and provide VM console operator user/password:


  3. Save changes. Your clients will now have access to console in the client portal.