Pol’zuyas’ sluchayem rasskazhu vam, chto u khostera QS.biz sdayutsya v arendu VDS na KVM.
A few weeks ago, I chose KVM virtualization. Just answer the questions of “why?”: KVM virtual machines Hustler and allow you to run any operating system. Heretical OS I have not tried, but Debian and FreeBSD running under KVM + Debian is very, very good – it is recognized by even experienced administrators.

If you’re willing to pay for speed and ease of configuration of using the host machine – ask for cat.

I KVM installed on the machine with a processor core i7. Recommended to use multi-core processors with HT. While it is not necessary to give virtual machines virtual CPUs greater than the cores have on the host machine. In the case of the i7 I got 8 cores, which then can be divided as desired between containers. If you give more processors than it is – it can affect performance.

First of all check – whether the processor supports hardware virtualization:
cat / proc / cpuinfo | egrep ‘(svm | vmx)’
If you type the command on the screen appeared a text – then your CPU supports hardware virtualization. If the output of a blank – it is not necessary to use KVM. And indeed it is not necessary to use modern hypervisors.

Now install the packages:

sudo apt-get install kvm libvirt-bin virtinst bridge-utils

Then reboot the host is. Of course you should use the latest available stable linux-kernel available in the repositories.

Check whether to install the KVM:

virsh -c qemu: /// system list -all

The output again should not be empty and contain no errors type “command not found”.

Proceed to configure the network on the host machine. Here is the file / etc / network / interfaces to the following form:

-w bridge: br0 – indicate that the virtual machine is to use the bridge br0 setevly Host

Now let’s move to install the OS on a virtual machine.

On your computer (not on the server and a workstation with a graphical environment) to enter commands:

ssh -L 5900: localhost: 5900 root@178.ххх.ххх.137

And on the second console:

vncviewer localhost: 5900

Now you should see VNC Installer Debian. We put as usual (maybe you will be unavailable network). After the Debian installer system will send reboot – switch off the virtual machine, instead of rebooting.

It’s time to change the number of processors assigned to the virtual machine:

virsh -c qemu: /// system setvcpus vm1 2
This command will work only if the virtual machine is turned off. Now run it again:
virsh -c qemu: /// system start vm1
Now you need to configure the network on the virtual machine. We go at it for VNC and give the file / etc / network / interfaces to the following form:

auto lo

iface lo inet loopback

allow-hotplug eth0

iface eth0 inet static

address 178.xxx.xxx.177

netmask 255.255.255.192

network 178.xxx.xxx.128

broadcast 178.xxx.xxx.191

gateway 178.xxx.xxx.137

Gateway must specify the ip-address of the host server. It is also worth to register NS in /etc/resolv.conf

Now your virtual machine is running and is accessible from the network (and in my case it has been available from the Internet).