| United States-English |
|
|
|
![]() |
HP Integrity Virtual Machines Installation, Configuration, and Administration > Chapter 4 Creating and Booting GuestsCreating Guests |
|
To create guests, use the hpvmcreate command, specifying the guest characteristics using the command options shown in Table 4–1. Table 4-1 Options to the hpvmcreate Command
Note that these items of information are almost equivalent to the information in the guest planning worksheet provided in “Allocating Resources to Guests” in Chapter 2. You can use the information you recorded in your guest planning chart to create each guest. To allocate virtual network devices and virtual storage devices to guests, you use the -a option with the rsrc argument. The rsrc argument supplies all the information that the VM Host needs to allocate the device to the guest. Use the -a option to the hpvmcreate command to specify both virtual storage devices and virtual network devices. If the required resources are not available on the current VM Host system, the guest is created and warning messages describe the resources that are not available. This allows you to create guests for future system configurations. For storage devices, enter the resource specification in the following format:
The device information contains the guest virtual device information (device-type:adapter-type:[hardware-address]) and the physical device information (storage-type:device), separated by a colon (:). The guest virtual device information consists of the following fields, separated by colons:
For examples of using the hpvmcreate command to create guests and allocate various virtual devices, see “Example Guest Creation.” You can also use the rsrc resource specification to associate a guest virtual network device with a virtual network switch (vswitch). Before you can associate the virtual network device to a virtual switch, you must create the vswitch using the hpvmnet command. The format of the rsrc for network devices is:
The guest virtual network device information consists of the following fields, separated by colons:
Once you have created a guest, you can easily create an identical guest by using the hpvmclone command. Like hpvmcreate and hpvmmodify, the hpvmclone command accepts the -a option for specifying virtual device mapping. This allows you to create new guests with similar characteristics but different virtual resources. For more information about using the hpvmclone command, refer to hpvmclone(1M) . The example guests described in Chapter 2 can be created as described in this section. To create the first guest in the example configuration (compass1), enter the following command:
The guest compass1 has one virtual CPU, 1 GB of memory, and 5% entitlement (the default). It has network access using both vswitches clan1 and clan2, and accesses the logical volume named rlv022. To create the second guest (compass2), enter the following command:
The guest compass2 has one virtual CPU, 3 GB of memory, and 50% entitlement. It is allocated access to the disk device associated with /dev/vg01/rlv023. Network access will be through the local network only. To create the third guest (compass3), enter the following command:
Note that compass3 was created even though memory resources are insufficient to run this guest on the current VM Host. You can modify the characteristic of a guest by using the hpvmmodify command, as described in “Changing Guest Configurations” in Chapter 5. If problems exist on the VM Host system when you boot the guest, the guest is not allowed to boot. You can view information about the guest configuration using the hpvmstatus command:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||