oVirt配置手册

snow chuai汇总、整理、撰写---2020/2/5


1. 安装oVirt
1) 安装oVirt软件
[root@node4 ~]# yum update -y && reboot
[root@node4 ~]# yum install http://resources.ovirt.org/pub/yum-repo/ovirt-release43.rpm -y
[root@node4 ~]# yum install ovirt-engine -y
2) 配置oVirt [root@node4 ~]# engine-setup [ INFO ] Stage: Initializing [ INFO ] Stage: Environment setup Configuration files: ['/etc/ovirt-engine-setup.conf.d/10-packaging-jboss.conf', '/etc/ovirt-engine-setup.conf.d/10-packaging.conf'] Log file: /var/log/ovirt-engine/setup/ovirt-engine-setup-20200205152754-1sobqb.log Version: otopi-1.8.4 (otopi-1.8.4-1.el7) [ INFO ] Stage: Environment packages setup
--== PRODUCT OPTIONS ==--
Set up Cinderlib integration (Currently in tech preview) (Yes, No) [No]: Configure Engine on this host (Yes, No) [Yes]: Configure ovirt-provider-ovn (Yes, No) [Yes]: Configure Image I/O Proxy on this host (Yes, No) [Yes]: Configure WebSocket Proxy on this host (Yes, No) [Yes]:
* Please note * : Data Warehouse is required for the engine. If you choose to not configure it on this host, you have to configure it on a remote host, and then configure the engine on this host so that it can access the database of the remote Data Warehouse host. Configure Data Warehouse on this host (Yes, No) [Yes]: Configure VM Console Proxy on this host (Yes, No) [Yes]:
--== PACKAGES ==--
[ INFO ] Checking for product updates... [ INFO ] No product updates found
--== NETWORK CONFIGURATION ==--
Host fully qualified DNS name of this server [node4.1000cc.net]: Setup can automatically configure the firewall on this system. Note: automatic configuration of the firewall may overwrite current settings. NOTICE: iptables is deprecated and will be removed in future releases Do you want Setup to configure the firewall? (Yes, No) [Yes]: No
--== DATABASE CONFIGURATION ==--
Where is the DWH database located? (Local, Remote) [Local]: Setup can configure the local postgresql server automatically for the DWH to run. This may conflict with existing applications. Would you like Setup to automatically configure postgresql and create DWH database, or prefer to perform that manually? (Automatic, Manual) [Automatic]: Where is the Engine database located? (Local, Remote) [Local]: Would you like Setup to automatically configure postgresql and create Engine database, or prefer to perform that manually? (Automatic, Manual) [Automatic]:
--== OVIRT ENGINE CONFIGURATION ==--
Engine admin password: Confirm engine admin password: Application mode (Virt, Gluster, Both) [Both]: Use default credentials (admin@internal) for ovirt-provider-ovn (Yes, No) [Yes]
--== STORAGE CONFIGURATION ==-- Default SAN wipe after delete (Yes, No) [No]:
--== PKI CONFIGURATION ==--
Organization name for certificate [1000cc.net]:
--== APACHE CONFIGURATION ==--
Setup can configure the default page of the web server to present the application home page. This may conflict with existing applications. Do you wish to set the application as the default page of the web server? (Yes, No) [Yes]: Setup can configure apache to use SSL using a certificate issued from the internal CA. Do you wish Setup to configure that, or prefer to perform that manually? (Automatic, Manual) [Automatic]: --== SYSTEM CONFIGURATION ==--
--== MISC CONFIGURATION ==--
Please choose Data Warehouse sampling scale: (1) Basic (2) Full (1, 2)[1]:
--== END OF CONFIGURATION ==--
[ INFO ] Stage: Setup validation
--== CONFIGURATION PREVIEW ==--
Application mode : both Default SAN wipe after delete : False Update Firewall : False Host FQDN : node4.1000cc.net Configure local Engine database : True Set application as default page : True Configure Apache SSL : True Engine database secured connection : False Engine database user name : engine Engine database name : engine Engine database host : localhost Engine database port : 5432 Engine database host name validation : False Engine installation : True PKI organization : 1000cc.net Set up ovirt-provider-ovn : True Configure WebSocket Proxy : True DWH installation : True DWH database host : localhost DWH database port : 5432 Configure local DWH database : True Configure Image I/O Proxy : True Configure VMConsole Proxy : True
Please confirm installation settings (OK, Cancel) [OK]: [ INFO ] Stage: Transaction setup [ INFO ] Stopping engine service ...... ...... [ INFO ] Execution of setup completed successfully
2. 添加oVirt计算节点
1) 为计算节点安装相关软件
[root@node1 ~]# yum update -y && reboot
[root@node1 ~]# yum install http://resources.ovirt.org/pub/yum-repo/ovirt-release43.rpm -y
[root@node1 ~]# yum install qemu-kvm libvirt virt-install bridge-utils vdsm -y
[root@node1 ~]# systemctl enable --now libvirtd
2) 登录oVirt WEB UI [浏览器]==>http://oVirt-Server-IP



3) 添加计算节点




等待一段时间后,计算节点的状态将变更为'Up'


3. 添加数据区域
1) 配置NFS
[root@node3 ~]# groupadd -g 36 kvm
[root@node3 ~]# useradd -u 36 -g kvm -M -d / -s /sbin/nologin vdsm
[root@node3 ~]# mkdir -p /ovirtdata
[root@node3 ~]# chown vdsm:kvm /ovirtdata
[root@node3 ~]# vim /etc/exports.d/ovirt-engine-data-domain.exports
/ovirtdata 192.168.10.0/24(rw)
[root@node3 ~]# systemctl restart rpc-statd nfs-server
2) 在Ovirt中添加数据区域


4. 添加ISO区域
1) 配置NFS
[root@node3 ~]# groupadd -g 36 kvm
[root@node3 ~]# useradd -u 36 -g kvm -M -d / -s /sbin/nologin vdsm
[root@node3 ~]# mkdir -p /iso
[root@node3 ~]# chown vdsm:kvm /iso
[root@node3 ~]# vim /etc/exports.d/ovirt-engine-iso-domain.exports
/iso 192.168.10.0/24(rw)
[root@node3 ~]# systemctl restart rpc-statd nfs-server
2) 在Ovirt中添加ISO区域



3) 上传ISO到Ovirt [root@node4 ~]# engine-iso-uploader -i ISO_DOMAIN upload CentOS-8.1.1911-x86_64-dvd1.iso Please provide the REST API password for the admin@internal oVirt Engine user (CTRL+D to abort): Uploading, please wait... INFO: Start uploading CentOS-8.1.1911-x86_64-dvd1.iso Uploading: [########################################] 100% INFO: CentOS-8.1.1911-x86_64-dvd1.iso uploaded successfully

5. 创建实例










 

如对您有帮助,请随缘打个赏。^-^

gold