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

clip_image009

clip_image010

clip_image011

clip_image012

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

clip_image013

clip_image014

安装完毕后,如下图:

clip_image015


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

相关文章
|
3月前
|
Linux 虚拟化 iOS开发
Windows Server 2022 OVF (2025 年 6 月更新) - VMware 虚拟机模板
Windows Server 2022 OVF (2025 年 6 月更新) - VMware 虚拟机模板
228 6
Windows Server 2022 OVF (2025 年 6 月更新) - VMware 虚拟机模板
|
2月前
|
安全 Cloud Native 数据中心
Windows Server 2019 中文版、英文版下载 (2025 年 7 月更新)
Windows Server 2019 中文版、英文版下载 (2025 年 7 月更新)
294 2
|
Linux 虚拟化 iOS开发
Windows Server 2008 R2 OVF (2025 年 6 月更新) - VMware 虚拟机模板
Windows Server 2008 R2 OVF (2025 年 6 月更新) - VMware 虚拟机模板
168 0
Windows Server 2008 R2 OVF (2025 年 6 月更新) - VMware 虚拟机模板
|
虚拟化 Windows
Windows 7 10 11 2008R2 2016 2019 2022 2025 (updated Jun 2025) 2025 年 6 月更新
Windows 7 10 11 2008R2 2016 2019 2022 2025 (updated Jun 2025) 2025 年 6 月更新
51 0
|
Linux 虚拟化 iOS开发
Windows Server 2025 OVF (2025 年 6 月更新) - VMware 虚拟机模板
Windows Server 2025 OVF (2025 年 6 月更新) - VMware 虚拟机模板
230 0
|
存储 SQL 人工智能
Windows Server 2025 中文版、英文版下载 (2025 年 6 月更新)
Windows Server 2025 中文版、英文版下载 (2025 年 6 月更新)
390 0
|
数据安全/隐私保护 虚拟化 Windows
如何在 VM 虚拟机中安装 Windows Server 2012 操作系统保姆级教程(附链接)
如何在 VM 虚拟机中安装 Windows Server 2012 操作系统保姆级教程(附链接)
|
11月前
|
数据安全/隐私保护 Windows
安装 Windows Server 2019
安装 Windows Server 2019
457 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系统
2131 2