Vấn đề:
Khi tạo một VM từ template hoàn tất thì xuất hiện lỗi khi start.
[root@pcs ~]# prlctl create test-vm --ostemplate test-template
Template của VM này được sao chép từ một node khác trong Cluster.
[root@pcs ~]# prlctl start test-vm
Starting the VM...
Failed to start the VM: Unable to complete the operation for the virtual machine "%1". The virtual machine is registered on another server. You can only unregister the virtual machine or stop it.
Nguyên nhân:
Template VM này có thông số “ServerUUID” trong file cấu hình bị sai lệch, nguyên nhân là nó vẫn giữ UUID của Node cũ mà nó được tạo.
Giải Pháp:
Unregister VM sau đó register lại.
# prlctl unregister $vm_template
# prlctl register /var/parallels/$vm_template.pvm/config.pvs
VD:
[root@pcs ~]# prlctl unregister test-template
The VM has been successfully unregistered.
[root@pcs ~]# prlctl register /var/parallels/test-template.pvm/config.pvs
Register the VM...
Doanh nghiệp quan tâm về giải pháp Tổng đài ảo vui lòng liên hệ trực tiếp cho Mắt Bão One theo số hotline (028) 7777 7788 hoặc website: https://matbao.one để được tư vấn và hỗ trợ nhanh nhất.