diff --git a/KVM虚拟化/KVM虚拟化技术.md b/KVM虚拟化/KVM虚拟化技术.md index 1bf2fc9..0e66ad5 100644 --- a/KVM虚拟化/KVM虚拟化技术.md +++ b/KVM虚拟化/KVM虚拟化技术.md @@ -321,13 +321,14 @@ tmpfs 1.6G 84K 1.6G 1% /run/user/0 ```bash [root@localhost ~]# virt-install \ --connect qemu:///system \ ---name vm1 \ ---memory 2048 \ ---vcpus 2 \ ---disk path=/var/lib/libvirt/images/vm1.img,size=8 \ ---os-variant rhel9.0 \ ---cdrom /var/lib/libvirt/Rocky-9.7-x86_64-dvd.iso \ ---graphics vnc,listen=0.0.0.0,port=5905 \ +--name ubuntu-22.04-1 \ +--memory 4096 \ +--vcpus 4 \ +--disk path=/var/lib/libvirt/images/ubuntu-22.04-1.qcow2,size=20,bus=virtio \ +--os-variant ubuntu22.04 \ +--cdrom /var/lib/libvirt/ubuntu-22.04.5-live-server-amd64_1.iso \ +--boot cdrom,hd,bootmenu.enable=on \ +--graphics vnc,listen=0.0.0.0,port=5905,password='123' \ --noautoconsole ``` @@ -356,20 +357,21 @@ tmpfs 1.6G 84K 1.6G 1% /run/user/0 ```bash [root@localhost ~]# yum install cockpit -y +[root@localhost ~]# yum -y install cockpit-machines [root@localhost ~]# vim /etc/cockpit/disallowed-users #root -[root@localhost ~]# systemctl start cockpit +[root@localhost ~]# systemctl enable --now cockpit ``` 访问9090端口 -image-20240817214618130 +![image-20260712113626463](KVM虚拟化技术/image-20260712113626463.png) 创建虚拟机 -这里就不演示具体过程了,这种方法用的比较少 +![image-20260712113638529](KVM虚拟化技术/image-20260712113638529.png) + -image-20240817214704100 # KVM基础管理 diff --git a/KVM虚拟化/KVM虚拟化技术/image-20260712113626463.png b/KVM虚拟化/KVM虚拟化技术/image-20260712113626463.png new file mode 100644 index 0000000..49b9295 Binary files /dev/null and b/KVM虚拟化/KVM虚拟化技术/image-20260712113626463.png differ diff --git a/KVM虚拟化/KVM虚拟化技术/image-20260712113638529.png b/KVM虚拟化/KVM虚拟化技术/image-20260712113638529.png new file mode 100644 index 0000000..04577e6 Binary files /dev/null and b/KVM虚拟化/KVM虚拟化技术/image-20260712113638529.png differ