Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


Device File Virtualization Proof of Concept (Kernel+Preload)
[palacios.git] / gears / services / devfile / scripts / load_lib_in_guest
diff --git a/gears/services/devfile/scripts/load_lib_in_guest b/gears/services/devfile/scripts/load_lib_in_guest
new file mode 100644 (file)
index 0000000..bc81b3d
--- /dev/null
@@ -0,0 +1,17 @@
+#copy the missing library over to correct path
+cd /lib64
+cp /mnt/libtest/libdl.so.2 .
+
+#set LD_PRELOAD correctly
+export LD_PRELOAD=/mnt/dev_file/devfile_preload.so
+
+
+#check if the loader is able to load the LD_library 
+./ld-linux-x86-64.so.2 --list /mnt/dev_file/devfile_preload.so
+
+#check if test program gets the ld preload loaded
+./ld-linux-x86-64.so.2 --list /mnt/dev_file/test_preload
+
+# run test program
+cd /mnt/dev_file/
+#./test_preload r 24 /dev/urandom