HP Integrity Virtual Machines 4.3: Installation, Configuration, Administration

The VM Host administrator uses the following commands to manage virtual machine storage
devices:
Integrity VM CommandManagement Function
hpvmmodify (see Section 3.5 (page 62))
Add, delete, manage, and modify virtual machine storage
devices.
hpvmstatus (see Section 8.3 (page 149))
Display information about the storage devices for a virtual
machine.
Once a resource is added or attached to a virtual machine and the virtual machine is powered
on, the storage resource is owned by the guest administrator. That is, the guest OS may access
that storage resource at any time. A deletion, detachment or modification fails if any guest I/O
is active on the resource. Dynamic storage changes on an active virtual machine must be approved
by the guest administrator.
6.3.1.2 Creating Virtual Machine Administrator and Operator Accounts
In prior versions of Integrity VM, admin console access is available, and one such account per
guest is allowed. The administrator account name must match the guest name. The new version
of Integrity VM provides proper access controls and individual accountability for these accounts.
A captive virtual console account is a special-purpose user account created on the VM Host for
each guest administrator. These types of user accounts use /opt/hpvm/bin/hpvmconsole
for a shell, and the desired guest's per-guest directory for a home directory. For virtual console
access, the account also requires a password, and access to its associated guest. You create this
account with the hpvmcreate, hpvmclone, or hpvmmodify command. You can establish group
membership of the account using the -g option to those commands, or user membership, using
the -u option to those commands.
NOTE: Do not use the hpvmsys group for user accounts. This group is used for security isolation
between components of Integrity VM.
The HP-UX useradd command might not work as expected. To create user accounts for virtual
console access, use the useradd command before you create the virtual machine. Alternatively,
specify the user account directory completely in the /etc/passwd file, ensuring the entry is
unique.
In the following example, the useradd command is used to create three user accounts on the
VM Host system (testme1, testme2, and testme3):
# useradd -r no -g users -s /opt/hpvm/bin/hpvmconsole \
-c "Console access to guest 'testme'" \
-d /var/opt/hpvm/guests/testme \
testme1
# useradd -r no -g users -s /opt/hpvm/bin/hpvmconsole \
-c "Console access to guest 'testme'" \> -d /var/opt/hpvm/guests/testme \
testme2
# useradd -r no -g users -s /opt/hpvm/bin/hpvmconsole \
-c "Console access to guest 'testme'" \
-d /var/opt/hpvm/guests/testme \
testme3
The following command creates the virtual machine named testme:
# hpvmcreate -P testme -u testme1:admin -u testme2 -u testme3:oper
At this point, users testme2 and testme3 both have oper level access to the virtual console,
and user testme1 has admin level access. In order to make these accounts usable, set passwords
for them, as follows:
# passwd testme1
...
114 Creating Virtual Storage Devices