* blktap2: need more than 3 values to unpack
@ 2009-06-01 22:51 Dan Magenheimer
2009-06-02 2:31 ` Dutch Meyer
0 siblings, 1 reply; 7+ messages in thread
From: Dan Magenheimer @ 2009-06-01 22:51 UTC (permalink / raw)
To: Xen-Devel (E-mail)
[-- Attachment #1: Type: text/plain, Size: 1174 bytes --]
Hmmm... trying blktap2 for the first time, using 19682.
I had thought that the syntax hadn't changed, but I am
getting what appears to be a parsing error on my vbd line.
"ValueError: need more than 3 values to unpack"
Thinking maybe that "w!" was the culprit, I changed
it to "w" with no change in result.
Looking at the python code that generated the error,
I tried to figure out the syntax by experimentation
but without luck. I tried:
tap:tapdisk:aio:/pathto/file.img
but got "Error: 'file' object has no attribute 'find'"
To see if I could use the old blktap, I tried
tap:tapdisk:ioemu:/pathto/file.img
but got the dreaded "Error: Device 768 (tap) could not be
connected. Hotplug scripts not working"
Am I missing something in the syntax for blktap2?
Is there a how-to or readme I didn't find? Or
is there some required dependency I don't know about
that is missing?
I thought maybe I had a bad install, so rebuilt and
reinstalled with the same result.
xend.log and config file attached.
Thanks,
Dan
P.S. I am trying blktap2 because both blktap and
file-backed fail. Blktap sometimes reads garbage
from the file and
[-- Attachment #2: xend.log --]
[-- Type: application/octet-stream, Size: 11964 bytes --]
[2009-06-01 16:17:18 17137] INFO (SrvDaemon:220) Xend exited with status 0.
[2009-06-01 16:17:22 18009] INFO (SrvDaemon:332) Xend Daemon started
[2009-06-01 16:17:22 18009] INFO (SrvDaemon:336) Xend changeset: Thu May 28 11:01:00 2009 +0100 19671:ae810b258394.
[2009-06-01 16:17:22 18009] INFO (XendNetwork:114) Not recreating missing unmanaged network tmpbridge
[2009-06-01 16:17:22 18009] DEBUG (XendDomainInfo:142) XendDomainInfo.recreate({'max_vcpu_id': 1, 'cpu_time': 65036333812L, 'ssidref': 0, 'hvm': 0, 'shutdown_reason': 0, 'dying': 0, 'online_vcpus': 2, 'domid': 0, 'paused': 0, 'crashed': 0, 'running': 1, 'maxmem_kb': 4294967292L, 'shutdown': 0, 'mem_kb': 262144L, 'handle': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'blocked': 0, 'name': 'Domain-0'})
[2009-06-01 16:17:22 18009] INFO (XendDomainInfo:159) Recreating domain 0, UUID 00000000-0000-0000-0000-000000000000. at /local/domain/0
[2009-06-01 16:17:22 18009] DEBUG (XendDomain:452) Adding Domain: 0
[2009-06-01 16:17:22 18009] DEBUG (XendDomain:386) number of vcpus to use is 0
[2009-06-01 16:17:22 18009] DEBUG (XendDomainInfo:1766) XendDomainInfo.handleShutdownWatch
[2009-06-01 16:17:22 18009] WARNING (XendAPI:701) API call: VBD.set_device not found
[2009-06-01 16:17:22 18009] WARNING (XendAPI:701) API call: VBD.set_type not found
[2009-06-01 16:17:22 18009] WARNING (XendAPI:701) API call: session.get_all_records not found
[2009-06-01 16:17:22 18009] WARNING (XendAPI:701) API call: event.get_record not found
[2009-06-01 16:17:22 18009] WARNING (XendAPI:701) API call: event.get_all not found
[2009-06-01 16:17:22 18009] WARNING (XendAPI:701) API call: VIF.get_network not found
[2009-06-01 16:17:22 18009] WARNING (XendAPI:701) API call: VIF.set_device not found
[2009-06-01 16:17:22 18009] WARNING (XendAPI:701) API call: VIF.set_MAC not found
[2009-06-01 16:17:22 18009] WARNING (XendAPI:701) API call: VIF.set_MTU not found
[2009-06-01 16:17:22 18009] WARNING (XendAPI:701) API call: debug.get_all not found
[2009-06-01 16:17:22 18009] INFO (XMLRPCServer:156) Opening Unix domain socket XML-RPC server on /var/run/xend/xen-api.sock; authentication has been disabled for this server.
[2009-06-01 16:17:22 18009] INFO (XMLRPCServer:156) Opening Unix domain socket XML-RPC server on /var/run/xend/xmlrpc.sock.
[2009-06-01 16:17:27 18009] DEBUG (XendDomainInfo:94) XendDomainInfo.create(['vm', ['name', 'ocfs2-node0'], ['memory', '384'], ['on_reboot', 'restart'], ['on_crash', 'restart'], ['vcpus', 2], ['on_xend_start', 'ignore'], ['on_xend_stop', 'ignore'], ['image', ['linux', ['kernel', '/OVS/seed_pool/ocfs2-sharedroot/vmlinuz-2.6.18-92.1.1.0.1.el5.tmemxen'], ['ramdisk', '/OVS/seed_pool/ocfs2-sharedroot/initrd-2.6.18-92.1.1.0.1.el5.tmemxen.osr.img'], ['videoram', 4], ['args', 'root=/dev/hda ip=10.0.0.10:127.0.255.255:::ocfs2-node0:eth0:off raid=noautodetect console=xvc0 loglevel=8']]], ['s3_integrity', 1], ['device', ['tap', ['uname', 'tap:aio:/OVS/seed_pool/ocfs2-sharedroot/ocfs2.img'], ['dev', 'hda'], ['mode', 'w!']]], ['device', ['tap', ['uname', 'tap:aio:/OVS/seed_pool/ocfs2-sharedroot/swap-node0.img'], ['dev', 'hdb'], ['mode', 'w']]], ['device', ['vif', ['mac', '00:16:3E:00:10:10']]], ['device', ['vif']], ['device', ['vkbd']], ['device', ['vfb', ['vncunused', '1'], ['vnc', '1'], ['vnclisten', '0.0.0.0'], ['display', ':1.0'], ['xauthority', '/root/.Xauthority']]]])
[2009-06-01 16:17:27 18009] DEBUG (XendDomainInfo:2353) XendDomainInfo.constructDomain
[2009-06-01 16:17:27 18009] DEBUG (balloon:181) Balloon: 1766872 KiB free; need 4096; done.
[2009-06-01 16:17:27 18009] DEBUG (XendDomain:452) Adding Domain: 4
[2009-06-01 16:17:27 18009] DEBUG (XendDomainInfo:2555) XendDomainInfo.initDomain: 4 256
[2009-06-01 16:17:27 18009] DEBUG (image:322) No VNC passwd configured for vfb access
[2009-06-01 16:17:27 18009] DEBUG (XendDomainInfo:2579) _initDomain:shadow_memory=0x0, memory_static_max=0x18000000, memory_static_min=0x0.
[2009-06-01 16:17:27 18009] DEBUG (balloon:181) Balloon: 1766748 KiB free; need 395264; done.
[2009-06-01 16:17:27 18009] INFO (image:173) buildDomain os=linux dom=4 vcpus=2
[2009-06-01 16:17:27 18009] DEBUG (image:676) domid = 4
[2009-06-01 16:17:27 18009] DEBUG (image:677) memsize = 384
[2009-06-01 16:17:27 18009] DEBUG (image:678) image = /OVS/seed_pool/ocfs2-sharedroot/vmlinuz-2.6.18-92.1.1.0.1.el5.tmemxen
[2009-06-01 16:17:27 18009] DEBUG (image:679) store_evtchn = 1
[2009-06-01 16:17:27 18009] DEBUG (image:680) console_evtchn = 2
[2009-06-01 16:17:27 18009] DEBUG (image:681) cmdline = root=/dev/hda ip=10.0.0.10:127.0.255.255:::ocfs2-node0:eth0:off raid=noautodetect console=xvc0 loglevel=8
[2009-06-01 16:17:27 18009] DEBUG (image:682) ramdisk = /OVS/seed_pool/ocfs2-sharedroot/initrd-2.6.18-92.1.1.0.1.el5.tmemxen.osr.img
[2009-06-01 16:17:27 18009] DEBUG (image:683) vcpus = 2
[2009-06-01 16:17:27 18009] DEBUG (image:684) features =
[2009-06-01 16:17:27 18009] DEBUG (image:685) flags = 0
[2009-06-01 16:17:27 18009] DEBUG (image:686) superpages = 0
[2009-06-01 16:17:29 18009] INFO (XendDomainInfo:2217) createDevice: vkbd : {'uuid': 'd9679259-dfe8-167f-3ccb-cc6cd5064bce'}
[2009-06-01 16:17:29 18009] DEBUG (DevController:95) DevController: writing {'protocol': 'x86_32-abi', 'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/vkbd/4/0'} to /local/domain/4/device/vkbd/0.
[2009-06-01 16:17:29 18009] DEBUG (DevController:97) DevController: writing {'frontend-id': '4', 'domain': 'ocfs2-node0', 'frontend': '/local/domain/4/device/vkbd/0', 'state': '1', 'online': '1'} to /local/domain/0/backend/vkbd/4/0.
[2009-06-01 16:17:29 18009] INFO (XendDomainInfo:2217) createDevice: vfb : {'vncunused': '1', 'other_config': {'vncunused': '1', 'vnclisten': '0.0.0.0', 'vnc': '1', 'display': ':1.0', 'xauthority': '/root/.Xauthority'}, 'vnc': '1', 'uuid': '1265c73b-db3c-0d0f-9d58-005b26f77234', 'vnclisten': '0.0.0.0', 'display': ':1.0', 'xauthority': '/root/.Xauthority'}
[2009-06-01 16:17:29 18009] DEBUG (DevController:95) DevController: writing {'protocol': 'x86_32-abi', 'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/vfb/4/0'} to /local/domain/4/device/vfb/0.
[2009-06-01 16:17:29 18009] DEBUG (DevController:97) DevController: writing {'vncunused': '1', 'domain': 'ocfs2-node0', 'frontend': '/local/domain/4/device/vfb/0', 'uuid': '1265c73b-db3c-0d0f-9d58-005b26f77234', 'frontend-id': '4', 'vnclisten': '0.0.0.0', 'state': '1', 'online': '1', 'vnc': '1', 'display': ':1.0', 'xauthority': '/root/.Xauthority'} to /local/domain/0/backend/vfb/4/0.
[2009-06-01 16:17:29 18009] INFO (XendDomainInfo:2217) createDevice: tap : {'bootable': 1, 'uname': 'tap:aio:/OVS/seed_pool/ocfs2-sharedroot/ocfs2.img', 'mode': 'w!', 'dev': 'hda', 'uuid': '3d9310e7-6ebb-1845-6d60-815fadbeee58'}
[2009-06-01 16:17:29 18009] ERROR (XendDomainInfo:478) VM start failed
Traceback (most recent call last):
File "usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 458, in start
XendTask.log_progress(31, 60, self._initDomain)
File "usr/lib/python2.4/site-packages/xen/xend/XendTask.py", line 209, in log_progress
retval = func(*args, **kwds)
File "usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 2624, in _initDomain
self._createDevices()
File "usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 2219, in _createDevices
devid = self._createDevice(devclass, config)
File "usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 2186, in _createDevice
return self.getDeviceController(deviceClass).createDevice(devConfig)
File "usr/lib/python2.4/site-packages/xen/xend/server/BlktapController.py", line 124, in createDevice
(typ, subtyp, params, file) = string.split(uname, ':', 3)
ValueError: need more than 3 values to unpack
[2009-06-01 16:17:29 18009] DEBUG (XendDomainInfo:2782) XendDomainInfo.destroy: domid=4
[2009-06-01 16:17:29 18009] DEBUG (XendDomainInfo:2256) Destroying device model
[2009-06-01 16:17:29 18009] ERROR (XendDomainInfo:2259) Device model destroy failed X86_Linux_ImageHandler instance has no attribute 'sentinel_lock'
Traceback (most recent call last):
File "usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 2257, in _releaseDevices
self.image.destroyDeviceModel()
File "usr/lib/python2.4/site-packages/xen/xend/image.py", line 578, in destroyDeviceModel
self.sentinel_lock.acquire()
AttributeError: X86_Linux_ImageHandler instance has no attribute 'sentinel_lock'
[2009-06-01 16:17:29 18009] DEBUG (XendDomainInfo:2263) Releasing devices
[2009-06-01 16:17:29 18009] DEBUG (XendDomainInfo:2276) Removing vkbd/0
[2009-06-01 16:17:29 18009] DEBUG (XendDomainInfo:1183) XendDomainInfo.destroyDevice: deviceClass = vkbd, device = vkbd/0
[2009-06-01 16:17:29 18009] DEBUG (XendDomainInfo:2276) Removing vfb/0
[2009-06-01 16:17:29 18009] DEBUG (XendDomainInfo:1183) XendDomainInfo.destroyDevice: deviceClass = vfb, device = vfb/0
[2009-06-01 16:17:29 18009] DEBUG (XendDomainInfo:2261) No device model
[2009-06-01 16:17:29 18009] DEBUG (XendDomainInfo:2263) Releasing devices
[2009-06-01 16:17:29 18009] ERROR (XendDomainInfo:99) Domain construction failed
Traceback (most recent call last):
File "usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 97, in create
vm.start()
File "usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 458, in start
XendTask.log_progress(31, 60, self._initDomain)
File "usr/lib/python2.4/site-packages/xen/xend/XendTask.py", line 209, in log_progress
retval = func(*args, **kwds)
File "usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 2624, in _initDomain
self._createDevices()
File "usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 2219, in _createDevices
devid = self._createDevice(devclass, config)
File "usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 2186, in _createDevice
return self.getDeviceController(deviceClass).createDevice(devConfig)
File "usr/lib/python2.4/site-packages/xen/xend/server/BlktapController.py", line 124, in createDevice
(typ, subtyp, params, file) = string.split(uname, ':', 3)
ValueError: need more than 3 values to unpack
[2009-06-01 16:17:29 18009] ERROR (xmlrpclib2:178) Internal error handling xend.domain.create
Traceback (most recent call last):
File "usr/lib/python2.4/site-packages/xen/util/xmlrpclib2.py", line 131, in _marshaled_dispatch
response = self._dispatch(method, params)
File "/usr/lib/python2.4/SimpleXMLRPCServer.py", line 406, in _dispatch
return func(*params)
File "usr/lib/python2.4/site-packages/xen/xend/server/XMLRPCServer.py", line 79, in domain_create
info = XendDomain.instance().domain_create(config)
File "usr/lib/python2.4/site-packages/xen/xend/XendDomain.py", line 970, in domain_create
dominfo = XendDomainInfo.create(config)
File "usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 97, in create
vm.start()
File "usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 458, in start
XendTask.log_progress(31, 60, self._initDomain)
File "usr/lib/python2.4/site-packages/xen/xend/XendTask.py", line 209, in log_progress
retval = func(*args, **kwds)
File "usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 2624, in _initDomain
self._createDevices()
File "usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 2219, in _createDevices
devid = self._createDevice(devclass, config)
File "usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 2186, in _createDevice
return self.getDeviceController(deviceClass).createDevice(devConfig)
File "usr/lib/python2.4/site-packages/xen/xend/server/BlktapController.py", line 124, in createDevice
(typ, subtyp, params, file) = string.split(uname, ':', 3)
ValueError: need more than 3 values to unpack
[-- Attachment #3: ocfs2-node0.cfg --]
[-- Type: application/octet-stream, Size: 598 bytes --]
name = "ocfs2-node0"
memory = "384"
disk = [ 'tap:aio:/OVS/seed_pool/ocfs2-sharedroot/ocfs2.img,hda,w!', 'tap:aio:/OVS/seed_pool/ocfs2-sharedroot/swap-node0.img,hdb,w' ]
kernel = "/OVS/seed_pool/ocfs2-sharedroot/vmlinuz-2.6.18-92.1.1.0.1.el5.tmemxen"
ramdisk = "/OVS/seed_pool/ocfs2-sharedroot/initrd-2.6.18-92.1.1.0.1.el5.tmemxen.osr.img"
extra = "root=/dev/hda ip=10.0.0.10:127.0.255.255:::ocfs2-node0:eth0:off raid=noautodetect console=xvc0 loglevel=8"
vif = [ 'mac=00:16:3E:00:10:10', '']
vfb = ["type=vnc,vncunused=1,vnclisten=0.0.0.0"]
vcpus=2
on_reboot = 'restart'
on_crash = 'restart'
[-- Attachment #4: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: blktap2: need more than 3 values to unpack
2009-06-01 22:51 blktap2: need more than 3 values to unpack Dan Magenheimer
@ 2009-06-02 2:31 ` Dutch Meyer
2009-06-02 3:40 ` Dan Magenheimer
0 siblings, 1 reply; 7+ messages in thread
From: Dutch Meyer @ 2009-06-02 2:31 UTC (permalink / raw)
To: Dan Magenheimer; +Cc: Xen-Devel (E-mail)
The tap:aio:/pathto/file.img syntax that you're using in your config was
changed before blktap2 was introduced. tap:tapdisk:aio:/pathto/file.img is
apparently the correct syntax now, though the README didn't get updated to
reflect this. Our blktap2 documentation is no better - I'll try to
remedy that this week.
If you're still seeing this error:
"Error: 'file' object has no attribute 'find'"
Then I might be able to help, but I'm not sure how to reproduce it. If
you send a log file and config for this latter error I'll take a look.
Yang seems to be reporting the same thing in another thread.
--Dutch
On Mon, 1 Jun 2009, Dan Magenheimer wrote:
> Hmmm... trying blktap2 for the first time, using 19682.
> I had thought that the syntax hadn't changed, but I am
> getting what appears to be a parsing error on my vbd line.
>
> "ValueError: need more than 3 values to unpack"
>
> Thinking maybe that "w!" was the culprit, I changed
> it to "w" with no change in result.
>
> Looking at the python code that generated the error,
> I tried to figure out the syntax by experimentation
> but without luck. I tried:
>
> tap:tapdisk:aio:/pathto/file.img
>
> but got "Error: 'file' object has no attribute 'find'"
>
> To see if I could use the old blktap, I tried
>
> tap:tapdisk:ioemu:/pathto/file.img
>
> but got the dreaded "Error: Device 768 (tap) could not be
> connected. Hotplug scripts not working"
>
> Am I missing something in the syntax for blktap2?
> Is there a how-to or readme I didn't find? Or
> is there some required dependency I don't know about
> that is missing?
>
> I thought maybe I had a bad install, so rebuilt and
> reinstalled with the same result.
>
> xend.log and config file attached.
>
> Thanks,
> Dan
>
> P.S. I am trying blktap2 because both blktap and
> file-backed fail. Blktap sometimes reads garbage
> from the file and
^ permalink raw reply [flat|nested] 7+ messages in thread* RE: blktap2: need more than 3 values to unpack
2009-06-02 2:31 ` Dutch Meyer
@ 2009-06-02 3:40 ` Dan Magenheimer
0 siblings, 0 replies; 7+ messages in thread
From: Dan Magenheimer @ 2009-06-02 3:40 UTC (permalink / raw)
To: Dutch Meyer; +Cc: Xen-Devel (E-mail)
[-- Attachment #1: Type: text/plain, Size: 2655 bytes --]
> Then I might be able to help, but I'm not sure how to
> reproduce it. If
> you send a log file and config for this latter error I'll
> take a look.
Here ya go.
Thanks,
Dan
> -----Original Message-----
> From: Dutch Meyer [mailto:dmeyer@cs.ubc.ca]
> Sent: Monday, June 01, 2009 8:32 PM
> To: Dan Magenheimer
> Cc: Xen-Devel (E-mail)
> Subject: Re: [Xen-devel] blktap2: need more than 3 values to unpack
>
>
> The tap:aio:/pathto/file.img syntax that you're using in your
> config was
> changed before blktap2 was introduced.
> tap:tapdisk:aio:/pathto/file.img is
> apparently the correct syntax now, though the README didn't
> get updated to
> reflect this. Our blktap2 documentation is no better - I'll try to
> remedy that this week.
>
>
> If you're still seeing this error:
> "Error: 'file' object has no attribute 'find'"
>
> Then I might be able to help, but I'm not sure how to
> reproduce it. If
> you send a log file and config for this latter error I'll
> take a look.
> Yang seems to be reporting the same thing in another thread.
>
> --Dutch
>
> On Mon, 1 Jun 2009, Dan Magenheimer wrote:
>
> > Hmmm... trying blktap2 for the first time, using 19682.
> > I had thought that the syntax hadn't changed, but I am
> > getting what appears to be a parsing error on my vbd line.
> >
> > "ValueError: need more than 3 values to unpack"
> >
> > Thinking maybe that "w!" was the culprit, I changed
> > it to "w" with no change in result.
> >
> > Looking at the python code that generated the error,
> > I tried to figure out the syntax by experimentation
> > but without luck. I tried:
> >
> > tap:tapdisk:aio:/pathto/file.img
> >
> > but got "Error: 'file' object has no attribute 'find'"
> >
> > To see if I could use the old blktap, I tried
> >
> > tap:tapdisk:ioemu:/pathto/file.img
> >
> > but got the dreaded "Error: Device 768 (tap) could not be
> > connected. Hotplug scripts not working"
> >
> > Am I missing something in the syntax for blktap2?
> > Is there a how-to or readme I didn't find? Or
> > is there some required dependency I don't know about
> > that is missing?
> >
> > I thought maybe I had a bad install, so rebuilt and
> > reinstalled with the same result.
> >
> > xend.log and config file attached.
> >
> > Thanks,
> > Dan
> >
> > P.S. I am trying blktap2 because both blktap and
> > file-backed fail. Blktap sometimes reads garbage
> > from the file and
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
[-- Attachment #2: xend.log --]
[-- Type: application/octet-stream, Size: 12213 bytes --]
[2009-06-01 21:36:00 24263] INFO (SrvDaemon:332) Xend Daemon started
[2009-06-01 21:36:00 24263] INFO (SrvDaemon:336) Xend changeset: Thu May 28 11:01:00 2009 +0100 19671:ae810b258394.
[2009-06-01 21:36:00 24263] INFO (XendNetwork:114) Not recreating missing unmanaged network tmpbridge
[2009-06-01 21:36:00 24263] DEBUG (XendDomainInfo:142) XendDomainInfo.recreate({'max_vcpu_id': 1, 'cpu_time': 183690560773L, 'ssidref': 0, 'hvm': 0, 'shutdown_reason': 0, 'dying': 0, 'online_vcpus': 2, 'domid': 0, 'paused': 0, 'crashed': 0, 'running': 1, 'maxmem_kb': 4294967292L, 'shutdown': 0, 'mem_kb': 262144L, 'handle': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'blocked': 0, 'name': 'Domain-0'})
[2009-06-01 21:36:00 24263] INFO (XendDomainInfo:159) Recreating domain 0, UUID 00000000-0000-0000-0000-000000000000. at /local/domain/0
[2009-06-01 21:36:00 24263] DEBUG (XendDomain:452) Adding Domain: 0
[2009-06-01 21:36:00 24263] DEBUG (XendDomain:386) number of vcpus to use is 0
[2009-06-01 21:36:00 24263] WARNING (XendAPI:701) API call: VBD.set_device not found
[2009-06-01 21:36:00 24263] WARNING (XendAPI:701) API call: VBD.set_type not found
[2009-06-01 21:36:00 24263] WARNING (XendAPI:701) API call: session.get_all_records not found
[2009-06-01 21:36:00 24263] WARNING (XendAPI:701) API call: event.get_record not found
[2009-06-01 21:36:00 24263] WARNING (XendAPI:701) API call: event.get_all not found
[2009-06-01 21:36:00 24263] WARNING (XendAPI:701) API call: VIF.get_network not found
[2009-06-01 21:36:00 24263] WARNING (XendAPI:701) API call: VIF.set_device not found
[2009-06-01 21:36:00 24263] WARNING (XendAPI:701) API call: VIF.set_MAC not found
[2009-06-01 21:36:00 24263] WARNING (XendAPI:701) API call: VIF.set_MTU not found
[2009-06-01 21:36:00 24263] WARNING (XendAPI:701) API call: debug.get_all not found
[2009-06-01 21:36:00 24263] INFO (XMLRPCServer:156) Opening Unix domain socket XML-RPC server on /var/run/xend/xen-api.sock; authentication has been disabled for this server.
[2009-06-01 21:36:00 24263] DEBUG (XendDomainInfo:1766) XendDomainInfo.handleShutdownWatch
[2009-06-01 21:36:00 24263] INFO (XMLRPCServer:156) Opening Unix domain socket XML-RPC server on /var/run/xend/xmlrpc.sock.
[2009-06-01 21:36:26 24263] DEBUG (XendDomainInfo:94) XendDomainInfo.create(['vm', ['name', 'ocfs2-node0'], ['memory', '384'], ['on_reboot', 'restart'], ['on_crash', 'restart'], ['vcpus', 2], ['on_xend_start', 'ignore'], ['on_xend_stop', 'ignore'], ['image', ['linux', ['kernel', '/OVS/seed_pool/ocfs2-sharedroot/vmlinuz-2.6.18-92.1.1.0.1.el5.tmemxen'], ['ramdisk', '/OVS/seed_pool/ocfs2-sharedroot/initrd-2.6.18-92.1.1.0.1.el5.tmemxen.osr.img'], ['videoram', 4], ['args', 'root=/dev/hda ip=10.0.0.10:127.0.255.255:::ocfs2-node0:eth0:off raid=noautodetect console=xvc0 loglevel=8']]], ['s3_integrity', 1], ['device', ['tap', ['uname', 'tap:tapdisk:aio:/OVS/seed_pool/ocfs2-sharedroot/ocfs2.img'], ['dev', 'hda'], ['mode', 'w!']]], ['device', ['tap', ['uname', 'tap:tapdisk:aio:/OVS/seed_pool/ocfs2-sharedroot/swap-node0.img'], ['dev', 'hdb'], ['mode', 'w']]], ['device', ['vif', ['mac', '00:16:3E:00:10:10']]], ['device', ['vif']], ['device', ['vkbd']], ['device', ['vfb', ['vncunused', '1'], ['vnc', '1'], ['vnclisten', '0.0.0.0'], ['display', ':1.0'], ['xauthority', '/root/.Xauthority']]]])
[2009-06-01 21:36:26 24263] DEBUG (XendDomainInfo:2353) XendDomainInfo.constructDomain
[2009-06-01 21:36:26 24263] DEBUG (balloon:181) Balloon: 1670608 KiB free; need 4096; done.
[2009-06-01 21:36:26 24263] DEBUG (XendDomain:452) Adding Domain: 21
[2009-06-01 21:36:26 24263] DEBUG (XendDomainInfo:2555) XendDomainInfo.initDomain: 21 256
[2009-06-01 21:36:26 24263] DEBUG (image:322) No VNC passwd configured for vfb access
[2009-06-01 21:36:26 24263] DEBUG (XendDomainInfo:2579) _initDomain:shadow_memory=0x0, memory_static_max=0x18000000, memory_static_min=0x0.
[2009-06-01 21:36:26 24263] DEBUG (balloon:181) Balloon: 1670484 KiB free; need 395264; done.
[2009-06-01 21:36:26 24263] INFO (image:173) buildDomain os=linux dom=21 vcpus=2
[2009-06-01 21:36:26 24263] DEBUG (image:676) domid = 21
[2009-06-01 21:36:26 24263] DEBUG (image:677) memsize = 384
[2009-06-01 21:36:26 24263] DEBUG (image:678) image = /OVS/seed_pool/ocfs2-sharedroot/vmlinuz-2.6.18-92.1.1.0.1.el5.tmemxen
[2009-06-01 21:36:26 24263] DEBUG (image:679) store_evtchn = 1
[2009-06-01 21:36:26 24263] DEBUG (image:680) console_evtchn = 2
[2009-06-01 21:36:26 24263] DEBUG (image:681) cmdline = root=/dev/hda ip=10.0.0.10:127.0.255.255:::ocfs2-node0:eth0:off raid=noautodetect console=xvc0 loglevel=8
[2009-06-01 21:36:26 24263] DEBUG (image:682) ramdisk = /OVS/seed_pool/ocfs2-sharedroot/initrd-2.6.18-92.1.1.0.1.el5.tmemxen.osr.img
[2009-06-01 21:36:26 24263] DEBUG (image:683) vcpus = 2
[2009-06-01 21:36:26 24263] DEBUG (image:684) features =
[2009-06-01 21:36:26 24263] DEBUG (image:685) flags = 0
[2009-06-01 21:36:26 24263] DEBUG (image:686) superpages = 0
[2009-06-01 21:36:27 24263] INFO (XendDomainInfo:2217) createDevice: vkbd : {'uuid': '4e276a22-4241-8d38-7afd-baeeafe08008'}
[2009-06-01 21:36:27 24263] DEBUG (DevController:95) DevController: writing {'protocol': 'x86_32-abi', 'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/vkbd/21/0'} to /local/domain/21/device/vkbd/0.
[2009-06-01 21:36:27 24263] DEBUG (DevController:97) DevController: writing {'frontend-id': '21', 'domain': 'ocfs2-node0', 'frontend': '/local/domain/21/device/vkbd/0', 'state': '1', 'online': '1'} to /local/domain/0/backend/vkbd/21/0.
[2009-06-01 21:36:27 24263] INFO (XendDomainInfo:2217) createDevice: vfb : {'vncunused': '1', 'other_config': {'vncunused': '1', 'vnclisten': '0.0.0.0', 'vnc': '1', 'display': ':1.0', 'xauthority': '/root/.Xauthority'}, 'vnc': '1', 'uuid': '46f4d731-c6ab-172f-f0b4-04f6cab2cc6d', 'vnclisten': '0.0.0.0', 'display': ':1.0', 'xauthority': '/root/.Xauthority'}
[2009-06-01 21:36:27 24263] DEBUG (DevController:95) DevController: writing {'protocol': 'x86_32-abi', 'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/vfb/21/0'} to /local/domain/21/device/vfb/0.
[2009-06-01 21:36:27 24263] DEBUG (DevController:97) DevController: writing {'vncunused': '1', 'domain': 'ocfs2-node0', 'frontend': '/local/domain/21/device/vfb/0', 'uuid': '46f4d731-c6ab-172f-f0b4-04f6cab2cc6d', 'frontend-id': '21', 'vnclisten': '0.0.0.0', 'state': '1', 'online': '1', 'vnc': '1', 'display': ':1.0', 'xauthority': '/root/.Xauthority'} to /local/domain/0/backend/vfb/21/0.
[2009-06-01 21:36:27 24263] INFO (XendDomainInfo:2217) createDevice: tap : {'bootable': 1, 'uname': 'tap:tapdisk:aio:/OVS/seed_pool/ocfs2-sharedroot/ocfs2.img', 'mode': 'w!', 'dev': 'hda', 'uuid': 'd648a04e-6a92-098c-6327-bccdc0c12ebf'}
[2009-06-01 21:36:27 24263] ERROR (XendDomainInfo:478) VM start failed
Traceback (most recent call last):
File "usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 458, in start
XendTask.log_progress(31, 60, self._initDomain)
File "usr/lib/python2.4/site-packages/xen/xend/XendTask.py", line 209, in log_progress
retval = func(*args, **kwds)
File "usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 2624, in _initDomain
self._createDevices()
File "usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 2219, in _createDevices
devid = self._createDevice(devclass, config)
File "usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 2186, in _createDevice
return self.getDeviceController(deviceClass).createDevice(devConfig)
File "usr/lib/python2.4/site-packages/xen/xend/server/BlktapController.py", line 134, in createDevice
minor, device, control = parseDeviceString(stdout)
File "usr/lib/python2.4/site-packages/xen/xend/server/BlktapController.py", line 39, in parseDeviceString
if device.find('/dev') == -1:
AttributeError: 'file' object has no attribute 'find'
[2009-06-01 21:36:27 24263] DEBUG (XendDomainInfo:2782) XendDomainInfo.destroy: domid=21
[2009-06-01 21:36:27 24263] DEBUG (XendDomainInfo:2256) Destroying device model
[2009-06-01 21:36:27 24263] ERROR (XendDomainInfo:2259) Device model destroy failed X86_Linux_ImageHandler instance has no attribute 'sentinel_lock'
Traceback (most recent call last):
File "usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 2257, in _releaseDevices
self.image.destroyDeviceModel()
File "usr/lib/python2.4/site-packages/xen/xend/image.py", line 578, in destroyDeviceModel
self.sentinel_lock.acquire()
AttributeError: X86_Linux_ImageHandler instance has no attribute 'sentinel_lock'
[2009-06-01 21:36:27 24263] DEBUG (XendDomainInfo:2263) Releasing devices
[2009-06-01 21:36:27 24263] DEBUG (XendDomainInfo:2276) Removing vkbd/0
[2009-06-01 21:36:27 24263] DEBUG (XendDomainInfo:1183) XendDomainInfo.destroyDevice: deviceClass = vkbd, device = vkbd/0
[2009-06-01 21:36:27 24263] DEBUG (XendDomainInfo:2276) Removing vfb/0
[2009-06-01 21:36:27 24263] DEBUG (XendDomainInfo:1183) XendDomainInfo.destroyDevice: deviceClass = vfb, device = vfb/0
[2009-06-01 21:36:27 24263] ERROR (XendDomainInfo:99) Domain construction failed
Traceback (most recent call last):
File "usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 97, in create
vm.start()
File "usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 458, in start
XendTask.log_progress(31, 60, self._initDomain)
File "usr/lib/python2.4/site-packages/xen/xend/XendTask.py", line 209, in log_progress
retval = func(*args, **kwds)
File "usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 2624, in _initDomain
self._createDevices()
File "usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 2219, in _createDevices
devid = self._createDevice(devclass, config)
File "usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 2186, in _createDevice
return self.getDeviceController(deviceClass).createDevice(devConfig)
File "usr/lib/python2.4/site-packages/xen/xend/server/BlktapController.py", line 134, in createDevice
minor, device, control = parseDeviceString(stdout)
File "usr/lib/python2.4/site-packages/xen/xend/server/BlktapController.py", line 39, in parseDeviceString
if device.find('/dev') == -1:
AttributeError: 'file' object has no attribute 'find'
[2009-06-01 21:36:27 24263] ERROR (xmlrpclib2:178) Internal error handling xend.domain.create
Traceback (most recent call last):
File "usr/lib/python2.4/site-packages/xen/util/xmlrpclib2.py", line 131, in _marshaled_dispatch
response = self._dispatch(method, params)
File "/usr/lib/python2.4/SimpleXMLRPCServer.py", line 406, in _dispatch
return func(*params)
File "usr/lib/python2.4/site-packages/xen/xend/server/XMLRPCServer.py", line 79, in domain_create
info = XendDomain.instance().domain_create(config)
File "usr/lib/python2.4/site-packages/xen/xend/XendDomain.py", line 970, in domain_create
dominfo = XendDomainInfo.create(config)
File "usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 97, in create
vm.start()
File "usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 458, in start
XendTask.log_progress(31, 60, self._initDomain)
File "usr/lib/python2.4/site-packages/xen/xend/XendTask.py", line 209, in log_progress
retval = func(*args, **kwds)
File "usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 2624, in _initDomain
self._createDevices()
File "usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 2219, in _createDevices
devid = self._createDevice(devclass, config)
File "usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 2186, in _createDevice
return self.getDeviceController(deviceClass).createDevice(devConfig)
File "usr/lib/python2.4/site-packages/xen/xend/server/BlktapController.py", line 134, in createDevice
minor, device, control = parseDeviceString(stdout)
File "usr/lib/python2.4/site-packages/xen/xend/server/BlktapController.py", line 39, in parseDeviceString
if device.find('/dev') == -1:
AttributeError: 'file' object has no attribute 'find'
[-- Attachment #3: ocfs2-node0.cfg --]
[-- Type: application/octet-stream, Size: 614 bytes --]
name = "ocfs2-node0"
memory = "384"
disk = [ 'tap:tapdisk:aio:/OVS/seed_pool/ocfs2-sharedroot/ocfs2.img,hda,w!', 'tap:tapdisk:aio:/OVS/seed_pool/ocfs2-sharedroot/swap-node0.img,hdb,w' ]
kernel = "/OVS/seed_pool/ocfs2-sharedroot/vmlinuz-2.6.18-92.1.1.0.1.el5.tmemxen"
ramdisk = "/OVS/seed_pool/ocfs2-sharedroot/initrd-2.6.18-92.1.1.0.1.el5.tmemxen.osr.img"
extra = "root=/dev/hda ip=10.0.0.10:127.0.255.255:::ocfs2-node0:eth0:off raid=noautodetect console=xvc0 loglevel=8"
vif = [ 'mac=00:16:3E:00:10:10', '']
vfb = ["type=vnc,vncunused=1,vnclisten=0.0.0.0"]
vcpus=2
on_reboot = 'restart'
on_crash = 'restart'
[-- Attachment #4: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <Pine.GSO.4.60.0906020756360.23746@cascade.cs.ubc.ca>]
* RE: blktap2: need more than 3 values to unpack
[not found] <Pine.GSO.4.60.0906020756360.23746@cascade.cs.ubc.ca>
@ 2009-06-02 17:33 ` Dan Magenheimer
2009-06-02 22:44 ` Keir Fraser
0 siblings, 1 reply; 7+ messages in thread
From: Dan Magenheimer @ 2009-06-02 17:33 UTC (permalink / raw)
To: Dutch Meyer, Xen-Devel (E-mail)
Thanks. Looks like a partial configuration patch got checked
in for blktap2 (cs 886)? CONFIG_XEN_BLKDEV_TAP2 must be configured
but afaict is not turned on by default (yet?). So a fresh
xen-unstable tip doesn't build the blktap2 driver. See:
http://xenbits.xensource.com/linux-2.6.18-xen.hg?rev/3e01555dd227
(I'm guessing since this was submitted by Isaku that blktap2
shouldn't be the default on ia64?)
Should CONFIG_XEN_BLKDEV_TAP2 be turned on by default, instead
of CONFIG_XEN_BLKDEV_TAP, at least on x86?
I tried modifying
linux-2.6.18-xen.hg/buildconfigs/linux-defconfig_xen0_x86_32
(and also
linux-2.6.18-xen.hg/buildconfigs/linux-defconfig_xen_x86_32)
followed by:
KERNELS=linux-2.6-xen0 make linux-2.6-xen-config CONFIGMODE=oldconfig
(I don't need or want to go through a manual config process)
but BLKDEV_TAP is always selected, not BLKDEV_TAP2.
Finally, I resorted to manually changing
linux-2.6.18-xen.hg/drivers/xen/Kconfig
and this succeeds in turning it on, but it just reverses the
above checked-in patch, so I suspect that's not the right
answer either.
> -----Original Message-----
> From: Dutch Meyer [mailto:dmeyer@cs.ubc.ca]
> Sent: Tuesday, June 02, 2009 9:05 AM
> To: Dan Magenheimer
> Subject: RE: [Xen-devel] blktap2: need more than 3 values to unpack
>
>
> I think that you don't have the blktap2 driver loaded in
> dom0. A clean
> build/install of the dom0 kernel image should sort you out. If
> drivers/xen/blktap2 is compiled in it should be setting up
> these paths.
>
> Let me know if that fixes things and I'll make python spit out more
> meaningful errors, otherwise we can try to figure out the
> blktap2 kernel
> code isn't working.
>
> --Dutch
>
> On Tue, 2 Jun 2009, Dan Magenheimer wrote:
>
> > It replies with "didn't find blktap-control in /proc/misc"
> >
> > If that fails, perhaps the path doesn't exist, but I looked
> > and /sys/class/blktap2 doesn't exist.
> >
> >> -----Original Message-----
> >> From: Dutch Meyer [mailto:dmeyer@cs.ubc.ca]
> >> Sent: Monday, June 01, 2009 10:37 PM
> >> To: Dan Magenheimer
> >> Subject: RE: [Xen-devel] blktap2: need more than 3 values to unpack
> >>
> >>
> >> Can you try this from the command line:
> >>
> >> tapdisk2 -n aio:/pathto/file.img
> >>
> >> If successful, this will create your aio device and print a
> >> /dev device
> >> associated with it.
> >>
> >> In that case you'll then be able to remove it with:
> >>
> >> echo 1 > /sys/class/blktap2/<disk>/remove
> >>
> >> Where <disk> will be obvious from the output of the
> tapdisk2 command.
> >>
> >> However, I expect that this will fail.
> >>
> >> --Dutch
> >>
> >> On Mon, 1 Jun 2009, Dan Magenheimer wrote:
> >>
> >>>> Then I might be able to help, but I'm not sure how to
> >>>> reproduce it. If
> >>>> you send a log file and config for this latter error I'll
> >>>> take a look.
> >>>
> >>> Here ya go.
> >>>
> >>> Thanks,
> >>> Dan
> >>>
> >>>> -----Original Message-----
> >>>> From: Dutch Meyer [mailto:dmeyer@cs.ubc.ca]
> >>>> Sent: Monday, June 01, 2009 8:32 PM
> >>>> To: Dan Magenheimer
> >>>> Cc: Xen-Devel (E-mail)
> >>>> Subject: Re: [Xen-devel] blktap2: need more than 3
> values to unpack
> >>>>
> >>>>
> >>>> The tap:aio:/pathto/file.img syntax that you're using in your
> >>>> config was
> >>>> changed before blktap2 was introduced.
> >>>> tap:tapdisk:aio:/pathto/file.img is
> >>>> apparently the correct syntax now, though the README didn't
> >>>> get updated to
> >>>> reflect this. Our blktap2 documentation is no better -
> I'll try to
> >>>> remedy that this week.
> >>>>
> >>>>
> >>>> If you're still seeing this error:
> >>>> "Error: 'file' object has no attribute 'find'"
> >>>>
> >>>> Then I might be able to help, but I'm not sure how to
> >>>> reproduce it. If
> >>>> you send a log file and config for this latter error I'll
> >>>> take a look.
> >>>> Yang seems to be reporting the same thing in another thread.
> >>>>
> >>>> --Dutch
> >>>>
> >>>> On Mon, 1 Jun 2009, Dan Magenheimer wrote:
> >>>>
> >>>>> Hmmm... trying blktap2 for the first time, using 19682.
> >>>>> I had thought that the syntax hadn't changed, but I am
> >>>>> getting what appears to be a parsing error on my vbd line.
> >>>>>
> >>>>> "ValueError: need more than 3 values to unpack"
> >>>>>
> >>>>> Thinking maybe that "w!" was the culprit, I changed
> >>>>> it to "w" with no change in result.
> >>>>>
> >>>>> Looking at the python code that generated the error,
> >>>>> I tried to figure out the syntax by experimentation
> >>>>> but without luck. I tried:
> >>>>>
> >>>>> tap:tapdisk:aio:/pathto/file.img
> >>>>>
> >>>>> but got "Error: 'file' object has no attribute 'find'"
> >>>>>
> >>>>> To see if I could use the old blktap, I tried
> >>>>>
> >>>>> tap:tapdisk:ioemu:/pathto/file.img
> >>>>>
> >>>>> but got the dreaded "Error: Device 768 (tap) could not be
> >>>>> connected. Hotplug scripts not working"
> >>>>>
> >>>>> Am I missing something in the syntax for blktap2?
> >>>>> Is there a how-to or readme I didn't find? Or
> >>>>> is there some required dependency I don't know about
> >>>>> that is missing?
> >>>>>
> >>>>> I thought maybe I had a bad install, so rebuilt and
> >>>>> reinstalled with the same result.
> >>>>>
> >>>>> xend.log and config file attached.
> >>>>>
> >>>>> Thanks,
> >>>>> Dan
> >>>>>
> >>>>> P.S. I am trying blktap2 because both blktap and
> >>>>> file-backed fail. Blktap sometimes reads garbage
> >>>>> from the file and
> >>>>
> >>>> _______________________________________________
> >>>> Xen-devel mailing list
> >>>> Xen-devel@lists.xensource.com
> >>>> http://lists.xensource.com/xen-devel
> >>>>
> >>
> >
>
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: blktap2: need more than 3 values to unpack
2009-06-02 17:33 ` Dan Magenheimer
@ 2009-06-02 22:44 ` Keir Fraser
2009-06-02 23:49 ` Dan Magenheimer
0 siblings, 1 reply; 7+ messages in thread
From: Keir Fraser @ 2009-06-02 22:44 UTC (permalink / raw)
To: Dan Magenheimer, Dutch Meyer, Xen-Devel (E-mail)
Probably you had an old .config hanging around in your build tree somewhere.
c/s 889 should fix this for a fresh build.
-- Keir
On 02/06/2009 18:33, "Dan Magenheimer" <dan.magenheimer@oracle.com> wrote:
> Thanks. Looks like a partial configuration patch got checked
> in for blktap2 (cs 886)? CONFIG_XEN_BLKDEV_TAP2 must be configured
> but afaict is not turned on by default (yet?). So a fresh
> xen-unstable tip doesn't build the blktap2 driver. See:
>
> http://xenbits.xensource.com/linux-2.6.18-xen.hg?rev/3e01555dd227
>
> (I'm guessing since this was submitted by Isaku that blktap2
> shouldn't be the default on ia64?)
>
> Should CONFIG_XEN_BLKDEV_TAP2 be turned on by default, instead
> of CONFIG_XEN_BLKDEV_TAP, at least on x86?
>
> I tried modifying
>
> linux-2.6.18-xen.hg/buildconfigs/linux-defconfig_xen0_x86_32
>
> (and also
>
> linux-2.6.18-xen.hg/buildconfigs/linux-defconfig_xen_x86_32)
>
> followed by:
>
> KERNELS=linux-2.6-xen0 make linux-2.6-xen-config CONFIGMODE=oldconfig
>
> (I don't need or want to go through a manual config process)
>
> but BLKDEV_TAP is always selected, not BLKDEV_TAP2.
>
> Finally, I resorted to manually changing
>
> linux-2.6.18-xen.hg/drivers/xen/Kconfig
>
> and this succeeds in turning it on, but it just reverses the
> above checked-in patch, so I suspect that's not the right
> answer either.
>
>> -----Original Message-----
>> From: Dutch Meyer [mailto:dmeyer@cs.ubc.ca]
>> Sent: Tuesday, June 02, 2009 9:05 AM
>> To: Dan Magenheimer
>> Subject: RE: [Xen-devel] blktap2: need more than 3 values to unpack
>>
>>
>> I think that you don't have the blktap2 driver loaded in
>> dom0. A clean
>> build/install of the dom0 kernel image should sort you out. If
>> drivers/xen/blktap2 is compiled in it should be setting up
>> these paths.
>>
>> Let me know if that fixes things and I'll make python spit out more
>> meaningful errors, otherwise we can try to figure out the
>> blktap2 kernel
>> code isn't working.
>>
>> --Dutch
>>
>> On Tue, 2 Jun 2009, Dan Magenheimer wrote:
>>
>>> It replies with "didn't find blktap-control in /proc/misc"
>>>
>>> If that fails, perhaps the path doesn't exist, but I looked
>>> and /sys/class/blktap2 doesn't exist.
>>>
>>>> -----Original Message-----
>>>> From: Dutch Meyer [mailto:dmeyer@cs.ubc.ca]
>>>> Sent: Monday, June 01, 2009 10:37 PM
>>>> To: Dan Magenheimer
>>>> Subject: RE: [Xen-devel] blktap2: need more than 3 values to unpack
>>>>
>>>>
>>>> Can you try this from the command line:
>>>>
>>>> tapdisk2 -n aio:/pathto/file.img
>>>>
>>>> If successful, this will create your aio device and print a
>>>> /dev device
>>>> associated with it.
>>>>
>>>> In that case you'll then be able to remove it with:
>>>>
>>>> echo 1 > /sys/class/blktap2/<disk>/remove
>>>>
>>>> Where <disk> will be obvious from the output of the
>> tapdisk2 command.
>>>>
>>>> However, I expect that this will fail.
>>>>
>>>> --Dutch
>>>>
>>>> On Mon, 1 Jun 2009, Dan Magenheimer wrote:
>>>>
>>>>>> Then I might be able to help, but I'm not sure how to
>>>>>> reproduce it. If
>>>>>> you send a log file and config for this latter error I'll
>>>>>> take a look.
>>>>>
>>>>> Here ya go.
>>>>>
>>>>> Thanks,
>>>>> Dan
>>>>>
>>>>>> -----Original Message-----
>>>>>> From: Dutch Meyer [mailto:dmeyer@cs.ubc.ca]
>>>>>> Sent: Monday, June 01, 2009 8:32 PM
>>>>>> To: Dan Magenheimer
>>>>>> Cc: Xen-Devel (E-mail)
>>>>>> Subject: Re: [Xen-devel] blktap2: need more than 3
>> values to unpack
>>>>>>
>>>>>>
>>>>>> The tap:aio:/pathto/file.img syntax that you're using in your
>>>>>> config was
>>>>>> changed before blktap2 was introduced.
>>>>>> tap:tapdisk:aio:/pathto/file.img is
>>>>>> apparently the correct syntax now, though the README didn't
>>>>>> get updated to
>>>>>> reflect this. Our blktap2 documentation is no better -
>> I'll try to
>>>>>> remedy that this week.
>>>>>>
>>>>>>
>>>>>> If you're still seeing this error:
>>>>>> "Error: 'file' object has no attribute 'find'"
>>>>>>
>>>>>> Then I might be able to help, but I'm not sure how to
>>>>>> reproduce it. If
>>>>>> you send a log file and config for this latter error I'll
>>>>>> take a look.
>>>>>> Yang seems to be reporting the same thing in another thread.
>>>>>>
>>>>>> --Dutch
>>>>>>
>>>>>> On Mon, 1 Jun 2009, Dan Magenheimer wrote:
>>>>>>
>>>>>>> Hmmm... trying blktap2 for the first time, using 19682.
>>>>>>> I had thought that the syntax hadn't changed, but I am
>>>>>>> getting what appears to be a parsing error on my vbd line.
>>>>>>>
>>>>>>> "ValueError: need more than 3 values to unpack"
>>>>>>>
>>>>>>> Thinking maybe that "w!" was the culprit, I changed
>>>>>>> it to "w" with no change in result.
>>>>>>>
>>>>>>> Looking at the python code that generated the error,
>>>>>>> I tried to figure out the syntax by experimentation
>>>>>>> but without luck. I tried:
>>>>>>>
>>>>>>> tap:tapdisk:aio:/pathto/file.img
>>>>>>>
>>>>>>> but got "Error: 'file' object has no attribute 'find'"
>>>>>>>
>>>>>>> To see if I could use the old blktap, I tried
>>>>>>>
>>>>>>> tap:tapdisk:ioemu:/pathto/file.img
>>>>>>>
>>>>>>> but got the dreaded "Error: Device 768 (tap) could not be
>>>>>>> connected. Hotplug scripts not working"
>>>>>>>
>>>>>>> Am I missing something in the syntax for blktap2?
>>>>>>> Is there a how-to or readme I didn't find? Or
>>>>>>> is there some required dependency I don't know about
>>>>>>> that is missing?
>>>>>>>
>>>>>>> I thought maybe I had a bad install, so rebuilt and
>>>>>>> reinstalled with the same result.
>>>>>>>
>>>>>>> xend.log and config file attached.
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Dan
>>>>>>>
>>>>>>> P.S. I am trying blktap2 because both blktap and
>>>>>>> file-backed fail. Blktap sometimes reads garbage
>>>>>>> from the file and
>>>>>>
>>>>>> _______________________________________________
>>>>>> Xen-devel mailing list
>>>>>> Xen-devel@lists.xensource.com
>>>>>> http://lists.xensource.com/xen-devel
>>>>>>
>>>>
>>>
>>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: blktap2: need more than 3 values to unpack
2009-06-02 22:44 ` Keir Fraser
@ 2009-06-02 23:49 ` Dan Magenheimer
2009-06-03 4:45 ` Dan Magenheimer
0 siblings, 1 reply; 7+ messages in thread
From: Dan Magenheimer @ 2009-06-02 23:49 UTC (permalink / raw)
To: Keir Fraser, Dutch Meyer, Xen-Devel (E-mail)
Thanks. It is indeed a pilot error on my part but a bit
more bizarre. I apparently have a linux-2.6-xen.hg directory
as both a sister and a child to xen-unstable.hg. In this
case the build apparently chooses the child. I was
looking at and modifying the un-updated child so
blktap2 wasn't even present yet. Removing the child
causes the sibling to build. BUT! Now dom0 is
crashing early on during boot. (This is an Intel
Weybridge box.) I'll look into this further tomorrow.
ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata2.00: ATAPI, max UDMA/100
ata2.00: configured for UDMA/100
scsi2 : ahci
ata3: SATA link down (SStatus 0 SControl 300)
scsi3 : ahci
ata4: SATA link down (SStatus 0 SControl 300)
Vendor: ATA Model: ST3320620AS Rev: 3.AA
Type: Direct-Access ANSI SCSI revision: 05
ata1: EH pending after completion, repeating EH (cnt=4)
Vendor: LITE-ON Model: DVDRW LH-20A1S Rev: 9L03
Type: CD-ROM ANSI SCSI revision: 05
(XEN) PCI add device 00:1f.5
ata_piix 0000:00:1f.5: MAP [ P0 P2 P1 P3 ]
ACPI: PCI Interrupt 0000:00:1f.5[B] -> GSI 19 (level, low) -> IRQ 16
ata5: SATA max UDMA/133 cmd 0x0 ctl 0x2 bmdma 0x0 irq 16
ata6: SATA max UDMA/133 cmd 0x0 ctl 0x2 bmdma 0x0 irq 16
scsi4 : ata_piix
scsi5 : ata_piix
device-mapper: ioctl: 4.7.0-ioctl (2006-06-24) initialised: dm-devel@redhat.com
Kernel panic - not syncing: Attempted to kill init!
(XEN) Domain 0 crashed: rebooting machine in 5 seconds.
> -----Original Message-----
> From: Keir Fraser [mailto:keir.fraser@eu.citrix.com]
> Sent: Tuesday, June 02, 2009 4:45 PM
> To: Dan Magenheimer; Dutch Meyer; Xen-Devel (E-mail)
> Subject: Re: [Xen-devel] blktap2: need more than 3 values to unpack
>
>
> Probably you had an old .config hanging around in your build
> tree somewhere.
> c/s 889 should fix this for a fresh build.
>
> -- Keir
>
> On 02/06/2009 18:33, "Dan Magenheimer"
> <dan.magenheimer@oracle.com> wrote:
>
> > Thanks. Looks like a partial configuration patch got checked
> > in for blktap2 (cs 886)? CONFIG_XEN_BLKDEV_TAP2 must be configured
> > but afaict is not turned on by default (yet?). So a fresh
> > xen-unstable tip doesn't build the blktap2 driver. See:
> >
> > http://xenbits.xensource.com/linux-2.6.18-xen.hg?rev/3e01555dd227
> >
> > (I'm guessing since this was submitted by Isaku that blktap2
> > shouldn't be the default on ia64?)
> >
> > Should CONFIG_XEN_BLKDEV_TAP2 be turned on by default, instead
> > of CONFIG_XEN_BLKDEV_TAP, at least on x86?
> >
> > I tried modifying
> >
> > linux-2.6.18-xen.hg/buildconfigs/linux-defconfig_xen0_x86_32
> >
> > (and also
> >
> > linux-2.6.18-xen.hg/buildconfigs/linux-defconfig_xen_x86_32)
> >
> > followed by:
> >
> > KERNELS=linux-2.6-xen0 make linux-2.6-xen-config
> CONFIGMODE=oldconfig
> >
> > (I don't need or want to go through a manual config process)
> >
> > but BLKDEV_TAP is always selected, not BLKDEV_TAP2.
> >
> > Finally, I resorted to manually changing
> >
> > linux-2.6.18-xen.hg/drivers/xen/Kconfig
> >
> > and this succeeds in turning it on, but it just reverses the
> > above checked-in patch, so I suspect that's not the right
> > answer either.
> >
> >> -----Original Message-----
> >> From: Dutch Meyer [mailto:dmeyer@cs.ubc.ca]
> >> Sent: Tuesday, June 02, 2009 9:05 AM
> >> To: Dan Magenheimer
> >> Subject: RE: [Xen-devel] blktap2: need more than 3 values to unpack
> >>
> >>
> >> I think that you don't have the blktap2 driver loaded in
> >> dom0. A clean
> >> build/install of the dom0 kernel image should sort you out. If
> >> drivers/xen/blktap2 is compiled in it should be setting up
> >> these paths.
> >>
> >> Let me know if that fixes things and I'll make python spit out more
> >> meaningful errors, otherwise we can try to figure out the
> >> blktap2 kernel
> >> code isn't working.
> >>
> >> --Dutch
> >>
> >> On Tue, 2 Jun 2009, Dan Magenheimer wrote:
> >>
> >>> It replies with "didn't find blktap-control in /proc/misc"
> >>>
> >>> If that fails, perhaps the path doesn't exist, but I looked
> >>> and /sys/class/blktap2 doesn't exist.
> >>>
> >>>> -----Original Message-----
> >>>> From: Dutch Meyer [mailto:dmeyer@cs.ubc.ca]
> >>>> Sent: Monday, June 01, 2009 10:37 PM
> >>>> To: Dan Magenheimer
> >>>> Subject: RE: [Xen-devel] blktap2: need more than 3
> values to unpack
> >>>>
> >>>>
> >>>> Can you try this from the command line:
> >>>>
> >>>> tapdisk2 -n aio:/pathto/file.img
> >>>>
> >>>> If successful, this will create your aio device and print a
> >>>> /dev device
> >>>> associated with it.
> >>>>
> >>>> In that case you'll then be able to remove it with:
> >>>>
> >>>> echo 1 > /sys/class/blktap2/<disk>/remove
> >>>>
> >>>> Where <disk> will be obvious from the output of the
> >> tapdisk2 command.
> >>>>
> >>>> However, I expect that this will fail.
> >>>>
> >>>> --Dutch
> >>>>
> >>>> On Mon, 1 Jun 2009, Dan Magenheimer wrote:
> >>>>
> >>>>>> Then I might be able to help, but I'm not sure how to
> >>>>>> reproduce it. If
> >>>>>> you send a log file and config for this latter error I'll
> >>>>>> take a look.
> >>>>>
> >>>>> Here ya go.
> >>>>>
> >>>>> Thanks,
> >>>>> Dan
> >>>>>
> >>>>>> -----Original Message-----
> >>>>>> From: Dutch Meyer [mailto:dmeyer@cs.ubc.ca]
> >>>>>> Sent: Monday, June 01, 2009 8:32 PM
> >>>>>> To: Dan Magenheimer
> >>>>>> Cc: Xen-Devel (E-mail)
> >>>>>> Subject: Re: [Xen-devel] blktap2: need more than 3
> >> values to unpack
> >>>>>>
> >>>>>>
> >>>>>> The tap:aio:/pathto/file.img syntax that you're using in your
> >>>>>> config was
> >>>>>> changed before blktap2 was introduced.
> >>>>>> tap:tapdisk:aio:/pathto/file.img is
> >>>>>> apparently the correct syntax now, though the README didn't
> >>>>>> get updated to
> >>>>>> reflect this. Our blktap2 documentation is no better -
> >> I'll try to
> >>>>>> remedy that this week.
> >>>>>>
> >>>>>>
> >>>>>> If you're still seeing this error:
> >>>>>> "Error: 'file' object has no attribute 'find'"
> >>>>>>
> >>>>>> Then I might be able to help, but I'm not sure how to
> >>>>>> reproduce it. If
> >>>>>> you send a log file and config for this latter error I'll
> >>>>>> take a look.
> >>>>>> Yang seems to be reporting the same thing in another thread.
> >>>>>>
> >>>>>> --Dutch
> >>>>>>
> >>>>>> On Mon, 1 Jun 2009, Dan Magenheimer wrote:
> >>>>>>
> >>>>>>> Hmmm... trying blktap2 for the first time, using 19682.
> >>>>>>> I had thought that the syntax hadn't changed, but I am
> >>>>>>> getting what appears to be a parsing error on my vbd line.
> >>>>>>>
> >>>>>>> "ValueError: need more than 3 values to unpack"
> >>>>>>>
> >>>>>>> Thinking maybe that "w!" was the culprit, I changed
> >>>>>>> it to "w" with no change in result.
> >>>>>>>
> >>>>>>> Looking at the python code that generated the error,
> >>>>>>> I tried to figure out the syntax by experimentation
> >>>>>>> but without luck. I tried:
> >>>>>>>
> >>>>>>> tap:tapdisk:aio:/pathto/file.img
> >>>>>>>
> >>>>>>> but got "Error: 'file' object has no attribute 'find'"
> >>>>>>>
> >>>>>>> To see if I could use the old blktap, I tried
> >>>>>>>
> >>>>>>> tap:tapdisk:ioemu:/pathto/file.img
> >>>>>>>
> >>>>>>> but got the dreaded "Error: Device 768 (tap) could not be
> >>>>>>> connected. Hotplug scripts not working"
> >>>>>>>
> >>>>>>> Am I missing something in the syntax for blktap2?
> >>>>>>> Is there a how-to or readme I didn't find? Or
> >>>>>>> is there some required dependency I don't know about
> >>>>>>> that is missing?
> >>>>>>>
> >>>>>>> I thought maybe I had a bad install, so rebuilt and
> >>>>>>> reinstalled with the same result.
> >>>>>>>
> >>>>>>> xend.log and config file attached.
> >>>>>>>
> >>>>>>> Thanks,
> >>>>>>> Dan
> >>>>>>>
> >>>>>>> P.S. I am trying blktap2 because both blktap and
> >>>>>>> file-backed fail. Blktap sometimes reads garbage
> >>>>>>> from the file and
> >>>>>>
> >>>>>> _______________________________________________
> >>>>>> Xen-devel mailing list
> >>>>>> Xen-devel@lists.xensource.com
> >>>>>> http://lists.xensource.com/xen-devel
> >>>>>>
> >>>>
> >>>
> >>
> >
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@lists.xensource.com
> > http://lists.xensource.com/xen-devel
>
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: blktap2: need more than 3 values to unpack
2009-06-02 23:49 ` Dan Magenheimer
@ 2009-06-03 4:45 ` Dan Magenheimer
0 siblings, 0 replies; 7+ messages in thread
From: Dan Magenheimer @ 2009-06-03 4:45 UTC (permalink / raw)
To: dan.magenheimer, Keir Fraser, Dutch Meyer, Xen-Devel (E-mail)
Followup: my dom0 boots failed with 888, boots fine with 876,
then to ensure no pilot error, I rebuilt 888 again and it
failed again.
> -----Original Message-----
> From: Dan Magenheimer
> Sent: Tuesday, June 02, 2009 5:50 PM
> To: Keir Fraser; Dutch Meyer; Xen-Devel (E-mail)
> Subject: RE: [Xen-devel] blktap2: need more than 3 values to unpack
>
>
> Thanks. It is indeed a pilot error on my part but a bit
> more bizarre. I apparently have a linux-2.6-xen.hg directory
> as both a sister and a child to xen-unstable.hg. In this
> case the build apparently chooses the child. I was
> looking at and modifying the un-updated child so
> blktap2 wasn't even present yet. Removing the child
> causes the sibling to build. BUT! Now dom0 is
> crashing early on during boot. (This is an Intel
> Weybridge box.) I'll look into this further tomorrow.
>
> ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
> ata2.00: ATAPI, max UDMA/100
> ata2.00: configured for UDMA/100
> scsi2 : ahci
> ata3: SATA link down (SStatus 0 SControl 300)
> scsi3 : ahci
> ata4: SATA link down (SStatus 0 SControl 300)
> Vendor: ATA Model: ST3320620AS Rev: 3.AA
> Type: Direct-Access ANSI SCSI revision: 05
> ata1: EH pending after completion, repeating EH (cnt=4)
> Vendor: LITE-ON Model: DVDRW LH-20A1S Rev: 9L03
> Type: CD-ROM ANSI SCSI revision: 05
> (XEN) PCI add device 00:1f.5
> ata_piix 0000:00:1f.5: MAP [ P0 P2 P1 P3 ]
> ACPI: PCI Interrupt 0000:00:1f.5[B] -> GSI 19 (level, low) -> IRQ 16
> ata5: SATA max UDMA/133 cmd 0x0 ctl 0x2 bmdma 0x0 irq 16
> ata6: SATA max UDMA/133 cmd 0x0 ctl 0x2 bmdma 0x0 irq 16
> scsi4 : ata_piix
> scsi5 : ata_piix
> device-mapper: ioctl: 4.7.0-ioctl (2006-06-24) initialised:
> dm-devel@redhat.com
> Kernel panic - not syncing: Attempted to kill init!
> (XEN) Domain 0 crashed: rebooting machine in 5 seconds.
>
> > -----Original Message-----
> > From: Keir Fraser [mailto:keir.fraser@eu.citrix.com]
> > Sent: Tuesday, June 02, 2009 4:45 PM
> > To: Dan Magenheimer; Dutch Meyer; Xen-Devel (E-mail)
> > Subject: Re: [Xen-devel] blktap2: need more than 3 values to unpack
> >
> >
> > Probably you had an old .config hanging around in your build
> > tree somewhere.
> > c/s 889 should fix this for a fresh build.
> >
> > -- Keir
> >
> > On 02/06/2009 18:33, "Dan Magenheimer"
> > <dan.magenheimer@oracle.com> wrote:
> >
> > > Thanks. Looks like a partial configuration patch got checked
> > > in for blktap2 (cs 886)? CONFIG_XEN_BLKDEV_TAP2 must be
> configured
> > > but afaict is not turned on by default (yet?). So a fresh
> > > xen-unstable tip doesn't build the blktap2 driver. See:
> > >
> > > http://xenbits.xensource.com/linux-2.6.18-xen.hg?rev/3e01555dd227
> > >
> > > (I'm guessing since this was submitted by Isaku that blktap2
> > > shouldn't be the default on ia64?)
> > >
> > > Should CONFIG_XEN_BLKDEV_TAP2 be turned on by default, instead
> > > of CONFIG_XEN_BLKDEV_TAP, at least on x86?
> > >
> > > I tried modifying
> > >
> > > linux-2.6.18-xen.hg/buildconfigs/linux-defconfig_xen0_x86_32
> > >
> > > (and also
> > >
> > > linux-2.6.18-xen.hg/buildconfigs/linux-defconfig_xen_x86_32)
> > >
> > > followed by:
> > >
> > > KERNELS=linux-2.6-xen0 make linux-2.6-xen-config
> > CONFIGMODE=oldconfig
> > >
> > > (I don't need or want to go through a manual config process)
> > >
> > > but BLKDEV_TAP is always selected, not BLKDEV_TAP2.
> > >
> > > Finally, I resorted to manually changing
> > >
> > > linux-2.6.18-xen.hg/drivers/xen/Kconfig
> > >
> > > and this succeeds in turning it on, but it just reverses the
> > > above checked-in patch, so I suspect that's not the right
> > > answer either.
> > >
> > >> -----Original Message-----
> > >> From: Dutch Meyer [mailto:dmeyer@cs.ubc.ca]
> > >> Sent: Tuesday, June 02, 2009 9:05 AM
> > >> To: Dan Magenheimer
> > >> Subject: RE: [Xen-devel] blktap2: need more than 3
> values to unpack
> > >>
> > >>
> > >> I think that you don't have the blktap2 driver loaded in
> > >> dom0. A clean
> > >> build/install of the dom0 kernel image should sort you out. If
> > >> drivers/xen/blktap2 is compiled in it should be setting up
> > >> these paths.
> > >>
> > >> Let me know if that fixes things and I'll make python
> spit out more
> > >> meaningful errors, otherwise we can try to figure out the
> > >> blktap2 kernel
> > >> code isn't working.
> > >>
> > >> --Dutch
> > >>
> > >> On Tue, 2 Jun 2009, Dan Magenheimer wrote:
> > >>
> > >>> It replies with "didn't find blktap-control in /proc/misc"
> > >>>
> > >>> If that fails, perhaps the path doesn't exist, but I looked
> > >>> and /sys/class/blktap2 doesn't exist.
> > >>>
> > >>>> -----Original Message-----
> > >>>> From: Dutch Meyer [mailto:dmeyer@cs.ubc.ca]
> > >>>> Sent: Monday, June 01, 2009 10:37 PM
> > >>>> To: Dan Magenheimer
> > >>>> Subject: RE: [Xen-devel] blktap2: need more than 3
> > values to unpack
> > >>>>
> > >>>>
> > >>>> Can you try this from the command line:
> > >>>>
> > >>>> tapdisk2 -n aio:/pathto/file.img
> > >>>>
> > >>>> If successful, this will create your aio device and print a
> > >>>> /dev device
> > >>>> associated with it.
> > >>>>
> > >>>> In that case you'll then be able to remove it with:
> > >>>>
> > >>>> echo 1 > /sys/class/blktap2/<disk>/remove
> > >>>>
> > >>>> Where <disk> will be obvious from the output of the
> > >> tapdisk2 command.
> > >>>>
> > >>>> However, I expect that this will fail.
> > >>>>
> > >>>> --Dutch
> > >>>>
> > >>>> On Mon, 1 Jun 2009, Dan Magenheimer wrote:
> > >>>>
> > >>>>>> Then I might be able to help, but I'm not sure how to
> > >>>>>> reproduce it. If
> > >>>>>> you send a log file and config for this latter error I'll
> > >>>>>> take a look.
> > >>>>>
> > >>>>> Here ya go.
> > >>>>>
> > >>>>> Thanks,
> > >>>>> Dan
> > >>>>>
> > >>>>>> -----Original Message-----
> > >>>>>> From: Dutch Meyer [mailto:dmeyer@cs.ubc.ca]
> > >>>>>> Sent: Monday, June 01, 2009 8:32 PM
> > >>>>>> To: Dan Magenheimer
> > >>>>>> Cc: Xen-Devel (E-mail)
> > >>>>>> Subject: Re: [Xen-devel] blktap2: need more than 3
> > >> values to unpack
> > >>>>>>
> > >>>>>>
> > >>>>>> The tap:aio:/pathto/file.img syntax that you're using in your
> > >>>>>> config was
> > >>>>>> changed before blktap2 was introduced.
> > >>>>>> tap:tapdisk:aio:/pathto/file.img is
> > >>>>>> apparently the correct syntax now, though the README didn't
> > >>>>>> get updated to
> > >>>>>> reflect this. Our blktap2 documentation is no better -
> > >> I'll try to
> > >>>>>> remedy that this week.
> > >>>>>>
> > >>>>>>
> > >>>>>> If you're still seeing this error:
> > >>>>>> "Error: 'file' object has no attribute 'find'"
> > >>>>>>
> > >>>>>> Then I might be able to help, but I'm not sure how to
> > >>>>>> reproduce it. If
> > >>>>>> you send a log file and config for this latter error I'll
> > >>>>>> take a look.
> > >>>>>> Yang seems to be reporting the same thing in another thread.
> > >>>>>>
> > >>>>>> --Dutch
> > >>>>>>
> > >>>>>> On Mon, 1 Jun 2009, Dan Magenheimer wrote:
> > >>>>>>
> > >>>>>>> Hmmm... trying blktap2 for the first time, using 19682.
> > >>>>>>> I had thought that the syntax hadn't changed, but I am
> > >>>>>>> getting what appears to be a parsing error on my vbd line.
> > >>>>>>>
> > >>>>>>> "ValueError: need more than 3 values to unpack"
> > >>>>>>>
> > >>>>>>> Thinking maybe that "w!" was the culprit, I changed
> > >>>>>>> it to "w" with no change in result.
> > >>>>>>>
> > >>>>>>> Looking at the python code that generated the error,
> > >>>>>>> I tried to figure out the syntax by experimentation
> > >>>>>>> but without luck. I tried:
> > >>>>>>>
> > >>>>>>> tap:tapdisk:aio:/pathto/file.img
> > >>>>>>>
> > >>>>>>> but got "Error: 'file' object has no attribute 'find'"
> > >>>>>>>
> > >>>>>>> To see if I could use the old blktap, I tried
> > >>>>>>>
> > >>>>>>> tap:tapdisk:ioemu:/pathto/file.img
> > >>>>>>>
> > >>>>>>> but got the dreaded "Error: Device 768 (tap) could not be
> > >>>>>>> connected. Hotplug scripts not working"
> > >>>>>>>
> > >>>>>>> Am I missing something in the syntax for blktap2?
> > >>>>>>> Is there a how-to or readme I didn't find? Or
> > >>>>>>> is there some required dependency I don't know about
> > >>>>>>> that is missing?
> > >>>>>>>
> > >>>>>>> I thought maybe I had a bad install, so rebuilt and
> > >>>>>>> reinstalled with the same result.
> > >>>>>>>
> > >>>>>>> xend.log and config file attached.
> > >>>>>>>
> > >>>>>>> Thanks,
> > >>>>>>> Dan
> > >>>>>>>
> > >>>>>>> P.S. I am trying blktap2 because both blktap and
> > >>>>>>> file-backed fail. Blktap sometimes reads garbage
> > >>>>>>> from the file and
> > >>>>>>
> > >>>>>> _______________________________________________
> > >>>>>> Xen-devel mailing list
> > >>>>>> Xen-devel@lists.xensource.com
> > >>>>>> http://lists.xensource.com/xen-devel
> > >>>>>>
> > >>>>
> > >>>
> > >>
> > >
> > > _______________________________________________
> > > Xen-devel mailing list
> > > Xen-devel@lists.xensource.com
> > > http://lists.xensource.com/xen-devel
> >
> >
> >
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-06-03 4:45 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-01 22:51 blktap2: need more than 3 values to unpack Dan Magenheimer
2009-06-02 2:31 ` Dutch Meyer
2009-06-02 3:40 ` Dan Magenheimer
[not found] <Pine.GSO.4.60.0906020756360.23746@cascade.cs.ubc.ca>
2009-06-02 17:33 ` Dan Magenheimer
2009-06-02 22:44 ` Keir Fraser
2009-06-02 23:49 ` Dan Magenheimer
2009-06-03 4:45 ` Dan Magenheimer
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.