C H A P T E R 4 |
This chapter describes using the virt-install(1M) script to install a guest operating system on a server running the Logical Domains Manager. To find more information about the virt-install script as it used with OpenSolaris xVM, refer to the following site:
Before using the virt-install script to create the guest domain and add resources to the guest, ensure the following occurs on the LDoms control, or primary, domain:
The virt-install script adds resources to the guest domain using the existing virtual disk or switch services. Refer to the Logical Domains (LDoms) 1.0.1 Administration Guide for more information about how to do all this.
You can start the virt-install script in two ways:
Interactive – Enter information about a guest domain in response to a set of prompts.
Command-line – Enter information about a guest domain as a set of command-line options.
You can install the OS through a network installation in one of two ways:
JumpStart installation – With a JumpStart installation, you can automatically install or upgrade several systems, based on profiles that you create. Also, you can use a sysidcfg file to specify configuration information, so that the JumpStart installation is completely automatic. You must preconfigure the installation server before running the virt-install script. Refer to the Solaris 10 8/07 Installation Guide: Custom JumpStart and Advanced Installations for more information about how to set up the JumpStart installation server. See Example JumpStart Files to Be Used With the virt-install Script for examples of JumpStart Files you can use.
Installation from Solaris Flash Archives or ISO image can be supported if those images are set up on the installation server to boot over a network. However, preconfiguration for Solaris Flash Archives or ISO image is not supported.
You must supply the following guest domain information:
Name of the guest domain – This must be a unique name; if the name already exists, the virt-install script issues an error and exits.
Amount of memory to be allocated to the guest domain in megabytes (MB).
Size in gigabytes (GB) of the virtual disk for the guest domain if the path to the guest disk image does not already exist. The virt-install script creates the file, using the mkfile(1) command, if the file does not already exist.
MAC address for the virtual network device – A MAC address is automatically allocated by the Logical Domains Manager if you do not provide one. See the -m/--mac option in TABLE 4-1 for more information about assigning MAC addresses.
Number of virtual CPUs for the guest domain – If you do not provide a number, the default of one virtual CPU is used.
Note - You must be a superuser to run the virt-install script. |
The virt-install script asks for the information listed in Required Information for Using the virt-install Script. After you enter the required information by responding to the prompts, installation starts.
The virt-install script for LDoms stops at the OpenBoot ok prompt. To continue the installation process, you must enter one of the following boot commands depending on whether you are doing a regular network installation or a JumpStart installation.
To continue a regular network installation, type the following at the ok prompt.
ok boot vnet1 |
If you use the JumpStart sysidcfg file, the installation can be completely automatic after you enter the following at the ok prompt.
ok boot vnet1 - install |
The following example shows an example of using the virt-install script with LDoms.
The following table lists all the command-line options available in using the virt-install script with LDoms.
The virt-install script for LDoms software uses the Logical Domains Manager command-line interface (CLI) to create the guest domain, add resources, and bind and start the new guest domain. The following Logical Domains Manager (ldm) commands are used in the virt-install script.
After the guest domain is created and started, the virt-install script uses the following command to connect to the console of a guest domain.
# telnet localhost console_port |
JumpStart configuration files are manually created and managed. You can initiate a custom JumpStart installation through network installation after setting up the server. When you create a profile server, you must ensure that systems can access the JumpStart directory on the profile server during a custom JumpStart installation. Each time that you add a system for network installation, use the add-install-client command to specify the profile server. Use the add-install-client command to create the /etc/bootparams entry for the guest domain. The guest domain gets its IP address as part of the JumpStart process, either using DHCP or a static IP address.
The following example script does the following:
The following profile is an example for Logical Domains software. Virtual disk device names in Logical Domains software differ from physical disk device names in that they do not contain a target ID in the device name.
Copyright © 2007, Sun Microsystems, Inc. All rights reserved.