Get the App
SLTechnology News&Howtos  ›  Servers  › 

Name issues of kvm clones

Shulou Source: shulou.com Published: 2022-06-03 08:04:16 12月06日 Update

After cloning kvm through the template, I found that the name of the kvm file is too bad. I want to name it after the business.

[root@r730n1 model] # lscentos7-java8-X11-300G-clone

Rename

[root@r730n1 model] # mv centos7-java8-X11-300G-clone centos7- 1

Modify the xml configuration file, line 41 change centos7-java8-X11-300G-clone to centos7- 1

[root@r730n1 model] # vi / etc/libvirt/qemu/Centos7-1.xml 41

Then reload the configuration

[root@r730n1 model] # virsh define / etc/libvirt/qemu/Centos7-1.xml

Note: the above operations must be carried out in the shutdown state, .xml is the configuration file of kvm, all kvm configurations can be modified here, and then use the virsh define command to make it effective.

Tags: Configuration file name bad business available in command template status problem Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Shulou Tech Info Xiaomi MariaDB Huawei