X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-xen-config.git/blobdiff_plain/8afbf76ed9b5b1a072054001f79102aee87fc423..e184e10bce2f4df930706a854f0f32d21d661d10:/qemu-ifup.invirt?ds=inline diff --git a/qemu-ifup.invirt b/qemu-ifup.invirt index d50b412..4d3cb0d 100755 --- a/qemu-ifup.invirt +++ b/qemu-ifup.invirt @@ -1,16 +1,17 @@ #!/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 -dev=$1 +INTERFACE=$1 +type_if=tap +ifnum=${1##*.} 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