Port-xen archive

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

Problem with auto-starting DomU on NetBSD5.0.2 running Xen3.3



Hi all:

I can start domU manually; however, I can't automatically start domU by putting 
the domU name in xendomains variable in /etc/rc.conf. I think the problem is 
with associating vif with bridge. I've put the required info below and greatly 
appreciate any help to resolve this issue. Let me know if more info is needed.

Thanks,
Kalpesh

/etc/rc.conf file snippet:
. . .
xenbackendd=YES
xend=YES
xendomains="nbsd03"

On dom0 console I get following (I had to note down the error manually as 
copy-paste was not possible for this)

Xbd backend attach device vnd0d for domain1 Failed to read 
/local/domain/0/backend/console/1/0/script (no such file or directory)

Error: device 0(vif) could not be connected. Hotplug scripts not working.

Starting local daemons


DomU Config File:
#  -*- mode: python; -*-
kernel = "/netbsd-XEN3_DOMU"
memory = 160
name = "nbsd03"
ip = "10.11.204.184"
netmask = "255.255.255.0"
gateway = "10.11.204.254"
vif = [ 'bridge=bridge1' ]
disk = [ 'file:/dsk/nbsd03/nbsd03.img,0x01,w' ]

bridge1 is created and below is the ifconfig output for it.

netbsdjasper# ifconfig bridge1
bridge1: flags=41<UP,RUNNING> mtu 1500

netbsdjasper# brconfig bridge1
bridge1: flags=41<UP,RUNNING>
        Configuration:
                priority 32768 hellotime 2 fwddelay 15 maxage 20
                ipfilter disabled flags 0x0
        Interfaces:
                ex0 flags=3<LEARNING,DISCOVER>
                        port 1 priority 128
        Address cache (max cache: 100, timeout: 1200):
                00:1f:29:d5:a3:22 ex0 923 flags=0<>
                00:14:5e:5d:a8:70 ex0 409 flags=0<>
                00:0f:20:e0:3a:e0 ex0 117 flags=0<>
                00:0f:20:e0:3a:f5 ex0 116 flags=0<>
                00:01:e9:45:00:03 ex0 110 flags=0<>

xenbackendd.log
brconfig: unable to get interface flags: Device not configured
Failed to read /local/domain/0/backend/console/1/0/script (No such file or 
directory)
Failed to read /local/domain/0/backend/console/1/0/script (No such file or 
directory)

