Headless VirtualBox Installation With phpvirtualbox

Phpvirtualbox is a web-based VirtualBox front-end written in PHP that allows you to access and control remote VirtualBox instances.It is a nice replacement for the VirtualBox GUI if you run VirtualBox on headless servers.I do not issue any guarantee that this will work.

1 Preliminary Note

Headless VirtualBox is already installed on the local OpenSUSE 12.1 server
running all the steps in this notes are with root privileges so lo gin as root

2 Installing phpvirtualbox

Create system user as vbox  and add to vboxusers

useradd -m vbox -G vboxusers

password for the vbox user

passwd vbox

Create the file /etc/default/virtualbox and put the line VBOXWEB_USER=vbox in it (so that the VirtualBox SOAP API which is called vboxwebsrv runs as the user vbox)

Continue reading “Headless VirtualBox Installation With phpvirtualbox” »

Be the first to comment - What do you think?  Posted by Aniruddh - August 8, 2012 at 5:53 pm

Categories: virtual box, Virtualization   Tags:

Using And Installing OpenVZ On CentOS 6.3

multiple Virtual Private Servers (VPS) by the use of OpenVZ on the same hardware, similar to Xen and the Linux Vserver projectThe OpenVZ kernel patch is licensed under the GPL license, and the user-level tools are under the QPL license


1 Installing OpenVZ

To Install of OpenVZ wwant to add OpenVZ repository to yum

cd /etc/yum.repos.d

rpm –import


open openvz.repo


vi openvz.repo


name=OpenVZ RHEL6-based kernel

 Continue reading “Using And Installing OpenVZ On CentOS 6.3” »

Be the first to comment - What do you think?  Posted by Aniruddh - at 1:55 am

Categories: CentOS, OpenVZ, Virtualization   Tags:

Using DPKG To Install OpenVZ On Debian

DPKG package manager to install OpenVZ, all you need to do is download the OpenVZ components, and let DPKG do the rest.

Download the lastest kernel revision level, for your particular DEBIAN distro. For me, this was:


Next,go to this URL:


* vzctl
* vzprocps
* vzquota

and an OS template cache, from the “vzctl-ostemplate” directory. I chose DEBIAN 5.0.


Open a terminal shell, and log in as “root”.(use “SU” or “SUDO”)

Create a “/vz” directory.

Continue reading “Using DPKG To Install OpenVZ On Debian” »

Be the first to comment - What do you think?  Posted by Aniruddh - December 20, 2011 at 4:33 pm

Categories: Debian, OpenVZ   Tags:

Basic HTTP Authentication With Nginx

HTTP authentication with Nginx to password-protect directories on your server or even a whole website

1 Preliminary Note

here with the document root /var/www/ and the Nginx vhost configuration file /etc/nginx/sites-enabled/ The directory I want to password-protect is /var/www/

2 Creating The Password File

a password file where users that should be able to log in are listed with their passwords (in encrypted form). To create such a password file, we can either use Apache’s htpasswd tool, or we use the Python script from

2.1 Using Apache’s htpasswd Command

to use Apache’s htpasswd command, check if it exists on your system

which htpasswd

root@server1:~# which htpasswd

On Debian/Ubuntu, it’s part of the apache2-utils package which we can install

apt-get install apache2-utils

.htpasswd; I just named it .htpasswd because that’s the way password files are named under Apache

htpasswd -c /var/www/ falko

want to add another user without deleting all existing users, use the htpasswd command without the -c switch:

htpasswd /var/www/ till

2.2 Using The Python Script

download it to /usr/local/bin and make it executable

cd /usr/local/bin
chmod 755 /usr/local/bin/

to create the password file /var/www/ now and store the user falko in it -c -b /var/www/ falko falkossecret

use the command without the -c switch -b /var/www/ till tillssecret

3 Configuring Nginx

to add it to our Nginx vhost configuration in /etc/nginx/sites-enabled/, inside the server {} container.

vi /etc/nginx/sites-enabled/

Reload Nginx

/etc/init.d/nginx reload

Be the first to comment - What do you think?  Posted by Aniruddh - November 12, 2011 at 1:46 am

Categories: Nginx, OpenVZ, Virtualization   Tags: