ос debian lenny
Linux fortune 2.6.26-2-xen-amd64 #1 SMP Thu Aug 20 00:36:34 UTC 2009 x86_64 GNU/Linux
fortune:/etc/xen/config# xm list
Name ID Mem VCPUs State Time(s)
Domain-0 0 3599 2 r----- 253.6
вот конфиг вирт машины
stas@fortune:~$ cat /etc/xen/config/host1.hvm
import os, re
arch = os.uname()[4]
if re.search('64', arch):
arch_libdir = 'lib64'
else:
arch_libdir = 'lib'
kernel = "/usr/lib/xen-3.2-1/boot/hvmloader"
builder='hvm'
memory = 386
name = "host1"
vcpus=2
#acpi=1
#apic=1
vif = [ 'type=ioemu, bridge=eth0bridged' ]
disk = [ 'phy:/dev/xvg/host1,ioemu:hda,w', 'phy:/dev/cdrom,ioemu:hdc:cdrom,r' ]
device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm'
boot="dc"
sdl=0
vnc=1
vncviewer=1
vncpasswd=''
ne2000=0
fortune:/etc/xen/config# xm create -c host1.hvm
Using config file "./host1.hvm".
VNC= 1
Started domain host1
xenconsole: Could not read tty from store: No such file or directory
fortune:/etc/xen/config#
DomU конечно создается, но подключиться к нему никак не получается
fortune:/etc/xen/config# xm list
Name ID Mem VCPUs State Time(s)
Domain-0 0 3599 2 r----- 294.4
host1 6 386 1 ------ 0.0
fortune:/etc/xen/config#
fortune:/etc/xen/config# xm console 6
xenconsole: Could not read tty from store: No such file or directory
fortune:/etc/xen/config# xm console host1
xenconsole: Could not read tty from store: No such file or directory
fortune:/etc/xen/config#
xenconsoled запущен
fortune:/etc/xen/config# ps ax | grep xen
23 ? S< 0:00 [xenwatch]
24 ? S< 0:00 [xenbus]
2677 ? S 0:00 /usr/lib/xen-3.2-1/bin/xenstored --pid-file /var/run/xenstore.pid
2682 ? S 0:00 python /usr/lib/xen-3.2-1/bin/xend start
2684 ? Sl 0:00 /usr/lib/xen-3.2-1/bin/xenconsoled
2686 ? Sl 0:03 python /usr/lib/xen-3.2-1/bin/xend start
4702 pts/1 R+ 0:00 grep xen
fortune:/etc/xen/config#
если пытаться запустьь через virt-manager то ошибка такая
Unable to open a connection to the Xen hypervisor/daemon
подробности -
Unable to open connection to hypervisor URI 'xen:///':
<class 'libvirt.libvirtError'> unable to connect to 'localhost:8000': В соединении отказано
None
загружаюсь с такими параметрами в groob
title Xen 3.2-1-amd64 / Debian GNU/Linux, kernel 2.6.26-2-xen-amd64
root (hd0,0)
kernel /boot/xen-3.2-1-amd64.gz com1=9600,8n1 console=com1,vga
module /boot/vmlinuz-2.6.26-2-xen-amd64 root=/dev/sda1 ro console=tty0 console=hvc0 earlyprintk=xen
module /boot/initrd.img-2.6.26-2-xen-amd64
данная проблема при подключении через virt-manager появляется даже тогда, когда запущен только Dom0