fix static ip address
diff --git a/vm-setup-lxc.sh b/vm-setup-lxc.sh
index 01cc292..0c855f5 100644
--- a/vm-setup-lxc.sh
+++ b/vm-setup-lxc.sh
@@ -11,11 +11,19 @@
sudo update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
sudo update-alternatives --set javac /usr/lib/jvm/java-8-openjdk-amd64/bin/javac
-sudo lxc-create --name onos1 -t download -- --dist ubuntu --release trusty --arch amd64
+sudo lxc-create --name onos1 -t download -- --dist ubuntu --release utopic --arch amd64
-sudo sh -c "echo lxc.network.ipv4=10.1.3.11 >> /var/lib/lxc/onos1/config"
+#sudo sh -c "echo lxc.network.ipv4=10.0.3.11 >> /var/lib/lxc/onos1/config"
sudo sh -c "echo lxc.start.auto=1 >> /var/lib/lxc/onos1/config"
+sudo sh -c "sed -i s/dhcp/static/ /var/lib/lxc/onos1/rootfs/etc/network/interfaces"
+sudo sh -c "cat << EOF >> /var/lib/lxc/onos1/rootfs/etc/network/interfaces
+ address 10.0.3.11
+ netmask 255.255.255.0
+ gateway 10.0.3.1
+ dns-nameservers 10.0.3.1
+EOF"
+
sudo lxc-start --name onos1 --daemon
sudo lxc-attach --name onos1 -- useradd -m sdn -s /bin/bash
sudo lxc-attach --name onos1 -- /bin/bash -c "echo sdn:rocks | chpasswd"