在 CentOS 8 中使用 KVM 安装 Windows 10
source link: https://blog.lucien.ink/archives/514/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
在 CentOS 8 中使用 KVM 安装 Windows 10
使用 esxi 的话总觉得有些别扭?故尝试 KVM,本文使用 CentOS 8 minimal 作为基础环境。因为懒得截图,所以就决定不上图了。
使用阿里云镜像
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo
yum makecache
安装 cockpit 和 qemu
dnf install cockpit cockpit-machines
启用 cockpit
systemctl enable --now cockpit.socket
安装 Winodws 依赖的驱动
dnf install virtio-win
配置虚拟机网络
创建 Windows 虚拟机并配置 CDROM
随便使用一个 Windows ISO 都可以,系统里没有 Windows,随便选择一个都可以,我在这里选的是 Fedora 31,创建完系统后不要开机,紧接着需要挂载驱动 ISO 为 CDROM。
挂载 CDROM 在 cockpit 网页端并不支持,详见 Option to add/remove CD-ROM device and load/eject ISO。
需要手动编辑,假设创建的虚拟机名称为 win10,则可以通过执行 virsh edit win10
来进行编辑。
在 <disk>
标签所在的组中新增一个 <disk>
<disk type='file' device='cdrom'>
<driver name='qemu' type='raw'/>
<source file='/usr/share/virtio-win/virtio-win.iso'/>
<backingStore/>
<target dev='sda' bus='sata'/>
<readonly/>
<alias name='sata-cdrom'/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>
安装 Windows
到了选择磁盘的那一步会发现没有磁盘可选,这个时候需要安装我们挂载的驱动,64 位的话选择 amd64/win10 就 OK 了。
Recommend
-
6
编译qemu-kvm和安装qemu-kvm 2015-07-29 15:22:00 http://smilejay.com/2012/06/qemu-kvm_compilation_installation/ ...
-
12
ubuntu安装kvm虚拟机 2015-07-07 14:35:00 sudo apt-get install qemu-kvm libvirt-bin virt-manager用 virt-manager 参考
-
9
centos安装kvm虚拟机 2015-07-07 14:33:00 最好在centos6装 TODO 虚拟机网桥连接没试 ...
-
4
2019 年 1 月的时候知道了这个发行版,当时 @NixOS_zh 群刚建立(后来这群凉了),就开虚拟机玩了一下,时隔多年发现又有不少人对其颇感兴趣,便决定重新写一下安装相关的教程。本文以 Arch Linux 作为宿主机,大体步骤与 Arch Wik...
-
7
Linux KVM 下安装 Windows 虚拟机 可能对于很多人来说很简单,但是我自己看起来还是有点东西,只能写一下. 首先需要Virtio的驱动包以及系统安装镜像,然后开始安装. virt-install --virt-type=kvm \ -...
-
9
How To Install and Use KVM on CentOS Stream 8Search ComputingForGeeksIn today’s guide we will be installing...
-
6
在 Archlinux 中安装sudo pacman -Sy qemu libvirt ebtables dnsmasq bridge-utils virt-managerkvm 负责 CPU 和内存的虚拟化qemu 向 Guest OS 模拟硬件(例如,CPU,网卡,磁盘,等)ovmf 为虚拟机启用UEFI支持
-
3
Install WebVirtCloud KVM Management on CentOS 8Search ComputingForGeeksWebVirtCloud is web interface build f...
-
5
Install OpenNebula KVM Node on CentOS 7Search ComputingForGeeksWelcome to our guide on OpenNebula KVM Node I...
-
13
How To Install KVM on RHEL 8Search ComputingForGeeksHow to install KVM on RHEL 8 / CentOS 8?. This guide wil...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK