[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Re: [Xen-devel] Re: xend does not start


  • To: Boris Derzhavets <bderzhavets@xxxxxxxxx>
  • From: David Cemin <davidcemin@xxxxxxxxx>
  • Date: Fri, 29 Oct 2010 12:50:38 -0200
  • Cc: xen-users@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Fri, 29 Oct 2010 07:53:42 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=DwFTf6g5ArEOYDmbAr1t+YV6Eumx6F40nQ20hFBubGpPmaynynzmyg3dCgO9t5gaR1 z+kVbwFIVbRn59TmKzlqYp0xfE0km/pgaW3uKp1OAgYOeLGpgb/G6nueRIy9f6bPG7XJ 5NQ38OG2hCLXNLB3Uj8CYvILlgXL3oAr/eaZI=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hi Boris, 

% sudo /etc/init.d/networking restart
[sudo] password for cemin: 
 * Reconfiguring network interfaces...                                                                                [ OK ] 
% sudo /etc/init.d/xend start
% vim /var/log/xen/xend.log      
% sudo xm info
Error: Unable to connect to xend: No such file or directory. Is xend running?
(1) % ifconfig
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:12 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:720 (720.0 B)  TX bytes:720 (720.0 B)

peth0     Link encap:Ethernet  HWaddr 70:5a:b6:94:b8:65  
          inet6 addr: fe80::725a:b6ff:fe94:b865/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:1755 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:164409 (164.4 KB)  TX bytes:468 (468.0 B)
          Memory:d7400000-d7420000 


I still have the "permission denied" log in /var/log/xen/xend.log

I've already uninstalled the Networkmanager (with apt-get remove)

Then, in order to send this email :-) I need to reconfigure it manually. Like that:

% sudo /etc/init.d/networking restart
[sudo] password for cemin: 
 * Reconfiguring network interfaces...                                                                                [ OK ] 
% sudo /etc/init.d/xend start
% vim /var/log/xen/xend.log      
% sudo xm info
Error: Unable to connect to xend: No such file or directory. Is xend running?
(1) % ifconfig
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:12 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:720 (720.0 B)  TX bytes:720 (720.0 B)

peth0     Link encap:Ethernet  HWaddr 70:5a:b6:94:b8:65  
          inet6 addr: fe80::725a:b6ff:fe94:b865/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:1755 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:164409 (164.4 KB)  TX bytes:468 (468.0 B)
          Memory:d7400000-d7420000 


So, my eth0 now appears. Then I tried again the same process:


% sudo /etc/init.d/networking restart
 * Reconfiguring network interfaces...  

% sudo /etc/init.d/xend start        
/etc/xen/scripts/network-bridge: line 231: [: /sys/class/net/eth0: binary operator expected
ifdown: interface eth0 not configured
ifdown: interface peth0 not configured
Error: either "dev" is duplicate, or "peth0" is a garbage.
/etc/xen/scripts/network-bridge: line 231: [: /sys/class/net/eth0: binary operator expected
ifdown: interface eth0 not configured
ifdown: interface peth0 not configured
Error: either "dev" is duplicate, or "peth0" is a garbage.
% vim /var/log/xen/xend.log          
% sudo xm info                       
Error: Unable to connect to xend: No such file or directory. Is xend running?



Thank you!

2010/10/29 Boris Derzhavets <bderzhavets@xxxxxxxxx>
I believe that on Desktop you have switch off NetworkManager per second "howto".
What is output ?

1.) /etc/init.d/networking restart

2.) /etc/init.d/xend start

Boris.



--- On Fri, 10/29/10, David Cemin <davidcemin@xxxxxxxxx> wrote:

From: David Cemin <davidcemin@xxxxxxxxx>
Subject: Re: [Xen-users] Re: [Xen-devel] Re: xend does not start
To: "Boris Derzhavets" <bderzhavets@xxxxxxxxx>
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Date: Friday, October 29, 2010, 8:20 AM

Boris, 

My OS is Ubuntu 10.04, not 10.04 Server. 

Step by step, what I've done so far:

1)      Install some packages:

