Skip to content

Commit 20147b0

Browse files
lpancescukbsingh
authored andcommitted
vagrant: fix #156, centos/6 not booting on HyperV (#158)
I don't have access to HyperV, but according to a user, blacklisting the HyperV framebuffer module is needed for centos/6 to be able to boot on HyperV.
1 parent f9f66ca commit 20147b0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

vagrant/centos6.ks

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,18 @@ pushd /etc/dracut.conf.d
136136
echo 'add_drivers+=" vmw_pvscsi "' > vmware-fusion-drivers.conf
137137
echo 'add_drivers+=" hv_netvsc hv_storvsc hv_utils hv_vmbus hid-hyperv "' > hyperv-drivers.conf
138138
popd
139+
140+
# Fix for issue 156, CentOS 6 not booting on HyperV
141+
echo blacklist hyperv_fb > /etc/modprobe.d/hyperv_fb.conf
142+
139143
# Fix the SELinux context of the new files
140144
restorecon -f - <<EOF
141145
/etc/sudoers.d/vagrant
142146
/etc/dracut.conf.d/vmware-fusion-drivers.conf
143147
/etc/dracut.conf.d/hyperv-drivers.conf
148+
/etc/modprobe.d/hyperv_fb.conf
144149
EOF
150+
145151
# Rerun dracut for the installed kernel (not the running kernel):
146152
KERNEL_VERSION=$(rpm -q kernel --qf '%{version}-%{release}.%{arch}\n')
147153
dracut -f /boot/initramfs-${KERNEL_VERSION}.img ${KERNEL_VERSION}

0 commit comments

Comments
 (0)