Xl create doesn’t bring up console

virtualizationxen

I've tryed to run VM in Xen 4.2 using xl command (for what I get this should be standard toolstack, while xm is deprecated).

In this case I've the following configuration file

kernel = '/media/home_separata/domU_kernel/boot/vmlinuz-linux'                  
ramdisk = '/media/home_separata/domU_kernel/boot/initramfs-linux.img'
name = "domU_Arch_linux"
memory = "512"
root = '/dev/xvda1 ro'
disk = ['file:/media/home_separata/domU_kernel/arch_linux_kernel.img,xvda1,w']
vif = ['mac=aa:::10:11:f1,ip=192.168.0.2,bridge=xenbr0']

when I try to start the virtual machine with xl create it seems it works (it also bring up the vif interfaces) but if I try to connect via xl console it gives an error:

xenconsole: Could not read tty from store: No such file or directory

the fun fact is that the I've the problem inverse using xend/xm (in that case xend doesn't bring up vif interfaces but activate console).

Does anyone have any suggestion?

Best Answer

It's seems I've solved the problem: apparently for some reason at startup the system didn't bring up the module xen-gntdev, manually loading this module made it work the console.

modprobe xen-gntdev 2

See the References