LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
Search this Thread
Old 12-11-2009, 12:16 PM   #1
sunils1973
Member
 
Registered: Jan 2007
Location: INDIA
Distribution: Ubuntu, Debian
Posts: 320

Rep: Reputation: 30
configure Xen on centOS


I am running CentOS 5.3 on my system and installed CentOS vertualization Xen by yum install kernel-xen xen

[root@centos ~]# uname -r
2.6.18-164.6.1.el5xen

[root@centos ~]# xm list
Name ID Mem(MiB) VCPUs State Time(s)
Domain-0 0 869 2 r----- 384.3

I am totally confused to do further process.

Some tutorials/pages directs to create an image and something in a different way.

Pls help me by providing the exact measures

Thanks in advance
 
Old 12-12-2009, 10:58 AM   #2
sunils1973
Member
 
Registered: Jan 2007
Location: INDIA
Distribution: Ubuntu, Debian
Posts: 320

Original Poster
Rep: Reputation: 30
I have installed xen and a vertual machine vm01
# uname -r
2.6.18-164.6.1.el5xen
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#xm list

Name ID Mem(MiB) VCPUs State Time(s)
Domain-0 0 869 2 r----- 177.4
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[root@centos ~]# cat /etc/xen/vm01
name = "vm01"
uuid = "0d800584-821e-6b23-2e73-3d79c4ed50f6"
maxmem = 256
memory = 256
vcpus = 1
bootloader = "/usr/bin/pygrub"
on_poweroff = "destroy"
on_reboot = "restart"
on_crash = "restart"
vfb = [ "type=vnc,vncunused=1,keymap=en-us" ]
disk = [ "tap:aio:/home/vm/vm01.img,xvda,w" ]
vif = [ "mac=00:16:36:5a:c6:7a,bridge=virbr0,script=vif-bridge" ]
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[root@centos ~]# xm create vm01
Using config file "/etc/xen/vm01".
Traceback (most recent call last):
File "/usr/bin/pygrub", line 677, in ?
fs = fsimage.open(file, get_fs_offset(file))
IOError: [Errno 95] Operation not supported
No handlers could be found for logger "xend"
Error: Boot loader didn't return any data!
Usage: xm create <ConfigFile> [options] [vars]
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++


What is the problem. Thanks in advance
 
Old 12-14-2009, 08:36 AM   #3
sunils1973
Member
 
Registered: Jan 2007
Location: INDIA
Distribution: Ubuntu, Debian
Posts: 320

Original Poster
Rep: Reputation: 30
I have done! still there is a problem

While installing the vertual machine vm01, it asks for software destinations of NFS image, FTP and hard disk and Local CDROM

I tried CDROM but it shows not cdrom available
same with hard disk - no hard disk
tried NFS also (/home/test 127.0.0.1/255.255.255.0 as /etc/exports) but shown message could not mount nfs volume

The result of showmount -e shows the nfs mounts.

What to do next for the complete installation of the guest OS?
 
Old 12-24-2009, 10:23 AM   #4
sunils1973
Member
 
Registered: Jan 2007
Location: INDIA
Distribution: Ubuntu, Debian
Posts: 320

Original Poster
Rep: Reputation: 30
Nobody is responding

How can I solve the problem?

It is what I have done.

Installed dom0 and it is working

[root@centvertual ~]# xm list
Name ID Mem(MiB) VCPUs State Time(s)
Domain-0 0 736 2 r----- 360.9
Tried to install the guest OS - the same CentOs

I have copied all the image files *.iso into the directory /home/test

Now my machine have only one ethernet card But ifconfig shows other interfaces also

My question is how can I install the guest oses from the image discs on the /home/test

It works for some time but when giving the install location, how can i specify the url as it is now an nfs volume
 
Old 01-08-2010, 09:51 AM   #5
sunils1973
Member
 
Registered: Jan 2007
Location: INDIA
Distribution: Ubuntu, Debian
Posts: 320

Original Poster
Rep: Reputation: 30
Jan 8 21:05:15 centos libvirtd: 21:05:15.682: error : internal error Error adding file to config cache
Jan 8 21:05:15 centos libvirtd: 21:05:15.683: error : internal error Error adding file to config cache
Jan 8 21:05:18 centos kernel: blktap: ring-ref 8, event-channel 11, protocol 1 (x86_32-abi)
Jan 8 21:05:18 centos kernel: ADDRCONF(NETDEV_CHANGE): vif1.0: link becomes ready
Jan 8 21:05:18 centos kernel: virbr0: topology change detected, propagating
Jan 8 21:05:18 centos kernel: virbr0: port 1(vif1.0) entering forwarding state
Jan 8 21:05:24 centos dhclient: DHCPREQUEST on eth1 to 202.88.238.16 port 67
Jan 8 21:06:12 centos last message repeated 3 times
Jan 8 21:07:13 centos last message repeated 5 times
Jan 8 21:08:21 centos last message repeated 5 times
Jan 8 21:09:35 centos last message repeated 5 times
Jan 8 21:10:37 centos last message repeated 5 times
Jan 8 21:11:54 centos last message repeated 5 times
Jan 8 21:12:23 centos last message repeated 3 times
Jan 8 21:12:32 centos dhclient: DHCPREQUEST on eth1 to 255.255.255.255 port 67
Jan 8 21:12:32 centos dhclient: DHCPACK from 10.1.71.1
Jan 8 21:12:32 centos dhclient: bound to 116.68.82.163 -- renewal in 583 seconds.

