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

[Xen-API] xcp-xapi on Ubuntu 13.04


  • To: xen-api@xxxxxxxxxxxxx
  • From: AP <apxeng@xxxxxxxxx>
  • Date: Fri, 29 Mar 2013 17:43:45 -0700
  • Delivery-date: Sat, 30 Mar 2013 00:44:00 +0000
  • List-id: User and development list for XCP and XAPI <xen-api.lists.xen.org>

I am trying to get OpenStack working with a host running Xen 4.2. I
found that Ubuntu 13.04 has moved to using Xen 4.2. I was able to
install the hypervisor and toolstack using "apt-get xcp-xapi". I
basically followed the instructions here:

https://wiki.openstack.org/wiki/XenServer/Install/XcpXapiOnPrecise

I am now unable to find clear instructions on how to setup a OpenStack
compute VM. Many websites pointed me at devstack to get the whole
stack running in a VM. But I am unable to get that to work. I tried
the scripts from:

https://raw.github.com/citrix-openstack/qa/master/install-devstack-xen.sh

And here:
https://github.com/openstack-dev/devstack/blob/master/tools/xen/README.md

I get the similar error in both cases. Here is the error snippet:
++ /tmp/jenkins_test/devstack/tools/xen/scripts/manage-vdi open
DevStackOSDomU 0 1
++ grep -o '/tmp/tmp.[[:alnum:]]*'
+ action=open
+ vm=DevStackOSDomU
+ device=0
+ part=1
++ xe_min vm-list name-label=DevStackOSDomU
++ local cmd=vm-list
++ shift
++ xe vm-list --minimal name-label=DevStackOSDomU
+ vm_uuid=eeeb0f85-d5bb-c509-d0f6-259985cc0630
++ xe_min vbd-list params=vdi-uuid
vm-uuid=eeeb0f85-d5bb-c509-d0f6-259985cc0630 userdevice=0
++ local cmd=vbd-list
++ shift
++ xe vbd-list --minimal params=vdi-uuid
vm-uuid=eeeb0f85-d5bb-c509-d0f6-259985cc0630 userdevice=0
+ vdi_uuid=9e07d53b-6ebe-451e-81a7-b8c01f4f2f79
++ xe_min vm-list is-control-domain=true
++ local cmd=vm-list
++ shift
++ xe vm-list --minimal is-control-domain=true
+ dom0_uuid=879bc52c-c7f5-11c0-ad67-34dc25319177
+ '[' open == open ']'
+ open_vdi
++ xe vbd-create vm-uuid=879bc52c-c7f5-11c0-ad67-34dc25319177
vdi-uuid=9e07d53b-6ebe-451e-81a7-b8c01f4f2f79 device=autodetect
+ vbd_uuid=548e52b3-f35b-02ec-01d3-3a1f5018181d
++ mktemp -d
+ mp=/tmp/tmp.wMCnHJKJhA
+ xe vbd-plug uuid=548e52b3-f35b-02ec-01d3-3a1f5018181d
+ run_udev_settle
++ which udevsettle
+ which_udev=
+ true
+ '[' -n '' ']'
+ udevadm settle
++ get_mount_device 548e52b3-f35b-02ec-01d3-3a1f5018181d
++ vbd_uuid=548e52b3-f35b-02ec-01d3-3a1f5018181d
+++ xe_min vbd-list params=device uuid=548e52b3-f35b-02ec-01d3-3a1f5018181d
+++ local cmd=vbd-list
+++ shift
+++ xe vbd-list --minimal params=device
uuid=548e52b3-f35b-02ec-01d3-3a1f5018181d
++ 
dev=sm/backend/8ad005a9-9923-d37b-b609-cae5b3f2470b/9e07d53b-6ebe-451e-81a7-b8c01f4f2f79
++ [[ 
sm/backend/8ad005a9-9923-d37b-b609-cae5b3f2470b/9e07d53b-6ebe-451e-81a7-b8c01f4f2f79
=~ sm/ ]]
++ DEBIAN_FRONTEND=noninteractive
++ apt-get --option Dpkg::Options::=--force-confold --assume-yes install kpartx
+++ kpartx -av 
/dev/sm/backend/8ad005a9-9923-d37b-b609-cae5b3f2470b/9e07d53b-6ebe-451e-81a7-b8c01f4f2f79
+++ sed -ne 's,^add map \([a-z0-9\-]*\).*$,\1,p'
+++ sed -ne 's,^\(.*1\)$,\1,p'
++ mapping=
++ '[' -z '' ']'
++ echo 'Failed to find mapping'
++ exit -1
+ mount_device='Failed to find mapping'
+ STAGING_DIR=
~
+ rm -rf /tmp/tmp.DqLv09hzjl

I realize that the script is trying to mount the DomU disk in Dom0 but
kpartx is not able to handle it. I tried doing it by hand and was
unable to do so. Is there an updated script to do this? Or if someone
can point me at instructions to setup the OpenStack compute VM that
would helpful too.

Thanks,
AP

_______________________________________________
Xen-api mailing list
Xen-api@xxxxxxxxxxxxx
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api


 


Rackspace

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