AI-Learning-Note

AI学习笔记

Ovirt 学习笔记

返回-首页

1. Ovirt-node修改IP地址后重启,IP又改变

原因:vdsm服务在重启时更新网桥配置文件ifcfg-ovirtmgmt,需修改vdsm配置文件

vi /var/lib/vdsm/persistence/netconf/nets/ovirtmgmt
"ipaddr": "修改IP地址",

2. 部署了self-hosted engine的node节点重启后无法启动ovirt-ha-agent服务

报错提示:The hosted engine configuration has not been retrieved from shared storage. Please ensure that ovirt-ha-agent is running and the storage server is reachable there is an issue with the ovirt-ha-agent service, or with the storage, or both.

原因:配置了glusterfs共享存储,存储没有启动成功,无法挂载。执行以下命令查看volume状态

#gluster volume status all
Status of volume: export
Gluster process                             TCP Port  RDMA Port  Online  Pid
------------------------------------------------------------------------------
Brick node1:/glusterfs/export               49152     0          Y       14749
 
Task Status of Volume export
------------------------------------------------------------------------------
There are no active volume tasks
 
Status of volume: gfs1
Gluster process                             TCP Port  RDMA Port  Online  Pid
------------------------------------------------------------------------------
Brick node1:/glusterfs/database             49153     0          Y       14780
 
Task Status of Volume gfs1
------------------------------------------------------------------------------
There are no active volume tasks
 
Status of volume: iso
Gluster process                             TCP Port  RDMA Port  Online  Pid
------------------------------------------------------------------------------
Brick node1:/glusterfs/iso                  49154     0          Y       14823
 
Task Status of Volume iso
------------------------------------------------------------------------------
There are no active volume tasks

对没有在线的volume强制启动:

#gluster volume start gfs1 force

然后再启动ovirt-ha-agent服务

# systemctl start ovirt-ha-agent

3. ovirt安装Windows无法认到硬盘,安装驱动后报windows 0x80300001错误

原因:需要先安装Windows的硬盘驱动,从fedora网站上下载 virtio-win.iso ,virtio-win_amd64.vfd ,virtio-win_x86.vfd 上传到ovirt上的iso域内,在安装windows系统是加载VirtIO驱动:

启动进入windows安装后,提示认不到硬盘,需要加载驱动,这时把光盘更换成virtio-win.iso后就能加载正确的驱动,对硬盘进行格式化。

这时会提示windows 0x80300001错误,这时因为光盘已被更改成virtio-win.iso,这时候把光盘更改会windows安装光盘就可以。

注意 :更换光盘一定要通过下图的操作

更换光盘

这个可以更换到原来的windows安装光盘,通过控制台上的文件——>更换设备,根本找不到原来的windows安装dvd,我卡在这一块一个月,晕死!!

4. ovirt配置vlan网络

ovirt节点主机是多网卡的服务器,其中一个网卡所接网线是Trunk模式。首先进入oVirt管理台,新建网络:

新建逻辑网络

填写vlan

按照这个方法创建多个vlan

vlan列表