xend.log
[2010-08-24 17:21:44 207] DEBUG (XendDomainInfo:89) 
XendDomainInfo.create(['vm', ['name', 'nbsd03'], ['memory', 160], ['vcp
us', 1], ['on_xend_start', 'ignore'], ['on_xend_stop', 'ignore'], ['image', 
['linux', ['kernel', '/netbsd-XEN3_DOMU'], ['ip
', '10.11.204.184:127.0.255.255:10.11.204.254:255.255.255.0::eth0:off'], 
['root', 'xbd0']]], ['device', ['vbd', ['uname', '
file:/dsk/nbsd03/nbsd03.img'], ['dev', '0x01'], ['mode', 'w']]], ['device', 
['vif', ['bridge', 'bridge1']]]])
[2010-08-24 17:21:44 207] DEBUG (XendDomainInfo:2043) 
XendDomainInfo.constructDomain
[2010-08-24 17:21:44 207] DEBUG (balloon:132) Balloon: 1255476 KiB free; need 
2048; done.
[2010-08-24 17:21:44 207] DEBUG (XendDomain:449) Adding Domain: 1
[2010-08-24 17:21:44 207] DEBUG (XendDomainInfo:2149) 
XendDomainInfo.initDomain: 1 256
[2010-08-24 17:21:44 207] DEBUG (XendDomainInfo:2230) 
_initDomain:shadow_memory=0x0, memory_static_max=0xa000000, memory_st
atic_min=0x0.
[2010-08-24 17:21:44 207] DEBUG (balloon:132) Balloon: 1255468 KiB free; need 
164864; done.
[2010-08-24 17:21:44 207] INFO (image:166) buildDomain os=linux dom=1 vcpus=1
[2010-08-24 17:21:44 207] DEBUG (image:629) domid          = 1
[2010-08-24 17:21:44 207] DEBUG (image:630) memsize        = 160
[2010-08-24 17:21:44 207] DEBUG (image:631) image          = /netbsd-XEN3_DOMU
[2010-08-24 17:21:44 207] DEBUG (image:632) store_evtchn   = 1
[2010-08-24 17:21:44 207] DEBUG (image:633) console_evtchn = 2
[2010-08-24 17:21:44 207] DEBUG (image:634) cmdline        = root=xbd0 
ip=10.11.204.184:127.0.255.255:10.11.204.254:255.255
.255.0::eth0:off
[2010-08-24 17:21:44 207] DEBUG (image:635) ramdisk        =
[2010-08-24 17:21:44 207] DEBUG (image:636) vcpus          = 1
[2010-08-24 17:21:44 207] DEBUG (image:637) features       =
[2010-08-24 17:21:46 207] INFO (XendDomainInfo:1907) createDevice: vbd : 
{'uuid': '112a0e49-3daa-ee29-cd34-1a5812ac129e', '
bootable': 1, 'driver': 'paravirtualised', 'dev': '0x01', 'uname': 
'file:/dsk/nbsd03/nbsd03.img', 'mode': 'w'}
[2010-08-24 17:21:46 207] DEBUG (DevController:122) DevController: writing 
{'virtual-device': '1', 'device-type': 'disk', '
protocol': 'x86_64-abi', 'backend-id': '0', 'state': '1', 'backend': 
'/local/domain/0/backend/vbd/1/1'} to /local/domain/1/
device/vbd/1.
[2010-08-24 17:21:46 207] DEBUG (DevController:124) DevController: writing 
{'domain': 'nbsd03', 'frontend': '/local/domain/
1/device/vbd/1', 'uuid': '112a0e49-3daa-ee29-cd34-1a5812ac129e', 'dev': '0x01', 
'state': '1', 'params': '/dsk/nbsd03/nbsd03
.img', 'mode': 'w', 'online': '1', 'frontend-id': '1', 'type': 'file'} to 
/local/domain/0/backend/vbd/1/1.
[2010-08-24 17:21:46 207] INFO (XendDomainInfo:1907) createDevice: vif : 
{'bridge': 'bridge1', 'mac': '00:16:3e:0f:a9:6d',
'uuid': '09ad8933-5b7c-3132-94f9-437db0282ebc'}
[2010-08-24 17:21:46 207] DEBUG (DevController:122) DevController: writing 
{'mac': '00:16:3e:0f:a9:6d', 'handle': '0', 'pro
tocol': 'x86_64-abi', 'backend-id': '0', 'state': '1', 'backend': 
'/local/domain/0/backend/vif/1/0'} to /local/domain/1/dev
ice/vif/0.
[2010-08-24 17:21:46 207] DEBUG (DevController:124) DevController: writing 
{'bridge': 'bridge1', 'domain': 'nbsd03', 'handl
e': '0', 'uuid': '09ad8933-5b7c-3132-94f9-437db0282ebc', 'script': 
'/usr/pkg/etc/xen/scripts/vif-bridge', 'mac': '00:16:3e:
0f:a9:6d', 'frontend-id': '1', 'state': '1', 'online': '1', 'frontend': 
'/local/domain/1/device/vif/0'} to /local/domain/0/
backend/vif/1/0.
[2010-08-24 17:21:47 207] DEBUG (XendDomainInfo:2738) Storing VM details: 
{'on_xend_stop': 'ignore', 'shadow_memory': '0',
'uuid': 'ac28b792-51d1-2c8a-cc9a-a706ee1706ae', 'on_reboot': 'restart', 
'start_time': '1282670507.29', 'on_poweroff': 'dest
roy', 'bootloader_args': '', 'on_xend_start': 'ignore', 'on_crash': 'restart', 
'xend/restart_count': '0', 'vcpus': '1', 'vc
pu_avail': '1', 'bootloader': '', 'image': "(linux (kernel /netbsd-XEN3_DOMU) 
(args 'root=xbd0 ip=10.11.204.184:127.0.255.2
55:10.11.204.254:255.255.255.0::eth0:off ') (notes))", 'name': 'nbsd03'}
[2010-08-24 17:21:47 207] DEBUG (XendDomainInfo:1360) Storing domain details: 
{'console/ring-ref': '312159', 'console/port'
: '2', 'name': 'nbsd03', 'console/limit': '1048576', 'vm': 
'/vm/ac28b792-51d1-2c8a-cc9a-a706ee1706ae', 'domid': '1', 'store
/port': '1', 'cpu/0/availability': 'online', 'memory/target': '163840', 
'control/platform-feature-multiprocessor-suspend':
'1', 'store/ring-ref': '312160', 'console/type': 'xenconsoled'}
[2010-08-24 17:21:47 207] DEBUG (DevController:122) DevController: writing 
{'protocol': 'x86_64-abi', 'state': '1', 'backen
d-id': '0', 'backend': '/local/domain/0/backend/console/1/0'} to 
/local/domain/1/device/console/0.
[2010-08-24 17:21:47 207] DEBUG (DevController:124) DevController: writing 
{'domain': 'nbsd03', 'frontend': '/local/domain/
1/device/console/0', 'uuid': 'acec1c8e-41d3-e7bc-6386-5a09c12a207f', 
'frontend-id': '1', 'state': '1', 'location': '2', 'on
line': '1', 'protocol': 'vt100'} to /local/domain/0/backend/console/1/0.
[2010-08-24 17:21:48 207] DEBUG (XendDomainInfo:1450) 
XendDomainInfo.handleShutdownWatch
[2010-08-24 17:21:48 207] DEBUG (DevController:166) Waiting for devices vif


Home | Main Index | Thread Index | Old Index