How to Manage An Oracle VM Server Hypervisor Using XM Commands

Hi,

I will explain How to Manage An Oracle VM Server Hypervisor Using XM Commands in this article.

 

If you don’t know what is the Oracle VM Server and how to install it, you can read the following article.

Oracle VM Server ( OVS ) Architecture and Step by Step OVS Installation -2

 

You can manage an Oracle VM Server with Oracle VM Manager, if you don’t know it, you can read the following article.

 

Oracle VM Manager Step by Step Installation for Monitoring Oracle VM Server

 

 

Sometimes you may not access the Oracle VM Manager, so you cannot manage the Oracle VM Server VMs. In this time, you can use the Oracle VM Server Hypervisor XM Commands.

 

You can query the Basic informations about the Oracle VM Server running the xm info command as follows.

[root@ovs2 ~]# xm info
host : ovs2.deveci.local
release : 3.8.13-118.15.1.el6uek.x86_64
version : #2 SMP Fri Dec 2 09:07:34 PST 2019
machine : x86_64
nr_cpus : 4
nr_nodes : 1
cores_per_socket : 2
threads_per_core : 1
cpu_mhz : 2591
hw_caps : 1fabfbff:2c100800:00000000:00003f00:d7fa3169:00000000:00000251:00000561
virt_caps : hvm
total_memory : 4096
free_memory : 2684
free_cpus : 0
xen_major : 4
xen_minor : 3
xen_extra : .1OVM
xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
xen_scheduler : credit
xen_pagesize : 4096
platform_params : virt_start=0xffff800000000000
xen_changeset :
xen_commandline : console=com1,vga com1=57600,8n1 dom0_mem=max:816M allowsuperpage
cc_compiler : gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-3)
cc_compile_by : mockbuild
cc_compile_domain : us.oracle.com
cc_compile_date : Sun Dec 25 21:46:52 PST 2019
xend_config_format : 4

 

You can list all running VMs and their details running the xm list command as follows.

[root@ovs2 0004fb00000600003a6acd33269210a4]#  xm list
Name                                        ID   Mem VCPUs      State   Time(s)
0004fb00000600003a6acd33269210a4            14 20003     8     -b----  28241.3
0004fb0000060000cff0a9dcd88d8a8f            13 20003     8     r-----   5197.5
Domain-0                                     0  1973    20     r-----  64202.2

 

You can list the more details about any VM as follows.

[root@ovs2 ~]# xm list 0004fb0000060000cff0a9dcd88d8a8f -l

 

You can shutdown the VM ( xm shutdown ) using its domain name as follows.

[root@ovs2 0004fb00000600003a6acd33269210a4]# xm shutdown 0004fb0000060000cff0a9dcd88d8a8f

 

You can start the VM with xm create command using the vm.cfg file as follows.

xm create -c /OVS/Repositories/0004fb0000030000284f09a3e2098c4b/VirtualMachines/0004fb0000060000cff0a9dcd88d8a8f/vm.cfg

 

You can reboot the VM ( xm shutdown ) using its domain name as follows.

[root@ovs2 ~]# xm reboot 0004fb0000060000cff0a9dcd88d8a8f

 

You can Kill or PowerOff the VM ( xm shutdown ) using its domain name as follows.

[root@ovs2 ~]# xm destroy 0004fb0000060000cff0a9dcd88d8a8f

 

You can learn uptime of OVS server as follows.

[root@ovs2 ~]# xm uptime
Name ID Uptime
0004fb0000060000524f9d3e43fd71f3 4 0:05:21
Domain-0 0 1:31:59

 

 

You can migrate the VM to other Oracle VM Server as follows.

[root@ovs2 ~]# xm migrate -l 0004fb0000060000cff0a9dcd88d8a8f ovs1.deveci.local

 

You can list the ALL VMs CPU details as follows.

[root@ovs2 ~]# xm vcpu-list
Name ID VCPU CPU State Time(s) CPU Affinity
0004fb0000060000524f9d3e43fd71f3 4 0 1 -b- 70.9 0-1
0004fb0000060000524f9d3e43fd71f3 4 1 0 -b- 22.5 0-1
Domain-0 0 0 1 -b- 255.5 any cpu
Domain-0 0 1 3 -b- 385.1 any cpu
Domain-0 0 2 2 -b- 237.5 any cpu
Domain-0 0 3 0 r-- 335.8 any cpu

 

You can check the VM current state as follows.

[root@ovs2 ~]# xm domstate 0004fb0000060000cff0a9dcd88d8a8f
idle

 

 

Do you want to learn Oracle Database for Beginners, then read the following articles.

https://ittutorial.org/oracle-database-19c-tutorials-for-beginners/

 

 

Do you want to learn Exadata detailed, then read the following articles.

https://ittutorial.org/exadata-tutorials-oracle-magic-database-machine-exadata-lessons/ 

About Mehmet Salih Deveci

I am Founder of SysDBASoft IT and IT Tutorial and Certified Expert about Oracle & SQL Server database, Goldengate, Exadata Machine, Oracle Database Appliance administrator with 10+years experience.I have OCA, OCP, OCE RAC Expert Certificates I have worked 100+ Banking, Insurance, Finance, Telco and etc. clients as a Consultant, Insource or Outsource.I have done 200+ Operations in this clients such as Exadata Installation & PoC & Migration & Upgrade, Oracle & SQL Server Database Upgrade, Oracle RAC Installation, SQL Server AlwaysOn Installation, Database Migration, Disaster Recovery, Backup Restore, Performance Tuning, Periodic Healthchecks.I have done 2000+ Table replication with Goldengate or SQL Server Replication tool for DWH Databases in many clients.If you need Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS Consultancy and Training you can send my email adress [email protected].-                                                                                                                                                                                                                                                 -Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS ve linux Danışmanlık ve Eğitim için  [email protected] a mail atabilirsiniz.

Leave a Reply

Your email address will not be published. Required fields are marked *