• Contact Us
  • Home
  • About Us
  • News
    • Entertainment
    • Trending
  • IT
    • Code
    • Cloud
    • Linux
    • Splunk
  • Login
  • Register
Upgrade
CloudiBee
  • Contact Us
  • Home
  • About Us
  • News
    • Entertainment
    • Trending
  • IT
    • Code
    • Cloud
    • Linux
    • Splunk
No Result
View All Result
  • Contact Us
  • Home
  • About Us
  • News
    • Entertainment
    • Trending
  • IT
    • Code
    • Cloud
    • Linux
    • Splunk
No Result
View All Result
CloudiBee
No Result
View All Result
Home Linux

Xen : Administration commands

cloudibee by cloudibee
November 21, 2007
in Linux
0
0
SHARES
104
VIEWS
Share on FacebookShare on Twitter

Table of Contents

  • Xen Daemons
    • xend :
    • You might also like
    • Linux Change Password Command: Change password expiry in Linux
    • Top Open Source Email Servers
    • xendomains :
    • libvirtd:
  • Here are some more xm and virsh commands for creating, managing, and troubleshooting xen virtual machines.
    • List the guest domains: 
    • Starting a guest domain:
    • Shutdown a guest:
    • Rebooting a guest:
    • Terminate a guest:
  • Troubleshooting
  • Xen Performance tuning
  • Other commands

Xen Daemons

For the Xen server to function properly, the below daemons must be running on the VM server.

xend :

This is the Xen server control daemon. This daemon must be running to start and manage the virtual machines. The administrative interface of xend is “xm”. The xend daemon can be customized using the configuration file /etc/xen/xend-config.sxp.

You might also like

Linux Change Password Command: Change password expiry in Linux

April 7, 2021
Email Servers

Top Open Source Email Servers

September 7, 2021

xendomains :

This daemon helps on starting the guests automatically when the host server boots up. The Xen guest config file has to be placed in /etc/xen/auto/ for the xendomains to pickup and boot the guests when the server boots up.

libvirtd:

This daemon allows the administrators to access the hypervisors and the virtual machines using management tools like “virsh” and “virt-install”.

Here are some more xm and virsh commands for creating, managing, and troubleshooting xen virtual machines.

List the guest domains: 

The command “xm list” displays the information of all running domains. The “–long” option displays full information on running guests.

[root@unixfoo-xen-adm01 ~]# xm list 
Name                                ID   Mem  VCPUs    State   Time(s) 
Domain-0                            0   2048     8     r-----  45645.8 
guest04                             4   4096     2     -b----    343.4 
guest05                             5   4096     2     -b----    896.4 
guest06                             3   4096     2     r-----   2244.1 
[root@unixfoo-xen-adm01 ~]#

In the output of “xm list”

  • Name – represents the domU guest VM name
  • ID -represents the domain ID
  • Mem – represents the amount of memory allotted to the guest domain (in MB)
  • VCPUs – represents the number of virtual CPUs assigned to a domain.
  • State – represents the running state of the guest OS.
    • r – running. The domain is currently running on a CPU.
    • b – blocked. The domain is currently not running.
    • p – paused. The domain is paused using “xm pause” command.
    • c – crashed . The domain has crashed and terminated abruptly
    • d – dying . The domain is the process of shutdown or crash.
  • Time – represents the total runtime of the domain as accounted by the Xen server.

Starting a guest domain:

The command “xm  create” is used to startup a Xen guest.  This command creates a guest based on the configuration file storage in /etc/xen. 

[root@unixfoo-xen-adm01 ~]# xm create guest06
Using config file “/etc/xen/guest06”.
Started domain guest06
[root@unixfoo-xen-adm01 ~]#

If the Xen configuration file is not stored in /etc/xen, the file name with full path should be specified in “xm create” command.

Shutdown a guest:

The command “xm shutdown” is used to shutdown an Xen guest gracefully.

[root@unixfoo-xen-adm01 ~]# xm shutdown guest06
[root@unixfoo-xen-adm01 ~]# xm list 
Name                                ID   Mem  VCPUs    State   Time(s) 
Domain-0                            0   2048     8     r-----  45645.8 
guest04                             4   4096     2     -b----    343.4 
guest05                             5   4096     2     -b----    896.4 
[root@unixfoo-xen-adm01 ~]#

