admin管理员组

文章数量:1530085

1:编辑xml文件,virsh edit vm

<domain type='kvm'>
  <name>wei-master</name>
  <uuid>9b753e0e-86ba-4d30-a3d4-7eaf0ff82e60</uuid>
  <memory unit='KiB'>12582912</memory>
  <currentMemory unit='KiB'>12582912</currentMemory>
  <vcpu placement='static'>4</vcpu>
  <os>            #############
    <type arch='x86_64' machine='pc-i440fx-bionic'>hvm</type>  ##########
    <loader readonly='yes' type='pflash'>/usr/share/OVMF/OVMF_CODE.fd</loader>      ##########
    <nvram>/var/lib/libvirt/qemu/nvram/wei-master_VARS.fd</nvram>    ##############
    <boot dev='hd'/>  ###############
  </os>   ###########

2:修改如下:

<domain type='kvm'>
  <name>wei-deploy</name>
  <uuid>8dd1fb20-ddf1-4d12-84a0-6681e3935ae0</uuid>
  <memory unit='KiB'>12582912</memory>
  <currentMemory unit='KiB'>12582912</currentMemory>
  <vcpu placement='static'>4</vcpu>
  <os>         ##########
    <type arch='x86_64' machine='pc-i440fx-bionic'>hvm</type>    ######
    <boot dev='hd'/>   ##########
  </os>   ##########

3:重新加载虚拟机xml文件

virsh define /etc/libvirt/qemu/centos7.xml

本文标签: 解决方法虚拟机模式kvmShell