If you migrate a Jumpbox virtual appliance between virtual hosts, for instance, form a VMware Server or VMware workstation to an ESXi server, the already installed configs and installed drivers maybe out of date or the wrong version, and the management screens will complain and let you know about it. This is very easily cured.
Firstly , make sure you have ssh enabled on your virtual machine, and log in as root or admin. Once logged in, go back to your management application, which for ESXi will be the vSphere Client, and select the virtual machine and select install vmware tools from the right button click on that virtual appliance.
This will have effectively mount an iso with the files on, which you must now mount from your ssh terminal window using a command like this:
mount /dev/cdrom /media/cdrom - (you may need to create that directory)
They move into that directory and cp the file VMwareTools-4......(whatever).tar.gz to say /tmp
Go into /tmp and untar the above file, and then move into the directory it creates.
Run the following command and hit enter when asked, after reading the output, but for a standard Jumpbox, just hitting enter will do:
./vmware-install.pl
At the end of the process you can either reboot the virtual machine, or type in the following command:
/etc/init.d/networking stop; rmmod pcnet32; rmmod vmxnet; modprobe vmxnet; /etc/init.d/networking start
Make sure you have the semi colons and type it all on one line.
Voila, you now have the latest vmware tools, which means you are running the optimum networking drivers which is important for performance
Showing posts with label ESXi. Show all posts
Showing posts with label ESXi. Show all posts
Thursday, 12 November 2009
Moving a Jumpbox virtual appliance from Xen to VMware ESX
We had a server failure here yesterday , which was a standalone Redhat Xen virtual server with a few non critical applications on, thus the single server. While we were waiting for HP to get a new motherboard delivered I decided we needed to get our Wiki back and running quickly, and the only available virtual server was one running VMware ESXi.
When you download a Jumpbox appliance it comes ready to run on several types of virtual environment, but VMware ESX is not one of them. It happily supports VMware workstation or server, but the filesystem on ESX is different.
There are two ways to convert the virtual image, the easy way or the hard way, both work.
The easy way is to download the VMware converter utility which basically takes the uncompressed virtual appliance you downloaded, and automagically uploads it to your ESX host , if you have it on line. You can just convert the appliance and upload it yourself later if you prefer.
Job done. I could then get on with setting the IP address of the virtual machine back to it's original setting and restoring from backup it's complete configuration and data. Took about 20 minutes, but you would need to factor in the size of your appliance, the speed of your network and the size of the backup. That is one of the great things about Jumpbox virtual machines, their backup and restores are a nailed on perfect solution and have worked here everytime. We happen to use an NFS mount on our NAS server, but you can back up to Amazon EC2 if you were web connected.
The second way , is to manually upload the virtual appliance files to the ESX datastore, and then run the vmfstools from an ssh shell. Setting up the shell on ESXi is a job in itself, go here or here for more info.
There is a detailed article on doing this here.
I think you will agree that using the converter tool is just a little easier ;-).
When you download a Jumpbox appliance it comes ready to run on several types of virtual environment, but VMware ESX is not one of them. It happily supports VMware workstation or server, but the filesystem on ESX is different.
There are two ways to convert the virtual image, the easy way or the hard way, both work.
The easy way is to download the VMware converter utility which basically takes the uncompressed virtual appliance you downloaded, and automagically uploads it to your ESX host , if you have it on line. You can just convert the appliance and upload it yourself later if you prefer.
Job done. I could then get on with setting the IP address of the virtual machine back to it's original setting and restoring from backup it's complete configuration and data. Took about 20 minutes, but you would need to factor in the size of your appliance, the speed of your network and the size of the backup. That is one of the great things about Jumpbox virtual machines, their backup and restores are a nailed on perfect solution and have worked here everytime. We happen to use an NFS mount on our NAS server, but you can back up to Amazon EC2 if you were web connected.
The second way , is to manually upload the virtual appliance files to the ESX datastore, and then run the vmfstools from an ssh shell. Setting up the shell on ESXi is a job in itself, go here or here for more info.
There is a detailed article on doing this here.
I think you will agree that using the converter tool is just a little easier ;-).
Subscribe to:
Posts (Atom)

