WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] Problem on installing Xen 4.0.1 on Ubuntu 10.04 64bit

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Problem on installing Xen 4.0.1 on Ubuntu 10.04 64bit
From: 陳光禹 <ha1802000@xxxxxxxxx>
Date: Wed, 16 Mar 2011 17:14:55 +0800
Delivery-date: Wed, 16 Mar 2011 04:23:27 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:from:date:message-id:subject:to :content-type; bh=n+aFy5ASnvKV6G/hkdkWuFz+yKRVaEUeqNaC3Tilwbk=; b=X+xQ3PsWEQTLwhQBGnki3PoXEbJU0YvWOck0iKRBf4GaQf/GpPTvcdwF+sCCS47y1H Sq+D2wTZZONL+Yi//O4hafFObxWSwsjSV+QO/K3a54z8PUjAsjwsccREf4yd8vtMdoCg 5Ro8YJUUNEIqEw/yIrCIHfMA2KCXZWym/oTQM=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=FeAxP+wtw13SshFJJ8/D4nfbWKrI/Wm7BjO5I7jsLWLAnwMspHdv6pEZV796wl/MnZ o63Z9wHexyQbU6W8oig6TsgQ+CIn1KiAt+2M/EvaH3Bc0nQZr2EtPGU9pYNbXbmD/XYR Z6OWqJuAhU3xotrobWKG4RCGMYgUud3VNXPic=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
hi there,
I got a xend start problem when I install xen 4.0.1 on ubuntu 10.04 64_bit

my installation steps are as follows:

first, install packages
$sudo apt-get install bcc bin86 gawk bridge-utils iproute libcurl3 libcurl4-openssl-dev bzip2 module-init-tools transfig tgif texinfo texlive-latex-base texlive-latex-recommended texlive-fonts-extra texlive-fonts-recommended pciutils-dev mercurial build-essential make gcc libc6-dev zlib1g-dev python python-dev python-twisted libncurses5-dev patch libvncserver-dev libsdl1.2-dev libjpeg62-dev iasl libbz2-dev e2fslibs-dev git-core uuid-dev ocaml libx11-dev bison flex

$sudo apt-get install gcc-multilib xz-utils
second, download xen 4.0.1 from http://www.xen.org/products/downloads.html to /usr/src and install
$sudo make xen
$sudo make tools
$sudo make stubdom

$sudo make install-xen
$sudo make install-tools PYTHON_PREFIX_ARG=
$sudo make install-stubdom
third, download xen dom0 kernel from ʼjeremyʼ to /usr/src and install it
$sudo git clone -o xen -n git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git linux-2.6-xen
$sudo git reset --hard
$sudo git pull

$sudo cp /boot/config-2.6.32-24-generic /usr/src/linux-2.6-xen
$sudo mv config-2.6.32-24-generic .config

$sudo make menuconfig

$make sure follows options are chosed
CONFIG_XEN=y
CONFIG_XEN_PVHVM=y
CONFIG_XEN_MAX_DOMAIN_MEMORY=128
CONFIG_XEN_SAVE_RESTORE=y
CONFIG_XEN_DEBUG_FS=y
CONFIG_SWIOTLB_XEN=y
CONFIG_MICROCODE_XEN=y
CONFIG_XEN_DOM0=y
CONFIG_XEN_PRIVILEGED_GUEST=y
CONFIG_XEN_DOM0_PCI=y
CONFIG_XEN_PCI_PASSTHROUGH=y
CONFIG_PCI_XEN=y
CONFIG_XEN_PCIDEV_FRONTEND=y
CONFIG_XEN_BLKDEV_FRONTEND=y
CONFIG_NETXEN_NIC=m
CONFIG_XEN_NETDEV_FRONTEND=m
CONFIG_XEN_KBDDEV_FRONTEND=y
CONFIG_HVC_XEN=y
CONFIG_XEN_FBDEV_FRONTEND=y
CONFIG_XEN_BALLOON=y
CONFIG_XEN_SCRUB_PAGES=y
CONFIG_XEN_DEV_EVTCHN=y
CONFIG_XEN_BACKEND=y
CONFIG_XEN_NETDEV_BACKEND=m
CONFIG_XEN_BLKDEV_BACKEND=m
CONFIG_XEN_BLKDEV_TAP=m
CONFIG_XEN_BLKBACK_PAGEMAP=m
CONFIG_XEN_PCIDEV_BACKEND=m
CONFIG_XEN_PCIDEV_BACKEND_VPCI=y
CONFIG_XENFS=y
CONFIG_XEN_COMPAT_XENFS=y
CONFIG_XEN_SYS_HYPERVISOR=y
CONFIG_XEN_MCE=y
CONFIG_XEN_XENBUS_FRONTEND=y
CONFIG_XEN_GNTDEV=y
CONFIG_XEN_S3=y
CONFIG_ACPI_PROCESSOR_XEN=y
CONFIG_XEN_PLATFORM_PCI=m

