I installed CentOS 6 on a 3gb virtualbox disk. It hosts a web server which starts automatically when the OS boots. No user login required. When it boots, it is given an IP and the host machine can connect to the server.
The idea is to hand this to someone on a flash drive, let them install virtualbox on their computer and run the image to start the server.
The server software is written in an interpreted language and the source code also resides on the image. The problem is, we don't want someone to hack into the disk and get the source code that is plainly lying around.
Since we want the httpd to start at boot without giving anyone any passwords, we can't encrypt the disk. Disk encryption also leads to complications since httpd will have to start after encrypted volume is mounted etc.
Considering these constraints, what options do I have in order to protect the source code inside the virtual drive?