烂泥: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




本文转自 烂泥行天下 51CTO博客,原文链接:http://blog.51cto.com/ilanni/1531200

相关文章
|
6天前
|
开发框架 .NET 数据库
修改windows server 2008 时间和日期格式
修改windows server 2008 时间和日期格式
12 1
|
6天前
|
SQL Windows
保姆级:Windows Server 2012上安装.NET Framework 3.5
保姆级:Windows Server 2012上安装.NET Framework 3.5
|
6天前
|
Apache 项目管理 数据安全/隐私保护
Windows如何安装使用TortoiseSVN客户端并实现公网访问本地SVN Server
Windows如何安装使用TortoiseSVN客户端并实现公网访问本地SVN Server
21 0
|
6天前
|
安全 关系型数据库 虚拟化
WIndows Server 远程桌面服务—RDS
WIndows Server 远程桌面服务—RDS
|
6天前
|
数据安全/隐私保护 虚拟化 Windows
如何在 VM 虚拟机中安装 Windows Server 2012 操作系统保姆级教程(附链接)
如何在 VM 虚拟机中安装 Windows Server 2012 操作系统保姆级教程(附链接)
|
6天前
|
安全 网络安全 虚拟化
VMware中安装Windows Server 2012系统
在VMware中安装Windows Server 2012系统
128 2
|
10月前
|
缓存 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系统了。
|
6天前
|
Ubuntu 安全 Linux
【Linux】安装VMWare虚拟机(安装配置)和配置Windows Server 2012 R2(安装配置连接vm虚拟机)以及环境配置(Windows版详细教程)
【Linux】安装VMWare虚拟机(安装配置)和配置Windows Server 2012 R2(安装配置连接vm虚拟机)以及环境配置(Windows版详细教程)
296 0
|
7月前
|
关系型数据库 MySQL Linux
【Linux】安装VMWare虚拟机(安装配置)和配置Windows Server 2012 R2(安装配置连接vm虚拟机)以及环境配置
【Linux】安装VMWare虚拟机(安装配置)和配置Windows Server 2012 R2(安装配置连接vm虚拟机)以及环境配置
129 0
|
10月前
|
文件存储 iOS开发 Windows
在服务器的raid1中安装windows server系统(踩坑记录)
在服务器的raid1中安装windows server系统(踩坑记录)
在服务器的raid1中安装windows server系统(踩坑记录)