apt-get install libcurl4-openssl-dev \
xserver-xorg-dev \
mercurial gitk \
build-essential \
libncurses5-dev \
uuid-dev gawk \
gettext texinfo bcc \
libncurses5-dev dpkg-dev debhelper \
iasl texinfo bridge-utils bison flex
apt-get build-dep xen-3.3

 

      2)      Clone from kernel source(it will be our dom0)

git clone http://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git linux-2.6-xen
cd linux-2.6-xen
git checkout -b xen/stable-2.6.32.x origin/xen/stable-2.6.32.x

           3)     Compile kernel (.config is on the repository)

make menuconfig # dom0 support and the Xen backend(load .config)
make -j(x)number_of_kernels
make modules_install install
make deb-pkg

dpkg -i ../linux-image*2.6.32.24*.deb

depmod 2.6.32.24
update-initramfs -c -k 2.6.32.24

4)      Compile xen 4.0.1

# cd /usr/src
# hg clone –r RELEASE-4.0.1 http://xenbits.xensource.com/xen-4.0-testing.hg
# cd xen-4.0-testing.hg
# make xen
# make tools

# make install-xen
# make install-tools PYTHON_PREFIX_ARG=


% sudo update-initramfs -c -k 2.6.32.24
update-initramfs: Generating /boot/initrd.img-2.6.32.24
% sudo update-rc.d xend defaults 20 21
update-rc.d: warning: xend start runlevel arguments (2 3 4 5) do not match LSB Default-Start values (3 4 5)
update-rc.d: warning: xend stop runlevel arguments (0 1 6) do not match LSB Default-Stop values (0 1 2 6)
 System start/stop links for /etc/init.d/xend already exist.
% sudo update-rc.d xendomains defaults 20 21
update-rc.d: warning: xendomains start runlevel arguments (2 3 4 5) do not match LSB Default-Start values (3 4 5)
update-rc.d: warning: xendomains stop runlevel arguments (0 1 6) do not match LSB Default-Stop values (0 1 2 6)
 System start/stop links for /etc/init.d/xendomains already exist.

then I've update grub with sudo update-grub. I am using grub 0.97 and the entry that I am using is the following:

title Xen 4.0.1 / Ubuntu 10.04.1 LTS, kernel 2.6.32.24
uuid b76ba815-b994-4019-ab0a-0a363841f772
kernel /boot/xen-4.0.1.gz
module /boot/vmlinuz-2.6.32.24 root=UUID=b76ba815-b994-4019-ab0a-0a363841f772 ro console=tty0
module /boot/initrd.img-2.6.32.24
quiet



Finally, what I have in /dev/xen is:

% ls -l /dev/xen     
total 0
crw-rw---- 1 root root 10, 60 2010-10-29 10:10 evtchn
crw-rw---- 1 root root 10, 59 2010-10-29 10:10 gntdev


I am attaching my .config, if you want to take a look as well. 


Thank you !!

--
David

2010/10/29 Boris Derzhavets <bderzhavets@xxxxxxxxx>
Double check packages have been installed for Xen on 10.04 Server.
I've done such installs about 20-30 times  with no problems.
I believe something is wrong in OS python setup.

 You might try hook and then "install-tools". However, i do remember, xend reported
that package not found, but not "permission denied"
 
On the other side it would be good to see yours step by step installation procedure.
You may send it to me out of the list if you want.

What reports  ?
# ls -l   /dev/xen



Boris.

--- On Thu, 10/28/10, David Cemin <davidcemin@xxxxxxxxx> wrote:

From: David Cemin <davidcemin@xxxxxxxxx>
Subject: Re: [Xen-users] Re: [Xen-devel] Re: xend does not start
To: "Boris Derzhavets" <bderzhavets@xxxxxxxxx>
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Date: Thursday, October 28, 2010, 4:51 PM


Hello Boris, 

I have made what is explained in both tutorials .. including uninstalling network manager, and it hadn't work. Same problem is still happening. 

I tried with 
- kernel 2.6.32.24
- kernel 2.6.31.14

- xen 4.0.0
- xen 4.0.1
- xen 4.0.2

