[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Xen Starting DomainU:Error: Device 0 (vif) could not be connected. Hotplug scripts not working


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: Sanjay Upadhyay <glowfriend@xxxxxxxxx>
  • Date: Sat, 21 Jan 2006 11:00:32 +0530
  • Delivery-date: Sat, 21 Jan 2006 05:38:46 +0000
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=DExo9+ak2tKcFzYy16+6SSAf+yxyuTU8kQIdauuvNvZkBurQL71vS63zlILLpUNSEJ4FigpMNwaFt3NIjJBW3LYXMiICRqy3I6j0mc5bUo2r3T/rRGeSjGqrq9YXGK5Eb+5e8frj60qWGmQ76rK/d+i2KnMoOvLds3NLhutcCJY=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

try removing the 'mac part'

On 1/21/06, Coral Lin <lin.coral@xxxxxxxxx> wrote:
> Yes,
> but the xen-br0 is up
> xen-br0   Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:679 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:84076 (82.1 Kb)  TX bytes:0 (0.0 b)
> and in my config file vif is like:
> vif = [ 'mac=aa:00:00:00:00:11, bridge=xen-br0' ]
>
> Any hint for this?
>
> Coral
>
>
> On 1/20/06, Sanjay Upadhyay <glowfriend@xxxxxxxxx> wrote:
> > check,
> > ifconfig
> > and see xenbr0 is running.. and you have a line in your domU conf file
> like this
> > vif1 = [ 'bridge=xenbr0' ]
> >
> > you can directly start the network script by running
> > #>/etc/xen/scripts/network-bridge start
> >
> > regards
> >
> > On 1/21/06, Coral Lin <lin.coral@xxxxxxxxx > wrote:
> > > hi,
> > >
> > > I am trying to start a new domainU but got the error:
> > > Error: Device 0 (vif) could not be connected. Hotplug scripts not
> working
> > > I have struggled with it for a long time. I found somebody else report
> this
> > > but can not find a solution.
> > > The xen version is xen-3.0 latest version.
> > > I do not have a initrd.
> > > Domain0 works fine but when I create a new domain, it always gives an
> error
> > > as above.
> > >
> > > Thanks,
> > > Coral
> > > Here is the logs:
> > >
> > > xend.log:
> > > [2006-01-20 21:22:28 xend] INFO (SrvDaemon:268) Xend Daemon started
> > > [2006-01-20 21:22:28 xend] INFO (SrvDaemon:272) Xend changeset: Mon Dec
> 12
> > > 12:47:47 2005 +0100 8270:4ad23e798798.
> > > [2006-01-20 21:22:28 xend.XendDomainInfo ] DEBUG (XendDomainInfo:199)
> > > XendDomainInfo.recreate({'paused': 0, 'cpu_time': 14845729937L,
> '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': 262144,
> 'maxmem_kb':
> > > -4, 'max_vcpu_id': 0, 'crashed': 0, 'running': 1, 'shutdown': 0,
> > > 'online_vcpus': 1, 'blocked': 0})
> > > [2006-01-20 21:22:28 xend.XendDomainInfo] INFO (XendDomainInfo:211)
> > > Recreating domain 0, UUID
> > > 00000000-00000000-00000000-00000000.
> > > [2006-01-20 21:22:28 xend.XendDomainInfo] WARNING (XendDomainInfo:233)
> No vm
> > > path in store for existing domain 0
> > > [2006-01-20 21:22:28 xend.XendDomainInfo] DEBUG (XendDomainInfo:661)
> Storing
> > > VM details: {'ssidref': '0', 'uuid':
> > > '00000000-00000000-00000000-00000000', 'on_reboot':
> > > 'restart', 'on_poweroff': 'destroy', 'name': 'Domain-0', 'vcpus': '1',
> > > 'vcpu_avail': '1', 'memory': '256', 'on_crash': 'restart', 'maxmem':
> '256'}
> > > [2006-01-20 21:22:28 xend.XendDomainInfo] DEBUG (XendDomainInfo:686)
> Storing
> > > domain details: {'cpu/0/availability': 'online', 'memory/target':
> '262144',
> > > 'name': 'Domain-0', 'console/limit': '1048576', 'vm':
> > > '/vm/00000000-00000000-00000000-00000000', 'domid':
> '0'}
> > > [2006-01-20 21:22:28 xend] DEBUG (XendDomain:151) number of vcpus to use
> is
> > > 0
> > > [2006-01-20 21:22:28 xend] INFO (SrvServer:112) unix
> > > path=/var/lib/xend/xend-socket
> > > [2006-01-20 21:32:24 xend.XendDomainInfo] DEBUG (XendDomainInfo:177)
> > > XendDomainInfo.create(['vm', ['name', 'ExampleDomain'], ['memory',
> '64'],
> > > ['image', ['linux', ['kernel', '/boot/vmlinuz-2.6.12.6-xenU'], ['root',
> > > '/dev/hda1 ro'], ['args', '4'], ['vcpus', '1'], ['vcpus', '1'], ['boot',
> > > 'c'], ['nics', '1']]], ['device', ['vbd', ['uname', 'file:/vm1disk'],
> > > ['dev', 'hda1'], ['mode', 'w']]], ['device', ['vif']]])
> > > [2006-01-20 21:32:24 xend.XendDomainInfo] DEBUG (XendDomainInfo:282)
> > > parseConfig: config is ['vm', ['name', 'ExampleDomain'], ['memory',
> '64'],
> > > ['image', ['linux', ['kernel', '/boot/vmlinuz-2.6.12.6-xenU'], ['root',
> > > '/dev/hda1 ro'], ['args', '4'], ['vcpus', '1'], ['vcpus', '1'], ['boot',
> > > 'c'], ['nics', '1']]], ['device', ['vbd', ['uname', 'file:/vm1disk'],
> > > ['dev', 'hda1'], ['mode', 'w']]], ['device', ['vif']]]
> > > [2006-01-20 21:32:24 xend.XendDomainInfo] DEBUG (XendDomainInfo:374)
> > > parseConfig: result is {'ssidref': None, 'uuid': None, 'on_crash': None,
> > > 'on_reboot': None, 'image': ['linux', ['kernel',
> > > '/boot/vmlinuz-2.6.12.6-xenU '], ['root', '/dev/hda1 ro'], ['args',
> '4'],
> > > ['vcpus', '1'], ['vcpus', '1'], ['boot', 'c'], ['nics', '1']],
> > > 'on_poweroff': None, 'cpus': None, 'name': 'ExampleDomain', 'backend':
> [],
> > > 'vcpus': 1, 'cpu_weight': None, 'vcpu_avail': None, 'memory': 64,
> 'device':
> > > [('vbd', ['vbd', ['uname', 'file:/vm1disk'], ['dev', 'hda1'], ['mode',
> > > 'w']]), ('vif', ['vif'])], 'bootloader': None, 'cpu': None, 'maxmem':
> None}
> > > [2006-01-20 21:32:24 xend.XendDomainInfo] DEBUG (XendDomainInfo:1129)
> > > XendDomainInfo.construct: None 0
> > > [2006-01-20 21:32:24 xend.XendDomainInfo] DEBUG (XendDomainInfo:1161)
> > > XendDomainInfo.initDomain : 1 1.0
> > > [2006-01-20 21:32:24 xend] DEBUG (balloon:84) Balloon: free 746; need
> 65;
> > > done.
> > > [2006-01-20 21:32:24 xend] INFO (image:132) buildDomain os=linux dom=1
> > > vcpus=1
> > > [2006-01-20 21:32:24 xend] DEBUG (image:170) dom            = 1
> > > [2006-01-20 21:32:24 xend] DEBUG (image:171) image          =
> /boot/vmlinuz-
> > > 2.6.12.6-xenU
> > > [2006-01-20 21:32:24 xend] DEBUG (image:172) store_evtchn   = 1
> > > [2006-01-20 21:32:24 xend] DEBUG (image:173) console_evtchn = 2
> > > [2006-01-20 21:32:24 xend] DEBUG (image:174) cmdline        =
> > > root=/dev/hda1 ro 4
> > > [2006-01-20 21:32:24 xend] DEBUG (image:175) ramdisk        =
> > > [2006-01-20 21:32:24 xend] DEBUG (image:176) vcpus          = 1
> > > [2006-01-20 21:32:24 xend] DEBUG (DevController:104) DevController:
> writing
> > > {'virtual-device': '769', 'backend-id': '0', 'state': '1', 'backend':
> > > '/local/domain/0/backend/vbd/1/769'} to
> > > /local/domain/1/device/vbd/769.
> > > [2006-01-20 21:32:24 xend] DEBUG (DevController:106) DevController:
> writing
> > > {'domain': 'ExampleDomain', 'frontend':
> > > '/local/domain/1/device/vbd/769', 'dev': 'hda1',
> 'state':
> > > '1', 'params': '/vm1disk', 'mode': 'w', 'frontend-id': '1', 'type':
> 'file'}
> > > to /local/domain/0/backend/vbd/1/769.
> > > [2006-01-20 21:32:24 xend] DEBUG (DevController:104) DevController:
> writing
> > > {'backend-id': '0', 'mac': '00:16:3e:5c:e8:d2', 'handle': '0', 'state':
> '1',
> > > 'backend': '/local/domain/0/backend/vif/1/0'} to
> > > /local/domain/1/device/vif/0.
> > > [2006-01-20 21:32:24 xend] DEBUG (DevController:106) DevController:
> writing
> > > {'mac': '00:16:3e:5c:e8:d2', 'state': '1', 'handle': '0', 'script':
> > > '/etc/xen/scripts/vif-bridge', 'frontend-id': '1', 'domain':
> > > 'ExampleDomain', 'frontend': '/local/domain/1/device/vif/0'} to
> > > /local/domain/0/backend/vif/1/0.
> > > [2006-01-20 21:32:24 xend.XendDomainInfo] DEBUG (XendDomainInfo:661)
> Storing
> > > VM details: {'ssidref': '0', 'uuid':
> > > 'd9c0bec0-a35a57b1-10db3201-48a96a5e', 'on_reboot':
> > > 'restart', 'start_time': '1137814344.99', 'on_poweroff': 'destroy',
> 'name':
> > > 'ExampleDomain', 'vcpus': '1', 'vcpu_avail': '1', 'memory': '64',
> > > 'on_crash': 'restart', 'image': "(linux (kernel /boot/vmlinuz-
> > > 2.6.12.6-xenU) (root '/dev/hda1 ro') (args 4) (vcpus 1) (vcpus 1) (boot
> c)
> > > (nics 1))", 'maxmem': '64'}
> > > [2006-01-20 21:32:24 xend.XendDomainInfo] DEBUG (XendDomainInfo:686)
> Storing
> > > domain details: {'console/ring-ref': '57803', 'console/port': '2',
> 'name':
> > > 'ExampleDomain', 'console/limit': '1048576', 'vm':
> > > '/vm/d9c0bec0-a35a57b1-10db3201-48a96a5e', 'domid':
> '1',
> > > 'cpu/0/availability': 'online', 'memory/target': '65536',
> 'store/ring-ref':
> > > '57804', 'store/port': '1'}
> > > [2006-01-20 21:32:25 xend] DEBUG (DevController:133) Waiting for devices
> > > vif.
> > > [2006-01-20 21:32:25 xend] DEBUG (DevController:139) Waiting for 0.
> > > [2006-01-20 21:32:25 xend] DEBUG (DevController:409)
> hotplugStatusCallback
> > > /local/domain/0/backend/vif/1/0/hotplug-status.
> > > [2006-01-20 21:32:35 xend] ERROR (SrvBase:87) Request wait_for_devices
> > > failed.
> > > Traceback (most recent call last):
> > >   File "/usr/lib/python/xen/web/SrvBase.py", line 85,
> in
> > > perform
> > >     return op_method(op, req)
> > >   File "/usr/lib/python/xen/xend/server/SrvDomain.py",
> line
> > > 72, in op_wait_for_devices
> > >     return self.dom.waitForDevices()
> > >   File "/usr/lib/python/xen/xend/XendDomainInfo.py",
> line
> > > 1349, in waitForDevices
> > >     self.waitForDevices_(c)
> > >   File "/usr/lib/python/xen/xend/XendDomainInfo.py",
> line
> > > 977, in waitForDevices_
> > >     return self.getDeviceController(deviceClass).waitForDevices()
> > >   File
> "/usr/lib/python/xen/xend/server/DevController.py",
> > > line 135, in waitForDevices
> > >     return map(self.waitForDevice, self.deviceIDs())
> > >   File
> "/usr/lib/python/xen/xend/server/DevController.py",
> > > line 145, in waitForDevice
> > >     raise VmError("Device %s (%s) could not be connected. "
> > > VmError: Device 0 (vif) could not be connected. Hotplug scripts not
> working.
> > >
> > >
> > > _______________________________________________
> > > Xen-users mailing list
> > > Xen-users@xxxxxxxxxxxxxxxxxxx
> > > http://lists.xensource.com/xen-users
> > >
> > >
> >
> > _______________________________________________
> > Xen-users mailing list
> > Xen-users@xxxxxxxxxxxxxxxxxxx
> > http://lists.xensource.com/xen-users
> >
> >
>
>
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.