$sudo make
$sudo make modules_install install
forth, modify grub2 file and others
$cd /boot
$sudo update-initramfs -c -k 2.6.32.32 (I got 2.6.32.32 from ʼjeremyʼ)

$update-grub

$sudo gedit /etc/xen/xend-config.sxp
change #(xend-unix-server no) to (xend-unix-server yes)

$sudo reboot

$sudo update-rc.d xend defaults 20 21
$sudo update-rc.d xendomains defaults 21 20

$sudo gedit /boot/grub/grub.cfg
change to
menuentry 'Ubuntu, with Linux 2.6.32.32' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
multiboot (hd0,1)/boot/xen-4.0.gz dummy=dummy
module /boot/vmlinuz-2.6.32.32 dummy=dummy root=UUID=XXXX ro nomodeset
module /boot/initrd.img-2.6.32.32
}

$sudo reboot
finally, I try xen command to verify installation is successful or not, it failed
$sudo xm info
Error: Unable to connect to xend: No such file or directory. Is xend running?

$sudo xend start
ifdown: interface eth0 not configured
RTNETLINK answers: Device or resource busy

i$fconfig
eth0 Link encap:Ethernet HWaddr 48:5b:39:49:6d:08
inet addr:XXX Bcast:XXX Mask:255.255.255.0
inet6 addr: XXX Scope:Global
inet6 addr: XXX Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15100 errors:0 dropped:0 overruns:0 frame:0
TX packets:2760 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3381275 (3.3 MB) TX bytes:510689 (510.6 KB)
Interrupt:223 Base address:0xe000

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)

$sudo gedit /etc/network/interfaces
and added
iface eth0 inet static
address XXX
netmask 255.255.255.0
network XXX
broadcast XXX
gateway XXX

$sudo /etc/init.d/networking restart
* Reconfiguring network interfaces... [ OK ]

$sudo ifup eth0

$sudo xend start
got nothing

$sudo xm info
Error: Unable to connect to xend: No such file or directory. Is xend running?
I have no idea about this problem, did I do anything wrong in my installation steps?
or did I miss anything should be done?

