HP-UX vPars and Integrity VM V6.3 Administrator Guide

# hpvmcreate -P host1 -e 20
Alternatively, you can use the -E option to specify the entitlement as the number of CPU clock
cycles per second to be guaranteed to each vCPU on the VM.
For more information about VM entitlement, see Section 5.1.2 (page 53).
9.1.5 Guest memory allocation
Use the -r amount option to specify the amount of virtual memory to be allocated to the guest.
If you do not specify the memory allocation, the default is 2 GB. For example, to allocate 3 GB to
the VM host1, enter the following command:
# hpvmcreate -P host1 -r 3G
9.1.6 Virtual devices
Use the -a option to allocate virtual network interfaces and virtual storage devices to the VM. The
VSP presents devices to the VM as “virtual devices.” Attached I/O devices, such as tape, DVD
burner, and autochanger are not presented as virtual devices. They are presented as physical I/O
devices. You specify both, the physical device to allocate to the VM and the virtual device name
that the VM uses to access the device. The following examples provide brief instructions for creating
virtual network devices and virtual storage devices.
Example 11 Create a VM with virtual network interface backed by virtual switch
Create a VM named Oslo in the local system specifying 2 GB of memory, 2 CPUs, and virtual
network interface backed by virtual switch “sitelan.
# hpvmcreate -P Oslo r 2048 c 2 -a network:avio_lan::vswitch:sitelan
For more information about creating and managing virtual switches, see Chapter 8 (page 111).
Example 12 Create a VM with virtual disk backed by a whole disk
Create a VM named Oslo in the local system specifying 2 GB of memory, 2 CPUs, and virtual disk
backed by a whole disk “/dev/rdisk/disk70”.
# hpvmcreate -P Oslo r 2048 c 2 -a
disk:avio_stor::disk:/dev/rdisk/disk70
For more information about different backing store devices, see Chapter 6 (page 63).
Example 13 Create a VM with vHBA
Create a VM named vm001 with a virtualized HBA using NPIV port assuming a GUID manager
is available to assign World Wide Port Name and World Wide Node Name.
# hpvmcreate -P vm001 -a hba:avio_stor::npiv:/dev/fcd0
For more information about configuring NPIV, see the hpvmresources(5) and Chapter 7 (page 101).
136 Administering VMs