Linux/KVM

From Wiki

Ubuntu 12.04 KVM Host

  • Installation
kvm-ok      (cpu ok?)
apt-get install ubuntu-virt-server qemu-kvm kvm-ipxe
apt-get install virtinst libvirt-bin virt-top        (cli)
apt-get install virt-manager                         (gui)


  • network bridge
    • installation:
apt-get install bridge-utils
  • /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet manual

auto br0
iface br0 inet static
    address 192.168.111.10
    netmask 255.255.255.0
    gateway 192.168.111.1
    dns-nameservers 192.168.111.1
    bridge_ports eth0
    bridge_stp off
    bridge_fd 0
    bridge_maxwait 0


  • vm guest config
virsh --connect qemu:///system
: help

: list --all
: define /etc/libvirt/qemu/vm-???.xml
: start vm-???
: shutdown vm-???
: destroy vm-???
: quit


  • item





Iommu

  • grub.cfg (Ubuntu 12.04)
linux /boot/***  intel_iommu=on