here I got some log in /var/log/xen/xend-debug.log, as follows
cat: /sys/bus/scsi/devices/host0/vendor: No such file or directory
cat: /sys/bus/scsi/devices/host0/model: No such file or directory
cat: /sys/bus/scsi/devices/host0/type: No such file or directory
cat: /sys/bus/scsi/devices/host0/rev: No such file or directory
cat: /sys/bus/scsi/devices/host0/scsi_level: No such file or directory
cat: /sys/bus/scsi/devices/host1/vendor: No such file or directory
cat: /sys/bus/scsi/devices/host1/model: No such file or directory
cat: /sys/bus/scsi/devices/host1/type: No such file or directory
cat: /sys/bus/scsi/devices/host1/rev: No such file or directory
cat: /sys/bus/scsi/devices/host1/scsi_level: No such file or directory
cat: /sys/bus/scsi/devices/host2/vendor: No such file or directory
cat: /sys/bus/scsi/devices/host2/model: No such file or directory
cat: /sys/bus/scsi/devices/host2/type: No such file or directory
cat: /sys/bus/scsi/devices/host2/rev: No such file or directory
cat: /sys/bus/scsi/devices/host2/scsi_level: No such file or directory
cat: /sys/bus/scsi/devices/host3/vendor: No such file or directory
cat: /sys/bus/scsi/devices/host3/model: No such file or directory
cat: /sys/bus/scsi/devices/host3/type: No such file or directory
cat: /sys/bus/scsi/devices/host3/rev: No such file or directory
cat: /sys/bus/scsi/devices/host3/scsi_level: No such file or directory
cat: /sys/bus/scsi/devices/target0:0:0/vendor: No such file or directory
cat: /sys/bus/scsi/devices/target0:0:0/model: No such file or directory
cat: /sys/bus/scsi/devices/target0:0:0/type: No such file or directory
cat: /sys/bus/scsi/devices/target0:0:0/rev: No such file or directory
cat: /sys/bus/scsi/devices/target0:0:0/scsi_level: No such file or directory
cat: /sys/bus/scsi/devices/target1:0:0/vendor: No such file or directory
cat: /sys/bus/scsi/devices/target1:0:0/model: No such file or directory
cat: /sys/bus/scsi/devices/target1:0:0/type: No such file or directory
cat: /sys/bus/scsi/devices/target1:0:0/rev: No such file or directory
cat: /sys/bus/scsi/devices/target1:0:0/scsi_level: No such file or directory
cat: /sys/bus/scsi/devices/host4/vendor: No such file or directory
cat: /sys/bus/scsi/devices/host4/model: No such file or directory
cat: /sys/bus/scsi/devices/host4/type: No such file or directory
cat: /sys/bus/scsi/devices/host4/rev: No such file or directory
cat: /sys/bus/scsi/devices/host4/scsi_level: No such file or directory
cat: /sys/bus/scsi/devices/host5/vendor: No such file or directory
cat: /sys/bus/scsi/devices/host5/model: No such file or directory
cat: /sys/bus/scsi/devices/host5/type: No such file or directory
cat: /sys/bus/scsi/devices/host5/rev: No such file or directory
cat: /sys/bus/scsi/devices/host5/scsi_level: No such file or directory
Exception starting xend: (111, 'Connection refused')
and in /var/log/xen/xend.log, as follows
[2011-03-16 15:18:19 1091] INFO (SrvDaemon:227) Xend stopped due to signal 15.
[2011-03-16 15:19:05 1062] INFO (SrvDaemon:332) Xend Daemon started
[2011-03-16 15:19:05 1062] INFO (SrvDaemon:336) Xend changeset: unavailable.
[2011-03-16 15:19:09 1062] ERROR (SrvDaemon:349) Exception starting xend ((111, 'Connection refused'))
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/xen/xend/server/SrvDaemon.py", line 341, in run
servers = SrvServer.create()
File "/usr/local/lib/python2.6/dist-packages/xen/xend/server/SrvServer.py", line 251, in create
root.putChild('xend', SrvRoot())
File "/usr/local/lib/python2.6/dist-packages/xen/xend/server/SrvRoot.py", line 40, in __init__
self.get(name)
File "/usr/local/lib/python2.6/dist-packages/xen/web/SrvDir.py", line 84, in get
val = val.getobj()
File "/usr/local/lib/python2.6/dist-packages/xen/web/SrvDir.py", line 52, in getobj
self.obj = klassobj()
File "/usr/local/lib/python2.6/dist-packages/xen/xend/server/SrvDomainDir.py", line 41, in __init__
self.xd = XendDomain.instance()
File "/usr/local/lib/python2.6/dist-packages/xen/xend/XendDomain.py", line 1882, in instance
inst.init()
File "/usr/local/lib/python2.6/dist-packages/xen/xend/XendDomain.py", line 114, in init
xstransact.Mkdir(XS_VMROOT)
File "/usr/local/lib/python2.6/dist-packages/xen/xend/xenstore/xstransact.py", line 355, in Mkdir
complete(path, lambda t: t.mkdir(*args))
File "/usr/local/lib/python2.6/dist-packages/xen/xend/xenstore/xstransact.py", line 361, in complete
t = xstransact(path)
File "/usr/local/lib/python2.6/dist-packages/xen/xend/xenstore/xstransact.py", line 29, in __init__
self.transaction = xshandle().transaction_start()
File "/usr/local/lib/python2.6/dist-packages/xen/xend/xenstore/xsutil.py", line 18, in xshandle
xs_handle = xen.lowlevel.xs.xs()
Error: (111, 'Connection refused')
hope anyone could help me, thank you

--
Best Regards
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>