static ip
diff --git a/vm-setup-lxc.sh b/vm-setup-lxc.sh
index 46f02ad..833e538 100644
--- a/vm-setup-lxc.sh
+++ b/vm-setup-lxc.sh
@@ -18,13 +18,15 @@
#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 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 sh -c "cat /var/lib/lxc/onos1/rootfs/etc/network/interfaces"
sudo lxc-start --name onos1 --daemon
sudo lxc-ls --fancy
@@ -36,9 +38,9 @@
sudo lxc-attach --name onos1 -- /bin/bash -c "echo sdn:rocks | chpasswd"
sudo lxc-attach --name onos1 -- /bin/bash -c "echo \"sdn ALL=(ALL) NOPASSWD:ALL\" > /etc/sudoers.d/sdn"
sudo lxc-attach --name onos1 -- apt-get update
-sudo lxc-attach --name onos1 -- apt-get install openssh-server -y
-sudo lxc-attach --name onos1 -- apt-get install software-properties-common -y
-sudo lxc-attach --name onos1 -- add-apt-repository ppa:webupd8team/java -y
-sudo lxc-attach --name onos1 -- apt-get update
-sudo lxc-attach --name onos1 -- apt-get install oracle-java8-installer oracle-java8-set-default -y
+sudo lxc-attach --name onos1 -- apt-get install -y openssh-server openjdk-8-jdk
+#sudo lxc-attach --name onos1 -- apt-get install software-properties-common -y
+#sudo lxc-attach --name onos1 -- add-apt-repository ppa:webupd8team/java -y
+#sudo lxc-attach --name onos1 -- apt-get update
+#sudo lxc-attach --name onos1 -- apt-get install oracle-java8-installer oracle-java8-set-default -y
sudo lxc-stop --name onos1