KVM中安装Windows Server 2008 R2系统

简介:

在前一篇文章中,我介绍了有关在KVM中的安装Centos系统。接下来,就来介绍如何在KVM中安装Windows系统。

注意:在此我安装的是windows server 2008 R2,使用的硬盘格式一定要是IDE。

在KVM中安装操作系统一般是分为三步:

创建虚拟机所需要的硬盘,使用qemu-img命令

开始虚拟机,使用virt-install命令

按照正常安装系统,进行安装

现在开始第一步,创建虚拟机的硬盘。使用如下命令:

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

qemu-img info /vhost/ilanni02.img

clip_image001

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

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=/vhost/ilanni02.img,format=qcow2,bus=ide –network bridge=br0 –vnc –vncport=5992 –vnclisten=0.0.0.0 –force –autostart

–name虚拟机的名称

–disk表示硬盘的路径

-r 分配给虚拟机的内存

–vcpus 分配给虚拟机的cpu个数

–os-type 该虚拟机的OS类型

–vncport 连接该虚拟机的VNC端口号

其他的选项可以通过 virt-install –help进行查看。

注意其中硬盘的格式一定要使用IDE格式,如果没有添加格式说明的话,默认是virtio格式。如果使用virtio格式的话,需要加载virtio驱动。

clip_image002

开始使用VNC客户端连接虚拟机,如下:

192.168.1.240:5992

clip_image003

现在开始安装系统,如下图:

clip_image004

clip_image005clip_image006

clip_image007clip_image008

clip_image009

clip_image010

clip_image011

clip_image012

显示硬盘的大小和我们创建硬盘的大小是一样的,如下图:

clip_image013

clip_image014

安装完毕后,如下图:

clip_image015


相关文章
|
6月前
|
安全 数据安全/隐私保护 虚拟化
Windows Server 2022 中文版、英文版下载 (2025 年 10 月更新)
Windows Server 2022 中文版、英文版下载 (2025 年 10 月更新)
1599 2
Windows Server 2022 中文版、英文版下载 (2025 年 10 月更新)
|
6月前
|
安全 Unix 物联网
Windows 7 & Windows Server 2008 R2 简体中文版下载 (2025 年 10 月更新)
Windows 7 & Windows Server 2008 R2 简体中文版下载 (2025 年 10 月更新)
674 0
Windows 7 & Windows Server 2008 R2 简体中文版下载 (2025 年 10 月更新)
|
6月前
|
存储 SQL 人工智能
Windows Server 2025 中文版、英文版下载 (2025 年 10 月更新)
Windows Server 2025 中文版、英文版下载 (2025 年 10 月更新)
920 0
|
7月前
|
运维 安全 网络安全
Windows Server 2019拨号“找不到设备”?Error 1058解决指南
Windows Server 2019拨号报错1058?别急!这不是硬件故障,而是关键服务被禁用。通过“服务依存关系”排查,依次启动“安全套接字隧道协议”“远程接入连接管理”和“路由与远程访问”服务,仅需4步即可恢复PPPoE或VPN拨号功能,轻松解决网络中断问题。
563 1
|
7月前
|
安全 Linux iOS开发
SonarQube Server 2025 Release 5 (macOS, Linux, Windows) - 代码质量、安全与静态分析工具
SonarQube Server 2025 Release 5 (macOS, Linux, Windows) - 代码质量、安全与静态分析工具
318 0
SonarQube Server 2025 Release 5 (macOS, Linux, Windows) - 代码质量、安全与静态分析工具
|
数据安全/隐私保护 虚拟化 Windows
如何在 VM 虚拟机中安装 Windows Server 2012 操作系统保姆级教程(附链接)
如何在 VM 虚拟机中安装 Windows Server 2012 操作系统保姆级教程(附链接)
|
数据安全/隐私保护 Windows
安装 Windows Server 2019
安装 Windows Server 2019
743 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系统
3782 2
|
文件存储 iOS开发 Windows
在服务器的raid1中安装windows server系统(踩坑记录)
在服务器的raid1中安装windows server系统(踩坑记录)
在服务器的raid1中安装windows server系统(踩坑记录)