1、备好centos7,并执行
yum update
reboot
2、安装ovirt源
yum -y install http://ftp.snt.utwente.nl/pub/software/ovirt/yum-repo/ovirt-release41.rpm
3、修改ovirt的源地址
[ovirt-4.1]
name=Latest oVirt 4.1 Release
baseurl=http://ftp.snt.utwente.nl/pub/software/ovirt/ovirt-4.1/rpm/el$releasever/
enabled=1
skip_if_unavailable=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-ovirt-4.1
4、安装ovirt-engine
yum install -y ovirt-engine
5、engine-setup
engine-setup
# firewall --> no
# host --> vm.example.com
6、服务器和客户机上都添加hosts
vim /etc/hosts
192.168.1.10 vm.example.com
7、下载磁盘驱动器
https://fedoraproject.org/wiki/Windows_Virtio_Drivers#Direct_download
# 选磁盘的时候选择scsi
8、安装Windows Guest-Tool
yum install ovirt-guest-tools-iso
#The above will install the ISO in /usr/share/ovirt-guest-tools-iso/. Copy it to wherever you need it
9、安装Ubuntu/opensuse Guest-Tool
# $REPOURL = http://download.opensuse.org/repositories/home:/evilissimo:/ubuntu:/16.04/xUbuntu_16.04/
# echo 'deb $REPOURL /' >> /etc/apt/sources.list.d/ovirt-guest-agent.list
# wget $REPOURL/Release.key
# apt-key add - < Release.key
# apt-get update
# apt-get install ovirt-guest-agent
# service ovirt-guest-agent start
10、安装Centos/Fedora Guest-Tool
# yum -y install epel-release
# yum -y install ovirt-guest-agent-common
# systemctl enable ovirt-guest-agent.service && systemctl start ovirt-guest-agent.service
网友评论