Skip to content
Bots!
Bots!
  • About
    • Myself
    • আমার দোয়া
  • Bookmarks
    • Bookmarks
    • My OCI Bookmarks
    • Useful Proxmox Commands & Links
    • Learning Nano
    • Useful Sites
    • Useful Virtualbox Command
    • Useful MySQL Command
    • Useful Linux Command
    • BTT-CAS
  • Resources
    • Webinar on Cloud Adoption for Project Managers
  • Photos
  • Videos
  • Downloads
Bots!

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.

Virtualbox Virtualization

Post navigation

Previous post
Next post

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Myself…

Hi, I am Hasan T. Emdad Rumi, an IT Project Manager & Consultant, Virtualization & Cloud Savvyfrom Dhaka, Bangladesh. I have prior experience in managing numerous local and international projects in the area of Telco VAS & NMC, National Data Center & PKI Naitonal Root and CA Infrastructure. Also engaged with several Offshore Software Development Team.

Worked with Orascom Telecom-Banglalink, Network Elites as VAS partner, BTRC, BTT (Turkey) , Mango Teleservices Limited and Access to Informaiton (A2I-UNDP)

Currently working at Oracle Corporation as Principal Technology Solution and Cloud Architect.

You can reach me [h.t.emdad at gmail.com] and I will be delighted to exchange my views.

Tags

Apache Bind Cacti CentOS CentOS 6 CentOS 7 Debain Debian Debian 10 Debian 11 Debian 12 DKIM Docker endian icinga iptables Jitsi LAMP Letsencrypt Linux Munin MySQL Nagios Nextcloud NFS nginx pfsense php Postfix powerdns Proxmox RDP squid SSH SSL Ubuntu Ubuntu 16 Ubuntu 18 Ubuntu 20 Varnish virtualbox vpn Webmin XCP-NG zimbra

Topics

Recent Posts

  • Install Jitsi on Ubuntu 22.04 / 22.10 April 30, 2025
  • Key Lessons in life April 26, 2025
  • Create Proxmox Backup Server (PBS) on Debian 12 April 19, 2025
  • Add Physical Drive in Proxmox VM Guest April 19, 2025
  • Mount a drive permanently with fstab in Linux April 16, 2025
  • Proxmox 1:1 NAT routing March 30, 2025
  • Installation steps of WSL – Windows Subsystem for Linux March 8, 2025
  • Enabling Nested Virtualization In Proxmox March 8, 2025
  • How to Modify/Change console/SSH login banner for Proxmox Virtual Environment (Proxmox VE / PVE) March 3, 2025
  • Install Proxmox Backup Server on Debian 12 February 12, 2025

Archives

Top Posts & Pages

  • Install Jitsi on Ubuntu 22.04 / 22.10
©2025 Bots! | WordPress Theme by SuperbThemes