Database Reference
In-Depth Information
At this point, we have only imported a VM template into the repository. We need to configure the VM template
in order to be able to work with the configuration available to it on the ODA. Listings 10-9 through 10-11 show the
various configuration settings that are available using the handy oakcli command set. For network related options,
refer to Tables 10-1 and 10-2 .
Listing 10-9. Configuring a VM Template Listing Configured Options for a VM Template
#oakcli show vmtemplate ol6linux_64
Listing 10-10. Adding a Network to the VM Template
#oakcli modify vmtemplate ol6linux_64 -addnetwork net1
Listing 10-11. Configure CPU, Memory on the Template
#oakcli configure vmtemplate ol6linux_64 -vcpu 4 -maxvcpu 8 -cpucap 10 -memory 3000M
-maxmemory 6G -os OTHER_LINUX
The configuration of the vmtemplate now allows the actual User VM to be created. In the examples, we have
created a shared repository and an OL6 Linux VM template, assigned net1 as the network, and given a range of virtual
CPUs and a CPU cap, as well as set memory boundaries. The values set in the template will be used by all VMs that
are based on the template as the default values. Listings 10-12 through 10-18 show how to actually create the VM
using the oakcli clone command, and then start it. In cases of shared repositories, we can configure High Availability
options. Template values can also be overridden.
Listing 10-12. Creating and Configuring a User VM: Create a VM by Cloning from Template
#oakcli clone vm ol6test -vmtemplate ol6linux_64 -repo repo1 -node oda2
Listing 10-13. Override VM Template Values
#oakcli configure vm ol6test -vcpu 6 -memory 4G
Listing 10-14. Configure High Availability and Failover Values
#oakcli configure vm ol6test -prefnode oda2 -failover oda1
Listing 10-15. Start a VM
#oakcli start vm ol6test
Listing 10-16. Show the Status of All VMs
#oakcli show vm
Listing 10-17. Stop a VM
#oakcli stop vm ol6test
Listing 10-18. Access vmconsole
#oakcli show vmconsole ol6test
Search WWH ::




Custom Search