TurnToJPG -->


前提条件: 最小化CentOS7系统迁移(见前一篇文章).


CentOS 7.3(1611), 最小化安装。

# yum update -y
# yum install -y vim qemu libvirt libvirt-devel ruby-devel gcc qemu-kvm
net-tools virt-manager wget lm_sensors iotop
# wget -O /etc/yum.repos.d/epel.repo
# yum install -y nethogs byobu ansible rubygem-ruby-libvirt.x86_64
# wget
# yum install vagrant_1.9.1_x86_64.rpm
# vagrant plugin install --plugin-version  0.0.37 vagrant-libvirt
# cd ~/.vagrant.d/gems/2.2.5/gems
# ln -s ../extensions ./
# vi /etc/modprobe.d/kvm-nested.conf
options kvm_intel nested=1

Disable the selinux, firewalld:

# vim /etc/selinux/config
# systemctl disable firewalld

Now restart the machine, your dev environment is ready now.

Install desktop(MATE):

$ yum groupinstall "MATE Desktop" -y
$ yum groupinstall "X Window System" -y
# systemctl isolate
# systemctl set-default
# yum install -y gvim gedit gimp 
# wget
# sed -i "s/gpgkey=https/gpgkey=http/" /etc/yum.repos.d/virtualbox.repo
# yum install  gcc make patch  dkms qt libgomp
# yum install -y kernel-headers kernel-devel fontforge binutils glibc-headers
glibc-devel VirtualBox-5.1 tigervnc tigervnc-server tigervnc tigervnc-server
# yum install -y wireshark tcpdump iftop  python-epdb.noarch python3-rpdb.noarch python2-rpdb.noarch sysstat libreoffice golang unzip htop wireshark-gnome zsh ddd gdb git subversion 
# yum install epel-release
# rpm -Uvh
# yum install simplescreenrecorder
# yum install -y smplayer

Install Docker(stable version):

# curl -sSL | sh -
# systemctl enable docker

Install xfce4 desktop:

# yum groupinstall "Xfce" -y


CentOS 7的initramfs需要重新编译,以获得usb支持。步骤如下:

获取Linux Kernel版本:

# ls /lib/modules


# mkinitrd --with-usb --preload=ehci-hcd --preload=usb-storage --preload=scsi_mod --preload=sd_mod ./usbinitrd-3.10.0-514.el7.x86_64 3.10.0-514.el7.x86_64


# vim /boot/grub2/grub.cfg
	- initrd16 /boot/initramfs-3.10.0-514.el7.x86_64.img
	+ initrd16 /boot/usbinitrd-3.10.0-514.el7.x86_64.img


megaraid sas issue

The server has the megaraid sas 2208:

LSI Logic / Symbios Logic MegaRAID SAS 2208 [Thunderbolt] (rev 05)

which could not be recognized via CentOS 7.3, thus we have to install following packages:

# yum install kmod-redhat-megaraid_sas.x86_64

I thinks this could solve the problems.

Or we could use the rescue kernel for booting the system, which acts the same as the general kernels

No, install kmod-redhat-megaraid_sas.x86_64 won’t solve the problem, so I googled and finf following way could solves this problem.

# dracut --add-driver megaraid_sas.ko -f
/boot/initramfs-3.10.0-514.21.1.el7.x86_64.img 3.10.0-514.21.1.el7.x86_64


ScreeShot Software