Wissensdatenbank
Buehl, Kevin
22 Juli 2015
3.482

Wissensdatenbank

KVM Installation unter Debian 7 Wheezy

Systemanforderungen


Prüfen Sie ob Ihre CPU Hardware virtualisierung unterstützt
egrep '(vmx|svm)' --color=always /proc/cpuinfo


Installation


apt-get install qemu-kvm libvirt-bin virtinst
virsh -r -c qemu:///system list --all
 Id    Name                           State
----------------------------------------------------


Konfiguration


Netzwerk


apt-get install bridge-utils
nano /etc/network/interfaces

Beispielkonfiguration eines dedizierten Servers bei OVH
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet manual

auto br0
iface br0 inet static
address 192.99.123.123
netmask 255.255.255.0
network 192.99.123.0
broadcast 192.99.123.255
gateway 192.99.123.254
bridge_ports eth0
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_stp off

iface br0 inet6 static
address 4b42:4b42:4b42:4b42::
netmask 64
post-up /sbin/ip -f inet6 route add 4b42:4b42:4b42:4b42:ff:ff:ff:ff dev br0
post-up /sbin/ip -f inet6 route add default via 4b42:4b42:4b42:4b42:ff:ff:ff:ff
pre-down /sbin/ip -f inet6 route del default via 4b42:4b42:4b42:4b42:ff:ff:ff:ff
pre-down /sbin/ip -f inet6 route del 4b42:4b42:4b42:4b42:ff:ff:ff:ff dev br0

apt-get install virt-top