KVM安装Windows Server 2008 R2使用virtio硬盘

简介:

在上一篇文章中,我们介绍了使用IDE硬盘来安装Windows Server 2008 R2,这篇文章我们来介绍使用virtio硬盘来安装Windows Server 2008 R2。

说明:KVM默认使用的硬盘格式为virtio。

使用virtio接口的硬盘,我们必须加载virtio硬盘驱动。如果不加载该驱动windows installer会无法找到虚拟磁盘,如下图:

lip_image001[4]

现在安装虚拟机的安装步骤,首先创建虚拟机的硬盘,使用如下命令:

qemu-img create -f qcow2 lanni02.img 15G

lip_image002[4]

创建虚拟机,使用如下命令:

virt-install -n ilanni02 -r 2048 –vcpus=2 –os-type=windows –accelerate -c /iso/windows_server_2008_R2/Win_Server_2008_R2_SP1_33in1.iso –disk path=/iso/virtio-win-0.1-81.iso,device=cdrom –disk path=/vhost/ilanni02.img,format=qcow2,bus=virtio –network bridge=br0 –vnc –vncport=5992 –vnclisten=0.0.0.0 –force –autostart

注意以上命令中:

-disk path=/iso/virtio-win-0.1-81.iso,device=cdrom表示把virtio-win-0.1-81.iso镜像文件已光驱的形式挂载到系统中。virtio-win-0.1-81.iso是virtio的驱动程序文件。

执行完毕以上命令后,我们就可以使用VNC客户端来虚拟机进行安装OS。

在安装到硬盘时,会显示如下图:

lip_image003[6]

可以看到没有有任何硬盘,点击“加载驱动程序”,如下图:

lip_image003[7]

点击“浏览”

lip_image004[4]

在光驱中,我们可以看到有两个光驱D盘和E盘。其中D盘式系统的镜像文件,而E盘则是virtio的驱动程序。点击E盘—“WLH”—“AMD64”,如下图:

lip_image005[4]

注意因为在此我安装的是64bit的OS,所以选择的是AMD64,如果你安装的OS是32bit,建议你选择X86

lip_image006[4]

选择要安装的驱动程序

lip_image007[4]

开始安装

lip_image008[4]

安装完毕后,我们可以看到已经识别到硬盘。

lip_image009[4]

系统安装完毕后,在系统中看到的硬盘。

PS:有关virtio驱动程序,我们可以在如下连接下载:

http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/

https://www.linuxwind.org/html/kvm-windows-2008-virtion-driver.html

相关文章
|
1月前
|
安全 数据安全/隐私保护 Windows
解锁安全之门,Windows Server 2019密码修改攻略大揭秘
解锁安全之门,Windows Server 2019密码修改攻略大揭秘
|
1月前
|
存储 安全 网络安全
铁壁如墙-WINDOWS SERVER 2019勒索病毒终极防御指南
铁壁如墙-WINDOWS SERVER 2019勒索病毒终极防御指南
|
1月前
|
安全 数据安全/隐私保护 Windows
无远不至的掌控力:探索Windows Server 2019的远程访问绝招
无远不至的掌控力:探索Windows Server 2019的远程访问绝招
|
1月前
|
Windows
windows server 2019 安装NET Framework 3.5失败,提示:“安装一个或多个角色、角色服务或功能失败” 解决方案
windows server 2019 安装NET Framework 3.5失败,提示:“安装一个或多个角色、角色服务或功能失败” 解决方案
|
4月前
|
存储 安全 Apache
2023-10 适用于基于 x64 的系统的 Windows Server 2012 R2 月度安全质量汇总(KB5031419)
2023-10 适用于基于 x64 的系统的 Windows Server 2012 R2 月度安全质量汇总(KB5031419)
276 2
|
9月前
|
缓存 JavaScript 前端开发
Windows7压缩包安装node.js 报错提示windows Server 2012 R2 和安装React脚手架 最详细教程
对于Windows 7安装node.js 提示“This application is only supported on wWindows 8.1,windows Server 2012 R2, or higher.”类似这种情况的,该问题是因为node.js官方在 x12版本后就不支持win7系统了。
|
15天前
|
Ubuntu 安全 Linux
【Linux】安装VMWare虚拟机(安装配置)和配置Windows Server 2012 R2(安装配置连接vm虚拟机)以及环境配置(Windows版详细教程)
【Linux】安装VMWare虚拟机(安装配置)和配置Windows Server 2012 R2(安装配置连接vm虚拟机)以及环境配置(Windows版详细教程)
219 0
|
6月前
|
关系型数据库 MySQL Linux
【Linux】安装VMWare虚拟机(安装配置)和配置Windows Server 2012 R2(安装配置连接vm虚拟机)以及环境配置
【Linux】安装VMWare虚拟机(安装配置)和配置Windows Server 2012 R2(安装配置连接vm虚拟机)以及环境配置
111 0
|
9月前
|
Windows
Windows Server 2012 R2多用户远程连接配置步骤
Windows Server 2012 R2多用户远程连接配置步骤
655 0
|
11月前
|
网络架构 Windows
使用Windows Server 2012 R2创建DHCP作用域(DHCP地址池),并测试使用
使用Windows Server 2012 R2创建DHCP作用域(DHCP地址池),并测试使用
233 0