I need a webserver (LAMP) running inside a virtual machine (#1) running as a service (#2) in headless mode (#3) with part or the whole file system encrypted (#4).
The virtual machine will be started with no user intervention and provide access to a web application for users in the host machine. Points #1,#2 and #3 are checked and proved to be working fine with Sun VirtualBox, so my question is for #4:
Can I encrypt all of the file system and still access the webserver (using a browser) or will GRUB ask me for a password?
If encrypting all of the file system is not an option, can I encrypt only /home
and /var/www
? Will Apache/PHP be able to use files in /home
or /var/www
without asking for a password or mounting these partitions manually?