Using the force and save options
The add virtualization xml operational mode command has two options: force and save.
- force
- The force option overwrites any of the following existing items:
- Guest configuration with the same name.
- Disk images at the specified paths that conflict with the new deployment.
- vhost interfaces configuration.
The interface assignments to other guests are not affected.
- save
- The save option enables the following conditions:
- The running configuration is saved as a boot-up configuration if the guest deployment is successful.
The save option causes the entire running configuration to be saved as a boot-up configuration and not just the changes made during the deployment of the guest. If there was a configuration that was previously committed and not saved, the configuration is saved as the boot-up configuration.
- If the deployment makes no changes to the configuration, then the running configuration is not saved, even if the save option is specified.
- Guests provisioned automatically by using the save option are not removed if you restart the system.
- The running configuration is saved as a boot-up configuration if the guest deployment is successful.
When provisioning a guest automatically, you can use the force and save options, either singly or together.
The following configuration example shows how to change the configuration of a guest by using the force and save options. In this example, the command specifies another set of the QCOW2 file and the ISO file. When you run the command, the guest details are overwritten and saved.
Step | Command |
---|---|
Specify the libvirt XML file, disk image, and the optional ISO file for the guest installation. Ensure that you use fully qualified file names for all the three files. |
|
Display the result in configuration mode. |
|