What is this problem while installing guest OS?
 
Old 01-09-2010, 02:55 AM   #6
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 749
Blog Entries: 6

Rep: Reputation: 74
from my understanding you're install from .iso image
could you mount the iso into /home/test before you install guest O/S

if you want to use URL location, just up apache in the main os , point mounted iso in /var/www/html and put url when u want to install as http://ip/iso or something like that

otherwise try this way

http://centosf.centos.org/centos-5/5.4/os/i386/

Last edited by routers; 01-09-2010 at 03:01 AM. Reason: extra
 
Old 01-09-2010, 04:16 AM   #7
sunils1973
Member
 
Registered: Jan 2007
Location: INDIA
Distribution: Ubuntu, Debian
Posts: 320

Original Poster
Rep: Reputation: 30
Yes

This is actually what I have done.

mount the device /dev/sda1 (Windows partition in which the fedora iso image lies) on /mnt


then mount the iso image by
mount -o loop /pathto-iso image /home/vertual

Erlier I have tried by copying the iso image into my /home directory and mounted it as the loop device - got the same result.

OK, I shall try the other way - by url
 
Old 01-11-2010, 09:21 AM   #8
sunils1973
Member
 
Registered: Jan 2007
Location: INDIA
Distribution: Ubuntu, Debian
Posts: 320

Original Poster
Rep: Reputation: 30
When I tried the http url u have given, it works. But I am afraid it may cross my download limits 2000 MB.
 
Old 01-11-2010, 08:40 PM   #9
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 749
Blog Entries: 6

Rep: Reputation: 74
ok then what you need to do is install apache in the main os
mount iso to /mnt/iso
cd /var/www/html
ln -s /mnt/iso iso

and start install when asked for url enter http://main.os.ip/iso

should work this way
 
Old 01-18-2010, 09:14 AM   #10
sunils1973
Member
 
Registered: Jan 2007
Location: INDIA
Distribution: Ubuntu, Debian
Posts: 320

Original Poster
Rep: Reputation: 30
I am extremely sorry as I have been offline for these days

Thank u routers,

What does the main os means? Mine is CentOS

what should I enter for http://main.os.ip/iso. Pls give me an example

my systems is http://192.168.0.1/iso correct?
or http://main.os.192.168.0.1/iso ?
 
Old 01-19-2010, 12:09 AM   #11
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 749
Blog Entries: 6

Rep: Reputation: 74
Quote:
Originally Posted by sunils1973 View Post
I am extremely sorry as I have been offline for these days

Thank u routers,

What does the main os means? Mine is CentOS

what should I enter for http://main.os.ip/iso. Pls give me an example
my systems is http://192.168.0.1/iso correct? <-this is the one

or http://main.os.192.168.0.1/iso ?
my systems is http://192.168.0.1/iso correct? <-this is the one

os = operating system
 
Old 01-19-2010, 08:00 AM   #12
sunils1973
Member
 
Registered: Jan 2007
Location: INDIA
Distribution: Ubuntu, Debian
Posts: 320

Original Poster
Rep: Reputation: 30
It worked!

Thank u very much routers
 
  


Reply


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
install xen-3.4.1 on centos aclhkaclhk Linux - Software 2 10-01-2009 01:47 AM
LXer: Install Fedora 10 PV DomU at Xen 3.3.1 CentOS 5.2 & Xen 3.3.0 Intrepid Server v LXer Syndicated Linux News 0 01-10-2009 11:40 AM
LXer: PV-Grub on CentOS 5.2 PV DomU at Xen 3.3 CentOS 5.2 Dom0 (all 64-bit) LXer Syndicated Linux News 0 10-05-2008 10:12 PM
help me... centos 5.1 on xen bridge yjj3019 Linux - Enterprise 1 03-24-2008 11:59 PM
LXer: Install, Configure, Manage and Administer Xen Servers with New book on Xen LXer Syndicated Linux News 0 01-11-2008 11:41 PM


All times are GMT -5. The time now is 10:57 PM.

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