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

[Xen-users] Error: Device 0 (vif) could not be connected. Hotplug script

To: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] Error: Device 0 (vif) could not be connected. Hotplug scripts not working
From: "Andrey Dmitriev" <admitriev@xxxxxxxxxxx>
Date: Fri, 27 Apr 2007 01:42:55 -0400
Delivery-date: Thu, 26 Apr 2007 22:41:58 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
 malysh:~# xm create vista 
 Using config file "/etc/xen/vista".
 Error: Device 0 (vif) could not be connected. Hotplug scripts not working.
 

Tried removing vif from config

malysh:~# xm create vista 
 Using config file "/etc/xen/vista".
 Error: Device 768 (vbd) could not be connected. Hotplug scripts not working.


My config:

malysh:~# more /etc/xen/vista
kernel = "hvmloader"
builder = "hvm"
memory = 512
name = "vista"
vcpus = 1
vif = ['type=ioemu, bridge=xenbr0']
#disk = 
['file:/var/xen/images/vista.img,ioemu:hda,w','phy:/dev/cdrom,scd:cdrom,r']
disk = [ 'file:/var/xen/images/vista.img,ioemu:hda,w' ]
cdrom='/dev/sdc1'
device_model = '/usr/xen/bin/qemu-dm'
boot='d'
sdl=1
vnc=0
vncviewer=0
ne2000=0
audio=1


While xm create is running
malysh:/var/log/xen# udevmonitor
udevmonitor prints the received event from the kernel [UEVENT] and the event 
which udev sends out after rule processing [UDEV]

UEVENT[1177651506.828789] add@/devices/xen-backend/vbd-6-768
UDEV  [1177651506.830793] add@/devices/xen-backend/vbd-6-768
UEVENT[1177651506.843606] add@/devices/xen-backend/vif-6-0
UDEV  [1177651506.845119] add@/devices/xen-backend/vif-6-0
UEVENT[1177651506.847546] add@/class/net/vif6.0 UEVENT[1177651506.848552] 
online@/devices/xen-backend/vif-6-0
UDEV  [1177651506.850150] add@/class/net/vif6.0 UDEV  [1177651506.851470] 
online@/devices/xen-backend/vif-6-0
UEVENT[1177651606.957351] offline@/devices/xen-backend/vif-6-0
UDEV  [1177651606.959685] offline@/devices/xen-backend/vif-6-0
UEVENT[1177651607.015682] remove@/class/net/vif6.0 UEVENT[1177651607.021328] 
remove@/devices/xen-backend/vif-6-0
UDEV  [1177651607.023152] remove@/class/net/vif6.0 UDEV  [1177651607.024470] 
remove@/devices/xen-backend/vif-6-0
UEVENT[1177651607.028122] remove@/devices/xen-backend/vbd-6-768
UDEV  [1177651607.028962] remove@/devices/xen-backend/vbd-6-768


Finally, xend.log


