Archive for the ‘Virtualisation’ Category
August 8th, 2011
I’m currently moving VMs around a lot between VirtualBox and ESXi and came across the following problem I hadn’t had for a while.
If you clone a Ubuntu VM and import it into ESXi you may get the following error:-
SIOCSIFADDR: no such device
The problem is that a new MAC address is created, and the old one still exists. What you need to do is get the MAC address of your card from the Virtual Infrastructure Client (right click the VM – select network adapter and you will see the MAC address).
Then and edit this file:-
/etc/udev/rules.d/70-persistent-net.rules
What you need to do is delete the old NIC references (i.e. the ones that arent your MAC address).
Now save the file, and reboot the system (a cold reboot) and your NIC should now be recognised.
January 5th, 2011
VirtualBox is now my defacto development environment for websites. I came across the VirtualBox feature Shared Folders and thought I would give it a try, and see if it was any better or different from using Samba or just plain old FTP for file copies.
Easier said than done…….
Everytime I tried to install the GuestAdditions from the VirtualBox ISO file I got the following message from the install script:
Building the VirtualBox Guest Additions kernel modules ...fail!
Heres how I resolved the problem. Remember however that this solution is for Ubuntu Server 8.04 LTS and that your system may be configured differently.
First update your system using:
sudo apt-get update
sudo apt-get upgrade
Guest additions needs some dev tools to help build the Kernel which I found were missing from my server install (namely dkms gcc and make):-
sudo apt-get install dkms gcc make
Once I installed these and restarted the system everything built perfectly.
Another thing you might have a problem with is not having the build and kernel headers installed, so you might want to try updating them:-
sudo apt-get install linux-headers-$(uname -r)
If you get totally stuck a good place to start is the install log which is at /var/log/vboxadd-install.log
Happy virtualising!!
April 30th, 2010
Most of my client websites are designed using the Joomla Content Management System. This software requires several back-end server applications including Linux, Apache, MySQL and PHP. A lot of people still develop websites using a traditonal web-hosting provider, however this relies on someone elses server architecture, and the requirement that you have an Internet connection. When developing a site from scratch and you are constantly changing things, and trying out new ideas the slower speed can stifle your creativity, which is bad!
So, what to do? Well we could invest in a separate PC or server to run our website server applications. There is nothing wrong with this solution, especially if you have some unused and suitable hardware lying around that you can install Linux onto, however most of us don’t have that luxury.
Another option would be to use software that enables you to run your webserver application(s) concurrently with your existing desktop OS. This means utilising some from of virtualisation software.
This is my preferred way of working, and means I can take all my web development and server applications with me on the road, and can beaver away quite happily designing websites, even without an Internet connection. Another big advantage of this method of working is response times. Having your webserver sitting locally on your laptop means you are faster, and more productive. The whole website development cycle is simply more snappy.
There are a lot of different ways to implement a virtualised solution and I am a big fan of VMware’s products, having used them for more than six years. As an aside, I use their ESXi product for server consolidation, and VMware has a lot to recommend it. For website design, I had previously used VMware Player, another free product from VMware that sits on top of Windows and provides support for running multiple operating systems on your PC. Recently however I have started using Virtual Box (now owned by Sun) and have found it very easy to use, very stable, and modest in hardware requirements. It seems slightly less heavy then VMware player, and I prefer their way of assigning network interfaces. There is even an OS X version for you Mac afficionados!!
I have a Sony Dual Core laptop (Intel P8400 2.26Ghz) with 3GB of memory, and with this configuration I can comfortably run Windows 7 as my primary operating system, with Virtual Box handling my Linux server applications for my website design requirements. You can run virtualisation software on older machine, but I would recommend a fairly modern system, as running multiple operating system puts more strain on the processor/memory/storage subsystems.
Try and get a system that supports Intels VT-x or AMD’s AMD-V. These are hardware features built into your CPU that will assist virtualisation software. It’s a nice to have (if you want to run a virtualised 64-bit operating system on a 32-bit host system it is a must) and will provide some performance improvements. For further info on this subject see here – hardware assisted virtualisation . Be warned it’s not light reading!
April 28th, 2009
Okay, so ESXi is free, and is a great product but does have some limitations, one of which is the cloning of VMs. This article will show you a quick and easy way to achieve this.
You need access to your ESXi server command line, either using the VMware Remote CLI appliance (http://www.vmware.com/download/vi/drivers_tools.html and look for Remote CLI), or you can use the UNSUPPORTED way which is to give yourself SSH access to your ESXI server directly. The latter is the method I prefer.
Read the rest of this entry »