随笔 - 55  文章 - 0  评论 - 0  阅读 - 1022

31_qcow2制作

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
posted on   鸟叔书  阅读(58)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示