windows 2012 R2 安装 VC14(VC2015) 安装失败解决方案

首先,我们看下安装失败的错误截图。

然后我们查看日志。

错误日志:Windows8.1-KB2999226-x64.msu 安装失败

我们找到这个文件夹,手动安装一下看看效果,如下:

解决方案如下:

先安装补丁 KB2919442 立即下载基于 x64 的 Windows Server 2012 R2 的KB2919442补丁

下载地址 https://www.microsoft.com/zh-cn/download/details.aspx?id=42153

 

KB2919442  安装完成后,继续安装 Windows Server 2012 R2 Update (KB2919355) 所有补丁,如下

下载地址  立即下载基于 x64 的 Windows Server 2012 R2 更新软件包。

 

 

 

 

注意:必须按以下顺序安装更新:

clearcompressionflag.exe            38 KB      管理员身份运行,没有界面,后台运

Windows8.1-KB2919355-x64.msu        690.8 MB     安装完成后,需要重起,这个安装过程根据你的硬件配置和网络决定安装速度。

Windows8.1-KB2932046-x64.msu        48.0 MB

Windows8.1-KB2934018-x64.msu        126.4 MB

Windows8.1-KB2937592-x64.msu        303 KB

Windows8.1-KB2938439-x64.msu        19.6 MB

Windows8.1-KB2959977-x64.msu          2.8 MB

 

所有更新包安装完成后,接下来我们继续安装  Microsoft Visual C++ 2015 Redistributable (x64) – 14.0.23026

下载链接

http://www.microsoft.com/en-us/download/details.aspx?id=48145

如图:

 

 

 

linux下使用virsh批量关闭或开启KVM虚拟机

批量关闭(软关机)

  1. for i in $(virsh list --name --autostart);do virsh shutdown $i;done

批量关闭(硬关机)

  1. for i in $(virsh list --name --autostart);do virsh destroy $i;done

批量开启

  1. for i in $(virsh list --name --autostart);do virsh start $i;done

批量开启关闭状态的虚拟机

  1. for i in $(virsh list --name --inactive);do virsh start $i;done

Convert Citrix Xenserver XVA Image to KVM

qemu-img is a tool apart of the qemu-utils package that lets you convert a wide variety of disk images from one hypervisor to another. However Citrix Xenserver image format XVA is not an option for qemu-img, so lets add it!

Here’s how to convert an XVA image to KVM.

Extract the XVA image.

A XVA file is a carefully created tarball we will need to extract.




1
2
mkdir xva_uncompressed
tar -xf virtual_machine.xva -C xva_uncompressed



Create a raw image

Use xva-img to create a raw disk image from the extracted xva data.

First we will build xva-img:




1
2
3
4
5
cd xva-img/
cmake .
sudo make install
cd ../



Create raw disk image: Note the Ref\:1 may be different.




1
xva-img -p disk-export xva_uncompressed/Ref\:1/ virtual_machine.raw



Convert RAW image to KVM using qemu-img

Install qemu-utils




1
2
3
4
#Debian/Ubuntu
sudo apt-get install qemu-utils
#RHEL/CentOS/Fedora
sudo yum install qemu-kvm qemu-img



Covert raw image to qcow2




1
qemu-img convert -f raw -O qcow2 virtual_machine.raw virtual_machine.qcow2



Import qcow2 disk image to KVM

Import the qcow2 image to your KVM environment, then attach the image to a VM. In my environment, I use oVirt:


2018shijiebei w88 18luck 188bet beplay manbet 12bet 95zz shenbo weide1946 ca88