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

相关文章
|
11天前
|
Windows
Windows操作系统部署安装Kerberos客户端
详细介绍了在Windows操作系统上部署安装Kerberos客户端的完整过程,包括下载安装包、安装步骤、自定义安装路径、修改环境变量、配置hosts文件和Kerberos配置文件,以及安装后的验证步骤。
26 3
Windows操作系统部署安装Kerberos客户端
|
2天前
|
SQL JavaScript 数据库
sqlite在Windows环境下安装、使用、node.js连接
sqlite在Windows环境下安装、使用、node.js连接
|
10天前
|
网络安全 虚拟化 Windows
windows 11安装openSSH server 遇到的"kex_exchange_identification: read: Connection reset"问题
windows 11安装openSSH server 遇到的"kex_exchange_identification: read: Connection reset"问题
|
16天前
|
API Docker Windows
2024 Ollama 一站式解决在Windows系统安装、使用、定制服务与实战案例
这篇文章是一份关于Ollama工具的一站式使用指南,涵盖了在Windows系统上安装、使用和定制服务,以及实战案例。
2024 Ollama 一站式解决在Windows系统安装、使用、定制服务与实战案例
|
4月前
|
数据安全/隐私保护 虚拟化 Windows
如何在 VM 虚拟机中安装 Windows Server 2012 操作系统保姆级教程(附链接)
如何在 VM 虚拟机中安装 Windows Server 2012 操作系统保姆级教程(附链接)
|
4月前
|
安全 网络安全 虚拟化
VMware中安装Windows Server 2012系统
在VMware中安装Windows Server 2012系统
321 2
|
缓存 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系统了。
|
4月前
|
Ubuntu 安全 Linux
【Linux】安装VMWare虚拟机(安装配置)和配置Windows Server 2012 R2(安装配置连接vm虚拟机)以及环境配置(Windows版详细教程)
【Linux】安装VMWare虚拟机(安装配置)和配置Windows Server 2012 R2(安装配置连接vm虚拟机)以及环境配置(Windows版详细教程)
429 0
|
11月前
|
关系型数据库 MySQL Linux
【Linux】安装VMWare虚拟机(安装配置)和配置Windows Server 2012 R2(安装配置连接vm虚拟机)以及环境配置
【Linux】安装VMWare虚拟机(安装配置)和配置Windows Server 2012 R2(安装配置连接vm虚拟机)以及环境配置
205 0
|
文件存储 iOS开发 Windows
在服务器的raid1中安装windows server系统(踩坑记录)
在服务器的raid1中安装windows server系统(踩坑记录)
在服务器的raid1中安装windows server系统(踩坑记录)