With all variants. Always passing PYTHON_PREFIX_ARG= in install-tools ...

Do you have any other clue of what could be this problem? 

Thank you ! 

2010/10/28 Boris Derzhavets <bderzhavets@xxxxxxxxx>
Please, view  http://wiki.xen.org/xenwiki/Xen4.0

Tutorials to install Xen 4.0 :-

Xen 4.0 on Ubuntu 10.04: http://bderzhavets.wordpress.com/2010/04/24/set-up-ubuntu-10-04-server-pv-domu-at-xen-4-0-dom0-pvops-2-6-32-10-kernel-dom0-on-top-of-ubuntu-10-04-server/

Set up Xen 4.0 Hypervisor
********************************************************
UPDATE 06/09/2010
********************************************************
As of 06/09/2010 checking out xen/stable or xen/stable-2.6.32.x branch will result building 2.6.32.15 kernel. This kernel may work properly only with Xen 4.0.1-rc2-pre ( at the time of writing). So build xen as follows


# cd /usr/src
# hg clone http://xenbits.xensource.com/xen-4.0-testing.hg
# cd xen-4.0-testing.hg
# make xen
# make tools
# make install-xen
# make install-tools PYTHON_PREFIX_ARG=

******************************************************

You can also follow more up to date "howto":-

  http://www.linuxtoday.com/infrastructure/2010101502135OSSV

Except Libvirt setup it would work for you as well

Boris.

--- On Thu, 10/28/10, David Cemin <davidcemin@xxxxxxxxx> wrote:

From: David Cemin <davidcemin@xxxxxxxxx>

Subject: Re: [Xen-users] Re: [Xen-devel] Re: xend does not start
To: "Boris Derzhavets" <bderzhavets@xxxxxxxxx>
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Date: Thursday, October 28, 2010, 2:25 PM


Hi Boris, 

Thank you for your answer. 

My base OS is a Ubuntu 10.04. Let me see if I got it right. I just need to recompile xen 4.0.0 and when install tools I need to use this line:
# make install-tools PYTHON_PREFIX_ARG=

?

thank you!

--
David

2010/10/28 Boris Derzhavets <bderzhavets@xxxxxxxxx>
By some reasons messages from davidcemin@xxxxxxxxx are coming to my spam folder on yahoo.com,  so i cannot reply properly. The most recent reply is regarding python hook.

If you base OS is Ubuntu >= 9.10 default location of python packages is
/usr/lib/python2.6/dist-packages.
This issue is addressed by line :-


# make install-tools PYTHON_PREFIX_ARG=


It will just put packages in proper location
But , once again,  my question is what is your base OS ?

Boris.



--- On Thu, 10/28/10, Boris Derzhavets <bderzhavets@xxxxxxxxx> wrote:

From: Boris Derzhavets <bderzhavets@xxxxxxxxx>
Subject: Re: [Xen-users] Re: [Xen-devel] Re: xend does not startDate: Thursday, October 28, 2010, 1:57 PM


Well known Ubuntu issue

# cd /usr/src
# hg clone http://xenbits.xensource.com/xen-4.0-testing.hg
# cd xen-4.0-testing.hg
# make xen
# make tools
# make install-xen
# make install-tools PYTHON_PREFIX_ARG=


--- On Thu, 10/28/10, Boris Derzhavets <bderzhavets@xxxxxxxxx> wrote:

From: Boris Derzhavets <bderzhavets@xxxxxxxxx>
Subject: [Xen-users] Re: [Xen-devel] Re: xend does not start
To: xen-users@xxxxxxxxxxxxxxxxxxx, "David Cemin" <davidcemin@xxxxxxxxx>
Date: Thursday, October 28, 2010, 10:16 AM

What is SELINUX status ?

Boris.




-----Inline Attachment Follows-----

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


-----Inline Attachment Follows-----

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users







-----Inline Attachment Follows-----

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users





-----Inline Attachment Follows-----

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users




--
David Cemin
mobile: +55 51 93523097
home:   +55 51 32763785
email: davidcemin@xxxxxxxxx
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.