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

相关文章
|
5月前
|
人工智能 JavaScript 开发工具
极速上手!Claude Code 原生支持 Windows 免WSL安装教程
Claude Code 现已支持 Windows 原生运行,无需 WSL 配置。本文提供详细安装教程,涵盖 Node.js 环境验证、Git 安装及 Claude Code 配置步骤,助你快速上手这一强大 AI 编程工具。
4214 5
|
5月前
|
存储 虚拟化 Windows
VMware安装Windows10
本案例介绍了在Windows系统上使用VMware Workstation 17.5 Pro安装配置Windows 10虚拟机的详细步骤,包括所需设备、软件下载链接、虚拟机设置及系统安装全过程。
2601 133
VMware安装Windows10
|
4月前
|
安全 Ubuntu iOS开发
Nessus Professional 10.10 Auto Installer for Windows - Nessus 自动化安装程序
Nessus Professional 10.10 Auto Installer for Windows - Nessus 自动化安装程序
237 3
Nessus Professional 10.10 Auto Installer for Windows - Nessus 自动化安装程序
|
5月前
|
安全 数据安全/隐私保护 Windows
ZyperWin++使用教程!让Windows更丝滑!c盘飘红一键搞定!ZyperWin++解决系统优化、Office安装和系统激活
ZyperWin++是一款仅5MB的开源免费Windows优化工具,支持快速优化、自定义设置与垃圾清理,兼具系统加速、隐私保护、Office安装等功能,轻便无广告,小白也能轻松上手,是提升电脑性能的全能管家。
1799 0
|
数据安全/隐私保护 虚拟化 Windows
如何在 VM 虚拟机中安装 Windows Server 2012 操作系统保姆级教程(附链接)
如何在 VM 虚拟机中安装 Windows Server 2012 操作系统保姆级教程(附链接)
|
数据安全/隐私保护 Windows
安装 Windows Server 2019
安装 Windows Server 2019
717 1
|
缓存 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系统了。
|
安全 网络安全 虚拟化
VMware中安装Windows Server 2012系统
在VMware中安装Windows Server 2012系统
3388 2
|
文件存储 iOS开发 Windows
在服务器的raid1中安装windows server系统(踩坑记录)
在服务器的raid1中安装windows server系统(踩坑记录)
在服务器的raid1中安装windows server系统(踩坑记录)
|
Ubuntu 安全 Linux
【Linux】安装VMWare虚拟机(安装配置)和配置Windows Server 2012 R2(安装配置连接vm虚拟机)以及环境配置(Windows版详细教程)
【Linux】安装VMWare虚拟机(安装配置)和配置Windows Server 2012 R2(安装配置连接vm虚拟机)以及环境配置(Windows版详细教程)
1464 0