source: trunk/packages/sipb-xen-dom0/sipb-xen-dom0/files/etc/xen/scripts/qemu-ifup @ 95

Last change on this file since 95 was 95, checked in by hartmans, 17 years ago
  • Add qemu-ifup script that depends on the device model script and invokes vif-sipbroute. As a consequence, we don't really support bridged hvms any more. It's not clear how to get enough information out of qemu to do this.
  • Call arpspoof with 18.181.0.1's address. This is unfortunate in two ways. First, if we renumber we'll need to update the script. Second, it is possible that someone on 18.181 besides the router may have an address cached. Unfortunately, it doesn't work right if we don't send the spoofed arp directly to the router.
  • Property svn:executable set to *
File size: 248 bytes
Line 
1#!/bin/sh
2
3
4echo -c 'config qemu network with xen bridge for '
5echo $*
6
7dev=$1
8qemu_online=yes
9XENBUS_PATH=/local/domain/0/backend/vif/${domid}/0
10vif=vif${domid}.0
11export vif qemu_online XENBUS_PATH dev
12
13exec /etc/xen/scripts/vif-sipbroute online
Note: See TracBrowser for help on using the repository browser.