PHPVirtualbox on Virtualbox Rumi, May 23, 2011May 23, 2011 Unlike VMWare, VirtualBox guests are not global; they are owned by the user that creates them. Therefore, it is important to create a user account explicitly for this purpose. Create this user account BEFORE installing VirtualBox. Install VirtualBox from this account and perform all VirtualBox operations from this account. For the rest of this document, we will use the account "vboxuser". Now install VirtualBox under the account that you created. The rest of this HowTo was done on the regular edition, not the OSE edition, so there may be minor differences. InstallVBoxWeb VirtualBox does not provide a Web interface like VMWare. But the Google Code project phpVirtualBox http://code.google.com/p/phpvirtualbox/ works quite well for most tasks. On Ubuntu: Copy phpvirtualbox to /var/www/vboxweb sudo update-rc.d vboxweb-service defaults create /etc/default/virtualbox VBOXWEB_USER=vbox_user_name (the user name you use when you installed VirtualBox) #VBOXWEB_HOST= #VBOXWEB_PORT= #VBOXWEB_TIMEOUT= #VBOXWEB_CHECK_INTERVAL= #VBOXWEB_THREADS= #VBOXWEB_KEEPALIVE= #VBOXWEB_LOGFILE= Modify /var/www/vboxweb/config.php to use the account that you created for VirtualBox. sudo VBoxManage setproperty websrvauthlibrary null (for OSE version) IMPORTANT: Make sure the vboxweb-service script has been installed in your /etc/init.d/ directory. I am not sure what part of VirtualBox installs this. Anyone? Anyone? Bueller? Remote Control If you remotely create a VM, you may not have ssh or some other native facility installed in the guest operating system, so how do you control the machine before the network and utilities are running properly? How do you create the equivalent of VMWare's Remote Console? The answer is RDP. Once phpVirtualBox is installed and running correctly, go to "Settings | Display | Remote Display" for each guest and enter a unique port for that guest. Note that the port assigned here refers to the VirutalBox host. Therefore, the default port of 3389 can only be used for a single guest machine. As a standard, we usually add the last quad of the IP address to 30000 for each guest. So if the host is 192.168.6.25 and the guest is 192.168.6.54, we will connect to the guest at 192.168.6.25:30054. You can connect directly through the "Console" tab on phpvirtualbox, or use a standalone RDP client (which is what we do since sometimes the console in phpvirtualbox doesn't forward ctrl-keys). Clients are available for free on all platforms. Related Virtualbox Virtualization
Compacting VirtualBox’s VDI file size? February 8, 2017 Run defrag in the guest (Windows only) Nullify free space: With a Linux Guest run this: sudo dd if=/dev/zero | pv | sudo dd of=/bigemptyfile bs=4096k sudo rm -rf /bigemptyfile Related Read More
VBoxHeadless – Running Virtual Machines With VirtualBox 4.0 On A Headless CentOS 5.6 Server December 14, 2011December 14, 2011 This guide explains how you can run virtual machines with VirtualBox 4.0 on a headless CentOS 5.6 server. Normally you use the VirtualBox GUI to manage your virtual machines, but a server does not have a desktop environment. Fortunately, VirtualBox comes with a tool called VBoxHeadless that allows you to… Read More
Virtual USB and VBoxusergroup Troubleshoot on Linux Host December 16, 2011December 16, 2011 I faced USB issues on both Virtualbox installation on both Debian and CentOS linux host. I really didn't notice the urgency of vboxusers group in running VBox in headless mode! Anyway, following snippets of texts really did help me out solving my USB problems. All credits goes to the VBox… Read More