1. 安装
# 1. 查看 grouplist
[root@kvm ~]# yum grouplist
Last metadata expiration check: 3:19:22 ago on Fri 27 Oct 2023 07:36:04 PM CST.
Available Environment Groups:
   Server
   Minimal Install
   Workstation
   Custom Operating System
   Virtualization Host
Installed Environment Groups:
   Server with GUI
Installed Groups:
   Container Management
   Headless Management
Available Groups:
   Legacy UNIX Compatibility
   Console Internet Tools
   Development Tools
   .NET Development
   Graphical Administration Tools
   Network Servers
   RPM Development Tools
   Scientific Support
   Security Tools
   Smart Card Support
   System Tools

# 2. 安装  已安装就不要安装了
[root@kvm ~]# yum -y groupinstall " " 

# 3. 查看当前是否是桌面版 当前已经是桌面版了
[root@kvm ~]# systemctl get-default
graphical.target 

# 4. 不是的话,要设置成桌面版, 重启reboot
[root@kvm ~]# systemctl set-default graphical.target
2. 制作qcow2
# 1. 当前目录创建空磁盘
[root@kvm images]# qemu-img create -f qcow2 ubuntu23.qcow2 20G

# 2. 准备 iso 源文件
[root@kvm images]# ls ubuntu*
ubuntu-23.04-live-server-amd64.iso  ubuntu23.qcow2

# 3. 使用 virt-manager,如果没有,提前 yum -y install virt-manager 安装

# 4. 关闭桌面版
systemctl set-default muti-user.target