April 2009 Archives

onward, not forward.

| No Comments
Ah, progress!  Thankfully, this problem seems to be fixed in both Solaris Express and OpenSolaris, so I guess we can take out this section.  I'm pretty happy about that, yeah.


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

About this Archive

This page is an archive of entries from April 2009 listed from newest to oldest.

March 2009 is the previous archive.

May 2009 is the next archive.

Find recent content on the main index or look in the archives to find all content.