[XEM DOM0] xl command not working

5 posts / 0 new
Last post
#1 Sat, 2014-10-04 17:24
maxrb
  • maxrb's picture
  • Offline
  • Last seen: 3 years 5 months ago
  • Joined: 2014-10-04

I am new on alpine linux, and I am encountering an issue while using xl command.

Indeed, I followed the DMO0 wiki and I am trying to configure a DOMU system. I think I missed something because xl command return an error :

# xl create -c vm/debian.cfg
xc: error: Could not obtain handle on privileged command interface (2 = No such file or directory): Internal error
libxl: error: libxl.c:98:libxl_ctx_alloc: cannot open libxc handle: No such file or directory
cannot init xl context

Do you have an idea where the problem came from ?

Thank you
Maxime

Wed, 2014-10-08 10:42
pierrep
  • pierrep's picture
  • Offline
  • Last seen: 2 years 11 months ago
  • Joined: 2014-04-10

have you checked that xend and xenstored are running ? (process names from my memory, but you should definitely have "xen" processes running as deamons)

what version of alpine, xen ?

Fri, 2014-10-10 23:05 (Reply to #2)
maxrb
  • maxrb's picture
  • Offline
  • Last seen: 3 years 5 months ago
  • Joined: 2014-10-04

Thank you for reply.

xend and xenrestored are not running (no other xen* daemon running).

Versions :
xen-4.3.3-r0
alpine-3.0.4-x86_64

From xen website I thought xend was depracated. In fact I have this error when I try to start it manually :

# xend
Traceback (most recent call last):
  File "/usr/sbin/xend", line 36, in <module>
    from xen.xend.server import SrvDaemon

Tue, 2014-10-14 11:57
ScrumpyJack
  • ScrumpyJack's picture
  • Offline
  • Last seen: 6 months 3 weeks ago
  • Joined: 2013-06-20

Can you post the debian.cfg file? i'll see if I can replicate the problem.

What is the output of

xl info

xl -vvv create vm/debian.cfg -c

If this is a fresh install you can move to edge which has xen 4.4x

Wed, 2014-10-15 21:41
maxrb
  • maxrb's picture
  • Offline
  • Last seen: 3 years 5 months ago
  • Joined: 2014-10-04

I always get the same issue running command xl :

xc: error: Could not obtain handle on privileged command interface (2 = No such file or directory): Internal error
libxl: error: libxl.c:98:libxl_ctx_alloc: cannot open libxc handle: No such file or directory
cannot init xl context

I think my xen installation isn't complete, so I am looking for what is missing...
Here is my /vm/debian.cfg :

kernel = "./vm/vmlinux"
ramdisk = "./vm/initrd.gz"
extra = "debian-installer/exit/always_halt=true -- quiet console=hvc0"
memory = 512
name = "Debian-installer"
vif = ['bridge=br0']
disk = ['format=raw, vdev=xvda, access=w, target=./vm/debian.img']

Here is my modules list :

# cat /etc/modules
af_packet
xen_netback
xen_blkback
tun
xen_privcmd
xen_pciback
xen_wdt

rc-update gives me :

udev |                       sysinit
       udev-postmount |      default
          xenconsoled |      default
                 xend |      default
              xenqemu |      default
            xenstored |      default

And here is my extlinux conf file :

# cat /boot/extlinux.conf
# Generated by update-extlinux 6.03_pre19-r0
DEFAULT menu.c32
PROMPT 0
MENU TITLE Alpine/Linux Boot Menu
MENU HIDDEN
MENU AUTOBOOT Alpine will be booted automatically in # seconds.
TIMEOUT 30
LABEL xen-grsec
  MENU LABEL Xen + Linux grsec
  COM32 mboot.c32
  APPEND xen.gz dom0_mem=256M --- vmlinuz-grsec root=UUID=XXX modules=ext4 quiet --- initramfs-grsec

Do you notice anything missing ?

Log in or register to post comments