Professional Documents
Culture Documents
Virtual Appliances Quick Start Guide - Bitnami Documentation
Virtual Appliances Quick Start Guide - Bitnami Documentation
Bitnami Virtual Machine Images , also known as virtual appliances, contain a minimal Linux operating system and a fully installed
and configured Bitnami application Stack. This allows you to run the application without actually installing it on your computer’s
operating system. Using a virtualization platform, you can simply start and stop the Bitnami Virtual Machine Image whenever you
want to use the application. This allows you to keep it completely isolated from software installed on your machine.
After you download and extract a Bitnami Virtual Machine Image (the file is compressed to reduce the download size), it will be
ready to be deployed in your virtualization infrastructure. If you don’t already have a virtualization platform, or ‘hypervisor’,
installed, you can download either VMware Player or VirtualBox free of charge. Once you have one installed, you’ll be able to run
a Bitnami Virtual Machine Image.
Bitnami provides free virtual machines for popular open source applications. Visit our download page, select
your application of choice and then click on the download link.
Bitnami appliances are distributed inside a compressed file, and you will need to extract them before being able to run them. After
that, simply launch your VMware serverconsole or your VMware Player and open the .vmx image that you can find into the
extracted folder.
Another option is to use the VMware vCenter Converter Tool to convert the machine to the .OVF format. Download a version
previous of 4.3, after this version the VMware Converter does not include this feature.
1. Choose the .vmx file from the uncompresed folder.
2. Select the destination type "Virtual appliance" and the distribution format "Folder of files".
3. Edit the Product Information and set the Product Name.
https://wiki.bitnami.com/Virtual_Appliances_Quick_Start_Guide#VMware_ESX_or_ESXi 1/13
9/9/2016 Virtual Appliances Quick Start Guide Bitnami documentation
Virtual Box
If you are using Virtual Box 4 or later, you would like to import the Virtual Appliance manually. You can do it following these
steps:
1. Create a new Virtual Machine and set that it is a Linux Ubuntu 64bit machine.
https://wiki.bitnami.com/Virtual_Appliances_Quick_Start_Guide#VMware_ESX_or_ESXi 2/13
9/9/2016 Virtual Appliances Quick Start Guide Bitnami documentation
2. Configure RAM to 512 or higher. For Rubybased or Javabased applciations (f.e. Liferay, Alfresco, GitLab), we
recommendmore than 1Gb RAM.
3. Choose "existing hard disk" and select the Bitnami "vmdk" file. Be sure that you select the main one (without s00X in the
file name, not any of the other vmdk files: s001.vmdk, s002.vmdk, etc).
If you are using a previous VMware image with Ubuntu 10.10, go to Settings > System > Processor > Enable PAE. For
Ubuntu 12.04 images it is not necessary.
4. Check that the Network configuration is "Bridged Adapter" to have access from remote machines in your network.
5. Start your machine
https://wiki.bitnami.com/Virtual_Appliances_Quick_Start_Guide#VMware_ESX_or_ESXi 3/13
9/9/2016 Virtual Appliances Quick Start Guide Bitnami documentation
If you would like to log in from a remote system using SSH, you must first enable SSH. Then, follow the steps below for your
platform.
You have to specify the password for the "bitnami" user. You can also change to root user in the command prompt:
$ sudo su
# /opt/bitnami/ctlscript.sh status
If you want to specify a known root password for the Virtual Appliance, you can change follow these steps:
$ sudo su
# passwd
https://wiki.bitnami.com/Virtual_Appliances_Quick_Start_Guide#VMware_ESX_or_ESXi 4/13
9/9/2016 Virtual Appliances Quick Start Guide Bitnami documentation
This address is typically assigned to it by a DHCP server in your network. The IP address will be displayed on screen at the end of the
boot process.
Regarding the web application itself, the default user and password for the administrator of your application is "user" and the
password "bitnami" in most cases. The exact username and password are provided at the end of the boot process and it is
recommended that you change these values. You can do so from the application itself, as it varies from program to program.
You can also see your IP address by typing "ifconfig" in the command prompt after login in. If the machine does not show any IP
logging in address try to force reloading the IP:
$ sudo /etc/init.d/networking force‐reload
If your machine can not get a valid IP it is possible that you do not have a DHCP address or it is not configured to give IP addresses
to unknown machines. In this case you have two options: you can use the VMware DHCP server, or you can configure the network
manually.
If you want to use the VMware DHCP server, you can stop the machine, change the network settings to "NAT" instead of "BRIDGE"
and start the machine. This IP is internal so you have only access to the application from the same computer where the Virtual
Machine is running.
If you prefer to configure the network manually you can run the following commands in the Virtual Machine:
Now you can login from a different machine using "ssh" and the IP address of your Virtual Machine.
For Ubuntu
$ sudo stop ssh
$ sudo mv /etc/init/ssh.conf /etc/init/ssh.conf.back
IMPORTANT: Before enabling the sshd server you should modify your default user password for security reasons. In the next
section, you can find more information on how to increase the server security.
First, ensure that you have enabled SSH on your virtual machine.
Then, depending on your preferred application, follow the steps below to connect to the server using SFTP or SCP.
FileZilla WinSCP
Download and install WinSCP .
Launch WinSCP and in the "Session" panel, select "SCP" as the server protocol.
Enter your server IP address and specify 'bitnami' as the user name.
The default password for the 'bitnami' user account is 'bitnami'. Enter this as the password; if you've
already changed it to a new password, enter that new password instead.
https://wiki.bitnami.com/Virtual_Appliances_Quick_Start_Guide#VMware_ESX_or_ESXi 5/13
9/9/2016 Virtual Appliances Quick Start Guide Bitnami documentation
From the "Session" panel, use the "Login" button to connect to the cloud server and begin an SCP
session.
You should now be logged into the /home/bitnami directory on the virtual machine. You can now transfer files
by dragging and dropping them from the local server window to the remote server window.
If you need to upload files to a location where the ‘bitnami’ user doesn't have write permissions, you have
two options:
Once you have configured WinSCP as described above, click the "Advanced..." button and within the
"Environment → Shell” panel, select "sudo su " as your shell. This will allow you to upload files using
the administrator account.
Upload the files to the /home/bitnami directory as usual. Then, connect via SSH and move the files to
the desired location with the "sudo" command, as shown below:
$ sudo mv /home/bitnami/uploaded‐file /path/to/desired/location/
https://wiki.bitnami.com/Virtual_Appliances_Quick_Start_Guide#VMware_ESX_or_ESXi 6/13
9/9/2016 Virtual Appliances Quick Start Guide Bitnami documentation
We strongly recommend that you set a long passphrase. Once you have executed this command, you can check that there are two
files in the /home/bitnami/.ssh/ folder:
$ ls /home/bitnami/.ssh
id_rsa id_rsa.pub
Save your private key (id_rsa file) in a secure location and do not share it with anybody.
Once you have the key pair ready, you need to enable access to the machine. It is only necessary to write the public key into the
/home/bitnami/.ssh/ file.
$ cd /home/bitnami/.ssh
$ cat id_rsa.pub >> /home/bitnami/.ssh/authorized_keys
Now edit the "/etc/ssh/sshd_config" file using the vi editor and uncomment (or add if not already present) the following lines:
RSAAuthentication yes
PubkeyAuthentication yes
For Ubuntu
$ sudo /etc/init.d/ssh force‐reload
For openSUSE
$ sudo /etc/init.d/sshd force‐reload
copy your private key "id_rsa" file in your local machine from which you will access the virtual machine.
$ mkdir /home/your_user/.ssh
$ scp bitnami@virtual_machine_ip:/path/to/id_rsa /home/user/.ssh
$ chmod 0600 ‐R /home/user/.ssh
And that's all. If you do not want to repeat the passphrase you can run sshagent and sshadd commands to save it during the
session.
For Ubuntu
You should run:
$ sudo ufw allow $port
If you need to modify the firewall configuration you can find more information about it
athttps://help.ubuntu.com/community/UFW .
For openSUSE
You should include the port in the following line in the "/etc/sysconfig/SuSEfirewall2" file:
FW_SERVICES_EXT_TCP="22 80 443"
https://wiki.bitnami.com/Virtual_Appliances_Quick_Start_Guide#VMware_ESX_or_ESXi 7/13
9/9/2016 Virtual Appliances Quick Start Guide Bitnami documentation
$ sudo /etc/init.d/SuSEfirewall2_init restart
$ sudo /etc/init.d/SuSEfirewall2_setup restart
How to ensure that my Bitnami Virtual Appliance is accessible from other machines?
Some Bitnami applications require you to reconfigure the IP/hostname if it changes during the boot.
If your Virtual Appliance seems to not be accessible from other machines, you should configure the application IP/hostname using
the 'bnconfig' tool.
$ sudo /opt/bitnami/apps/your_application/bnconfig
or if you want the tool setting the current Virtual Machine IP you can type only:
$ sudo /opt/bitnami/apps/your_application/bnconfig
Then try to access from a remote machine. Please ensure that your Virtual Machine network configuration is "Bridged". You can see
the /Virtual_Appliances_Quick_Start_Guide#How_to_access_the_Bitnami_Virtual_Appliance.3f.
The approach to resize the disk could be different depending on the VMware product that you are using:
ESX or vSphere
The comman line tool to resize the disk size is vmkfstools. Log in the ESX server and run the following command with your installed
machine:
$ vmkfstools ‐X 50G ‐d eagerzeroedthick /vmfs/volumes/cs‐ee‐symmlun‐001A/bitnami‐wordpress‐3.8.1‐0‐ubuntu‐12.04.vmdk
Extending a virtual disk only extends the virtual machine's disk. It is necessary to increase the size of the file Linux system within
the guest. To do this, it is necessary to boot the machine using a Live CD Linux so you are able to mount the root partition and
resize it. You can use an GParted Live CD.
Change the boot order for your Virtual Machine and move the CD/DVD to the first one
Now you can run the GParted tool and you can resize the Linux system partition. Apply the changes and reboot your machine. Note
that you can disable the CD/DVD to do not boot the GParted distribution.
Go the the machine "Settings" and add a new "hard drive", select the "SCSI" type and configure the disk size.
Then start the machine and run the following command to format the new disk:
$ sudo mkfs.ext4 /dev/sdb
Then create a new folder in your system where you are going to mount the disk, for example:
$ sudo mkdir /mnt/disk
https://wiki.bitnami.com/Virtual_Appliances_Quick_Start_Guide#VMware_ESX_or_ESXi 8/13
9/9/2016 Virtual Appliances Quick Start Guide Bitnami documentation
$ echo "/dev/sdb /mnt/disk ext4 defaults 0 0" | sudo tee ‐a /etc/fstab
$ sudo mount ‐a
If you have a folder with a lot of data, you can move it to the new hard disk and create a symbolic link. For example:
$ sudo mv /opt/bitnami/apps/joomla/data /mnt/disk/data
$ ln ‐s /mnt/disk/data /opt/bitnami/apps/joomla/data
You should install the latest kernel, in case a new one has been released since the virtual machine was created. You can do so
issuing the following command:
$ sudo zypper update kernel‐default
If no newer version is found, the command will not take effect. If the zypper package tool installed a new kernel, you will need to
reboot the machine:
$ sudo reboot
Once the machine is started using the new Linux kernel, you can access the VMware tools. In the version of VMware that we tested
there is an option in the Control Panel: VM > Install VMware tools
This action simulates mounting a cdrom that includes the tools. Now it is necessary to mount the cdrom to install them:
$ sudo mkdir /mnt/cdrom
$ sudo mount /dev/cdrom /mnt/cdrom
$ cd /mnt/cdrom
$ sudo rpm ‐i VMwareTools‐*.rpm
Before running the VMware configuration tool it is necessary to install some dependencies:
$ sudo zypper install gcc make tar kernel‐source
Finally you can configure the VMware tools installed in the Bitnami Virtual Appliance.
$ sudo vmware‐config‐tools.pl
These steps are specific for openSUSE based appliances. If you are using the Ubuntu Virtual Appliance, there is no "rpm" tool
installed by default. Instead of using "rpm", you can uncompress the tarball:
$ sudo tar ‐xzvf VMwareTools*.tar.gz ‐C /tmp
You should install some packages before installing VirtualBox guest additions. To do this, at first, check your current kernel version:
$ uname ‐a
Linux linux 3.2.0‐23‐virtual #36‐Ubuntu SMP Tue Apr 10 22:29:03 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
Then, install the packages with the proper kernel_version shown by the previous command:
$ sudo apt‐get ‐y install dkms build‐essential linux‐headers‐kernel_version
Once the machine is started again, you can access the Virtualbox guest additions. There is an option in the menu: Devices >
CD/DVD Devices > Choose a virtual CD/DVD disk file... Then, select the VBoxGuestAdditions.iso file (located in
/usr/share/virtualbox/ if you are using Linux or in C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso in case you are using
Windows).
https://wiki.bitnami.com/Virtual_Appliances_Quick_Start_Guide#VMware_ESX_or_ESXi 9/13
9/9/2016 Virtual Appliances Quick Start Guide Bitnami documentation
This action simulates inserting a cdrom that includes the tools. Now it is necessary to mount the cdrom to install them:
$ sudo mkdir /mnt/cdrom
$ sudo mount /dev/cdrom /mnt/cdrom
$ cd /mnt/cdrom
$ sudo sh ./VBoxLinuxAdditions.run ‐‐nox11
Because the last command is being running with the nox11 option, the following minor error will appear, after a while:
Installing the Window System drivers ...fail!
(Could not find the X.Org or XFree86 Window System.)
If the other tasks were completed with "done", VirtualBox Guest Additions have been successfully installed. You can check this in
the example below:
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.1.22 Guest Additions for Linux.........
VirtualBox Guest Additions installer
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non‐DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules ...done.
Doing non‐kernel setup of the Guest Additions ...done.
Some applications use a FTP connection to download and install modules. Most of the Virtual Appliances already include the "vsftpd"
server configured to be accessed locally.
If you want to use it from your application these are the setting that you should use:
Hostname: 127.0.0.1
Username: bitnami
Password: the bitnami user password
Connection method: FTP
If your Virtual Appliance does not include FTP, you can install vsftpd server following these steps:
On Ubuntu:
$ sudo apt‐get update
$ sudo apt‐get install vsftpd
On openSuSE:
$ sudo zypper update
$ sudo zypper install vsftpd
Now the FTP server is running on your machine. For security reasons you should modify the configuration file to only listen requests
from the local machine. Add the following line at the end of the configuration file "/etc/vsftpd.conf". You can add it running the
following command:
$ echo ‐e "write_enable=YES\nlisten_address=127.0.0.1" | sudo tee ‐a /etc/vsftpd.conf
On Ubuntu:
$ sudo restart vsftpd
On openSuSE:
$ sudo /etc/init.d/vsftpd restart
Hostname: localhost
Port: 21
Username: bitnami
Password: bitnami user password in your machine
FTP Root: /opt/bitnami/apps/your_application/htdocs
The steps below walk you through the process of installing and configuring Webmin in a Virtual Appliance or an AMI.
Login in the machine and download the latest stable version of webmin
fromhttp://sourceforge.net/projects/webadmin/files/webmin
https://wiki.bitnami.com/Virtual_Appliances_Quick_Start_Guide#VMware_ESX_or_ESXi 10/13
9/9/2016 Virtual Appliances Quick Start Guide Bitnami documentation
$ wget http://downloads.sourceforge.net/project/webadmin/webmin/1.550/webmin‐1.550.tar.gz
Install the dependencies and uncompress the tarball by doing the following:
$ sudo apt‐get install perl5 libnet‐ssleay‐perl
$ tar ‐xzvf webmin‐*
$ cd webmin‐*
Run the installer and follow the installation steps. To start the installer:
$ sudo sh setup.sh
Once Webmin is installed, you can access it with the user/password that you set during the installation
athttp://YOUR_URL:10000 by default. Note that if you are running a Virtual Appliance, you should open the 10000 port in
the firewall by doing the following:
$ sudo ufw allow 10000
If you are installing Webmin on a cloud instance using a Bitnami AMI, you should also enable this port in the Amazon firewall.
You can find more info in the Bitnami Cloud Hosting FAQ.
Once you can access the Webmin application, you must configure it to manage the Bitnami servers. These are the configuration
files for MySQL and Apache servers:
/etc/webmin/mysql/config
date_subs=0
max_text=1000
perpage=25
stop_cmd=/etc/init.d/bitnami stop mysql >/dev/null 2>&1
mysqldump=/opt/bitnami/mysql/bin/mysqldump
nodbi=0
mysql_libs=/opt/bitnami/mysql/lib
max_dbs=50
start_cmd=/etc/init.d/bitnami start mysql >/dev/null 2>&1 &
mysql_data=/var/lib/mysql
mysqlimport=/opt/bitnami/mysql/bin/mysqlimport
access=*: *
style=0
my_cnf=/opt/bitnami/mysql/my.cnf
mysqlshow=/opt/bitnami/mysql/bin/mysqlshow
mysql=/opt/bitnami/mysql/bin/mysql
nopwd=0
add_mode=1
passwd_mode=0
blob_mode=0
mysqladmin=/opt/bitnami/mysql/bin/mysqladmin
/etc/webmin/apache/config
link_dir=/opt/bitnami/apache2/conf/sites‐enabled
test_manual=0
show_list=0
mime_types=/opt/bitnami/apache2/conf/mime.types
access_conf=/opt/bitnami/apache2/conf/access.conf
auto_mods=1
stop_cmd=/etc/init.d/bitnami stop apache
virt_file=/opt/bitnami/apache2/conf/sites‐available
test_apachectl=1
max_servers=100
srm_conf=/opt/bitnami/apache2/conf/srm.conf
httpd_dir=/opt/bitnami/apache2
start_cmd=/etc/init.d/bitnami start apache
show_order=0
test_always=0
httpd_conf=/opt/bitnami/apache2/conf/httpd.conf
defines_file=/opt/bitnami/apache2/bin/envvars
apachectl_path=/opt/bitnami/apache2/bin/apachectl
show_names=0
test_config=1
apply_cmd=/opt/bitnami/apache2/bin/apachectl graceful
httpd_path=/opt/bitnami/apache2/bin/httpd
You can then access the Webmin application and click the "Refresh Modules" button. You can now see the "Apache Webserver" and
"MySQL Database Server" in the Servers tag.
https://wiki.bitnami.com/Virtual_Appliances_Quick_Start_Guide#VMware_ESX_or_ESXi 11/13
9/9/2016 Virtual Appliances Quick Start Guide Bitnami documentation
</wbr>
When finished the installation process, edit the lightdm configuration file /usr/share/lightdm/lightdm.conf.d/50‐
ubuntu.conf), and add the following line at the botton
greeter‐show‐manual‐login=true
There could be problems with permissions in hidden files in the bitnami user's home directory. To fix it, execute the following
command
sudo chown bitnami:bitnami /home/
sudo chown ‐R bitnami:bitnami /home/bitnami/.*
Then reset your Virtual Machine. Next time it's started, you will see the login string, and you will be able to login using bitnami (do
not use bitnamiftp) as username and your password (also bitnami if you haven't changed it).
Convert the VMDK file for the Bitnami stack into a VirtualBox Disk Image (VDI) file:
$ VBoxManage clonehd ‐‐format VDI bitnami‐APP‐VERSION.vmdk myserver.vdi
Create and register a new virtual machine.
$ VBoxManage createvm ‐‐name "My Server" ‐‐ostype "Ubuntu_64" ‐‐register
It is important to choose the correct operating system type when doing this. For a complete list of available operating system
types, use the command below:
$ VBoxManage list ostypes
Add a storage device and attach the VDI file created earlier to it.
$ VBoxManage storagectl "My Server" ‐‐name "SATA Controller" ‐‐add sata ‐‐controller IntelAHCI
$ VBoxManage storageattach "My Server" ‐‐storagectl "SATA Controller" ‐‐port 0 ‐‐device 0 ‐‐type hdd ‐‐medium myserver
Define other characteristics of the virtual machine, such as the boot device, available RAM and network interfaces. The
commands below are illustrative only and will need to be modified for your specific hardware devices. For more information on
how to configure your virtual machine with VBoxManage, please refer to the VirtualBox manual .
$ VBoxManage modifyvm "My Server" ‐‐ioapic on
$ VBoxManage modifyvm "My Server" ‐‐boot1 disk ‐‐boot3 none ‐‐boot4 none
$ VBoxManage modifyvm "My Server" ‐‐memory 512 ‐‐vram 64
$ VBoxManage modifyvm "My Server" ‐‐nic1 bridged ‐‐bridgeadapter1 "11b/g Wireless Adapter"
Start the virtual machine in headless mode:
$ VBoxHeadless ‐‐startvm "My Server"
The virtual machine will be accessible using RDP. You can use any RDP viewer to connect and work with the virtual machine. For
more information on available RDP viewers for your host platform and how to connect, refer to the VirtualBox manual .
TIP: When connecting to your headless VirtualBox machine with an RDP client, remember to use the IP address of the host
system and not the VirtualBox machine.
https://wiki.bitnami.com/Virtual_Appliances_Quick_Start_Guide#VMware_ESX_or_ESXi 12/13
9/9/2016 Virtual Appliances Quick Start Guide Bitnami documentation
https://wiki.bitnami.com/Virtual_Appliances_Quick_Start_Guide#VMware_ESX_or_ESXi 13/13