From 638473a364643a2ecea5502966420d250d02d153 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Sat, 23 Apr 2011 02:32:54 +0200 Subject: [PATCH] Connect vif's to already running VMs on NetVM/ProxyVM startup (#190) Also cleanup stale vifs using "xm network-detach ... -f" Fix iptables rules to support not only first vif of VM --- common/setup_ip | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/setup_ip b/common/setup_ip index 267d7ba..aec795e 100755 --- a/common/setup_ip +++ b/common/setup_ip @@ -5,7 +5,8 @@ netmask=`/usr/bin/xenstore-read qubes_netmask` gateway=`/usr/bin/xenstore-read qubes_gateway` secondary_dns=`/usr/bin/xenstore-read qubes_secondary_dns` if [ x$ip != x ]; then - /sbin/ifconfig $INTERFACE $ip netmask 255.255.255.255 up + /sbin/ifconfig $INTERFACE $ip netmask 255.255.255.255 + /sbin/ifconfig $INTERFACE up /sbin/route add default dev $INTERFACE echo "nameserver $gateway" > /etc/resolv.conf echo "nameserver $secondary_dns" >> /etc/resolv.conf