Rebooting a guest:

The command “xm reboot” is used to reboot a Xen domU guest.

Terminate a guest:

The command “xm destroy” is used to immediately terminate an Xen domU guest virtual machine.

Status monitoring

  • xm uptime        – Displays uptime for a domain
  • xm top            – Monitors a host and its domains in real time
  • xm list             – Displays domain information
  • xm info            – Displays host information
  • xm vcpu-list     – Lists domain virtual processors
  • xm network-list – List virtual network interfaces for a domain.
  • virsh nodeinfo   – Gives basic information about the node.
  • virsh cpuinfo

Troubleshooting

  • xm console     – Attaches to a domain console
  • xm dump-core – Dumps core of a specific domain
  • xm dmesg       – Reads and/or clears the xend daemon’s message buffer
  • xm log            – Gives Xend log
  • virsh dominfo   – Returns basic information about the domain
  • virsh dumpxml  – Gives domain informations as an XML.

Xen Performance tuning

  • xm mem-max – Sets the maximum amount of memory for a domain
  • xm mem-set  – Sets the current memory usage for a domain
  • xm vcpu-set  – Sets the number of active processors for a domain

Other commands

  • xm rename   – Renames a domain
  • xm sysrq      – Sends a system request to a domain
  • xm block-list – Lists virtual block devices for a domain
Previous Post

Managing Xen

Next Post

Files used by process

cloudibee

cloudibee

Related Posts

Linux

Linux Change Password Command: Change password expiry in Linux

by cloudibee
April 7, 2021
Email Servers
Linux

Top Open Source Email Servers

by cloudibee
September 7, 2021
Linux

How to Determine Redhat Versions Command

by cloudibee
May 27, 2022
Linux

How-to Linux List Processes in 3 Simple Commands

by cloudibee
May 27, 2022
Linux

What is Cron Job in Linux?

by cloudibee
May 27, 2022
Next Post

Files used by process

Leave a Reply Cancel reply

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

Premium Content

Defining the Virtual Private Cloud (VPC)

May 27, 2022

How to Determine Redhat Versions Command

May 27, 2022

Akamai Application Performance Solutions

May 27, 2022

Browse by Category

  • Business
  • Cloud
  • Code
  • Debt
  • Entertainment
  • finance
  • Game
  • Health
  • IT
  • Lifestyle
  • Linux
  • Marketing
  • Misc
  • News
  • SEO
  • Services
  • Splunk
  • Sports
  • Tech
  • Technology
  • Tipes
  • Tips
  • Uncategorized

Browse by Tags

algorithm Apache Apache2 AWS Bash bash history Bind Blacklists Buffer C C++ CentOS Cerner chage Cloud Cloud Computing Cloud jobs Cloud Storage Cloud Suite Commands Compliance Cron job Debian Directory DMS DNS Docker Dovecot drop cache Email servers Enteprise Cloud Enterprise External FAT32 Format kernel Linux linux kernel Nirvanix passwd Sendmail SSH SSL Terminal Ubuntu

About CloudiBee

cloudibee logo


CloudiBee is an open-source for people who love technology. Here we will be sharing lots of technical information over the web so that a lot of people visit us and gain some knowledge. We are a completely open to all platform. We assure you that you can easily get any info and updated news about the tech world from us. Let's begin with us!

Hot Topic

Debt Collection & Debt Collection Scams

by Swati
August 8, 2022
0
Debt Collection Scams

With inflation at record levels, many consumers are having trouble juggling all their bills. And some are even missing payments....

Read more

Recent News

Business

The main reasons for the startup fails. How to avoid failure?

July 21, 2022
Business

Hacks for packing wine glasses so they don’t break

July 21, 2022
Business

5 tips to ensure that your movers are always on time.

July 21, 2022

CloudiBee. © 2021. All Rights Reserved

No Result
View All Result
  • Contact Us
  • Home
  • About Us
  • News
    • Entertainment
    • Trending
  • IT
    • Code
    • Cloud
    • Linux
    • Splunk

CloudiBee. © 2021. All Rights Reserved

Welcome Back!

Login to your account below

Forgotten Password? Sign Up

Create New Account!

Fill the forms bellow to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In