Virtualization

Backing up and Restore OpenVZ Virtual Vachines with vzdump

Vzdump is a utility to make consistent snapshots of OpenVZ containers (and KVM virtual machines in case you are using Proxmox VE).

It fundamentally creates a tar archive of the container’s private area which also includes the CT configuration files.

The following steps are for Debian Squeeze Linux but vzdump can be used on all other linux distributions

1. Install Vzdump on Deian Squeeze:

apt-get install vzdump

You can also download and install vzdump from the follwing link:

http://download.openvz.org/contrib/utils/vzdump/

wget http://download.openvz.org/contrib/utils/vzdump/vzdump_1.2-4_all.deb


Disable SSL and Redirect to port 8333 VMWare Server 2

For login into the VMware console are two ways. One through an SSL connection (port 8333) and second without SSl (port 8222).
Without SSL you can login only from the local machine which wmvare server is installed. Each connection attempt from a remote host to the VMware Server console on port 8222 will be redirected to the SSL channel to port 8333.

In this article I will show you how to disable SSL protocol and redirect to port 8333 in VMware Server 2.0 in Debian Squeeze.

Step1.  Shut down the vmware server:

[php]/etc/init.d/vmware stop
/etc/init.d/vmware-mgmt stop[/php]

Step2. Do a copy of  existing proxy.xml file and modify proxy.xml file:

[php]cp /etc/vmware/hostd/proxy.xml   /etc/vmware/hostd/proxy.xml_bak[/php]

Now open the proxy.xml file and replace all occurrences of the values “httpsWithRedirectwith  “httpAndHttps”

Step3.  Now you can start up vmware server:

[php]/etc/init.d/vmware start
/etc/init.d/vmware-mgmt start[/php]

Enjoy!


How to Install VMware Server 2 on Debian Squeeze

The installation is similar to that of Lenny, with the following differences:

  1. There are different versions of the Linux kernel and gcc.
  2. Different patches are required for installation and modules.

You can find the Lenny tutorial here: Installing VMware server 2.x on Debian lenny .

Step1. Get the VMWare Server archive (at least version 2.0.2) and your license.

Register at vmware.com, download the latest VMware server binary and upload to your server.

Step2. Install the prerequisites (like kernel-headers  and gcc version 4.3).

[php]apt-get install psmisc make gcc gcc-4.3 linux-headers-$(uname -r)[/php]

Step3. Get the patches archive from http://www.troublenow.org/files/vmware/vmware2.0.2-on-debian6.0.1.tar.gz

[php]Wget  <a href="http://www.troublenow.org/files/vmware/vmware2.0.2-on-debian6.0.1.tar.gz">http://www.troublenow.org/files/vmware/vmware2.0.2-on-debian6.0.1.tar.gz</a>[/php]

Step4.  Extract the VMWare Server archive.

[php]<code>tar zxvf VMware-server-2.x.tar.gz</code>[/php]

Step5. Install VMWare Server , but do not configure it yet. Answer the question to run “vmware-config.pl” with “no”.

Install VMWare Server using the following command:


KVM Virtualization On Debian Squeeze Server

In this guide I will explain how to install and use KVM to create and run virtual machines on a Debian Squeeze Server.
In this tutorial I will show how to create image-based virtual machines.
KVM makes use of hardware virtualization. For that you need a CPU that supports hardware virtualization such as Intel VT or AMD-V.

Step 1. Check if your CPU supports hardware virtualization using the following command:

egrep ‘(vmx|svm)’ –color=always /proc/cpuinfo

If your result is nothing, then your processor doesn’t support hardware virtualization.

Step 2. Install KVM and virtinst :

apt-get install kvm qemu-kvm libvirt-bin virtinst

Step 3. Now we need to add the user as which we’re currently logged in to the groups libvirt and kvm. Run the following commands:

adduser `id -un` libvirt
adduser `id -un` kvm

Step 4. You also  need to set up a network bridge on our server.  You need that for virtual machines to can be accessed from outside.
For that you need to  install the package bridge-utils.

apt-get install bridge-utils


How to config PhpMyAdmin to Work With Nginx

If you discovered that proxying your webserver with varnish breaks PhpMyAdmin I’ve got the solution:

Problem is that the backend webserver, apache2 or nginx doesn’t even know it’s running behind another software.

Varnish does a completely normal request to webserver. Most times this isn’t any problem at all.

PhpMyAdmin tries to be “smart” and figure out its absolute URL and I run the apache2 or nginx backend on port 80.

The solution is to force an URL.

Add the following line to “config.inc.php“, changing the obvious:

$cfg['PmaAbsoluteUri'] = 'http://yourdomain.com/phpmyadmin/';

Enjoy!





Categories

Page 1 of 3123
Copyright © 2012 Linux Debian Tutorials | Debian Squeeze Tutorials. All rights reserved.
Stop ACTA