All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfgang Schnerring <wosc@wosc.de>
To: xen-devel@lists.xensource.com
Cc: xen-users@lists.xensource.com
Subject: Re: tap:qcow causes dom-U to hang in 3.0.3
Date: Fri, 10 Nov 2006 09:49:32 +0100	[thread overview]
Message-ID: <87ejsbit43.fsf@nautis.wosc.de> (raw)
In-Reply-To: 20061108151133.GE3507@leeni.uk.xensource.com

* Ewan Mellor <ewan@xensource.com>:
> On Wed, Nov 08, 2006 at 04:50:43PM +0200, Roland Paterson-Jones wrote:
>> However, I am really interested in copy-on-write support, and hence have 
>> been trying tap:qcow:. This has had limited success, in that dom-U's 
>> appear to launch. However, as soon as I try to console or ssh into the 
>> dom-U's they apparently freeze, and I can get no further with them.

I'm seeing (what I believe to be) the same thing, so here's some more data
points. This is Xen 3.0.3, compiled from the source.tgz, dom0 is Ubuntu 6.06,
domU is Debian Sarge. The error occurs when using a file-backed qcow-image,
using a standalone qcow image or tap:aio works just fine.

# qcow-create 1024 vm01.qcow vm01.img
# cat sample.xen
name="vm01"
kernel="/boot/vmlinuz-2.6-xen0"
ramdisk="/boot/initrd.img-2.6.16.29-xen0"
root="/dev/hda1"
extra="3"
memory=32
disk=["tap:qcow:/opt/wosc/vm01.qcow,hda1,w", "tap:aio:/opt/wosc/vm01-swap.img,hda2,w"]
vif=[""]
dhcp="off"
# xm create sample.xen -c
(boots up to login prompt, but freezes after entering the username)
# xm destroy vm01
# xm list
Error: Device 769 not connected

>From then on I haven't been able to un-wedge Xen other than by rebooting the
machine.

Please let me know if there's anything I can do to help debug this.

Thanks,
Wolfgang

