Bug#504709: Xen console problems

2008-12-22 Thread Ivan Shmakov
> Baruch Even  writes:

[...]

 > If I try to connect with ssh (using NAT networking) I can connect and
 > after loop mounting and setting a root password I can even login but
 > I get an error that there is no tty and

Did you mean the message like the following?

$ ssh r...@xxx 
stdin: is not a tty
   Connection to XXX closed.
$ 

If so, I could confirm the bug.

 > I cannot do much beyond that. I can however connect with ssh to
 > execute commands inside the machine such as ls / and things seem to
 > work and booted.

Apparently, /dev/pts/ somehow doesn't get created in the domU.
As a workaround, the following seems to work:

dom0 $ ssh -v r...@xxx mkdir /dev/pts \&\& invoke-rc.d mountdevsubfs.sh start 

From then on, SSH sessions should become available (until the
next domU shutdown):

dom0 $ ssh r...@xxx 
XXX # 

[...]



-- 
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#504709: Xen console problems

2008-11-06 Thread Baruch Even
Hi,


* Bastian Blank <[EMAIL PROTECTED]> [081106 16:33]:
> severity 504709 normal
> tags 504709 moreinfo
> thanks
> 
> On Thu, Nov 06, 2008 at 03:15:27PM +0200, Baruch Even wrote:
> > I created a Xen DomU with xen-tools with:
> > xen-create-image -debootstrap -dir=/home/xen -size=20Gb -memory=512Mb  
> > -fs=ext3 -cache=yes -dist=lenny -hostname=mapnik -ip 10.0.0.1 -netmask 
> > 255.0.0.0 -gateway 10.0.0.254  
> > -mirror=http://mirror.isoc.org.il/pub/debian/ --role=minimal  --image=sparse
> 
> Please show the config and /etc/inittab of the domain.

They are attached to this mail.

> Please note that support for console != {hvc0,xvc0} and disk devices !=
> xvd* is only legacy.

I had the image created using xen-tools, maybe it needs to be changed.
My knowledge of Xen is very limited though to suggest them anything.

Cheers,
Baruch
# /etc/inittab: init(8) configuration.
# $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $

# The default runlevel.
id:2:initdefault:

# Boot-time system configuration/initialization script.
# This is run first except when booting in emergency (-b) mode.
si::sysinit:/etc/init.d/rcS

# What to do in single-user mode.
~~:S:wait:/sbin/sulogin

# /etc/init.d executes the S and K scripts upon change
# of runlevel.
#
# Runlevel 0 is halt.
# Runlevel 1 is single-user.
# Runlevels 2-5 are multi-user.
# Runlevel 6 is reboot.

l0:0:wait:/etc/init.d/rc 0
l1:1:wait:/etc/init.d/rc 1
l2:2:wait:/etc/init.d/rc 2
l3:3:wait:/etc/init.d/rc 3
l4:4:wait:/etc/init.d/rc 4
l5:5:wait:/etc/init.d/rc 5
l6:6:wait:/etc/init.d/rc 6
# Normally not reached, but fallthrough in case of emergency.
z6:6:respawn:/sbin/sulogin

# What to do when CTRL-ALT-DEL is pressed.
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now

# Action on special keypress (ALT-UpArrow).
#kb::kbrequest:/bin/echo "Keyboard Request--edit /etc/inittab to let this work."

# What to do when the power fails/returns.
pf::powerwait:/etc/init.d/powerfail start
pn::powerfailnow:/etc/init.d/powerfail now
po::powerokwait:/etc/init.d/powerfail stop

# /sbin/getty invocations for the runlevels.
#
# The "id" field MUST be the same as the last
# characters of the device (after "tty").
#
# Format:
#  :::
#
# Note that on most Debian systems tty7 is used by the X Window System,
# so if you want to add more getty's go ahead but skip tty7 if you run X.
#
1:2345:respawn:/sbin/getty 38400 tty1
#2:23:respawn:/sbin/getty 38400 tty2
#3:23:respawn:/sbin/getty 38400 tty3
#4:23:respawn:/sbin/getty 38400 tty4
#5:23:respawn:/sbin/getty 38400 tty5
#6:23:respawn:/sbin/getty 38400 tty6

