LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-30-2008, 10:36 AM   #1
NuWeb
Member
 
Registered: Nov 2006
Posts: 55

Rep: Reputation: 15
Xen on CentOS 5.0 "xm"


I am completely new to CentOS 5.0, (only a few days). Someone was asking me about installing Citrix XenServer on it (I don't know anything about "XenServer", I just heard about it yesterday). While searching around for info I found that CentOS 5.0 already has Xen installed on it.

Does anyone know the difference between Citrix XenServer and the Xen installed on CentOS 5.0.?

I was told if I use "uname -r" it will tell me if the Xen kernel is installed. I get:
uname -r
2.6.18-92.1.10.el5xen


Which I assume means it's installed.

Now I was told t use "xm list" but "xm list" doesn't work. I get:
xm list
bash: xm: command not found


Next, to setup a virtual machine use "virt-install", this does work:
virt-install
What is the name of your virtual machine?


Why doesn't "xm list" work.? What do I need to do to make it work.?
 
Old 10-01-2008, 12:55 AM   #2
SkyEye
Member
 
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441

Rep: Reputation: 40
1. I don't know the exact difference. But I know that XenSource the company behind Xen was bought by Citrix. So I guess they have a different product. Since Xen is Open Source it's been included with several distros in cluding RHEL, CentOS, Fedora and Ubuntu.

2. Why xm command doesn't work: Check whether you have the necessary packages. For example just having a Xen kernel (kernel-xen) doesn't guaruntee the availability if xen utilities.
Find what's installed
Code:
# rpm -qa xen*
Search the repos for what are available.
Code:
#yum search xen
If xen, xen-libs or any other necessary package is not installed try installing them with
Eg:
Code:
#yum install xen xen-libs
Note: You might some from here useful.

3. Try virt-manager. It's a GUI tool which can help you to manage Xen VMs. Also if your time allows ans need drives, have a look at the new oVirt project.

Last edited by SkyEye; 10-01-2008 at 12:58 AM.
 
Old 11-20-2009, 09:09 PM   #3
racerx
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Rep: Reputation: 0
yum install didn't help

Hi all,

I have installed the xen kernel (Dom0) on CentOS 5 and is verified by the following:

root# uname -r
2.6.18-164.6.1.el5xen

I have also installed all the appropriate packages (xen xen-libs libvirt xen-kernel, etc) and I still get the following:

root# xm list
bash: xm: command not found

I can use the virt-manager GUI or virt-install from the terminal, but need to specifically use xm tools. I find it strange that after installing all the packages that they are not working.

Any suggestions?

Thanks!
 
Old 12-09-2009, 10:18 AM   #4
lineartape
LQ Newbie
 
Registered: Dec 2009
Posts: 2

Rep: Reputation: 0
"/usr/sbin/xm list" run this. I think, It will work, also, plase check your PATH env

--Syed!
 
Old 01-31-2010, 11:28 AM   #5
racerx
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Rep: Reputation: 0
Still no luck... Can't seem to run any xm commands... Here's what I've tried...

[root@localhost usr]# xm list
bash: xm: command not found
[root@localhost usr]# xm create
bash: xm: command not found
[root@localhost usr]# yum install xen*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: centos.cs.wisc.edu
* base: mirrors.xmission.com
* extras: mirrors.liquidweb.com
* updates: mirror.hmc.edu
Setting up Install Process
Package xen-devel-3.0.3-94.el5_4.3.i386 already installed and latest version
Package xen-libs-3.0.3-94.el5_4.3.i386 already installed and latest version
Package xen-3.0.3-94.el5_4.3.i386 already installed and latest version
Nothing to do
[root@localhost usr]#


Again, the Virtual Machine Manager GUI is working, but I would like to run VM management from the terminal.

Any help would be most appreciated. Thanks!
 
Old 02-01-2010, 07:36 AM   #6
lineartape
LQ Newbie
 
Registered: Dec 2009
Posts: 2

Rep: Reputation: 0
Please run the following command ("/usr/sbin/xm list")

[root@localhost usr]# /usr/sbin/xm list


--Syed!
 
Old 02-01-2010, 06:35 PM   #7
racerx
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Rep: Reputation: 0
Worked! Sorry about that. I was in the wrong directory before.

Thanks!!!!!
 
  


Reply

Tags
centos, rhel, virtmanager, xen, xm


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[xen] How to enter "/" in console? brianmcgee Linux - Software 4 12-01-2007 01:53 PM
FC7 with XEN : init: Id "x" respawning too fast: disabled for 5 minutes erikjan Fedora - Installation 0 07-11-2007 03:08 PM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 08:31 AM
"MS Windows installation on Xen Possible or not" krish.karthi Linux - Software 1 12-22-2006 12:35 AM
wan't to run "Virtual Machine Installation (XEN)" on SuSE 10? AQG Linux - Software 1 02-08-2006 10:48 PM


All times are GMT -5. The time now is 08:06 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration