最新消息:记录平凡小事,展望IT世界!

解决CentOS 7 Kvm 不支持Windows的方案

技术 kwx 444浏览

RHEL在其CentOS 7 libguestfs软件包中禁用了NTFS(windows)支持。我们重新构建了这些软件包以再次启用它,才能访问NTFS。

解决方案:

1、主CentOS基础仓库禁用libguestfs包

vi /etc/yum.repos.d/CentOS-Base.repo

2、exclude = libguestfs * perl-Sys-Guestfs *添加到每个节点

# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
 
[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
exclude=libguestfs* perl-Sys-Guestfs*
 
#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
exclude=libguestfs* perl-Sys-Guestfs*
 
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
exclude=libguestfs* perl-Sys-Guestfs*
 
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
exclude=libguestfs* perl-Sys-Guestfs*

3、下载solusvm 自定义libguestfs 并安装

wget http://libguestfs.solusvm.com/centos/libguestfs-plesk.repo -O /etc/yum.repos.d/libguestfs-plesk.repo
yum install libguestfs*.plesk

参考相关文献:https://docs.solusvm.com/display/DOCS/Libguestfs

转载请注明:Kwx Blog » 解决CentOS 7 Kvm 不支持Windows的方案