KVM: Difference between revisions
Jump to navigation
Jump to search
(→Debian) |
|||
| Line 46: | Line 46: | ||
-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 |
||
=== console virtuele machine === |
|||
Maak in de virtuele machine het bestand /etc/init/ttyS0.conf aan en voorzie het van de volgende inhoud: |
|||
<pre> |
|||
# ttyS0 - getty |
|||
# |
|||
# This service maintains a getty on ttyS0 from the point the system is |
|||
# started until it is shut down again. |
|||
start on stopped rc RUNLEVEL=[2345] |
|||
stop on runlevel [!2345] |
|||
respawn |
|||
exec /sbin/getty -L 115200 ttyS0 xterm |
|||
</pre> |
|||
Herstart de virtuele machine, of geef het volgende commando: |
|||
root@sauron:~# start ttyS0 |
|||
Verbind daarna vanf de dom0 met: |
|||
root@sauron:~# console <virtuele machine> |
|||
<hr> |
<hr> |
||
Terug naar: [[Webhuis bouwstenen]] |
Terug naar: [[Webhuis bouwstenen]] |
||
Revision as of 18:50, 17 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 virt-clone virt-goodies virt-top
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
- http://wiki.debian.org/KVM
- http://www.howtoforge.com/virtualization-with-kvm-on-a-debian-lenny-server-p3
- http://www.punknix.com/virtualization_kvm
- http://packages.debian.org/nl/lenny/kvm
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
Installatie domU
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
console virtuele machine
Maak in de virtuele machine het bestand /etc/init/ttyS0.conf aan en voorzie het van de volgende inhoud:
# ttyS0 - getty # # This service maintains a getty on ttyS0 from the point the system is # started until it is shut down again. start on stopped rc RUNLEVEL=[2345] stop on runlevel [!2345] respawn exec /sbin/getty -L 115200 ttyS0 xterm
Herstart de virtuele machine, of geef het volgende commando:
root@sauron:~# start ttyS0
Verbind daarna vanf de dom0 met:
root@sauron:~# console <virtuele machine>
Terug naar: Webhuis bouwstenen