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] xenconsole: Could not read tty from store: No such file

To: "Luke S. Crawford" <lsc@xxxxxxxxx>
Subject: Re: [Xen-users] xenconsole: Could not read tty from store: No such file or directory
From: Alex Iribarren <Alex.Iribarren@xxxxxxx>
Date: Thu, 18 Jan 2007 14:42:22 +0100
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 18 Jan 2007 05:42:19 -0800
Domainkey-signature: a=rsa-sha1; c=nofws; s=beta; d=cern.ch; q=dns; h=received:message-id:date:from:to:subject:mime-version:content-type; b=lSDOXt73hUxo9cLlL8R6GJKoP+CLecl2F+dLcRtV0Y8d28YaVC69foEmMfSdB6+y4HZsOCW5WmQhT0dohohpmoO3xgpAYGXi8TPnopwiLBT/YzCvsc+wP0gg0ndWZKFq;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <Pine.NEB.4.64.0701151802270.426@xxxxxxxxxxxxxxxxxx>
Keywords: CERN SpamKiller Note: -48 Charset: west-latin
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Openpgp: url=http://www.cern.ch/Alex.Iribarren/AlexIribarren_0xCAE83E64.asc
References: <Pine.NEB.4.64.0701151802270.426@xxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.9 (X11/20061206)
This sounds very familiar. :)

AFAIK, xenconsole doesn't work with HVM domains, yet.

What I usually do is set nographic=0 and make sure I have X11 forwarding
activated. Alternatively, you can also use SDL or VNC, but I've never
gotten it working: the VGA console is enough for me to make sure it's
working the first time, and afterwards I turn it off and just use ssh.

Cheers,
Alex

