在ubuntu 9.10上安装ubuntu-xen-desktop出现问题

Kvm、VMware、Virtualbox、Xen、Qemu 等
回复
shoutrain
帖子: 31
注册时间: 2009-05-09 15:40

在ubuntu 9.10上安装ubuntu-xen-desktop出现问题

#1

帖子 shoutrain » 2009-11-09 18:41

问题在最后一步,原来发到国外的论坛,没有人回答,这里没有见到有人说XEN的问题,放在这里看看运气,期待高手出来。

i am a beginner of virtualiztion.

followed this page: http://mediakey.dk/~cc/ubuntu-howto-install-xen/, I got ubuntu-xen-destop installed, but it can not work. my ubuntu is 9.10. following is my steps.

1.
rafael@rafael-laptop:~$ sudo aptitude install ubuntu-xen-desktop bridge-utils

it's looks the upper command got everything installed, include xen-tools. and the option of "(network-script network-bridge)" in /etc/xen/xend-config.sxp is ok. then rebooted the machine.

2.
after rebooted, enter the boot menu, a new item appears: 2.6.31-14-generic-pae(and corresponding recovery mode), the new kernel was selected to boot.

3.
change /etc/xen-tools/xen-tools conf, following is the details:
==================xen-tools.conf starts=================
dir = /home/xen

install-method = debootstrap

size = 4Gb # Disk image size.
memory = 128Mb # Memory size
swap = 128Mb # Swap size
fs = ext3 # use the EXT3 filesystem for the disk image.
dist = dapper # Default distribution to install.
image = sparse # Specify sparse vs. full disk images.

dhcp = 1

passwd = 1

kernel = /boot/vmlinuz-2.6.31-14-generic-pae
initrd = /boot/initrd.img-2.6.31-14-generic-pae

mirror = http://ubuntu.srt.cn/ubuntu/

ext3_options = noatime,nodiratime,errors=remount-ro
ext2_options = noatime,nodiratime,errors=remount-ro
xfs_options = defaults
reiser_options = defaults
===============xen-tools.conf ends====================

and then:
rafael@rafael-laptop:~$ mkdir /home/xen
rafael@rafael-laptop:~$ mkdir /home/xen/domains
rafael@rafael-laptop:~$ xen-create-image -hostname=vm1

upper commonds got through successfully. everything is ok for now. and:

rafael@rafael-laptop:~$ ls /home/xen/domains/vm1/
disk.img swap.img
rafael@rafael-laptop:~$

4. (ISSUES HAPPEN HERE)
rafael@rafael-laptop:~$ xm create vm1.cfg

execute upper command, i got following error messages:

ERROR Internal error: Could not obtain handle on privileged command interface (2 = No such file or directory)
Traceback (most recent call last):
File "/usr/sbin/xm", line 8, in <module>
from xen.xm import main
File "/usr/lib/python2.6/dist-packages/xen/xm/main.py", line 61, in <module>
xc = xen.lowlevel.xc.xc()
xen.lowlevel.xc.Error: (1, 'Internal error', 'Could not obtain handle on privileged command interface (2 = No such file or directory)')

and:

rafael@rafael-laptop:~$ sudo xm list
ERROR Internal error: Could not obtain handle on privileged command interface (2 = No such file or directory)
Traceback (most recent call last):
File "/usr/sbin/xm", line 8, in <module>
from xen.xm import main
File "/usr/lib/python2.6/dist-packages/xen/xm/main.py", line 61, in <module>
xc = xen.lowlevel.xc.xc()
xen.lowlevel.xc.Error: (1, 'Internal error', 'Could not obtain handle on privileged command interface (2 = No such file or directory)')
rafael@rafael-laptop:~$

so what's wrong, how can i make vm1 work? attached is vm1.log
头像
doctorlzr1988
帖子: 184
注册时间: 2009-09-11 15:31

Re: 在ubuntu 9.10上安装ubuntu-xen-desktop出现问题

#2

帖子 doctorlzr1988 » 2010-02-08 1:17

真是委屈LZ了,但是全是鸡肠,也委屈了咱们了!虽然我对xen也有兴趣!! :em06
头像
0xff
帖子: 415
注册时间: 2008-08-12 14:24
联系:

Re: 在ubuntu 9.10上安装ubuntu-xen-desktop出现问题

#3

帖子 0xff » 2010-02-24 13:00

我也碰到这个问题


pyw@pyw-xen:/home/xen$ xm list
ERROR Internal error: Could not obtain handle on privileged command interface (2 = No such file or directory)
Traceback (most recent call last):
File "/usr/sbin/xm", line 8, in <module>
from xen.xm import main
File "/usr/lib/python2.6/dist-packages/xen/xm/main.py", line 61, in <module>
xc = xen.lowlevel.xc.xc()
xen.lowlevel.xc.Error: (1, 'Internal error', 'Could not obtain handle on privileged command interface (2 = No such file or directory)')
希望之星
帖子: 10
注册时间: 2010-03-16 18:36

Re: 在ubuntu 9.10上安装ubuntu-xen-desktop出现问题

#4

帖子 希望之星 » 2010-03-25 11:57

你看的文章有问题。。。从那篇文章的内核来看,他的ubuntu绝对不是9.10的,甚至不是9.04的,9.10和9.04的ubuntu都需要自己编译内核的,不过我目前也没有成功,大家有兴趣可以一起讨论讨论。
希望之星
帖子: 10
注册时间: 2010-03-16 18:36

Re: 在ubuntu 9.10上安装ubuntu-xen-desktop出现问题

#5

帖子 希望之星 » 2010-04-03 21:47

楼主,我已完成对xen的研究,安装成功。。。ubuntu9.10上,linux 2.6.33.1内核上安装了xen 3.4.2,有兴趣可以一起讨论。。。哈哈
simplebeauty
帖子: 1
注册时间: 2008-10-30 9:08

Re: 在ubuntu 9.10上安装ubuntu-xen-desktop出现问题

#6

帖子 simplebeauty » 2010-04-21 11:46

希望之星, 请问你是怎么弄的哈 我也是碰到了LZ这样的问题了
回复