> Could we see your /var/log/xen/*  and the output of xenstore-ls?

# xenstore-ls
tool = ""
 xenstored = ""
vm = ""
 00000000-0000-0000-0000-000000000000 = ""
  shadow_memory = "0"
  uuid = "00000000-0000-0000-0000-000000000000"
  on_reboot = "restart"
  on_poweroff = "destroy"
  name = "Domain-0"
  xend = ""
   restart_count = "0"
  vcpus = "1"
  vcpu_avail = "1"
  memory = "461"
  on_crash = "restart"
  maxmem = "461"
local = ""
 domain = ""
  0 = ""
   cpu = ""
    0 = ""
     availability = "online"
   memory = ""
    target = "472064"
   name = "Domain-0"
   console = ""
    limit = "1048576"
   vm = "/vm/00000000-0000-0000-0000-000000000000"
   domid = "0"
   backend = ""
    tap = ""
     1 = ""
      769 = ""
       domain = "vm01"
       frontend = "/local/domain/1/device/vbd/769"
       dev = "hda1"
       state = "4"
       params = "qcow:/opt/wosc/vm01.qcow"
       mode = "w"
       online = "1"
       frontend-id = "1"
       type = "tap"
       sectors = "2097152"
       sector-size = "512"
       info = "0"
       hotplug-status = "connected"
      770 = ""
       domain = "vm01"
       frontend = "/local/domain/1/device/vbd/770"
       dev = "hda2"
       state = "4"
       params = "aio:/opt/wosc/vm01-swap.img"
       mode = "w"
       online = "1"
       frontend-id = "1"
       type = "tap"
       sectors = "262144"
       sector-size = "512"
       info = "0"
       hotplug-status = "connected"
   error = ""
    backend = ""
     tap = ""
      1 = ""
       769 = ""
        error = "2 getting info"
       770 = ""
        error = "2 getting info"

# cat /var/log/xend.log
[2006-11-10 09:07:17 xend 3432] INFO (__init__:1072) Xend stopped due to signal 15.
[2006-11-10 09:08:42 xend 3446] INFO (__init__:1072) Xend Daemon started
[2006-11-10 09:08:42 xend 3446] INFO (__init__:1072) Xend changeset: unavailable .
[2006-11-10 09:08:42 xend.XendDomainInfo 3446] DEBUG (__init__:1072) XendDomainInfo.recreate({'paused': 0, 'cpu_time': 18163054582L, 'ssidref': 0, 'handle': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'shutdown_reason': 0, 'dying': 0, 'dom': 0, 'mem_kb': 471940, 'maxmem_kb': -4, 'max_vcpu_id': 0, 'crashed': 0, 'running': 1, 'shutdown': 0, 'online_vcpus': 1, 'blocked': 0})
[2006-11-10 09:08:42 xend.XendDomainInfo 3446] INFO (__init__:1072) Recreating domain 0, UUID 00000000-0000-0000-0000-000000000000.
[2006-11-10 09:08:42 xend.XendDomainInfo 3446] WARNING (__init__:1072) No vm path in store for existing domain 0
[2006-11-10 09:08:42 xend.XendDomainInfo 3446] DEBUG (__init__:1072) Storing VM details: {'shadow_memory': '0', 'uuid': '00000000-0000-0000-0000-000000000000', 'on_reboot': 'restart', 'on_poweroff': 'destroy', 'name': 'Domain-0', 'xend/restart_count': '0', 'vcpus': '1', 'vcpu_avail': '1', 'memory': '461', 'on_crash': 'restart', 'maxmem': '461'}
[2006-11-10 09:08:42 xend.XendDomainInfo 3446] DEBUG (__init__:1072) Storing domain details: {'cpu/0/availability': 'online', 'memory/target': '472064', 'name': 'Domain-0', 'console/limit': '1048576', 'vm': '/vm/00000000-0000-0000-0000-000000000000', 'domid': '0'}
[2006-11-10 09:08:42 xend 3446] DEBUG (__init__:1072) number of vcpus to use is 0
[2006-11-10 09:08:42 xend.XendDomainInfo 3446] DEBUG (__init__:1072) XendDomainInfo.handleShutdownWatch
[2006-11-10 09:35:36 xend.XendDomainInfo 3446] DEBUG (__init__:1072) XendDomainInfo.create(['vm', ['name', 'vm01'], ['memory', 32], ['vcpus', 1], ['image', ['linux', ['kernel', '
boot/vmlinuz-2.6-xen0'], ['ramdisk', '/boot/initrd.img-2.6.16.29-xenU'], ['root', '/dev/hda1'], ['args', '3']]], ['device', ['tap', ['uname', 'tap:qcow:/opt/wosc/vm01.qcow'], ['dev', 'hda1'], ['mode', 'w']]], ['device', ['tap', ['uname', 'tap:aio:/opt/wosc/vm01-swap.img'], ['dev', 'hda2'], ['mode', 'w']]], ['device', ['vif']]])
[2006-11-10 09:35:36 xend.XendDomainInfo 3446] DEBUG (__init__:1072) parseConfig: config is ['vm', ['name', 'vm01'], ['memory', 32], ['vcpus', 1], ['image', ['linux', ['kernel', '/boot/vmlinuz-2.6-xen0'], ['ramdisk', '/boot/initrd.img-2.6.16.29-xenU'], ['root', '/dev/hda1'], ['args', '3']]], ['device', ['tap', ['uname', 'tap:qcow:/opt/wosc/vm01.qcow'], ['dev', 'hda1'], ['mode', 'w']]], ['device', ['tap', ['uname', 'tap:aio:/opt/wosc/vm01-swap.img'], ['dev', 'hda2'], ['mode', 'w']]], ['device', ['vif']]]
[2006-11-10 09:35:36 xend.XendDomainInfo 3446] DEBUG (__init__:1072) parseConfig: result is {'shadow_memory': None, 'uuid': None, 'on_crash': None, 'on_reboot': None, 'localtime': None, 'image': ['linux', ['kernel', '/boot/vmlinuz-2.6-xen0'], ['ramdisk', '/boot/initrd.img-2.6.16.29-xenU'], ['root', '/dev/hda1'], ['args', '3']], 'on_poweroff': None, 'bootloader_args': None, 'cpus': None, 'name': 'vm01', 'backend': [], 'vcpus': 1, 'cpu_weight': None, 'features': None, 'vcpu_avail': None, 'memory': 32, 'device': [('tap', ['tap', ['uname', 'tap:qcow:/opt/wosc/vm01.qcow'], ['dev', 'hda1'], ['mode', 'w']]), ('tap', ['tap', ['uname', 'tap:aio:/opt/wosc/vm01-swap.img'], ['dev', 'hda2'], ['mode', 'w']]), ('vif', ['vif'])], 'bootloader': None, 'cpu': None, 'maxmem': None}
[2006-11-10 09:35:36 xend.XendDomainInfo 3446] DEBUG (__init__:1072) XendDomainInfo.construct: None
[2006-11-10 09:35:36 xend.XendDomainInfo 3446] DEBUG (__init__:1072) XendDomainInfo.initDomain: 1 1.0
[2006-11-10 09:35:36 xend 3446] DEBUG (__init__:1072) Balloon: 32828 KiB free; need 32768; done.
[2006-11-10 09:35:36 xend 3446] INFO (__init__:1072) buildDomain os=linux dom=1 vcpus=1
[2006-11-10 09:35:36 xend 3446] DEBUG (__init__:1072) dom            = 1
[2006-11-10 09:35:36 xend 3446] DEBUG (__init__:1072) image          = /boot/vmlinuz-2.6-xen0
[2006-11-10 09:35:36 xend 3446] DEBUG (__init__:1072) store_evtchn   = 1
[2006-11-10 09:35:36 xend 3446] DEBUG (__init__:1072) console_evtchn = 2
[2006-11-10 09:35:36 xend 3446] DEBUG (__init__:1072) cmdline        =  root=/dev/hda1 3
[2006-11-10 09:35:36 xend 3446] DEBUG (__init__:1072) ramdisk        = /boot/initrd.img-2.6.16.29-xenU
[2006-11-10 09:35:36 xend 3446] DEBUG (__init__:1072) vcpus          = 1
[2006-11-10 09:35:36 xend 3446] DEBUG (__init__:1072) features       =
[2006-11-10 09:35:36 xend 3446] DEBUG (__init__:1072) DevController: writing {'backend-id': '0', 'virtual-device': '769', 'device-type': 'disk', 'state': '1', 'backend': '/local/domain/0/backend/tap/1/769'} to /local/domain/1/device/vbd/769.
[2006-11-10 09:35:36 xend 3446] DEBUG (__init__:1072) DevController: writing {'domain': 'vm01', 'frontend': '/local/domain/1/device/vbd/769', 'dev': 'hda1', 'state': '1', 'params': 'qcow:/opt/wosc/vm01.qcow', 'mode': 'w', 'online': '1', 'frontend-id': '1', 'type': 'tap'} to /local/domain/0/backend/tap/1/769.
[2006-11-10 09:35:36 xend 3446] DEBUG (__init__:1072) DevController: writing {'backend-id': '0', 'virtual-device': '770', 'device-type': 'disk', 'state': '1', 'backend': '/local/domain/0/backend/tap/1/770'} to /local/domain/1/device/vbd/770.
[2006-11-10 09:35:36 xend 3446] DEBUG (__init__:1072) DevController: writing {'domain': 'vm01', 'frontend': '/local/domain/1/device/vbd/770', 'dev': 'hda2', 'state': '1', 'params': 'aio:/opt/wosc/vm01-swap.img', 'mode': 'w', 'online': '1', 'frontend-id': '1', 'type': 'tap'} to /local/domain/0/backend/tap/1/770.
[2006-11-10 09:35:36 xend 3446] DEBUG (__init__:1072) DevController: writing {'backend-id': '0', 'mac': '00:16:3e:36:5b:cb', 'handle': '0', 'state': '1', 'backend': '/local/domain/0/backend/vif/1/0'} to /local/domain/1/device/vif/0.
[2006-11-10 09:35:36 xend 3446] DEBUG (__init__:1072) DevController: writing {'domain': 'vm01', 'handle': '0', 'script': '/etc/xen/scripts/vif-bridge', 'state': '1', 'frontend': '/local/domain/1/device/vif/0', 'mac': '00:16:3e:36:5b:cb', 'online': '1', 'frontend-id': '1'} to /local/domain/0/backend/vif/1/0.
[2006-11-10 09:35:37 xend.XendDomainInfo 3446] DEBUG (__init__:1072) Storing VM details: {'shadow_memory': '0', 'uuid': '071a2275-e0b2-4511-ecd8-f7510366f6a1', 'on_reboot': 'restart', 'start_time': '1163147737.0', 'on_poweroff': 'destroy', 'name': 'vm01', 'xend/restart_count': '0', 'vcpus': '1', 'vcpu_avail': '1', 'memory': '32', 'on_crash': 'restart', 'image': '(linux (kernel /boot/vmlinuz-2.6-xen0) (ramdisk /boot/initrd.img-2.6.16.29-xenU) (root /dev/hda1) (args 3))', 'maxmem': '32'}
[2006-11-10 09:35:37 xend.XendDomainInfo 3446] DEBUG (__init__:1072) Storing domain details: {'console/ring-ref': '71163', 'console/port': '2', 'name': 'vm01', 'console/limit': '1048576', 'vm': '/vm/071a2275-e0b2-4511-ecd8-f7510366f6a1', 'domid': '1', 'cpu/0/availability': 'online', 'memory/target': '32768', 'store/ring-ref': '71164', 'store/port': '1'}
[2006-11-10 09:35:37 xend.XendDomainInfo 3446] DEBUG (__init__:1072) XendDomainInfo.handleShutdownWatch
[2006-11-10 09:35:37 xend 3446] DEBUG (__init__:1072) Waiting for devices vif.
[2006-11-10 09:35:37 xend 3446] DEBUG (__init__:1072) Waiting for 0.
[2006-11-10 09:35:37 xend 3446] DEBUG (__init__:1072) hotplugStatusCallback /local/domain/0/backend/vif/1/0/hotplug-status.
[2006-11-10 09:35:37 xend 3446] DEBUG (__init__:1072) hotplugStatusCallback /local/domain/0/backend/vif/1/0/hotplug-status.
[2006-11-10 09:35:37 xend 3446] DEBUG (__init__:1072) hotplugStatusCallback 1.
[2006-11-10 09:35:37 xend 3446] DEBUG (__init__:1072) Waiting for devices usb.
[2006-11-10 09:35:37 xend 3446] DEBUG (__init__:1072) Waiting for devices vbd.
[2006-11-10 09:35:37 xend 3446] DEBUG (__init__:1072) Waiting for devices irq.
[2006-11-10 09:35:37 xend 3446] DEBUG (__init__:1072) Waiting for devices pci.
[2006-11-10 09:35:37 xend 3446] DEBUG (__init__:1072) Waiting for devices ioports.
[2006-11-10 09:35:37 xend 3446] DEBUG (__init__:1072) Waiting for devices tap.
[2006-11-10 09:35:37 xend 3446] DEBUG (__init__:1072) Waiting for 769.
[2006-11-10 09:35:37 xend 3446] DEBUG (__init__:1072) hotplugStatusCallback /local/domain/0/backend/tap/1/769/hotplug-status.
[2006-11-10 09:35:37 xend 3446] DEBUG (__init__:1072) hotplugStatusCallback 1.
[2006-11-10 09:35:37 xend 3446] DEBUG (__init__:1072) Waiting for 770.
[2006-11-10 09:35:37 xend 3446] DEBUG (__init__:1072) hotplugStatusCallback /local/domain/0/backend/tap/1/770/hotplug-status.
[2006-11-10 09:35:37 xend 3446] DEBUG (__init__:1072) hotplugStatusCallback 1.
[2006-11-10 09:35:37 xend 3446] DEBUG (__init__:1072) Waiting for devices vtpm.
[2006-11-10 09:35:37 xend 3446] INFO (__init__:1072) Domain vm01 (1) unpaused.
[2006-11-10 09:36:20 xend.XendDomainInfo 3446] DEBUG (__init__:1072) XendDomainInfo.destroy: domid=1
[2006-11-10 09:36:20 xend.XendDomainInfo 3446] DEBUG (__init__:1072) XendDomainInfo.destroyDomain(1)

# cat /var/log/xen/xend-debug.log
Traceback (most recent call last):
  File "SocketServer.py", line 463, in process_request_thread
    self.finish_request(request, client_address)
  File "SocketServer.py", line 254, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "SocketServer.py", line 521, in __init__
    self.handle()
  File "BaseHTTPServer.py", line 316, in handle
    self.handle_one_request()
  File "BaseHTTPServer.py", line 310, in handle_one_request
    method()
  File "/usr/lib/python/xen/util/xmlrpclib2.py", line 66, in do_POST
    self.send_response(200)
  File "BaseHTTPServer.py", line 367, in send_response
    self.wfile.write("%s %d %s\r\n" %
  File "socket.py", line 248, in write
    self.flush()
  File "socket.py", line 235, in flush
    self._sock.sendall(buffer)
error: (32, 'Broken pipe')

# cat /var/log/xen/xen-hotplug.log
Nothing to flush.
Nothing to flush.
Nothing to flush.
Nothing to flush.

      parent reply	other threads:[~2006-11-10  8:49 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-08 14:50 tap:qcow causes dom-U to hang in 3.0.3 Roland Paterson-Jones
2006-11-08 15:11 ` [Xen-devel] " Ewan Mellor
2006-11-09  7:58   ` [Xen-users] " Roland Paterson-Jones
2006-11-10 10:15     ` Julian Chesterfield
2006-11-10 14:00       ` Re: [Xen-devel] " Roland Paterson-Jones
2006-11-13 12:26         ` [Xen-users] " Julian Chesterfield
2006-11-14 10:10           ` Roland Paterson-Jones
2006-11-14 10:50             ` Re: [Xen-devel] " Roland Paterson-Jones
2006-12-15  5:24               ` tap:qcow causes dom-U to hang in 3.0.4-rc1 Hiromichi Itou
2006-12-19 22:32                 ` Julian Chesterfield
2006-12-20  9:57                   ` Hiromichi Itou
2006-11-10 14:17       ` Re: [Xen-devel] tap:qcow causes dom-U to hang in 3.0.3 Roland Paterson-Jones
2006-11-09  9:30   ` [Xen-users] " Roland Paterson-Jones
2006-11-09 13:34   ` Roland Paterson-Jones
2006-11-09 13:58     ` Re: [Xen-devel] " Ewan Mellor
2006-11-10  8:49   ` Wolfgang Schnerring [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ejsbit43.fsf@nautis.wosc.de \
    --to=wosc@wosc.de \
    --cc=xen-devel@lists.xensource.com \
    --cc=xen-users@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.