KVM on CentOS
- minimal install
- yum update
- yum groupinstall Virtualization*
- yum -y groupinstall “Desktop” “Desktop Platform” “X Window System” “Fonts”
- yum -y groupinstall “Graphical Administration Tools”
- /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:
vi /etc/sysconfig/network-scripts/ifcfg-eth0
- /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0 HWADDR=00:1e:90:f3:f0:02 ONBOOT=yes TYPE=Ethernet IPV6INIT=no USERCTL=no BRIDGE=br0
- 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.
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
- /etc/polkit-1/localauthority/50-local.d/50-libvirt-remote-access.pkla
[libvirt Management Access] Identity=unix-group:libvirt Action=org.libvirt.unix.manage ResultAny=yes ResultInactive=yes ResultActive=yes
From there, just make sure all of the VM admins are in the “libvirt” group.
출처 : http://jkt0620.blog.me/100209191516
'Legacy Skills > VM' 카테고리의 다른 글
Installing KVM Guests With virt-install On Ubuntu 11.04 Server - Page 3 (1) | 2014.04.21 |
---|---|
chapter 2. QEMU 구조 및 관련 하이퍼 바이져 (0) | 2014.04.21 |
CentOS6에 KVM 설치하기 (0) | 2014.04.18 |
CentOS6.3에서 KVM/QEMU 설치 방법 (0) | 2014.04.18 |
가상화의 형태 - 하이퍼바이저[Hypervisor] (0) | 2014.03.25 |
댓글