Luke S. Crawford wrote:
> 
> I am getting the following error when trying to start a hvm domain:
> 
>> xm create -c vm1.hvm
> Using config file "vm1.hvm".
> Started domain VM1-64
> xenconsole: Could not read tty from store: No such file or directory
> 
> I read elsewhere that this means the domain crashed;  it's still in 'xm
> list' until I destroy it:
> 
>  xm list
> Name                                      ID Mem(MiB) VCPUs State Time(s)
> Domain-0                                   0     1249     8 r----- 83.9
> VM1-64                                    10      512     1 ------ 0.0
> 
> but it sits as 0.0 cpu time, so it's clearly not starting up.
> 
> 
> I am using Xen-3.0.3_0 / linux  2.6.16.29 in 64-bit mode for the Dom0
> 
> (it has a RHEL4 userland)
> 
> 
> Does anyone have any ideas where to look for better logging?  I'm pretty
> sure my cdrom iso works fine, as I use the same thing with normal qemu
> (the point of this excersize is to speed up systemimager installs that
> are currently being done with qemu)
> 
> does anyone have any ideas? can someone verify my config?  It's possible
> I'm missing some prerequisites (I installed using the binary tarball
> downloaded from xensource)  are there logfiles I should be consulting
> that I don't know about?
> 
> my xm config file looks like this:
> kernel = "/usr/lib/xen/boot/hvmloader"
> device_model = '/usr/lib64/xen/bin/qemu-dm.debug'
> builder='hvm'
> memory = 512
> shadow_memory = 8
> vcpus=1
> vif = [ 'type=ioemu, bridge=xenbr0' ]
> nographic=1
> sdl=0
> serial='pty'
> name = "VM1-64"
> disk = ['file:/root/disk.iso,hdb:cdrom,w','phy:/dev/sda5,hda,w']
> boot='d'
> on_poweroff = 'destroy'
> on_crash    = 'restart'
> 
> 
> 
> 
> 
> 
> my xend-debug.log is not saying anything, and my xend.log looks like this:
> 
> [2007-01-17 20:45:28 xend.XendDomainInfo 5003] DEBUG
> (XendDomainInfo:190) XendDomainInfo.create(['vm', ['name', 'VM1-64'],
> ['memory', 512], ['shadow_memory', 8], ['on_poweroff', 'destroy'],
> ['on_crash', 'restart'], ['vcpus', 1], ['image', ['hvm', ['kernel',
> '/usr/lib/xen/boot/hvmloader'], ['device_model',
> '/usr/lib64/xen/bin/qemu-dm.debug'], ['vcpus', 1], ['boot', 'd'],
> ['serial', 'pty'], ['nographic', 1], ['vncunused', 1], ['xauthority',
> '/root/.Xauthority']]], ['device', ['vbd', ['uname',
> 'file:/root/disk.iso'], ['dev', 'hdb:cdrom'], ['mode', 'w']]],
> ['device', ['vbd', ['uname', 'phy:/dev/sda5'], ['dev', 'hda'], ['mode',
> 'w']]], ['device', ['vif', ['bridge', 'xenbr0'], ['type', 'ioemu']]]])
> [2007-01-17 20:45:28 xend.XendDomainInfo 5003] DEBUG
> (XendDomainInfo:296) parseConfig: config is ['vm', ['name', 'VM1-64'],
> ['memory', 512], ['shadow_memory', 8], ['on_poweroff', 'destroy'],
> ['on_crash', 'restart'], ['vcpus', 1], ['image', ['hvm', ['kernel',
> '/usr/lib/xen/boot/hvmloader'], ['device_model',
> '/usr/lib64/xen/bin/qemu-dm.debug'], ['vcpus', 1], ['boot', 'd'],
> ['serial', 'pty'], ['nographic', 1], ['vncunused', 1], ['xauthority',
> '/root/.Xauthority']]], ['device', ['vbd', ['uname',
> 'file:/root/disk.iso'], ['dev', 'hdb:cdrom'], ['mode', 'w']]],
> ['device', ['vbd', ['uname', 'phy:/dev/sda5'], ['dev', 'hda'], ['mode',
> 'w']]], ['device', ['vif', ['bridge', 'xenbr0'], ['type', 'ioemu']]]]
> [2007-01-17 20:45:28 xend.XendDomainInfo 5003] DEBUG
> (XendDomainInfo:395) parseConfig: result is {'shadow_memory': 8, 'uuid':
> None, 'on_crash': 'restart', 'on_reboot': None, 'localtime': None,
> 'image': ['hvm', ['kernel', '/usr/lib/xen/boot/hvmloader'],
> ['device_model', '/usr/lib64/xen/bin/qemu-dm.debug'], ['vcpus', 1],
> ['boot', 'd'], ['serial', 'pty'], ['nographic', 1], ['vncunused', 1],
> ['xauthority', '/root/.Xauthority']], 'on_poweroff': 'destroy',
> 'bootloader_args': None, 'cpus': None, 'name': 'VM1-64', 'backend': [],
> 'vcpus': 1, 'cpu_weight': None, 'features': None, 'vcpu_avail': None,
> 'memory': 512, 'device': [('vbd', ['vbd', ['uname',
> 'file:/root/disk.iso'], ['dev', 'hdb:cdrom'], ['mode', 'w']]), ('vbd',
> ['vbd', ['uname', 'phy:/dev/sda5'], ['dev', 'hda'], ['mode', 'w']]),
> ('vif', ['vif', ['bridge', 'xenbr0'], ['type', 'ioemu']])],
> 'bootloader': None, 'cpu': None, 'maxmem': None}
> [2007-01-17 20:45:28 xend.XendDomainInfo 5003] DEBUG
> (XendDomainInfo:1253) XendDomainInfo.construct: None
> [2007-01-17 20:45:28 xend.XendDomainInfo 5003] DEBUG
> (XendDomainInfo:1285) XendDomainInfo.initDomain: 9 1.0
> [2007-01-17 20:45:28 xend 5003] DEBUG (image:320) args: boot, val: d
> [2007-01-17 20:45:28 xend 5003] DEBUG (image:320) args: fda, val: None
> [2007-01-17 20:45:28 xend 5003] DEBUG (image:320) args: fdb, val: None
> [2007-01-17 20:45:28 xend 5003] DEBUG (image:320) args: soundhw, val: None
> [2007-01-17 20:45:28 xend 5003] DEBUG (image:320) args: localtime, val:
> None
> [2007-01-17 20:45:28 xend 5003] DEBUG (image:320) args: serial, val: pty
> [2007-01-17 20:45:28 xend 5003] DEBUG (image:320) args: std-vga, val: None
> [2007-01-17 20:45:28 xend 5003] DEBUG (image:320) args: isa, val: None
> [2007-01-17 20:45:28 xend 5003] DEBUG (image:320) args: vcpus, val: 1
> [2007-01-17 20:45:28 xend 5003] DEBUG (image:320) args: acpi, val: None
> [2007-01-17 20:45:28 xend 5003] DEBUG (image:320) args: usb, val: None
> [2007-01-17 20:45:28 xend 5003] DEBUG (image:320) args: usbdevice, val:
> None
> [2007-01-17 20:45:28 xend 5003] DEBUG (balloon:127) Balloon: 777088 KiB
> free; need 546000; done.
> [2007-01-17 20:45:28 xend 5003] INFO (image:136) buildDomain os=hvm
> dom=9 vcpus=1
> [2007-01-17 20:45:28 xend 5003] DEBUG (image:274) dom            = 9
> [2007-01-17 20:45:28 xend 5003] DEBUG (image:275) image          =
> /usr/lib/xen/boot/hvmloader
> [2007-01-17 20:45:28 xend 5003] DEBUG (image:276) store_evtchn   = 1
> [2007-01-17 20:45:28 xend 5003] DEBUG (image:277) memsize        = 512
> [2007-01-17 20:45:28 xend 5003] DEBUG (image:278) vcpus          = 1
> [2007-01-17 20:45:28 xend 5003] DEBUG (image:279) pae            = 0
> [2007-01-17 20:45:28 xend 5003] DEBUG (image:280) acpi           = 0
> [2007-01-17 20:45:28 xend 5003] DEBUG (image:281) apic           = 0
> [2007-01-17 20:45:28 xend 5003] DEBUG (image:409) hvm shutdown watch
> registered
> [2007-01-17 20:45:29 xend 5003] DEBUG (blkif:24) exception looking up
> device number for hdb: [Errno 2] No such file or directory: '/dev/hdb'
> [2007-01-17 20:45:29 xend 5003] DEBUG (DevController:110) DevController:
> writing {'backend-id': '0', 'virtual-device': '832', 'device-type':
> 'cdrom', 'state': '1', 'backend': '/local/domain/0/backend/vbd/9/832'}
> to /local/domain/9/device/vbd/832.
> [2007-01-17 20:45:29 xend 5003] DEBUG (DevController:112) DevController:
> writing {'domain': 'VM1-64', 'frontend':
> '/local/domain/9/device/vbd/832', 'dev': 'hdb', 'state': '1', 'params':
> '/root/disk.iso', 'mode': 'w', 'online': '1', 'frontend-id': '9',
> 'type': 'file'} to /local/domain/0/backend/vbd/9/832.
> [2007-01-17 20:45:29 xend 5003] DEBUG (blkif:24) exception looking up
> device number for hda: [Errno 2] No such file or directory: '/dev/hda'
> [2007-01-17 20:45:29 xend 5003] DEBUG (DevController:110) DevController:
> writing {'backend-id': '0', 'virtual-device': '768', 'device-type':
> 'disk', 'state': '1', 'backend': '/local/domain/0/backend/vbd/9/768'} to
> /local/domain/9/device/vbd/768.
> [2007-01-17 20:45:29 xend 5003] DEBUG (DevController:112) DevController:
> writing {'domain': 'VM1-64', 'frontend':
> '/local/domain/9/device/vbd/768', 'dev': 'hda', 'state': '1', 'params':
> '/dev/sda5', 'mode': 'w', 'online': '1', 'frontend-id': '9', 'type':
> 'phy'} to /local/domain/0/backend/vbd/9/768.
> [2007-01-17 20:45:29 xend 5003] DEBUG (DevController:110) DevController:
> writing {'state': '1', 'backend-id': '0', 'backend':
> '/local/domain/0/backend/vif/9/0'} to /local/domain/9/device/vif/0.
> [2007-01-17 20:45:29 xend 5003] DEBUG (DevController:112) DevController:
> writing {'bridge': 'xenbr0', 'domain': 'VM1-64', 'handle': '0',
> 'script': '/etc/xen/scripts/vif-bridge', 'state': '1', 'frontend':
> '/local/domain/9/device/vif/0', 'mac': '00:16:3e:74:01:cc', 'online':
> '1', 'frontend-id': '9', 'type': 'ioemu'} to
> /local/domain/0/backend/vif/9/0.
> [2007-01-17 20:45:29 xend 5003] INFO (image:392) spawning device models:
> /usr/lib64/xen/bin/qemu-dm.debug ['/usr/lib64/xen/bin/qemu-dm.debug',
> '-d', '9', '-m', '512', '-boot', 'd', '-serial', 'pty', '-vcpus', '1',
> '-domain-name', 'VM1-64', '-net',
> 'nic,vlan=1,macaddr=00:16:3e:46:1f:fe,model=rtl8139', '-net',
> 'tap,vlan=1,bridge=xenbr0', '-nographic']
> [2007-01-17 20:45:29 xend 5003] INFO (image:394) device model pid: 11269
> [2007-01-17 20:45:29 xend.XendDomainInfo 5003] DEBUG
> (XendDomainInfo:712) Storing VM details: {'shadow_memory': '8', 'uuid':
> '76519a09-6b1a-e633-6c77-3f208b529b17', 'on_reboot': 'restart',
> 'start_time': '1169095529.21', 'on_poweroff': 'destroy', 'name':
> 'VM1-64', 'xend/restart_count': '0', 'vcpus': '1', 'vcpu_avail': '1',
> 'memory': '512', 'on_crash': 'restart', 'image': '(hvm (kernel
> /usr/lib/xen/boot/hvmloader) (device_model
> /usr/lib64/xen/bin/qemu-dm.debug) (vcpus 1) (boot d) (serial pty)
> (nographic 1) (vncunused 1) (xauthority /root/.Xauthority))', 'maxmem':
> '512'}
> [2007-01-17 20:45:29 xend.XendDomainInfo 5003] DEBUG
> (XendDomainInfo:747) Storing domain details: {'console/port': '2',
> 'name': 'VM1-64', 'console/limit': '1048576', 'vm':
> '/vm/76519a09-6b1a-e633-6c77-3f208b529b17', 'domid': '9',
> 'cpu/0/availability': 'online', 'memory/target': '524288',
> 'store/ring-ref': '298721', 'store/port': '1'}
> [2007-01-17 20:45:29 xend 5003] DEBUG (image:432) hvm_shutdown fired,
> shutdown reason=None
> [2007-01-17 20:45:29 xend.XendDomainInfo 5003] DEBUG
> (XendDomainInfo:933) XendDomainInfo.handleShutdownWatch
> [2007-01-17 20:45:29 xend 5003] DEBUG (DevController:143) Waiting for
> devices vif.
> [2007-01-17 20:45:29 xend 5003] DEBUG (DevController:149) Waiting for 0.
> [2007-01-17 20:45:29 xend 5003] DEBUG (DevController:464)
> hotplugStatusCallback /local/domain/0/backend/vif/9/0/hotplug-status.
> [2007-01-17 20:45:31 xend 5003] DEBUG (DevController:464)
> hotplugStatusCallback /local/domain/0/backend/vif/9/0/hotplug-status.
> [2007-01-17 20:45:31 xend 5003] DEBUG (DevController:478)
> hotplugStatusCallback 1.
> [2007-01-17 20:45:31 xend 5003] DEBUG (DevController:143) Waiting for
> devices usb.
> [2007-01-17 20:45:31 xend 5003] DEBUG (DevController:143) Waiting for
> devices vbd.
> [2007-01-17 20:45:31 xend 5003] DEBUG (DevController:149) Waiting for 832.
> [2007-01-17 20:45:31 xend 5003] DEBUG (DevController:464)
> hotplugStatusCallback /local/domain/0/backend/vbd/9/832/hotplug-status.
> [2007-01-17 20:45:31 xend 5003] DEBUG (DevController:478)
> hotplugStatusCallback 1.
> [2007-01-17 20:45:31 xend 5003] DEBUG (DevController:149) Waiting for 768.
> [2007-01-17 20:45:31 xend 5003] DEBUG (DevController:464)
> hotplugStatusCallback /local/domain/0/backend/vbd/9/768/hotplug-status.
> [2007-01-17 20:45:31 xend 5003] DEBUG (DevController:478)
> hotplugStatusCallback 1.
> [2007-01-17 20:45:31 xend 5003] DEBUG (DevController:143) Waiting for
> devices irq.
> [2007-01-17 20:45:31 xend 5003] DEBUG (DevController:143) Waiting for
> devices pci.
> [2007-01-17 20:45:31 xend 5003] DEBUG (DevController:143) Waiting for
> devices ioports.
> [2007-01-17 20:45:31 xend 5003] DEBUG (DevController:143) Waiting for
> devices tap.
> [2007-01-17 20:45:31 xend 5003] DEBUG (DevController:143) Waiting for
> devices vtpm.
> [2007-01-17 20:45:31 xend 5003] INFO (XendDomain:370) Domain VM1-64 (9)
> unpaused.
> 
> 
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users


Attachment: signature.asc
Description: OpenPGP digital signature

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