projects
/
invirt/packages/invirt-xen-config.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Turn on the relocation server
[invirt/packages/invirt-xen-config.git]
/
qemu-ifup.invirt
diff --git
a/qemu-ifup.invirt
b/qemu-ifup.invirt
index
d50b412
..
4d3cb0d
100755
(executable)
--- a/
qemu-ifup.invirt
+++ b/
qemu-ifup.invirt
@@
-1,16
+1,17
@@
#!/bin/sh
#!/bin/sh
-echo "config qemu network with xen bridge for $@"
+echo "config qemu network with invirtroute for $@"
if [ -z "$domid" ]; then
echo "domid is not set!!!" >&2
exit 1
fi
if [ -z "$domid" ]; then
echo "domid is not set!!!" >&2
exit 1
fi
-dev=$1
+INTERFACE=$1
+type_if=tap
+ifnum=${1##*.}
qemu_online=yes
qemu_online=yes
-XENBUS_PATH=/local/domain/0/backend/vif/${domid}/0
-vif=vif${domid}.0
-export vif qemu_online XENBUS_PATH dev
+vif=vif${domid}.${ifnum}
+export vif qemu_online INTERFACE type_if
-exec /etc/xen/scripts/vif-invirtroute online
+exec /etc/xen/scripts/vif-invirtroute add