Configuring xvpappliance™
The first time you start an xvpappliance virtual machine, you will be taken through some initial configuration questions.
Make sure that you have your answers to these questions ready in advance, that you have configured the VM's network settings from XenServer/XenCenter or Xen Cloud Platform to attach it to the desired virtual network, and that you are viewing its virtual console.
During the VM's first boot, there may be a delay for a couple of minutes, displaying Determining IP information for eth0... followed by failed: this is not a problem, you will be setting the IP information manually, as described below.
See the page Install xvpappliance VM for details of the steps needed to get this far.
On completion of the initial configuration, and at any time afterwards, a simple set of menus will allow you to make further changes.
First Time Configuration
The first time your xvpappliance starts, you will need to answer a number of questions at the console. The first of these are for:
- The root password: you will log in as "root" with this password for all subsequent management, so make sure you remember the password you choose.
- Your timezone: follow the menu options to pick the closest location. The underlying clock of the VM is synchronised with the server host's clock, and should not need adjusting.
The next set of questions relate to networking. You must give the appliance a static IP address (not using DHCP), and supply:
- The IP address and netmask for the appliance.
- The IP address of the default gateway for external network access.
- The IP addresses of 1 or 2 DNS servers.
The next questions relate to software updates. You are recommended to configure the appliance to check for these at regular intervals, and to email you when updates are available. You must specify:
- A valid email address to be sent update notifications.
- The IP address of an email (SMTP) gateway through which all emails will be sent.
- If the appliance will need to authenticate to this gateway in order to send email, you must specify a valid username and password for doing so.
- How frequently to check for updates: hourly, daily, weekly, monthly or (not recommended) never.
You are then ready to add one or more XenServer and/or Xen Cloud Platform pools or standalone host servers to manage. For each, you will need to specify:
- Optionally, a group tag prefix: for an explanation of these, see the Troubleshooting page.
- The hostname or IP address of one of the servers in the pool. If you just have a standalone server, rather than a pool, enter its hostname or IP address.
- An administrative username (usually "root") and password: these must be valid for connecting to the pool.
The final set of questions relate to the web interface and user accounts. You will need to specify:
- Whether to redirect web users from HTTP to HTTPS: this may be a good idea from a security perspective.
- Whether to tunnel VNC console connections via HTTP/HTTPS. If you say no to this (the default), when users view VM consoles they will do so via a direct VNC connection to the appliance on port 5900, so you may need to open this port on firewalls. If you say yes, the VNC connections will be tunnelled over the existing HTTP or HTTPS connection. This is more secure if using HTTPS, but note that the appliance's web server certificate must be imported into the users' Java keystores before tunnelling over HTTPS will work: for help on importing certificates, see the Troubleshooting page.
- Whether to generate a new SSL certificate for HTTPS. This will prompt you for details in order to create a new self-signed certificate for the web server: you should do this, and when prompted for "Common Name", enter the fully-qualified hostname of your appliance. As modern web browsers tend to complain about self-signed certificates, you may wish later to obtain and install an externally signed certificate: for help on installing these, see the Troubleshooting page.
- Whether to use LDAP-based user authentication (e.g. Active Directory). If you select this, you will need to know details of your LDAP server(s): see the Using Active Directory page. If you don't select this, you can define users locally on the appliance, and use anything (within reason) as usernames, e.g. short login names ("fred", "jill", ...), real names ("Fred Smith", ...) or email addresses ([email protected], ...).
- The username for the first user (others can be added later). You probably want to treat this as an overall administrative user, as it will be given all rights to all pools and VMs. If using LDAP-based authentication, the user's LDAP password will be used: if not, you will be asked to create a password.
You are then presented with the appliance's main configuration menu, as described below. If you are happy with your answers to the above questions, use the "Quit from program" option and log out.
Web users may now access the appliance by pointing their web browser at it. They will be prompted for a username and password. As you've only configured one administrative web user so far, you probably want to add more users, as described below.
Subsequent Configuration
You can perform further configuration of your appliance at any time. Log in as root (on the console, or via ssh), and run the program:
/usr/sbin/xvpappliance
which will present you with the main configuration menu:
1. About this program
2. Configure timezone
3. Configure network
4. Configure email
5. Configure xvp pools
6. Configure xvp users
7. Configure web server
8. Manage software updates
9. Unconfigure appliance
10. Quit from program
Menu items 2, 3 and 4 and 7 allow you to reconfigure some of the basic settings you set initially.
Menu item 5, "Configure xvp pools", displays a submenu allowing you to list, add and remove from the set of pools (and/or standalone server hosts) that the appliance manages.
This submenu item also allows you to rediscover pool details. By default, although the state of existing VMs is tracked in quasi real time, the addition and removal of hosts and/or VMs from a pool is not tracked, so when you make such changes to your pools, the web interface does not reflect this. There are two ways to update the interface to reflect these changes: using the submenu option "Rediscover details for all pools now" to update immediately, and/or the option "Schedule regular rediscovery of pool details", to enable automatic update every hour, day, week or month.
Note: Regular rediscovery does not take place until you explicitly use the schedule option.
Menu item 6, "Configure xvp users", allows you to add and remove web users, and to reconfigure or delete existing ones. To add a user, you will need to give a username and password, and you then set whether the user should have access to all pools and VMs, or all VMs in a single pool or group, or a single VM. In addition, you will be asked whether the user should be allowed to see the server hosts, and to specify the user's rights: there are 5 possible settings (List, Read, Write, Control and All), and there is a Help option which explains exactly what these mean. If you need to configure multiple rights for a particular user, or to change the default relationships between rights users have and the operations they may perform, you cannot do this from the menu, but must edit the underlying configuration files: please read the Troubleshooting page, which has items on how to do these things.
Menu item 8, "Manage software updates", allows you to change the schedule of how often new updates are checked for, and to apply any available updates. There are 2 sorts of updates: Linux updates (which you should apply for security reasons), and xvp updates (check this website for details of these before applying).
Whenever the program presents you with a numbered menu, you can escape any Linux command by entering it prefixed with "!" instead of entering a number. When the command completes, the menu is re-displayed. For instance, you could display the current date and time by typing:
!date
Should you wish to completely unconfigure your appliance, and return it to its initial state (apart from software updates), use menu item 9. This will throw away everything you have previously configured, and reset the root password to "xvpappliance". You can then configure again from scratch, by rebooting or running:
/usr/sbin/xvpappliance