|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] Cannot create domU
I finally got it working under Gentoo by abandoning all the hotplug
stuff and just using a few udev rules:
xen udev # cat rules.d/49-xen.rules
SUBSYSTEM=="xen-backend", KERNEL=="vif*", ACTION=="online",
RUN+="/etc/xen/scripts/launch up"
SUBSYSTEM=="xen-backend", KERNEL=="vbd*", ACTION=="add",
RUN+="/etc/xen/scripts/vbd-add %k"
SUBSYSTEM=="xen-backend", KERNEL=="vbd*", ACTION=="remove",
RUN+="/etc/xen/scripts/vbd-remove %k"
SUBSYSTEM=="xen-backend", KERNEL=="vif*", ACTION=="remove",
RUN+="/etc/xen/scripts/vif-remove %k"
xen udev # cd /etc/xen/scripts/
xen scripts # cat launch
#!/bin/sh
# the script is specified in xend config
# and passed to us. we just call it.
export PATH="/sbin:/bin:/usr/sbin:/usr/bin:$PATH"
#echo "$(date): launch $1"
#env
#echo "Running ${script} $1"
${script} $1
xen scripts # cat vbd-add
#!/bin/sh
t=$(xenstore-read "$XENBUS_PATH"/type)
params=$(xenstore-read "$XENBUS_PATH"/params)
[ -x /etc/xen/scripts/block-"$t" ] && \
/etc/xen/scripts/block-"$t" bind $params
xen scripts # cat vbd-remove
#!/bin/sh
t=$(xenstore-read "$XENBUS_PATH"/type)
node=$(xenstore-read "$XENBUS_PATH"/node)
[ -x /etc/xen/scripts/block-"$t" ] && \
/etc/xen/scripts/block-"$t" unbind $node
# remove device backend store entries
xenstore-rm "$XENBUS_PATH"
xen scripts # cat vif-remove
#!/bin/sh
# remove device backend store entries
xenstore-rm "$XENBUS_PATH"
/sbin/ip link set ${dev} down
/sbin/brctl delif ${bridge} ${dev}
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- Re: [Xen-devel] Cannot create domU, (continued)
- Re: [Xen-devel] Cannot create domU, Keir Fraser
- Re: [Xen-devel] Cannot create domU, NAHieu
- Re: [Xen-devel] Cannot create domU, Chris Bainbridge
- Re: [Xen-devel] Cannot create domU, Keir Fraser
- Message not available
- Re: [Xen-devel] Cannot create domU, Keir Fraser
- Message not available
- Re: [Xen-devel] Cannot create domU, Keir Fraser
- Re: [Xen-devel] Cannot create domU, Greg KH
- Re: [Xen-devel] Cannot create domU, Keir Fraser
- Re: [Xen-devel] Cannot create domU, Greg KH
- Re: [Xen-devel] Cannot create domU, Chris Bainbridge
- Re: [Xen-devel] Cannot create domU,
Chris Bainbridge <=
- Re: [Xen-devel] Cannot create domU, Gerd Knorr
- Re: [Xen-devel] Cannot create domU, Chris Bainbridge
|
|
|
|
|