Devices and Hotplug
Solaris' hotplug system may give you some trouble. The problem is that the default hotplug configuration (in 2008.05) doesn't react correctly to the Xen virtual devices. This causes domain creation to fail with an error message like "Device 0 (vif) could not be connected. Hotplug scripts not working."
To fix the hotplug scripts, create and run a script like the following, which adds appropriate rules for Xen devices:1
BASEDIR=${BASEDIR:-/}
/usr/sbin/syseventadm
list -R $BASEDIR -c EC_xendev > /dev/null 2>&1
if [ $?
-ne 0 ]
then
/usr/sbin/syseventadm
add -R $BASEDIR -c EC_xendev \
/usr/lib/xen/scripts/xpvd-event
'action=$subclass' \
'domain=$domain' 'vdev=$vdev'
'device=$device' \
'devclass=$devclass' 'febe=$fob'
fi
/usr/sbin/syseventadm
list -R $BASEDIR -c EC_xpvsys > /dev/null 2>&1
if [ $?
-ne 0 ]
then
/usr/sbin/syseventadm add -R $BASEDIR -c
EC_xpvsys \
/usr/lib/xen/scripts/xpvsys-event
'subclass=$subclass' \
'shutdown=$shutdown'
fi
#
restart daemon if the package is being added to the running system
if [ "$BASEDIR" = "/" -a $? -eq 0
]
then
/usr/sbin/syseventadm restart
fi
1 Script from http://blogs.sun.com/dkumar/entry/problem_bring_up_domu
Leave a comment