# Example how to put a getty on a serial line (for a terminal)
#
#T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
#T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100

# Example how to put a getty on a modem line.
#
#T3:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS3

#
# Configuration file for the Xen instance mapnik, created
# by xen-tools 3.9 on Wed Nov  5 17:55:39 2008.
#

#
#  Kernel + memory size
#
kernel = '/boot/vmlinuz-2.6.26-1-xen-amd64'
ramdisk = '/boot/initrd.img-2.6.26-1-xen-amd64'
memory  = '512'

#
#  Disk device(s).
#
root= '/dev/sda2 ro'
disk= [
  'file:/home/xen/domains/mapnik/swap.img,sda1,w',
  'file:/home/xen/domains/mapnik/disk.img,sda2,w',
  ]


#
#  Hostname
#
name= 'mapnik'

#
#  Networking
#
vif = [ 'ip=10.0.0.1' ]
dhcp = "off"
hostname="mapnik"
ip = "10.0.0.1"
netmask = "255.0.0.0"
gateway = "10.0.0.129"

#
#  Behaviour
#
on_poweroff = 'destroy'
on_reboot   = 'restart'
on_crash= 'restart'


extra = "xencons=tty0 console=tty0"


Bug#504709: Xen console problems

2008-11-06 Thread Bastian Blank
severity 504709 normal
tags 504709 moreinfo
thanks

On Thu, Nov 06, 2008 at 03:15:27PM +0200, Baruch Even wrote:
> I created a Xen DomU with xen-tools with:
> xen-create-image -debootstrap -dir=/home/xen -size=20Gb -memory=512Mb  
> -fs=ext3 -cache=yes -dist=lenny -hostname=mapnik -ip 10.0.0.1 -netmask 
> 255.0.0.0 -gateway 10.0.0.254  -mirror=http://mirror.isoc.org.il/pub/debian/ 
> --role=minimal  --image=sparse

Please show the config and /etc/inittab of the domain.

Please note that support for console != {hvc0,xvc0} and disk devices !=
xvd* is only legacy.

Bastian

-- 
It is undignified for a woman to play servant to a man who is not hers.
-- Spock, "Amok Time", stardate 3372.7



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Processed: Re: Bug#504709: Xen console problems

2008-11-06 Thread Debian Bug Tracking System
Processing commands for [EMAIL PROTECTED]:

> severity 504709 normal
Bug#504709: Xen console problems
Severity set to `normal' from `important'

> tags 504709 moreinfo
Bug#504709: Xen console problems
There were no tags set.
Tags added: moreinfo

> thanks
Stopping processing here.

Please contact me if you need assistance.

Debian bug tracking system administrator
(administrator, Debian Bugs database)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#504709: Xen console problems

2008-11-06 Thread Baruch Even
Subject: linux-image-2.6.26-1-xen-amd64: DomU console problems
Package: linux-image-2.6.26-1-xen-amd64
Version: 2.6.26-8
Severity: important

I created a Xen DomU with xen-tools with:
xen-create-image -debootstrap -dir=/home/xen -size=20Gb -memory=512Mb  -fs=ext3 
-cache=yes -dist=lenny -hostname=mapnik -ip 10.0.0.1 -netmask 255.0.0.0 
-gateway 10.0.0.254  -mirror=http://mirror.isoc.org.il/pub/debian/ 
--role=minimal  --image=sparse

I got a proper disk image and swap image that I can loop mount.

I try to start it with;
xm create -c /etc/xen/mapnik.cfg

It starts to boot and then there are no longer console messages and there is no 
console login. The last message is about the lo driver. I attach the console 
log.

If I try to connect with ssh (using NAT networking) I can connect and after 
loop mounting and setting a root password I can even login but I get an error 
that there is no tty and I cannot do much beyond that. I can however connect 
with ssh to execute commands inside the machine such as ls / and things seem to 
work and booted.

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-xen-amd64 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages linux-image-2.6.26-1-xen-amd64 depends on:
ii  initramfs-tools   0.92j  tools for generating an initramfs
ii  linux-modules-2.6.26-1-xen-am 2.6.26-8   Linux 2.6.26 modules on AMD64

