Port-xen archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
XEN v4.1.2 network troubles
Dear List Users.
I apologize in advance for this rather lengthy post, but I am getting
a little desperate and so I'd like to provide as much information as
possible in order to hopefully get some answers to my questions.
I am trying to get XEN v4.1.2 to work on NetBSD v6.0RC1, so far with
mixed success. I have been following the NetBSD/xen Howto
(http://www.netbsd.org/ports/xen/howto.html) and although it's a
starting point, it doesn't get me all the way.
After installing NetBSD v6.0RC1 and XEN v4.1.2 I was able to boot the
dom0 domain.
To run an unprivileged domain (DomU) I first copied
cp /usr/pkg/share/examples/rc.d/xen{-watchdog,commons,d,domains} /etc/rc.d/
and set
xenwatchdog=YES
xencommons=YES
xend=YES
xendomains=YES
(I found no mentioning of the above copying and variable setting but I
guess it is the common way to do it?)
A new reboot apparently started the xentools but all is not running
as intended. Even though the processes xenbackendd, xenconsoled, xenstored,
xenwatchdogd and two python2.7 processes are running, xend status shows:
root%asus.immnet.dk@localhost:/root # /etc/rc.d/xend status
xend is not running
root%asus.immnet.dk@localhost:/root #
The longer version is:
root%asus.immnet.dk@localhost:/root # sh -x /etc/rc.d/xend status
+ '[' -f /etc/shrc ']'
+ '.' /etc/shrc
+ '.' '/etc/rc.subr'
+ ':' 'rc.conf(5)'
+ ':' 1314
+ export 'RC_PID'
+ 'nl=
'
+ '_rc_subr_loaded=:'
+ name=xend
+ rcvar=xend
+ command=/usr/pkg/sbin/xend
+ 'start_cmd=echo Starting xend. &&
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin:/usr/X11R7/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin:/usr/pkg/sbin
/usr/pkg/sbin/xend start'
+ 'pidfile=/var/run/xend.pid'
+ 'load_rc_config' xend
+ '_command=xend'
+ '[' -z xend ']'
+ false
+ '.' '/etc/rc.conf'
+ '[' -r '/etc/defaults/rc.conf' ']'
+ '.' '/etc/defaults/rc.conf'
+ /sbin/sysctl -n 'kern.boothowto'
+ '[' 0 '!=' 0 ']'
+ echo false
+ command echo false
+ 'rc_silent=false'
+ 'rc_silent_cmd=twiddle'
+ 'rc_rcorder_flags='
+ 'rc_directories=/etc/rc.d'
+ 'do_rcshutdown=YES'
+ 'rcshutdown_rcorder_flags='
+ 'rcshutdown_timeout='
+ hostname=
+ defaultroute=
+ defaultroute6=
+ domainname=
+ 'critical_filesystems_local=OPTIONAL:/var'
+ 'critical_filesystems_remote=OPTIONAL:/usr'
+ 'no_swap=NO'
+ swapoff=YES
+ ccd=YES
+ raidframe=YES
+ cgd=YES
+ lvm=NO
+ savecore=YES 'savecore_flags=-z'
+ 'savecore_dir=/var/crash'
+ 'per_user_tmp=NO'
+ 'per_user_tmp_dir=/private/tmp'
+ 'clear_tmp=YES'
+ 'update_motd=YES'
+ dmesg=YES 'dmesg_flags='
+ accounting=NO
+ newsyslog=NO 'newsyslog_flags='
+ quota=YES
+ ldconfig=YES
+ sysdb=YES
+ rndctl=NO 'rndctl_flags='
+ gpio=NO
+ rtclocaltime=NO
+ 'fsck_flags=-p'
+ securelevel=
+ mdnsd=NO
+ npf=NO
+ ipfilter=NO 'ipfilter_flags='
+ ipnat=NO
+ ipfs=NO 'ipfs_flags='
+ ipsec=NO
+ ipmon=NO 'ipmon_flags=-Dns'
+ pf=NO 'pf_rules=/etc/pf.conf' 'pf_flags='
+ pflogd=NO
+ 'ftp_proxy=NO'
+ racoon=NO
+ 'auto_ifconfig=YES'
+ 'net_interfaces='
+ flushroutes=YES
+ dhcpcd=NO
+ 'dhcpcd_flags=-q'
+ dhclient=NO
+ 'dhclient_flags='
+ ntpdate=NO 'ntpdate_flags=-b -s'
+ 'ppp_peers='
+ ip6mode=host
+ ip6uniquelocal=NO
+ rtsol=NO 'rtsol_flags=-a'
+ ifwatchd=NO
+ 'ifwatchd_flags=-u /etc/ppp/ip-up -d /etc/ppp/ip-down pppoe0'
+ altqd=NO 'altqd_flags='
+ inetd=YES 'inetd_flags=-l'
+ identd=NO 'identd_flags=-b -l -u nobody'
+ rpcbind=NO 'rpcbind_flags=-l'
+ syslogd=YES 'syslogd_flags=-s'
+ cron=YES
+ named=NO 'named_flags='
+ timed=NO 'timed_flags='
+ ntpd=NO 'ntpd_flags='
+ postfix=YES
+ lpd=NO 'lpd_flags=-s'
+ sshd=NO 'sshd_flags='
+ 'ssh_keygen_flags=-b 1024'
+ ftpd=NO 'ftpd_flags=-ll'
+ httpd=NO 'httpd_flags='
+ 'httpd_wwwdir=/var/www'
+ 'httpd_wwwuser=_httpd'
+ routed=NO 'routed_flags=-q'
+ gated=NO
+ mrouted=NO 'mrouted_flags='
+ route6d=NO 'route6d_flags='
+ rtsold=NO 'rtsold_flags=-a'
+ ldpd=NO
+ rarpd=NO 'rarpd_flags=-a'
+ bootparamd=NO 'bootparamd_flags='
+ dhcpd=NO 'dhcpd_flags=-q'
+ dhcrelay=NO 'dhcrelay_flags='
+ rbootd=NO 'rbootd_flags='
+ mopd=NO 'mopd_flags=-a'
+ ndbootd=NO 'ndbootd_flags=-s /tftpboot /tftpboot/bootyy'
+ rtadvd=NO 'rtadvd_flags='
+ isibootd=NO 'isibootd_flags='
+ xfs=NO 'xfs_flags='
+ xdm=NO 'xdm_flags='
+ fccache=YES
+ ypbind=NO 'ypbind_flags='
+ ypserv=NO 'ypserv_flags=-d'
+ yppasswdd=NO 'yppasswdd_flags='
+ mountd=NO 'mountd_flags='
+ 'nfs_client=NO'
+ 'nfs_server=NO'
+ 'nfsd_flags=-6tun 4'
+ lockd=NO 'lockd_flags='
+ statd=NO 'statd_flags='
+ amd=NO 'amd_flags=-l syslog -x error,noinfo,nostats'
+ 'amd_dir=/amd'
+ kdc=NO 'kdc_flags=--detach'
+ 'iscsi_target=NO' 'iscsi_target_flags='
+ hostapd=NO 'hostapd_flags=-B /etc/hostapd.conf'
+ 'wpa_supplicant=NO' 'wpa_supplicant_flags=-B'
+ isdnd=NO 'isdnd_flags='
+ bluetooth=NO
+ 'btconfig_devices='
+ bthcid=YES 'bthcid_flags='
+ sdpd=YES 'sdpd_flags='
+ rwhod=NO 'rwhod_flags=-u _rwhod'
+ devpubd=NO 'devpubd_flags='
+ envsys=NO
+ apmd=NO 'apmd_flags='
+ powerd=NO 'powerd_flags='
+ screenblank=NO 'screenblank_flags='
+ moused=NO
+ 'moused_flags=-p /dev/tty00'
+ wdogctl=NO
+ irdaattach=NO
+ 'irdaattach_flags=tty00'
+ wscons=NO 'wscons_flags='
+ wsmoused=NO 'wsmoused_flags='
+ tpctl=NO 'tpctl_flags='
+ mixerctl=NO 'mixerctl_mixers='
+ virecover=YES
+ veriexec=NO
+ 'veriexec_strict=0'
+ 'veriexec_verbose=0'
+ 'veriexec_flags=-k'
+ 'random_seed=YES'
+ makemandb=YES
+ /sbin/sysctl -q 'machdep.xen'
+ powerd=YES
+ /sbin/sysctl -q 'hw.acpi.root'
+ powerd=YES
+ 'rc_configured=YEs'
+ 'hostname=asus.immnet.dk'
+ 'defaultroute=192.168.0.1'
+ sshd=YES
+ ntpd=YES
+ ntpdate=YES
+ swapoff=YES
+ wscons=YES
+ 'wscons_flags='
+ xenwatchdog=YES
+ xencommons=YES
+ xend=YES
+ xendomains=YES
+ '_rc_conf_loaded=true'
+ '[' -f '/etc/rc.conf.d/xend' ']'
+ 'run_rc_command' status
+ 'rc_arg=status'
+ '[' -z xend ']'
+ '_rc_prefix='
+ '_keywords=start stop restart rcvar'
+ '[' -n '' ']'
+ 'rc_pid='
+ '_pidcmd='
+ '_procname=/usr/pkg/sbin/xend'
+ '[' -z '' -a -n /usr/pkg/sbin/xend ']'
+ '[' -n '/var/run/xend.pid' ']'
+ '_pidcmd=rc_pid=$(check_pidfile /var/run/xend.pid /usr/pkg/sbin/xend )'
+ '[' -n 'rc_pid=$(check_pidfile /var/run/xend.pid /usr/pkg/sbin/xend )' ']'
+ '_keywords=start stop restart rcvar status poll'
+ '[' -z status ']'
+ shift
+ '[' -n '' ']'
+ eval 'rc_flags=$xend_flags'
+ 'rc_flags='
+ eval '_chdir=$xend_chdir' '_chroot=$xend_chroot' '_nice=$xend_nice'
'_user=$xend_user' '_group=$xend_group' '_groups=$xend_groups'
'_env="$xend_env"'
+ '_chdir=' '_chroot=' '_nice=' '_user=' '_group=' '_groups=' '_env='
+ '[' -n '' ']'
+ '[' -n xend -a status '!=' rcvar ']'
+ checkyesno xend
+ eval '_value=$xend'
+ '_value=YES'
+ return 0
+ eval 'rc_pid=$(check_pidfile' '/var/run/xend.pid' /usr/pkg/sbin/xend ')'
+ 'check_pidfile' '/var/run/xend.pid' /usr/pkg/sbin/xend
+ '_pidfile=/var/run/xend.pid'
+ '_procname=/usr/pkg/sbin/xend'
+ '_interpreter='
+ '[' -z '/var/run/xend.pid' -o -z /usr/pkg/sbin/xend ']'
+ '[' '!' -f '/var/run/xend.pid' ']'
+ read '_pid' '_junk'
+ '[' -z 313 ']'
+ '_find_processes' /usr/pkg/sbin/xend '.' '-p 313'
+ '[' 3 -ne 3 ']'
+ '_procname=/usr/pkg/sbin/xend'
+ '_interpreter=.'
+ '_psargs=-p 313'
+ '_pref='
+ '_procnamebn=xend'
+ '[' '.' '!=' '.' ']'
+ '_fp_args=_arg0 _argv'
+ '_fp_match=case "$_arg0" in
$_procname|$_procnamebn|${_procnamebn}:|"(${_procnamebn})")'
+ '_proccheck=
ps -o "pid,command" -p 313 |
while read _npid _arg0 _argv; do
case "$_npid" in
PID)
continue ;;
esac ; case "$_arg0" in
$_procname|$_procnamebn|${_procnamebn}:|"(${_procnamebn})")
echo -n "$_pref$_npid" ;
_pref=" "
;;
esac
done'
+ eval ps -o '"pid,command"' -p 313 '|' while read '_npid' '_arg0' '_argv;' do
case '"$_npid"' in 'PID)' continue ';;' esac ';' case '"$_arg0"' in
'$_procname|$_procnamebn|${_procnamebn}:|"(${_procnamebn})")' echo -n
'"$_pref$_npid"' ';' '_pref="' '"' ';;' esac done
+ ps -o 'pid,command' -p 313
+ read '_npid' '_arg0' '_argv'
+ continue
+ read '_npid' '_arg0' '_argv'
+ read '_npid' '_arg0' '_argv'
+ 'rc_pid='
+ '[' start '!=' status ']'
+ continue
+ '[' stop '!=' status ']'
+ continue
+ '[' restart '!=' status ']'
+ continue
+ '[' rcvar '!=' status ']'
+ continue
+ '[' status '!=' status ']'
+ eval '_cmd=$status_cmd' '_precmd=$status_precmd' '_postcmd=$status_postcmd'
+ '_cmd=' '_precmd=' '_postcmd='
+ '[' -n '' ']'
+ '[' 0 -gt 0 ']'
+ '[' -n '' ']'
+ echo 'xend is not running.'
+ command echo 'xend is not running.'
xend is not running.
+ return 1
root%asus.immnet.dk@localhost:/root #
It should be noted that at this point of time the 'xm list' command
is working perfectly. It shows dom0 and any started domU's.
I managed to get a domU NetBSD domain to run by using the nbsd
configuration file in the Howto documentation, but I had to comment out
# nics = 1
otherwise I get the messages:
root%asus.immnet.dk@localhost:/root # xm create -c /usr/pkg/etc/xen/nbsd
Using config file /usr/pkg/etc/xen/nbsd.
Warning: The nics option is deprecated. Please use an empty vif entry instead:
vif = [ '' ]
root%asus.immnet.dk@localhost:/root # Error: Device 0 (vif) could not be
connected. Hotplug scripts not working.
when trying to start the domU.
When defining an arbitrary VIF I also get an error (displayed later).
I suspect this is because the /usr/pkg/etc/xen/xend-config.sxp script
has to call a network script called 'network-bridge' during start of
domU. The network-bridge script is nowhere to be found neither in
xentools41-4.1.2.nb7, xenkernel41-4.1.2nb3 nor any other previously
released xen* archives.
Could someone tell me where to get a working copy of the network-bridge
script?
When starting a domU with network configuration (or any other VIF settings)
vif = [ 'mac=aa:00:00:50:02:f0, bridge=bridge0' ]
the domU start, waits approximately 100 seconds and then terminates with
the messages:
root%asus.immnet.dk@localhost:/root # xm create -c /usr/pkg/etc/xen/nbsd
Using config file "/usr/pkg/etc/xen/nbsd".
root%asus.immnet.dk@localhost:/root # Error: Device 0 (vif) could not be
connected. Hotplug scripts not working
The xend.log file contains:
[2012-09-20 15:10:12 313] INFO (SrvDaemon:332) Xend Daemon started
[2012-09-20 15:10:12 313] INFO (SrvDaemon:336) Xend changeset: unavailable.
[2012-09-20 15:10:12 313] DEBUG (tcp:96) Listening on :8002
[2012-09-20 15:10:12 313] DEBUG (XendNode:333) pscsi record count: 0
[2012-09-20 15:10:12 313] DEBUG (XendCPUPool:747) recreate_active_pools
[2012-09-20 15:10:12 313] DEBUG (XendDomainInfo:151)
XendDomainInfo.recreate({'max_vcpu_id': 1, 'cpu_time': 19895240794L, 'ssidref':
0, 'hvm': 0, 'shutdown_reason': 255, 'dying': 0, 'online_vcpus': 1, 'domid': 0,
'paused': 0, 'crashed': 0, 'running': 1, 'maxmem_kb': 4294967292L, 'shutdown':
0, 'mem_kb': 262144L, 'blocked': 0, 'handle': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0], 'cpupool': 0, 'name': 'Domain-0'})
[2012-09-20 15:10:12 313] INFO (XendDomainInfo:169) Recreating domain 0, UUID
00000000-0000-0000-0000-000000000000. at /local/domain/0
[2012-09-20 15:10:13 313] DEBUG (XendDomainInfo:3420) Storing VM details:
{'on_xend_stop': 'ignore', 'pool_name': 'Pool-0', 'shadow_memory': '0', 'uuid':
'00000000-0000-0000-0000-000000000000', 'on_reboot': 'restart', 'image':
"(linux (kernel '') (superpages 0) (nomigrate 0) (tsc_mode 0))", 'on_poweroff':
'destroy', 'bootloader_args': '', 'on_xend_start': 'ignore', 'on_crash':
'restart', 'xend/restart_count': '0', 'vcpus': '1', 'vcpu_avail': '1',
'bootloader': '', 'name': 'Domain-0'}
[2012-09-20 15:10:13 313] DEBUG (XendDomainInfo:1794) Storing domain details:
{'description': '', 'console/limit': '1048576', 'vm':
'/vm/00000000-0000-0000-0000-000000000000', 'domid': '0', 'cpu/0/availability':
'online', 'memory/target': '262144',
'control/platform-feature-multiprocessor-suspend': '1', 'console/type':
'xenconsoled', 'name': 'Domain-0'}
[2012-09-20 15:10:13 313] DEBUG (XendDomain:476) Adding Domain: 0
[2012-09-20 15:10:13 313] DEBUG (XendDomain:410) number of vcpus to use is 0
[2012-09-20 15:10:13 313] WARNING (XendAPI:708) API call: VBD.set_device not
found
[2012-09-20 15:10:13 313] WARNING (XendAPI:708) API call: VBD.set_type not found
[2012-09-20 15:10:13 313] WARNING (XendAPI:708) API call:
session.get_all_records not found
[2012-09-20 15:10:13 313] WARNING (XendAPI:708) API call: event.get_record not
found
[2012-09-20 15:10:13 313] WARNING (XendAPI:708) API call: event.get_all not
found
[2012-09-20 15:10:13 313] WARNING (XendAPI:708) API call: VIF.set_device not
found
[2012-09-20 15:10:13 313] WARNING (XendAPI:708) API call: VIF.set_MAC not found
[2012-09-20 15:10:13 313] WARNING (XendAPI:708) API call: VIF.set_MTU not found
[2012-09-20 15:10:13 313] WARNING (XendAPI:708) API call: debug.get_all not
found
[2012-09-20 15:10:13 313] DEBUG (XendDomainInfo:1881)
XendDomainInfo.handleShutdownWatch
[2012-09-20 15:10:13 313] INFO (XMLRPCServer:161) Opening Unix domain socket
XML-RPC server on /var/run/xend/xen-api.sock; authentication has been disabled
for this server.
[2012-09-20 15:10:13 313] INFO (XMLRPCServer:161) Opening Unix domain socket
XML-RPC server on /var/run/xend/xmlrpc.sock.
[2012-09-20 15:31:38 313] DEBUG (XendDomainInfo:103)
XendDomainInfo.create(['vm', ['name', 'nbsd'], ['memory', 128],
['on_xend_start', 'ignore'], ['on_xend_stop', 'ignore'], ['vcpus', 1], ['oos',
1], ['image', ['linux', ['kernel', '/netbsd-INSTALL_XEN3PAE_DOMU.gz'], ['root',
'xbd0'], ['videoram', 4], ['tsc_mode', 0], ['nomigrate', 0]]], ['s3_integrity',
1], ['device', ['vbd', ['uname', 'file:/var/xen/nbsd-disk'], ['dev', '0x01'],
['mode', 'w']]], ['device', ['vif', ['bridge', 'bridge0'], ['mac',
'aa:00:00:50:02:f0']]]])
[2012-09-20 15:31:38 313] DEBUG (XendDomainInfo:2498)
XendDomainInfo.constructDomain
[2012-09-20 15:31:38 313] DEBUG (balloon:187) Balloon: 3849216 KiB free; need
16384; done.
[2012-09-20 15:31:38 313] DEBUG (XendDomain:476) Adding Domain: 1
[2012-09-20 15:31:38 313] DEBUG (XendDomainInfo:2836)
XendDomainInfo.initDomain: 1 256
[2012-09-20 15:31:38 313] DEBUG (XendDomainInfo:2863)
_initDomain:shadow_memory=0x0, memory_static_max=0x8000000,
memory_static_min=0x0.
[2012-09-20 15:31:39 313] INFO (image:182) buildDomain os=linux dom=1 vcpus=1
[2012-09-20 15:31:39 313] DEBUG (image:721) domid = 1
[2012-09-20 15:31:39 313] DEBUG (image:722) memsize = 128
[2012-09-20 15:31:39 313] DEBUG (image:723) image =
/netbsd-INSTALL_XEN3PAE_DOMU.gz
[2012-09-20 15:31:39 313] DEBUG (image:724) store_evtchn = 1
[2012-09-20 15:31:39 313] DEBUG (image:725) console_evtchn = 2
[2012-09-20 15:31:39 313] DEBUG (image:726) cmdline = root=xbd0
[2012-09-20 15:31:39 313] DEBUG (image:727) ramdisk =
[2012-09-20 15:31:39 313] DEBUG (image:728) vcpus = 1
[2012-09-20 15:31:39 313] DEBUG (image:729) features =
[2012-09-20 15:31:39 313] DEBUG (image:730) flags = 0
[2012-09-20 15:31:39 313] DEBUG (image:731) superpages = 0
[2012-09-20 15:31:39 313] INFO (XendDomainInfo:2357) createDevice: vbd :
{'uuid': '79a1eb0c-b8db-c98a-e711-0189f3e476cb', 'bootable': 1, 'driver':
'paravirtualised', 'dev': '0x01', 'uname': 'file:/var/xen/nbsd-disk', 'mode':
'w'}
[2012-09-20 15:31:39 313] DEBUG (DevController:95) DevController: writing
{'virtual-device': '1', 'device-type': 'disk', 'protocol': 'x86_32-abi',
'backend-id': '0', 'state': '1', 'backend': '/local/domain/0/backend/vbd/1/1'}
to /local/domain/1/device/vbd/1.
[2012-09-20 15:31:39 313] DEBUG (DevController:97) DevController: writing
{'domain': 'nbsd', 'frontend': '/local/domain/1/device/vbd/1', 'uuid':
'79a1eb0c-b8db-c98a-e711-0189f3e476cb', 'bootable': '1', 'dev': '0x01',
'state': '1', 'params': '/var/xen/nbsd-disk', 'mode': 'w', 'online': '1',
'frontend-id': '1', 'type': 'file'} to /local/domain/0/backend/vbd/1/1.
[2012-09-20 15:31:39 313] INFO (XendDomainInfo:2357) createDevice: vif :
{'bridge': 'bridge0', 'mac': 'aa:00:00:50:02:f0', 'uuid':
'0e5480b3-cede-bfc4-7979-033d6d06e306'}
[2012-09-20 15:31:39 313] DEBUG (DevController:95) DevController: writing
{'mac': 'aa:00:00:50:02:f0', 'handle': '0', 'protocol': 'x86_32-abi',
'backend-id': '0', 'state': '1', 'backend': '/local/domain/0/backend/vif/1/0'}
to /local/domain/1/device/vif/0.
[2012-09-20 15:31:39 313] DEBUG (DevController:97) DevController: writing
{'bridge': 'bridge0', 'domain': 'nbsd', 'handle': '0', 'uuid':
'0e5480b3-cede-bfc4-7979-033d6d06e306', 'script':
'/usr/pkg/etc/xen/scripts/vif-bridge', 'mac': 'aa:00:00:50:02:f0',
'frontend-id': '1', 'state': '1', 'online': '1', 'frontend':
'/local/domain/1/device/vif/0'} to /local/domain/0/backend/vif/1/0.
[2012-09-20 15:31:39 313] DEBUG (XendDomainInfo:3420) Storing VM details:
{'on_xend_stop': 'ignore', 'pool_name': 'Pool-0', 'shadow_memory': '0', 'uuid':
'd54a03fc-39c5-be7f-231e-c2cb0be1f96a', 'on_reboot': 'restart', 'start_time':
'1348147899.75', 'on_poweroff': 'destroy', 'bootloader_args': '',
'on_xend_start': 'ignore', 'on_crash': 'restart', 'xend/restart_count': '0',
'vcpus': '1', 'vcpu_avail': '1', 'bootloader': '', 'image': "(linux (kernel
/netbsd-INSTALL_XEN3PAE_DOMU.gz) (args 'root=xbd0 ') (superpages 0) (videoram
4) (pci ()) (nomigrate 0) (tsc_mode 0) (notes))", 'name': 'nbsd'}
[2012-09-20 15:31:40 313] DEBUG (XendDomainInfo:1794) Storing domain details:
{'console/ring-ref': '1199817', 'console/port': '2', 'description': '',
'console/limit': '1048576', 'vm': '/vm/d54a03fc-39c5-be7f-231e-c2cb0be1f96a',
'domid': '1', 'store/port': '1', 'cpu/0/availability': 'online',
'memory/target': '131072', 'control/platform-feature-multiprocessor-suspend':
'1', 'store/ring-ref': '1199818', 'console/type': 'xenconsoled', 'name': 'nbsd'}
[2012-09-20 15:31:40 313] DEBUG (DevController:95) DevController: writing
{'protocol': 'x86_32-abi', 'state': '1', 'backend-id': '0', 'backend':
'/local/domain/0/backend/console/1/0'} to /local/domain/1/device/console/0.
[2012-09-20 15:31:40 313] DEBUG (DevController:97) DevController: writing
{'domain': 'nbsd', 'frontend': '/local/domain/1/device/console/0', 'uuid':
'95c3c087-2f68-d440-46e8-392c24255000', 'frontend-id': '1', 'state': '1',
'location': '2', 'online': '1', 'protocol': 'vt100'} to
/local/domain/0/backend/console/1/0.
[2012-09-20 15:31:40 313] DEBUG (XendDomainInfo:1881)
XendDomainInfo.handleShutdownWatch
[2012-09-20 15:31:40 313] DEBUG (DevController:139) Waiting for devices tap2.
[2012-09-20 15:31:40 313] DEBUG (DevController:139) Waiting for devices vif.
[2012-09-20 15:31:40 313] DEBUG (DevController:144) Waiting for 0.
[2012-09-20 15:31:40 313] DEBUG (DevController:628) hotplugStatusCallback
/local/domain/0/backend/vif/1/0/hotplug-status.
[2012-09-20 15:33:20 313] DEBUG (XendDomainInfo:3071) XendDomainInfo.destroy:
domid=1
[2012-09-20 15:33:20 313] DEBUG (XendDomainInfo:2401) Destroying device model
[2012-09-20 15:33:20 313] DEBUG (XendDomainInfo:2408) Releasing devices
[2012-09-20 15:33:20 313] DEBUG (XendDomainInfo:2414) Removing vif/0
[2012-09-20 15:33:20 313] DEBUG (XendDomainInfo:1276)
XendDomainInfo.destroyDevice: deviceClass = vif, device = vif/0
[2012-09-20 15:33:20 313] DEBUG (XendDomainInfo:2414) Removing console/0
[2012-09-20 15:33:20 313] DEBUG (XendDomainInfo:1276)
XendDomainInfo.destroyDevice: deviceClass = console, device = console/0
[2012-09-20 15:33:20 313] DEBUG (XendDomainInfo:2414) Removing vbd/1
[2012-09-20 15:33:20 313] DEBUG (XendDomainInfo:1276)
XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/1
[2012-09-20 15:33:20 313] DEBUG (XendDomainInfo:2406) No device model
[2012-09-20 15:33:20 313] DEBUG (XendDomainInfo:2408) Releasing devices
[2012-09-20 15:33:20 313] DEBUG (XendDomainInfo:2414) Removing vif/0
[2012-09-20 15:33:20 313] DEBUG (XendDomainInfo:1276)
XendDomainInfo.destroyDevice: deviceClass = vif, device = vif/0
[2012-09-20 15:33:20 313] DEBUG (XendDomainInfo:2414) Removing vbd/1
[2012-09-20 15:33:20 313] DEBUG (XendDomainInfo:1276)
XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/1
If I start domU without any VIF definitions and manually executes the following
commands on dom0
root%asus.immnet.dk@localhost:/root # ifconfig bridge0 create
root%asus.immnet.dk@localhost:/root # brconfig bridge0 add re0 up
root%asus.immnet.dk@localhost:/root # xm network-attach nbsd
mac=12:34:56:78:90:12 bridge=bridge0 ip=192.168.0.14 &
(parameters type, rate, model and accel can also be specified, but I am not
sure what to enter.
Where do I find an explanation of these parameters?)
a virtual interface is created on dom0 with the name xvif<domainId>i<n>, but
only for about
100 seconds. Furthermore the IP address does not seem to be assigned to neither
the dom0 VIF,
the dom0 bridge nor the domU xennet0 VIF.
While the dom0 VIF is exisiting, I can add it to the bridge on dom0:
root%asus.immnet.dk@localhost:/root # brconfig bridge0 add xvif11i4 up
and on domU I can assign VIF xennet0 an IP address and a default route:
root%nbsd.immnet.dk@localhost:/root # ifconfig xennet0 inet 192.168.0.14
root%nbsd.immnet.dk@localhost:/root # route add -net default 192.168.0.1
(If I am fast enough) I can then ping 192.168.0.14 on domU but not any addresses
on dom0 (e.g. the default gateway (192.168.0.1), the dom0 (192.168.0.3)) which
as
I understand should be available via the bridge.
After approximately 100 seconds the VIF is destroyed on dom0 and xennet0 becomes
unavailable on domU.
However on dom0 'xm network-list nbsd' still shows:
root%asus.immnet.dk@localhost:/root # xm network-list nbsd
Idx BE MAC Addr. handle state evt-ch tx-/rx-ring-ref BE-path
4 0 12:34:56:78:90:12 4 6 17 452 /492
/local/domain/0/backend/vif/11/4
root%asus.immnet.dk@localhost:/root #
If I try to remove this virtual network device I get:
root%asus.immnet.dk@localhost:/root # xm network-detach nbsd 4 --force
Error: Device 4 is not defined
Usage: xm network-detach <Domain> <DevId|mac> [-f|--force]
Destroy a domain's virtual network device.
root%asus.immnet.dk@localhost:/root #
But nevertheless the device is actually removed:
root%asus.immnet.dk@localhost:/root # xm network-list nbsd
root%asus.immnet.dk@localhost:/root #
The bottom line is: I am able run a domU NetBSD
but without any network capabilities.
That is not much fun :-(
So to sum it up:
Can someone
- tell me what is wrong with my xentools/xend configuration?
- tell me where to get a working copy of the network-bridge script?
- explain all the parameters for 'xm network-attach'
- tell me if there is a possible bug in xm network-detach and if I
have to report it?
and last but not least
- hopefully direct me in the right direction to make the network
facilities work.
Kind regards
Ib-Michael
--
Email: i.m.martinsen(at)gmail.com
Running NetBSD/i386 v5.1.2
The ASCII Ribbon Campaign
() No HTML/RTF in email
/\ No Word docs in email
Respect for open standards
Home |
Main Index |
Thread Index |
Old Index