onward, not forward.

| | Comments (0)
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

Leave a comment

About this Entry

This page contains a single entry by chris t published on April 28, 2009 4:09 AM.

purely of historical interest. was the previous entry in this blog.

start a getty on the cross-platform hypervisor console. is the next entry in this blog.

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