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

Re: [Xen-users] Xen 3.3 NetBSD DOM0: xenconsole: Could not read tty from store: No such file or directory



2011/10/13 Ron McDowell <rcm@xxxxxxxxxxx>:
> Hi Xen-users.
> Trying to bring up xen 3.3 on a Dell T110 running NetBSD 5.1 amd64 DOM0. ÂI
> installed the OS from CD, then xentools33 and xenkernel33 with pkg_add, and
> I got DOM0 working...
>
> [root@voodoo(NetBSD)]> uname -a
> NetBSD voodoo 5.1 NetBSD 5.1 (XEN3_DOM0) #0: Sat Nov Â6 13:19:24 UTC 2010
> Â
> builds@xxxxxxxxxxxxx:/home/builds/ab/netbsd-5-1-RELEASE/amd64/201011061943Z-obj/home/builds/ab/netbsd-5-1-RELEASE/src/sys/arch/amd64/compile/XEN3_DOM0
> amd64
> [root@voodoo(NetBSD)]> xm list
> Name                    ÂID  Mem VCPUs   ÂState
> Time(s)
> Domain-0 Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 0 Â1024 Â Â 1 Â Â r-----
> 25.6
> [root@voodoo(NetBSD)]> ls -l /dev/xen*
> crw------- Â1 root Âwheel Â143, 0 Oct 11 14:19 /dev/xencons
> crw------- Â1 root Âwheel Â141, 0 Oct 11 14:19 /dev/xenevt
> [root@voodoo(NetBSD)]> ls -l /etc/rc.d/xen*
> -r-xr-xr-x Â1 root Âwheel  293 Oct 11 15:28 /etc/rc.d/xenbackendd
> -r-xr-xr-x Â1 root Âwheel  629 Oct 11 15:28 /etc/rc.d/xend
> -r-xr-xr-x Â1 root Âwheel Â3607 Oct 11 15:28 /etc/rc.d/xendomains
>
>
> I created a big disk image file with dd...
>
> [root@voodoo(NetBSD)]> ls -l /Xen/Disks/juju.img
> -rw-r--r-- Â1 root Âwheel Â966367641600 Oct 11 22:40 /Xen/Disks/juju.img
>
>
> And have my bridge set up...
>
> [root@voodoo(NetBSD)]> cat /etc/ifconfig.bridge0
> create
> !brconfig $int add bge0 up
> [root@voodoo(NetBSD)]> ifconfig bridge0
> bridge0: flags=41<UP,RUNNING> mtu 1500
>
> I want to use HVM for transparency [over speed]... but if I use this config
> file [basic HVM with disk/memory/mac changes...I want to boot and install
> FreeBSD from the ISO file]...
>
> kernel = "/usr/pkg/lib/xen/boot/hvmloader"
> builder='hvm'
> memory = 1024
> name = "juju"
> vif = [ 'mac=00:16:3e:xx:xx:xx, bridge=bridge0, type=ioemu' ]
> device_model = '/usr/pkg/libexec/qemu-dm'
> disk = [ 'file:/Xen/Disks/juju.img,ioemu:hda,w',
> 'file:/Xen/CDs/FreeBSD-8.2-RELEASE-i386-disc1.iso,ioemu:hdc:cdrom,r' ]
> boot='d'
> usb=1
> usbdevice='tablet'
>
>
> when I try to create it:
>
> [root@voodoo(NetBSD)]> xm create -c /Xen/Machines/juju.cnf
> Using config file "/Xen/Machines/juju.cnf".
> Started domain juju
> xenconsole: Could not read tty from store: No such file or directory
> [root@voodoo(NetBSD)]> xm list
> Name                    ÂID  Mem VCPUs   ÂState
> Time(s)
> Domain-0 Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 0 Â1024 Â Â 1 Â Â r-----
> 16.5
> juju                     2 Â1024   1   r-----
> 16.3
> [root@voodoo(NetBSD)]> xm console juju
> xenconsole: Could not read tty from store: No such file or directory
>
> I found something online about xenconsoled might not be running...it was not
> being started but I added it to /etc/rc.local, so it now starts up:
>
> [root@voodoo(NetBSD)]> ps -ax|grep xen
> 222 ? Â Â I Â Â0:00.60 xenstored --pid-file /var/run/xenstore.pid
> 223 ?   Il  0:00.00 xenconsoled 228 ?   I  Â0:00.00
> /usr/pkg/bin/python2.6 /usr/pkg/sbin/xend start
> 233 ?   Il  0:02.72 /usr/pkg/bin/python2.6 /usr/pkg/sbin/xend start
> 238 ? Â Â Isl Â0:00.01 /usr/pkg/sbin/xenbackendd
> 2134 ttyp0 S+ Â 0:00.00 grep xen
>
> This DOM0 box is headless and I don't want or need [do I??] X on it.
>
> What am I missing? ÂThanks.

You should connect to HVM DomU using VNC. Here is an example of what
you should add to your config file:

#----------------------------------------------------------------------------
# enable VNC library for graphics, default = 1
vnc=1

#----------------------------------------------------------------------------
# address that should be listened on for the VNC server if vnc is set.
# default is to use 'vnc-listen' setting from
# auxbin.xen_configdir() + /xend-config.sxp
vnclisten="0.0.0.0"

#----------------------------------------------------------------------------
# set password for domain's VNC console
# default is depents on vncpasswd in xend-config.sxp
vncpasswd='XXXXXX'

And then connect to the domain using "vncviewer <ip>:0" (replace 0
with 1, 2, 4... if you have several machines running).

Hope this helps, Roger.

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

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