Home > HyperV > Running Bitnami LAMP stack in HyperV

Running Bitnami LAMP stack in HyperV

Bitnami has several nice prebuilt linux machines that is very useful for quick deploy.


In order to make it easier, you just need to setup a base image for the Bitnami LAMP stack VM


Download these first

Bitnami LAMP Stack: Goto https://bitnami.com/stack/lamp and grab the vmware virtual machine image

Microsoft Virtual Machine Converter Solution Accelerator 2.0: Goto http://www.microsoft.com/en-sg/download/details.aspx?id=42497 and grab the msi file


Convert VMDK to VHD

Run an administrative powershell instance and run the following 2 commands

# Import the MVMC cmdlets
Import-Module ‘C:\Program Files\Microsoft Virtual Machine Converter\MvmcCmdlet.psd1’


#Convert the VMDK to VHDX

ConvertTo-MvmcVirtualHardDisk -SourceLiteralPath bitnami-lampstack-5.4.32-0-ubuntu-14.04.vmdk -DestinationLiteralPath bitnami-lampstack-5.4.32-0-ubuntu-14.04.vhdx -VhdType DynamicHardDisk -VhdFormat Vhdx


Once the conversion is complete, use the HyperV –> Edit Disk function to compact the VHDX to save space

Create HyperV VM

Once done, just create a normal VM, there is no need to restrict yourself to the legacy network adapters, the new one works fine




Setting up your bitnami VM

Follow the guide found at http://wiki.bitnami.com/Virtual_Appliances_Quick_Start_Guide


You can also refer to https://jefferytay.wordpress.com/2014/09/20/common-setup-commands-for-ubuntu-12-x-onwards/ for some of the more administrative functions


Updating Integration Services

Issue the following command: sudo pico /etc/initramfs-tools/modules


Add these 4 items to the end of the file



Now rebuild the boot image

sudo update-initramfs –u


The guest OS needs to be rebooted:

sudo shutdown -r now

After the virtual machine reboots, run the following command to check if the modules are enabled:



Categories: HyperV
  1. Rob Perez
    January 1, 2015 at 3:15 am

    As of today, 12/31/2014, the lampstack version is 5.4.36, so users will want to change their conversion command accordingly. I put all my stuff at the root of C. So mine now reads: ConvertTo-MvmcVirtualHardDisk -SourceLiteralPath C:\bitnami-lampstack-5.4.36-0-ubuntu-14.04\bitnami-lampstack-5.4.36-0-ubuntu-14.04.vmdk -DestinationLiteralPath c:\bitnami-lampstack-5.4.36-0-ubuntu-14.04.vhdx -VhdType DynamicHardDisk -VhdFormat Vhdx

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: