KVM: Difference between revisions

From Webhuis wiki
Jump to navigation Jump to search
Line 37: Line 37:


== Ubuntu Server ==
== Ubuntu Server ==
De installatie verloopt via een .iso image op een USB stick
De installatie verloopt via een .iso image van een CDRom, dus na de install is de volgende stap nodig voor zowel de host als de guests:
* http://www.howtoforge.com/virtualization-with-kvm-on-a-debian-lenny-server


root@sauron:~# apt-get update && apt-get upgrade
virt-install --connect qemu:///system -n test01 -r 128 --vcpus=2 --disk path=/dev/dev-kvm/support \

root@sauron:~# virt-install --connect qemu:///system -n test01 -r 128 --vcpus=2 --disk path=/dev/dev-kvm/support \
-c /var/lib/ubuntu-server-10.4.20100612.iso os-type linux --os-variant ubuntulucid --accelerate \
-c /var/lib/ubuntu-server-10.4.20100612.iso os-type linux --os-variant ubuntulucid --accelerate \
--network=bridge:br0 --hvm --vnc --force --debug
--network=bridge:br0 --hvm --vnc --force --debug

Revision as of 15:09, 15 June 2010

Installatie fysieke host

Installeer een kale machine.

Debian

De installatie verloopt vanaf een USB-stick met een netinstall, installeer een kale machine van 4 Gb met een swap space van 2 Gb. De uitvoer van tests na configuratiestappen staat in kvm test . Voorbereiding virtuele machines:

Vervolgens als de machine draait:

udell-kvm:~# apt-get install kvm qemu lvm2 libvirt-bin virtinst bridge-utils virt-manager
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet manual

auto br0
iface br0 inet static
  address 10.68.71.4
  netmask 255.255.255.224
  gateway 10.68.71.1
  bridge_ports eth0
  bridge_fd 9
  bridge_hello 2
  bridge_maxage 12
  bridge_stp off
udell-kvm:~# /etc/init.d/networking restart

Voeg toe aan /etc/modules

kvm
kvm-intel
udell-kvm:~# modprobe kvm kvm-intel

Ubuntu Server

De installatie verloopt via een .iso image van een CDRom, dus na de install is de volgende stap nodig voor zowel de host als de guests:

root@sauron:~# apt-get update && apt-get upgrade
root@sauron:~#  virt-install --connect qemu:///system -n test01 -r 128 --vcpus=2 --disk path=/dev/dev-kvm/support \
-c /var/lib/ubuntu-server-10.4.20100612.iso os-type linux --os-variant ubuntulucid --accelerate \
--network=bridge:br0 --hvm --vnc --force --debug

Installatie domU

udell-kvm:~# virt-install --connect qemu:///system -n kvm02 -r 128 --vcpus=2 \
--disk path=/dev/dev-kvm/kvm-01 -l http://ftp.nl.debian.org/debian/dists/lenny/main/installer-i386 \
os-type linux --os-variant debianlenny --accelerate --network=bridge:br0 --hvm --vnc --force --debug

Terug naar: Webhuis bouwstenen