# Cloned VM - How to correctly re-register as new from console?

**URL:** <https://discourse.crowdsec.net/t/cloned-vm-how-to-correctly-re-register-as-new-from-console/1350>\
**Category:** Uncategorized\
**Created:** [July 11, 2023, 1:55pm UTC](https://discourse.crowdsec.net/t/cloned-vm-how-to-correctly-re-register-as-new-from-console/1350 "2023-07-11T13:55:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dreamworks69](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/dreamworks69/32/643_2.png) [@dreamworks69](https://discourse.crowdsec.net/u/dreamworks69)\
**Post date:** [July 11, 2023, 1:55pm UTC](https://discourse.crowdsec.net/t/cloned-vm-how-to-correctly-re-register-as-new-from-console/1350/1 "2023-07-11T13:55:42Z")

</div>

Hi guys, I sat up CrowdSec on my Centos 9/Rocky Linux and everything works great. Now I cloned my VM to use it again for different purposes. Unfortunatly I can’t get it to shown up as new instance in web portal. Every time when I use the code to “enroll my engine” this enrollment will overwrite the other server.

How can I give my “local” instance on the cloned VM a new internal ID? I tried cslsci lapi register, removed and readded the machine using “cscli machines” but each time I do an enroll it says, oh the instance is already there. Any hints how to “reset” the instance or where to check?

Many thx in advance

---

<div class="post-metadata">

**Author:** ![iiAmLoz](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/iiamloz/32/386_2.png) [@iiAmLoz](https://discourse.crowdsec.net/u/iiAmLoz)\
**Post date:** [July 11, 2023, 2:03pm UTC](https://discourse.crowdsec.net/t/cloned-vm-how-to-correctly-re-register-as-new-from-console/1350/2 "2023-07-11T14:03:39Z")

</div>

Are we talking about CAPI or LAPI enrollment?

---

<div class="post-metadata">

**Author:** ![iiAmLoz](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/iiamloz/32/386_2.png) [@iiAmLoz](https://discourse.crowdsec.net/u/iiAmLoz)\
**Post date:** [July 11, 2023, 2:11pm UTC](https://discourse.crowdsec.net/t/cloned-vm-how-to-correctly-re-register-as-new-from-console/1350/3 "2023-07-11T14:11:16Z")

</div>

If it purely CAPI side you can do the following

```auto
sudo rm /etc/crowdsec/online_api_credentials.yaml
sudo cscli capi register

```

That will regenerate a unique login for the instance.
