본문 바로가기
  • AI (Artificial Intelligence)
Legacy Skills/VM

KVM on CentOS 설치

by 로샤스 2014. 4. 18.

KVM on CentOS

  1. minimal install
  2. yum update
  3. yum groupinstall Virtualization*
  4. yum -y groupinstall “Desktop” “Desktop Platform” “X Window System” “Fonts”
  5. yum -y groupinstall “Graphical Administration Tools”
  6. /etc/inittab
    init:5:default
<

SETUP BRIDGE DEVICE ON CENTOS

Howto setup a bridge device on CentOS or Fedora. If you need to bring your KVM VM’s into the same local area network like your host is in you need to configure a bridge device.

  • Install all needed packages:
    • yum install bridge-utils
       
      yum install tunctl
  • Disable NetworkManager and enable network at boot time:
    • chkconfig NetworkManager off
       
      chkconfig –levels 35 network on
       
      /etc/init.d/NetworkManager stop
       
      /etc/init.d/network restart
  • Create br0 configuration
    • vi /etc/sysconfig/network-scripts/ifcfg-br0
    • Change following configuration to your needs.
    • /etc/sysconfig/network-scripts/ifcfg-br0
      DEVICE=br0
      TYPE=Bridge
      BOOTPROTO=static
      DNS1=192.168.0.1
      GATEWAY=192.168.0.1
      IPADDR=192.168.0.100
      NETMASK=255.255.255.0
      ONBOOT=yes
      SEARCH=”example.com”
  • Modify eth0 configuration:
  • Restart network or reboot machine
    • /etc/init.d/network restart
       
      or
       
      reboot

Here are some additional information on the libvirt page. If you have performance problems with your bridge device you maybe need to disable the netfilter on the bridge interface.

<form
Access To Libvirt Via Virt-Manager (Non-Root)

Access to anything using root passwords is a Bad Thing™, so Policy-Kit comes to the rescue. Having never used Policy-Kit (polkit-d), it was always something disabled in order to limit the number of extraneous processes running on a server/hypervisor system. However, in this case, it comes in handy.

  • Create: /etc/polkit-1/localauthority/50-local.d/50-libvirt-remote-access.pkla

From there, just make sure all of the VM admins are in the “libvirt” group.











출처 : http://jkt0620.blog.me/100209191516




















댓글