> For the complete documentation index, see [llms.txt](https://thorstenkramm.gitbook.io/saltstack/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://thorstenkramm.gitbook.io/saltstack/salt-cloud/hinweise-und-fallen.md).

# Hinweise und Fallen

### Ubuntu 18.04 VMs

Achten Sie darauf, dass Templates eine leere Datei  `/etc/machine-id` haben. Sie dürfen diese Datei nicht löschen und es darf auch nicht die Machine-ID der Vorlage enthalten sein. Andernfalls kommt es zu doppelten IP Adressen, weil die Machine-ID für die DHCP Anfragen genutzt wird. \
Ist Datei hingegen leer, wird beim Booten eine neue Machine-ID generiert. Mit dem Kommando `virt-sysprep` kann dies erledigt werden.

```
virt-sysprep -d <TEMPLATE_VM> --operations \
  user-account,defaults,-ssh-userdir,-ssh-hostkeys \
  --keep-user-accounts <DEPLOYMENT_USER> \
  --truncate /etc/machine-id
```

{% hint style="warning" %}
`virt-sysprep` löscht alle lokalen User in einer VM. Wenn salt-cloud nicht den Root-User verwendet, achten Sie auf auf die Option `--keep-user-accounts`, damit der Deployment-User nicht gelöscht wird.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://thorstenkramm.gitbook.io/saltstack/salt-cloud/hinweise-und-fallen.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
