Reboot VM from GUI

Change-Id: Id50da591b5934081f7b1843d01b4d0d2293d53a8
diff --git a/tutorial1-setup.sh b/tutorial1-setup.sh
index af07049..71e5b5d 100644
--- a/tutorial1-setup.sh
+++ b/tutorial1-setup.sh
@@ -31,7 +31,7 @@
 
 # -------------- Setup Desktop ----------------
 
-sudo apt-get install -y xorg lxde
+sudo apt-get install -y xorg lxde systemd-shim
 
 #TODO: add backgrounds folder
 sudo mkdir -p /usr/share/backgrounds
@@ -44,6 +44,8 @@
 sudo sed -i 's/bottom_pane=1/bottom_pane=0/g' /etc/lxdm/default.conf
 sudo sed -i 's/disable=0/disable=1/g' /etc/lxdm/default.conf
 
+# Allow VM to be rebooted from GUI
+echo "session required pam_systemd.so" >> /etc/pam.d/lxdm
 
 wget -O onos.png "https://gerrit.onosproject.org/gitweb?p=onos-vm.git;a=blob_plain;hb=refs/heads/onos-tutorial;f=onos.png"
 sudo cp onos.png /usr/share/backgrounds/default.png