After getting the ovmcli run, here some commands which are quite helpful, when you are working with Oracle VM server.
But first:
Starting the ovmcli is done via
ssh admin@localhost -p 10000
at the OVM Manager.
After that you can get some overviews:
OVM> list server
Command: list server
Status: Success
Time: 2019-01-25 06:56:55,065 EST
Data:
id:18:e2:a6:9d:5c:b6:48:3a:9b:d2:b0:0f:56:7e:ab:e9 name:oraclevm
OVM> list vm
Command: list vm
Status: Success
Time: 2019-01-25 06:56:57,357 EST
Data:
id:0004fb0000060000fa3b1b883e717582 name:myAlpineLinux
OVM> list ServerPool
Command: list ServerPool
Status: Success
Time: 2019-01-25 06:57:12,165 EST
Data:
id:0004fb0000020000fca85278d951ce27 name:MyServerPool
A complete list of all list commands can be obtained like this:
OVM> list ?
AccessGroup
AntiAffinityGroup
Assembly
AssemblyVirtualDisk
AssemblyVm
BondPort
ControlDomain
Cpu
CpuCompatibilityGroup
FileServer
FileServerPlugin
FileSystem
Job
Manager
Network
PeriodicTask
PhysicalDisk
Port
Repository
RepositoryExport
Server
ServerController
ServerPool
ServerPoolNetworkPolicy
ServerUpdateGroup
ServerUpdateRepository
StorageArray
StorageArrayPlugin
StorageInitiator
Tag
VirtualAppliance
VirtualApplianceVirtualDisk
VirtualApplianceVm
VirtualCdrom
VirtualDisk
VlanInterface
Vm
VmCloneCustomizer
VmCloneNetworkMapping
VmCloneStorageMapping
VmDiskMapping
Vnic
VolumeGroup
An overview which kind of command can be used like list:
OVM> help
For Most Object Types:
create [(attribute1)="value1"] ... [on ]
delete
edit (attribute1)="value1" ...
list
show
For Most Object Types with Children:
add to
remove from
Client Session Commands:
set alphabetizeAttributes=[Yes|No]
set commandMode=[Asynchronous|Synchronous]
set commandTimeout=[1-43200]
set endLineChars=[CRLF,CR,LF]
set outputMode=[Verbose,XML,Sparse]
showclisession
Other Commands:
exit
showallcustomcmds
showcustomcmds
showobjtypes
showversion
If you want to get you vm.cfg file, you can use the id from "list vm" and type:
OVM> getVmCfgFileContent Vm id=0004fb0000060000fa3b1b883e717582
Command: getVmCfgFileContent Vm id=0004fb0000060000fa3b1b883e717582
Status: Success
Time: 2019-01-25 06:59:46,875 EST
Data:
OVM_domain_type = xen_pvm
bootargs =
disk = [file:/OVS/Repositories/0004fb0000030000dad74d9c43176d2e/ISOs/0004fb0000150000226a713414eaa501.iso,xvda:cdrom,r,file:/OVS/Repositories/0004fb0000030000dad74d9c43176d2e/VirtualDisks/0004fb0000120000f62a7bba83063840.img,xvdb,w]
bootloader = /usr/bin/pygrub
vcpus = 1
memory = 512
on_poweroff = destroy
OVM_os_type = Other Linux
on_crash = restart
cpu_weight = 27500
OVM_description =
cpu_cap = 0
on_reboot = restart
OVM_simple_name = myAlpineLinux
name = 0004fb0000060000fa3b1b883e717582
maxvcpus = 1
vfb = [type=vnc,vncunused=1,vnclisten=127.0.0.1,keymap=en-us]
uuid = 0004fb00-0006-0000-fa3b-1b883e717582
guest_os_type = linux
OVM_cpu_compat_group =
OVM_high_availability = false
vif = []
Very helpful is the Oracle documentation (
here).