+86-135-5029-3426 sales@vinchin.com
Vinchin Blog
Vinchin Blog How to install a virtual machine on a XenServer host

How to install a virtual machine on a XenServer host


Citrix XenServer provides a virtualized infrastructure with excellent service performance, high scalability, easy-to-use, and innovative storage integration capabilities, enabling IT departments to deliver applications while reducing costs and increasing the speed to market. How to install a virtual machine on a XenServer host?

There are three ways to install a virtual machine on the XenServer host—install from the top menu bar; right-click the host to install on the upper part of the AC; install from the task bar on the upper part of the AC. When you choose to install a virtual machine, a fifth tab-"Install XenVM" will appear in the tab window. Then, in the lower part of the AC, the user will be asked what virtual machine name to use, how much virtual CPU it occupies, how much initial memory is allocated, and what template to use to install the virtual machine. Users can also change the initial virtual hard disk size of the virtual machine and add additional virtual hard disks. In addition, users can also choose whether the virtual machine is connected to the physical CD-ROM drive of the host server or uses an ISO image. At the bottom of the lower right corner of the AC, click the "Install" tab to complete the virtual machine settings. The bottom of the AC will switch to the "History" tab, displaying the "Install XenVM" command submitted to the host server's command queue.

Now, the XenVM installation is complete. Select a virtual machine from the list on the upper part of the AC, and the tasks in the taskbar will change. Some tasks are only applicable to virtual machines, such as restarting or shutting down. Just like selecting the XenServer host, when a virtual machine is selected, a tab window will be displayed at the bottom, and the tabs are similar: "Summary", "Performance" and "History".

The "Summary" tab displays the guest OS type of the virtual machine configuration, virtual hardware configuration-virtual CPU, memory, virtual hard disk, and virtual machine CD-ROM configuration and network port settings. The "Performance" tab displays detailed information about the virtual machine's CPU usage. If the XenVM toolkit is installed in the virtual machine OS, the "Performance" tab will also display more performance information. Similar to the "History" tab of the host server, the "History" tab of a virtual machine displays a list of events that have occurred in the virtual machine or the user.

The host server has a "text console" label, and the virtual machine has a "graphic console" label located between "Summary" and "Performance". This tab shows the connection between the console and the specified virtual machine. It is called "graphical console" because the guest OS installed on the virtual machine may be Windows (using a graphical user interface) or a Linux system with Xen installed.

Install guest OS

It is still necessary to install the guest operating system on the virtual machine. To complete this operation, just insert the Windows Server 2003 installation CD in the CD-ROM drive of the host server, or copy an ISO image file to the XenServer host. In order to make the ISO image file visible in XenServer AC, the file must be copied to the path of the host server: "/opt/xensource/packages/iso/.". For example, copy the ISO image of the Windows Server 2003 installation CD to "microsoft_windows_server_2003_standard_edition_sp1.iso" on the host server.

To use the ISO image file to install the guest OS, just select the VM on the upper part of the AC, and then click the "Summary" tab of the VM at the bottom. There will be a section labeled "Configuration" in the right display area. Find the "CD-ROM" section, click on the entry under "Disk", a drop-down box will appear. There is an ISO image file copied to the host server in the option box, select this file and click "Apply" in the lower right corner. Select the "graphic console" of the virtual machine and click the "Restart" task in the upper task bar to restart the virtual machine. Xen AC will ask the user if they are sure to restart the virtual machine, just select OK. When the virtual machine restarts, it will boot from the ISO image and enter the Windows installer. Just like installing Windows on a physical server, follow the instructions step by step to install it. After the installation is complete, you can install the XenVM toolkit.

Install XenVM toolkit

The first step in installing the XenTools package is to install the ISO image of the XenTools package for the virtual machine. The specific process is the same as installing the ISO image of the Windows installer. The only difference is that the ISO image file name is "xswindrivers.iso.". After installing the ISO image of the XenTools package, the Windows guest OS will automatically run the XenTools installer. After some installation steps, install the XenTools driver (although the driver is not signed). After the installation is complete, restart the virtual machine so that the new driver takes effect.

After the XenVM toolkit is installed, restart the virtual machine and click the "Performance" tab of the virtual machine. Now in addition to displaying CPU usage information, there will also be information such as memory usage, disk exchange rate, and network speed. This information will also be displayed in the list next to the virtual machine name above. In addition, after installing the XenVM tool, you can also adjust the display resolution of the virtual machine to a higher level. If you want to have a larger display area, you can click the "floating" button on the graphical console at the top right of the virtual machine.

Exiting the AC will disconnect the client from the XenServer host, but will not terminate the virtual machine running on the host. To reconnect to the host, just turn on the AC again, enter the management password to restore the last session or log in to the XenServer host.

  • Tag:
  • Virtualization

Interested Blogs More