linux kvm 命令行安装Windows xp虚拟机(一)

简介: linux kvm 命令行安装Windows xp虚拟机

古老的操作系统Windowsxp还是比较香的,有一些单机游戏或者其它比较旧的软件还是需要Windowsxp的,那么,使用kvm安装一个Windowsxp是一个不错的主意了。

一,实验目标


通过linux 的centos7操作系统内搭建的kvm环境,安装一个Windowsxp的虚拟机,并使得该虚拟机可以远程连接,可以使用宿主机的外网。能够运行一些特定的比较古老的软件。

二,实验环境介绍


(1)

kvm环境,kvm环境搭建见我的博客:kvm环境精讲和kvm环境离线安装包_zsk_john的博客-CSDN博客_kvm离线安装包

(2)

Windowsxp的安装包

MSDN, 我告诉你 - 做一个安静的工具站在这里面下载,通常是使用迅雷下载的哦。

92b43aab18ca4b1cb66bf1a2fcc82f61.png

现在是要安装Windowsxp,自然从xp里选择一款操作系统来安装啦。

(3)

windows的驱动

驱动下载地址:

https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/

xp一般是使用的96

三,安装步骤


  • 生成kvm的虚拟磁盘  命令如下:
qemu-img create -f qcow2 /opt/winxp.qcow2 5G

这里生成的文件大小是5G,出于Windowsxp是比较小的操作系统,也是测试性质,因此,没有设置太大。

  • virsh-install 命令开始第一次初始安装(第一次安装完毕后,还需要调整系统,修改xml配置文件):
virt-install --name=xp --ram 2048 --vcpus=2 --os-type=windows --os-variant winxp --disk path=/opt/winxp.qcow2,bus=virtio,size=5,format=qcow2  --accelerate --cdrom /opt/windows_xp_professional_with_service_pack_3_x86_cd_x14-80404.iso   --vnc --vncport=5955 --vnclisten=0.0.0.0 --network bridge=br0 --force --autostart --disk path=/opt/virtio-win-0.1.96_x86.vfd,device=floppy --boot cdrom

安装截图:

1,此时需要摁F6确认一下xp

image.png

2,按s 确认一下,然后两次回车

image.png

3,默认选择,直接回车两次

image.png

4, 回车,没什么好说的

image.png

5,F8按一哈

image.png

6,可以看到一个5G的磁盘了哈,证明前面工作做的是对的。已经是选择上的状态,因此,直接回车就可以了。

image.png

7,默认选择的是第三个,不需要更改,直接回车

image.png

8,等待几分钟

image.png

9, 仍然等待

image.png

10, 仍然等待,大概需要5-10分钟左右时间

image.png

11, 仍然等待,大概20分钟

image.png

12,需要手动干预两下,确认两哈啊

image.png

13,时间,账号,根据自己情况设置

image.png

目录
相关文章
|
3天前
|
自然语言处理 数据库 iOS开发
DBeaver Ultimate Edtion 25.0 Multilingual (macOS, Linux, Windows) - 通用数据库工具
DBeaver Ultimate Edtion 25.0 Multilingual (macOS, Linux, Windows) - 通用数据库工具
34 12
DBeaver Ultimate Edtion 25.0 Multilingual (macOS, Linux, Windows) - 通用数据库工具
|
1月前
|
人工智能 Linux iOS开发
Burp Suite Professional 2025.2 (macOS, Linux, Windows) - Web 应用安全、测试和扫描
Burp Suite Professional 2025.2 (macOS, Linux, Windows) - Web 应用安全、测试和扫描
56 12
Burp Suite Professional 2025.2 (macOS, Linux, Windows) - Web 应用安全、测试和扫描
|
14天前
|
Linux 虚拟化 Docker
Linux服务器部署docker windows
在当今软件开发中,Docker成为流行的虚拟化技术,支持在Linux服务器上运行Windows容器。流程包括:1) 安装Docker;2) 配置支持Windows容器;3) 获取Windows镜像;4) 运行Windows容器;5) 验证容器状态。通过这些步骤,你可以在Linux环境中顺利部署和管理Windows应用,提高开发和运维效率。
71 1
|
15天前
|
NoSQL IDE MongoDB
Studio 3T 2025.4 (macOS, Linux, Windows) - MongoDB 的终极 GUI、IDE 和 客户端
Studio 3T 2025.4 (macOS, Linux, Windows) - MongoDB 的终极 GUI、IDE 和 客户端
28 0
Studio 3T 2025.4 (macOS, Linux, Windows) - MongoDB 的终极 GUI、IDE 和 客户端
|
15天前
|
安全 Linux iOS开发
Gitea Enterprise 23.4.0 (Linux, macOS, Windows) - 本地部署的企业级 Gti 服务
Gitea Enterprise 23.4.0 (Linux, macOS, Windows) - 本地部署的企业级 Gti 服务
35 0
Gitea Enterprise 23.4.0 (Linux, macOS, Windows) - 本地部署的企业级 Gti 服务
|
19天前
|
数据管理 Linux iOS开发
Splunk Enterprise 9.4.1 (macOS, Linux, Windows) 发布 - 机器数据管理和分析
Splunk Enterprise 9.4.1 (macOS, Linux, Windows) 发布 - 机器数据管理和分析
24 0
Splunk Enterprise 9.4.1 (macOS, Linux, Windows) 发布 - 机器数据管理和分析
|
22天前
|
Linux 网络安全 iOS开发
Metasploit Framework 6.4.49 (macOS, Linux, Windows) - 开源渗透测试框架
Metasploit Framework 6.4.49 (macOS, Linux, Windows) - 开源渗透测试框架
36 0
Metasploit Framework 6.4.49 (macOS, Linux, Windows) - 开源渗透测试框架
|
3月前
|
安全 Ubuntu Linux
Metasploit Pro 4.22.6-2024111901 (Linux, Windows) - 专业渗透测试框架
Metasploit Pro 4.22.6-2024111901 (Linux, Windows) - 专业渗透测试框架
77 9
Metasploit Pro 4.22.6-2024111901 (Linux, Windows) - 专业渗透测试框架
|
3月前
|
Ubuntu 网络协议 Linux
快速部署WSL(Windows Subsystem for Linux)
WSL提供了一种轻量级的方法,使开发者能够在Windows上无缝运行Linux环境。通过本文介绍的步骤,可以快速安装、配置和使用WSL,以满足开发和测试的需求。
337 8
|
3月前
|
自然语言处理 安全 Java
Nexpose 7.0.1 for Linux & Windows - 漏洞扫描
Nexpose 7.0.1 for Linux & Windows - 漏洞扫描
69 6

热门文章

最新文章