[2007-04-27 01:25:06 xend.XendDomainInfo 2971] DEBUG (__init__:1072) 
XendDomainInfo.create(['vm', ['na
me', 'vista'], ['memory', 512], ['vcpus', 1], ['image', ['hvm', ['kernel', 
'/usr/lib/xen-3.0.3-1/boot/
hvmloader'], ['vcpus', 1], ['boot', 'd'], ['vncunused', 1], ['sdl', 1], 
['display', ':0.0'], ['xauthor
ity', '/root/.Xauthority'], ['device_model', '/usr/xen/bin/qemu-dm']]], 
['device', ['vbd', ['uname', '
file:/var/xen/images/vista.img'], ['dev', 'ioemu:hda'], ['mode', 'w']]], 
['device', ['vif', ['bridge',
 'xenbr0'], ['type', 'ioemu']]]])
[2007-04-27 01:25:06 xend.XendDomainInfo 2971] DEBUG (__init__:1072) 
parseConfig: config is ['vm', ['n
ame', 'vista'], ['memory', 512], ['vcpus', 1], ['image', ['hvm', ['kernel', 
'/usr/lib/xen-3.0.3-1/boot
/hvmloader'], ['vcpus', 1], ['boot', 'd'], ['vncunused', 1], ['sdl', 1], 
['display', ':0.0'], ['xautho
rity', '/root/.Xauthority'], ['device_model', '/usr/xen/bin/qemu-dm']]], 
['device', ['vbd', ['uname',
'file:/var/xen/images/vista.img'], ['dev', 'ioemu:hda'], ['mode', 'w']]], 
['device', ['vif', ['bridge'
, 'xenbr0'], ['type', 'ioemu']]]]
[2007-04-27 01:25:06 xend.XendDomainInfo 2971] DEBUG (__init__:1072) 
parseConfig: result is {'shadow_m
emory': None, 'uuid': None, 'on_crash': None, 'on_reboot': None, 'localtime': 
None, 'image': ['hvm', [
'kernel', '/usr/lib/xen-3.0.3-1/boot/hvmloader'], ['vcpus', 1], ['boot', 'd'], 
['vncunused', 1], ['sdl
', 1], ['display', ':0.0'], ['xauthority', '/root/.Xauthority'], 
['device_model', '/usr/xen/bin/qemu-d
m']], 'on_poweroff': None, 'bootloader_args': None, 'cpus': None, 'name': 
'vista', 'backend': [], 'vcp
us': 1, 'cpu_weight': None, 'features': None, 'vcpu_avail': None, 'memory': 
512, 'device': [('vbd', ['
vbd', ['uname', 'file:/var/xen/images/vista.img'], ['dev', 'ioemu:hda'], 
['mode', 'w']]), ('vif', ['vi
f', ['bridge', 'xenbr0'], ['type', 'ioemu']])], 'bootloader': None, 'cpu': 
None, 'maxmem': None}
[2007-04-27 01:25:06 xend.XendDomainInfo 2971] DEBUG (__init__:1072) 
XendDomainInfo.construct: None
[2007-04-27 01:25:06 xend.XendDomainInfo 2971] DEBUG (__init__:1072) 
XendDomainInfo.initDomain: 6 1.0
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) args: boot, val: d
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) args: fda, val: None
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) args: fdb, val: None
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) args: soundhw, val: None
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) args: localtime, val: None
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) args: serial, val: None
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) args: std-vga, val: None
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) args: isa, val: None
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) args: vcpus, val: 1
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) args: acpi, val: None
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) args: usb, val: None
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) args: usbdevice, val: None
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) Balloon: 542196 KiB free; 
need 541904; done.
[2007-04-27 01:25:06 xend 2971] INFO (__init__:1072) buildDomain os=hvm dom=6 
vcpus=1
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) dom            = 6
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) image          = 
/usr/lib/xen-3.0.3-1/boot/hvmlo
ader
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) store_evtchn   = 1
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) memsize        = 512
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) vcpus          = 1
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) pae            = 0
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) acpi           = 0
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) apic           = 0
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) hvm shutdown watch 
registered
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) exception looking up 
device number for hda: [Err
no 2] No such file or directory: '/dev/hda'
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) DevController: writing 
{'backend-id': '0', 'virt
ual-device': '768', 'device-type': 'disk', 'state': '1', 'backend': 
'/local/domain/0/backend/vbd/6/768
'} to /local/domain/6/device/vbd/768.
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) DevController: writing 
{'domain': 'vista', 'fron
tend': '/local/domain/6/device/vbd/768', 'dev': 'hda', 'state': '1', 'params': 
'/var/xen/images/vista.
img', 'mode': 'w', 'online': '1', 'frontend-id': '6', 'type': 'file'} to 
/local/domain/0/backend/vbd/6
/768.
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) DevController: writing 
{'state': '1', 'backend-i
d': '0', 'backend': '/local/domain/0/backend/vif/6/0'} to 
/local/domain/6/device/vif/0.
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) DevController: writing 
{'bridge': 'xenbr0', 'dom
ain': 'vista', 'handle': '0', 'script': '/etc/xen/scripts/vif-bridge', 'state': 
'1', 'frontend': '/loc
al/domain/6/device/vif/0', 'mac': '00:16:3e:49:29:ee', 'online': '1', 
'frontend-id': '6', 'type': 'ioe
mu'} to /local/domain/0/backend/vif/6/0.
[2007-04-27 01:25:06 xend 2971] INFO (__init__:1072) spawning device models: 
/usr/xen/bin/qemu-dm ['/u
sr/xen/bin/qemu-dm', '-d', '6', '-m', '512', '-boot', 'd', '-vcpus', '1', 
'-domain-name', 'vista', '-net', 'nic,v
lan=1,macaddr=00:16:3e:34:db:13,model=rtl8139', '-net', 
'tap,vlan=1,bridge=xenbr0']
[2007-04-27 01:25:06 xend 2971] INFO (__init__:1072) device model pid: 4377
[2007-04-27 01:25:06 xend.XendDomainInfo 2971] DEBUG (__init__:1072) Storing VM 
details: {'shadow_memory': '4', '
uuid': '6c31e36b-e5bc-5cb2-0835-1bf21340b115', 'on_reboot': 'restart', 
'start_time': '1177651506.86', 'on_powerof
f': 'destroy', 'name': 'vista', 'xend/restart_count': '0', 'vcpus': '1', 
'vcpu_avail': '1', 'memory': '512', 'on_
crash': 'restart', 'image': '(hvm (kernel /usr/lib/xen-3.0.3-1/boot/hvmloader) 
(vcpus 1) (boot d) (vncunused 1) (
sdl 1) (display :0.0) (xauthority /root/.Xauthority) (device_model 
/usr/xen/bin/qemu-dm))', 'maxmem': '512'}
[2007-04-27 01:25:06 xend.XendDomainInfo 2971] DEBUG (__init__:1072) Storing 
domain details: {'console/port': '2'
, 'name': 'vista', 'console/limit': '1048576', 'vm': 
'/vm/6c31e36b-e5bc-5cb2-0835-1bf21340b115', 'domid': '6', 'c
pu/0/availability': 'online', 'memory/target': '524288', 'store/ring-ref': 
'85374', 'store/port': '1'}
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) hvm_shutdown fired, 
shutdown reason=None
[2007-04-27 01:25:06 xend.XendDomainInfo 2971] DEBUG (__init__:1072) 
XendDomainInfo.handleShutdownWatch
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) Waiting for devices vif.
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) Waiting for 0.
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) hotplugStatusCallback 
/local/domain/0/backend/vif/6/0/hotpl
ug-status.
[2007-04-27 01:26:46 xend.XendDomainInfo 2971] DEBUG (__init__:1072) 
XendDomainInfo.destroy: domid=6
[2007-04-27 01:26:46 xend.XendDomainInfo 2971] DEBUG (__init__:1072) 
XendDomainInfo.destroyDomain(6)
[2007-04-27 01:26:46 xend 2971] DEBUG (__init__:1072) hvm shutdown watch 
unregistered
malysh:/var/log/xen# more xend.log
[2007-04-27 01:25:06 xend.XendDomainInfo 2971] DEBUG (__init__:1072) 
XendDomainInfo.create(['vm', ['name', 'vista
'], ['memory', 512], ['vcpus', 1], ['image', ['hvm', ['kernel', 
'/usr/lib/xen-3.0.3-1/boot/hvmloader'], ['vcpus',
 1], ['boot', 'd'], ['vncunused', 1], ['sdl', 1], ['display', ':0.0'], 
['xauthority', '/root/.Xauthority'], ['dev
ice_model', '/usr/xen/bin/qemu-dm']]], ['device', ['vbd', ['uname', 
'file:/var/xen/images/vista.img'], ['dev', 'i
oemu:hda'], ['mode', 'w']]], ['device', ['vif', ['bridge', 'xenbr0'], ['type', 
'ioemu']]]])
[2007-04-27 01:25:06 xend.XendDomainInfo 2971] DEBUG (__init__:1072) 
parseConfig: config is ['vm', ['name', 'vist
a'], ['memory', 512], ['vcpus', 1], ['image', ['hvm', ['kernel', 
'/usr/lib/xen-3.0.3-1/boot/hvmloader'], ['vcpus'
, 1], ['boot', 'd'], ['vncunused', 1], ['sdl', 1], ['display', ':0.0'], 
['xauthority', '/root/.Xauthority'], ['de
vice_model', '/usr/xen/bin/qemu-dm']]], ['device', ['vbd', ['uname', 
'file:/var/xen/images/vista.img'], ['dev', '
ioemu:hda'], ['mode', 'w']]], ['device', ['vif', ['bridge', 'xenbr0'], ['type', 
'ioemu']]]]
[2007-04-27 01:25:06 xend.XendDomainInfo 2971] DEBUG (__init__:1072) 
parseConfig: result is {'shadow_memory': Non
e, 'uuid': None, 'on_crash': None, 'on_reboot': None, 'localtime': None, 
'image': ['hvm', ['kernel', '/usr/lib/xe
n-3.0.3-1/boot/hvmloader'], ['vcpus', 1], ['boot', 'd'], ['vncunused', 1], 
['sdl', 1], ['display', ':0.0'], ['xau
thority', '/root/.Xauthority'], ['device_model', '/usr/xen/bin/qemu-dm']], 
'on_poweroff': None, 'bootloader_args'
: None, 'cpus': None, 'name': 'vista', 'backend': [], 'vcpus': 1, 'cpu_weight': 
None, 'features': None, 'vcpu_ava
il': None, 'memory': 512, 'device': [('vbd', ['vbd', ['uname', 
'file:/var/xen/images/vista.img'], ['dev', 'ioemu:
hda'], ['mode', 'w']]), ('vif', ['vif', ['bridge', 'xenbr0'], ['type', 
'ioemu']])], 'bootloader': None, 'cpu': No
ne, 'maxmem': None}
[2007-04-27 01:25:06 xend.XendDomainInfo 2971] DEBUG (__init__:1072) 
XendDomainInfo.construct: None
[2007-04-27 01:25:06 xend.XendDomainInfo 2971] DEBUG (__init__:1072) 
XendDomainInfo.initDomain: 6 1.0
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) args: boot, val: d
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) args: fda, val: None
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) args: fdb, val: None
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) args: soundhw, val: None
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) args: localtime, val: None
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) args: serial, val: None
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) args: std-vga, val: None
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) args: isa, val: None
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) args: vcpus, val: 1
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) args: acpi, val: None
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) args: usb, val: None
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) args: usbdevice, val: None
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) Balloon: 542196 KiB free; 
need 541904; done.
[2007-04-27 01:25:06 xend 2971] INFO (__init__:1072) buildDomain os=hvm dom=6 
vcpus=1
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) dom            = 6
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) image          = 
/usr/lib/xen-3.0.3-1/boot/hvmloader
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) store_evtchn   = 1
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) memsize        = 512
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) vcpus          = 1
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) pae            = 0
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) acpi           = 0
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) apic           = 0
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) hvm shutdown watch 
registered
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) exception looking up 
device number for hda: [Errno 2] No su
ch file or directory: '/dev/hda'
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) DevController: writing 
{'backend-id': '0', 'virtual-device'
: '768', 'device-type': 'disk', 'state': '1', 'backend': 
'/local/domain/0/backend/vbd/6/768'} to /local/domain/6/
device/vbd/768.
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) DevController: writing 
{'domain': 'vista', 'frontend': '/lo
cal/domain/6/device/vbd/768', 'dev': 'hda', 'state': '1', 'params': 
'/var/xen/images/vista.img', 'mode': 'w', 'on
line': '1', 'frontend-id': '6', 'type': 'file'} to 
/local/domain/0/backend/vbd/6/768.
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) DevController: writing 
{'state': '1', 'backend-id': '0', 'b
ackend': '/local/domain/0/backend/vif/6/0'} to /local/domain/6/device/vif/0.
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) DevController: writing 
{'bridge': 'xenbr0', 'domain': 'vist
a', 'handle': '0', 'script': '/etc/xen/scripts/vif-bridge', 'state': '1', 
'frontend': '/local/domain/6/device/vif
/0', 'mac': '00:16:3e:49:29:ee', 'online': '1', 'frontend-id': '6', 'type': 
'ioemu'} to /local/domain/0/backend/v
if/6/0.
[2007-04-27 01:25:06 xend 2971] INFO (__init__:1072) spawning device models: 
/usr/xen/bin/qemu-dm ['/usr/xen/bin/
qemu-dm', '-d', '6', '-m', '512', '-boot', 'd', '-vcpus', '1', '-domain-name', 
'vista', '-net', 'nic,vlan=1,macad
dr=00:16:3e:34:db:13,model=rtl8139', '-net', 'tap,vlan=1,bridge=xenbr0']
[2007-04-27 01:25:06 xend 2971] INFO (__init__:1072) device model pid: 4377
[2007-04-27 01:25:06 xend.XendDomainInfo 2971] DEBUG (__init__:1072) Storing VM 
details: {'shadow_memory': '4', '
uuid': '6c31e36b-e5bc-5cb2-0835-1bf21340b115', 'on_reboot': 'restart', 
'start_time': '1177651506.86', 'on_powerof
f': 'destroy', 'name': 'vista', 'xend/restart_count': '0', 'vcpus': '1', 
'vcpu_avail': '1', 'memory': '512', 'on_
crash': 'restart', 'image': '(hvm (kernel /usr/lib/xen-3.0.3-1/boot/hvmloader) 
(vcpus 1) (boot d) (vncunused 1) (
sdl 1) (display :0.0) (xauthority /root/.Xauthority) (device_model 
/usr/xen/bin/qemu-dm))', 'maxmem': '512'}
[2007-04-27 01:25:06 xend.XendDomainInfo 2971] DEBUG (__init__:1072) Storing 
domain details: {'console/port': '2'
, 'name': 'vista', 'console/limit': '1048576', 'vm': 
'/vm/6c31e36b-e5bc-5cb2-0835-1bf21340b115', 'domid': '6', 'c
pu/0/availability': 'online', 'memory/target': '524288', 'store/ring-ref': 
'85374', 'store/port': '1'}
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) hvm_shutdown fired, 
shutdown reason=None
[2007-04-27 01:25:06 xend.XendDomainInfo 2971] DEBUG (__init__:1072) 
XendDomainInfo.handleShutdownWatch
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) Waiting for devices vif.
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) Waiting for 0.
[2007-04-27 01:25:06 xend 2971] DEBUG (__init__:1072) hotplugStatusCallback 
/local/domain/0/backend/vif/6/0/hotpl
ug-status.
[2007-04-27 01:26:46 xend.XendDomainInfo 2971] DEBUG (__init__:1072) 
XendDomainInfo.destroy: domid=6
[2007-04-27 01:26:46 xend.XendDomainInfo 2971] DEBUG (__init__:1072) 
XendDomainInfo.destroyDomain(6)
[2007-04-27 01:26:46 xend 2971] DEBUG (__init__:1072) hvm shutdown watch 
unregistered

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] Error: Device 0 (vif) could not be connected. Hotplug scripts not working, Andrey Dmitriev <=