Get Ubuntu 11.04 with Unity working in VirtualBox 4.0
1. Firstly, install VirtualBox 4.0. For installation instructions, see our previous article: Install VirtualBox 4.0 (Stable) In Ubuntu, Via Repository
2. Download the latest Ubuntu 11.04 Natty Narwhal daily live ISO from HERE.
3. In VirtualBox, create a new virtual machine, go to its settings and on the Display tab, check the "Enable 3D Acceleration" box.
4. Now you'll need to install Natty in VirtualBox. When done, start it and on top of the window you should see a menu - here, click Devices > Install Guest Additions.
5. Install VirtualBox Guest Additions:
password reset
template1=# ALTER USER <dbuser> WITH PASSWORD '<password>';