# Provisioning / add a new hosts to the frontend

**URL:** <https://forum.opennebula.io/t/provisioning-add-a-new-hosts-to-the-frontend/10038>\
**Category:** Product Support\
**Created:** [October 15, 2021, 2:41pm UTC](https://forum.opennebula.io/t/provisioning-add-a-new-hosts-to-the-frontend/10038 "2021-10-15T14:41:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![EugenMayer](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/eugenmayer/32/7181_2.png) [@EugenMayer](https://forum.opennebula.io/u/EugenMayer)\
**Post date:** [October 15, 2021, 2:41pm UTC](https://forum.opennebula.io/t/provisioning-add-a-new-hosts-to-the-frontend/10038/1 "2021-10-15T14:41:20Z")

</div>

I’am new to OpenNebula and trying to get my local homelab running before we plan any moves further on.

I created a vagrant based stack [GitHub - EugenMayer/opennebula-lab: Quickly spin up an opennebula lab with a frontend and 2 compute nodes using vagrant](https://github.com/EugenMayer/opennebula-lab) where I

1. create and ssh key and deploy that one to the `frontend node` to `/root/.ssh` and `/var/lib/one/.ssh` (prior minione)
2. install opennebula via `minione` on the `frontend` node
3. install 2 compute `nodes` with `qemu` installed
4. deploy the prior generated `ssh public key` to `/root/.ssh/authorized_keys` on both compute nodes
5. populate the `known_hosts` of `frontend` at `/root/.ssh/known_hosts` and `/var/lib/one/.ssh/known_hosts` for `frontend`/`compute1`/`compute2`

While opennebula starts up and is accessible, i cannot add those hosts. While i can do a (as `root` on `frontend`): `ssh compute1` - adding the host in the GUI always leads to an issue.

**Question**  
What is the design to actually provision a host? Do i need to create a `one` user myself on the target host and then ensure that i can connect as `one` from `frontend` to `one@compute1` and do i need to manually replicate that `one` home folder on `compute1/2` should be `/var/lib/one`? Is there any better tooling to that?

I have found and followed [KVM Node Installation — OpenNebula 6.0.3 documentation](https://docs.opennebula.io/6.0/open_cluster_deployment/kvm_node/kvm_node_installation.html#step-4-configure-passwordless-ssh) but i do not understand

- which user is used by the `opennebula` process when connecting to the `compute` host. I mean which “source user” and which "target user`
- how to properly setup a target hosts structure before the first connection?

Thank you for any help

---

<div class="post-metadata">

**Author:** ![EugenMayer](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/eugenmayer/32/7181_2.png) [@EugenMayer](https://forum.opennebula.io/u/EugenMayer)\
**Post date:** [October 15, 2021, 4:03pm UTC](https://forum.opennebula.io/t/provisioning-add-a-new-hosts-to-the-frontend/10038/2 "2021-10-15T16:03:37Z")

</div>

I finally found out that provisioning a host properly requires the installation of `opennebula-node-kvm` on the host [opennebula-lab/bootstrap\_compute.sh at master · EugenMayer/opennebula-lab · GitHub](https://github.com/EugenMayer/opennebula-lab/blob/master/bootstrap_compute.sh#L9)

I’am still not sure where this is part of the docs right now, if I just missed it while reading through the docs over and over again. I did not happen to find that in the docs but rather by reverse-engeneering an old vagrant lab stack.

Beside that, if anybody is interested, you can use this to spin up a OpenNebula stack with a frontend and to compute nodes

```auto
git clone https://github.com/EugenMayer/opennebula-lab
cd opennebula-lab
make start

```

See the repo `README.md` for anything else
