WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Xen 3.3 NetBSD DOM0: xenconsole: Could not read tty from

To: Ron McDowell <rcm@xxxxxxxxxxx>
Subject: Re: [Xen-users] Xen 3.3 NetBSD DOM0: xenconsole: Could not read tty from store: No such file or directory
From: Roger Pau Monné <roger.pau@xxxxxxxxxxxxx>
Date: Thu, 13 Oct 2011 21:45:13 +0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 13 Oct 2011 12:46:58 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=zsfp6MOij0UVUj5R13S4XP+qGfKU5n7W6P7RILCJppQ=; b=nrM4Tfuj5tbeiyadcj1npLdwLjB4DHCDNL3yEi5/rD9cBnv+BuuDHrIlNguUYs4ldV nE9QT57fO0sLk38JH8ECCGIDKzTQiv1YPIRES0m+vyi6XwtvaUCcGystM9/KJuGCoEcU qYCZ0Ca3D1cyScfUPNFRjB7WNblUtzxF76g0U=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4E971542.8060008@xxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <4E971542.8060008@xxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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