linux-image-2.6.26-1-xen-amd64 recommends no packages.

Versions of packages linux-image-2.6.26-1-xen-amd64 suggests:
ii  grub  0.97-47GRand Unified Bootloader (Legacy v
pn  linux-doc-2.6.26   (no description available)

-- no debconf information
Using config file "/etc/xen/mapnik.cfg".
Started domain mapnik
[0.00] Initializing cgroup subsys cpuset

[0.00] Initializing cgroup subsys cpu

[0.00] Linux version 2.6.26-1-xen-amd64 (Debian 2.6.26-8) ([EMAIL 
PROTECTED]) (gcc version 4.1.3 20080623 (prerelease) (Debian 4.1.2-23)) #1 SMP 
Thu Oct 9 17:11:22 UTC 2008

[0.00] Command line: root=/dev/sda2 ro 
ip=10.0.0.1:1.2.3.4:10.0.0.129:255.0.0.0:mapnik:eth0:off xencons=tty0 
console=tty0

[0.00] BIOS-provided physical RAM map:

[0.00]  Xen:  - 2080 (usable)

[0.00] max_pfn_mapped = 133120

[0.00] init_memory_mapping

[0.00]   early res: 0 [20-631917] TEXT DATA BSS

[0.00]   early res: 1 [632000-2171fff] Xen provided

[0.00]   early res: 2 [2172000-2278fff] PGTABLE

[0.00] Zone PFN ranges:

[0.00]   DMA 0 -> 4096

[0.00]   DMA324096 ->  1048576

[0.00]   Normal1048576 ->  1048576

[0.00] Movable zone start PFN for each node

[0.00] early_node_map[1] active PFN ranges

[0.00] 0:0 ->   133120

[0.00] PERCPU: Allocating 22192 bytes of per cpu data

[0.00] Built 1 zonelists in Zone order, mobility grouping on.  Total 
pages: 131300

[0.00] Kernel command line: root=/dev/sda2 ro 
ip=10.0.0.1:1.2.3.4:10.0.0.129:255.0.0.0:mapnik:eth0:off xencons=tty0 
console=tty0

[0.00] Initializing CPU#0

[0.00] PID hash table entries: 4096 (order: 12, 32768 bytes)

[0.00] Xen reported: 3000.106 MHz processor.

[0.004000] Console: colour dummy device 80x25

[0.004000] console [tty0] enabled

[0.004000] console [tty0] enabled

[0.004000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)

[0.004000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)

[0.004000] Software IO TLB disabled

[0.004000] Memory: 481768k/532480k available (2277k kernel code, 42216k 
reserved, 1021k data, 216k init)

[0.920068] Calibrating delay using timer specific routine.. 6005.27 
BogoMIPS (lpj=12010548)

[0.920120] Security Framework initialized

[0.920133] SELinux:  Disabled at boot.

[0.920142] Capability LSM initialized

[0.920164] Mount-cache hash table entries: 256

[0.920338] Initializing cgroup subsys ns

[0.920349] Initializing cgroup subsys cpuacct

[0.920356] Initializing cgroup subsys devices

[0.920400] CPU: Trace cache: 12K uops, L1 D cache: 16K

[0.920410] CPU: L2 cache: 2048K

[0.920419] CPU: Physical Processor ID: 0

[0.920424] CPU: Processor Core ID: 0

[0.920432] SMP alternatives: switching to UP code

[0.931885] Freeing SMP alternatives: 21k freed

[0.932032] Brought up 1 CPUs

[0.935438] net_namespace: 1224 bytes

[0.935643] NET: Registered protocol family 16

[0.937233] Brought up 1 CPUs

[0.937252] PCI: Fatal: No config space access function found

[0.937259] PCI: setting up Xen PCI frontend stub

[0.938216] ACPI: Interpreter disabled.

[0.938226] Linux Plug and Play Supp