Oracle® VM Server User's Guide Release 2.2 Part Number E15444-04 |
|
|
PDF · Mobi · ePub |
Oracle VM Manager communicates with Oracle VM Agent to create and manage guests on an Oracle VM Server. Oracle VM Agent is installed and configured during the installation of Oracle VM Server. You do not need to install Oracle VM Agent separately. Oracle VM Agent is installed into:
/opt/ovs-agent-2.3
Oracle VM Agent logs are located in:
/var/log/ovs-agent/
This Chapter discusses the configuration and control of Oracle VM Agent. It contains:
See Appendix D, "Oracle VM Agent Architecture" for more detailed information.
The ovs-agent command-line tool enables you to configure and control Oracle VM Agent. The following sections discuss using the ovs-agent command-line tool. See "ovs-agent" in Appendix A, "Command-Line Tools" for more details on the ovs-agent command-line tool options.
Oracle VM Agent is configured during installation. A default user is created with the username admin, and the password you set during installation.
You can change the default configuration with the Oracle VM Agent configuration script, ovs-agent. To configure Oracle VM Agent:
As the root user, run the Oracle VM Agent configuration script:
# service ovs-agent configure
You are prompted to enter the IP addresses that are allowed to access to the computer.
;network access control by ip -- ;rules := if addr.match(allow) and not addr.match(deny): return True ;pattern items delimited by comma and could be ;10.1.1.1 #single ip ;10.1.1.* #range ;10.1.1.1/24 #range in CIDR format ;default to allow all, deny none allow=* allow=
Enter *
(asterisk) to allow all IP addresses access to the computer. Alternatively, enter a list of IP addresses for computers for which you want to allow access, while restricting all others. The default is to allow all computers to access the computer (*
). For example, to allow access to all IP addresses in the domain 192.168.2.x, enter
192.168.2.*
Press Enter.
You are prompted to enter the IP addresses that are denied access to the computer.
now allow=192.168.2.* deny= deny=
Leave this field empty (does not deny any IP addresses), or enter *
to deny all IP addresses access to the computer. Alternatively, enter a list of IP addresses for which you want to deny access to the computer, while allowing all others. The default is to deny no computers access to the computer.
Press Enter.
You are prompted to enter the shared disk search path.
now deny= ;share_disk_pat -- ;set the directories for searching sharable block devices ;directories should be seperated by ':' ;if not set, /dev/mpath/* will be used share_disk_pat=/dev/mpath/* share_disk_pat=
Enter the shared disk search path. You should not use the path /dev/mapper/x for multipath devices, only use the path /dev/mpath/x.
Press Enter.
You are prompted whether you want to change the Oracle VM Agent password.
would you like to modify password to communicate with agent?[y/N]
Enter y
to change the Oracle VM Agent password, or N
to continue without changing the password. Press Enter.
Restart Oracle VM Agent for the configuration changes to take effect.
# service ovs-agent restart
Oracle VM Agent is started automatically when the computer starts. To manually start Oracle VM Agent, enter
# service ovs-agent start
Oracle VM Agent is started.
Alternatively, if Oracle VM Agent is already running, you can stop and restart it with the command
# service ovs-agent restart
Oracle VM Agent is stopped, and restarted.
To stop Oracle VM Agent, enter
# service ovs-agent stop
Oracle VM Agent is stopped.
Note:
When Oracle VM Agent is stopped, Oracle VM Manager cannot manage the Oracle VM Server or the guests running on it.If you shut down or restart the Oracle VM Agent on an HA-enabled Oracle VM Server on which guests are running you are prompted to:
Migrate or Power Off the guest(s) using Oracle VM Manager. When the guests have been migrated or Powered Off, the Oracle VM Agent shuts down.
Shut down the guest(s) and shut down Oracle VM Agent.
Cancel the shutdown operation.