3.9. 清理订阅池
安装所需的软件包来自定义镜像后,现在我们删除订阅并取消注册镜像:
virt-customize -a overcloud-full.qcow2 --run-command 'subscription-manager remove --all'
$ virt-customize -a overcloud-full.qcow2 --run-command 'subscription-manager remove --all'
[ 0.0] Examining the guest ...
[ 12.0] Setting a random seed
[ 12.0] Running: subscription-manager remove --all
[ 18.0] Finishing off
这会从镜像中删除所有订阅池。