# "Bare metal" install on Virtualbox, cloud config not working

**URL:** <https://forums.suse.com/t/bare-metal-install-on-virtualbox-cloud-config-not-working/4838>\
**Category:** RancherOS\
**Created:** [December 7, 2016, 9:37pm UTC](https://forums.suse.com/t/bare-metal-install-on-virtualbox-cloud-config-not-working/4838 "2016-12-07T21:37:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SecretiveMop](https://avatars.discourse-cdn.com/v4/letter/s/c6cbf5/32.png) [@SecretiveMop](https://forums.suse.com/u/SecretiveMop)\
**Post date:** [December 7, 2016, 9:37pm UTC](https://forums.suse.com/t/bare-metal-install-on-virtualbox-cloud-config-not-working/4838/1 "2016-12-07T21:37:30Z")

</div>

**[UPDATE]**  
**I think I just got it to work: seems that you can only make it work if you do the ros install from the default console and NOT from another console.**  
**[/UPDATE]**  
Before installing on some servers I wanted to learn about the install process and use of rancherOS, so I fired a virtual machine with the following characteristics:

I boot as usual, switch to debian console, scp cloud-config.yml from host to the guest machine, run

> ros install -c cloud-config.yml -d /dev/sda

install goes ok (download a bit slow though), I pop out the iso and reboot.

That’s when trouble starts: I can not ssh to the rancher guest, even if I provide the required key I end up with a password prompt, for which I have no working credentials. Furthermore after booting the guest using a live distro I can’t find any .ssh folder in rancher’s home and the cloud-config.yml inside /var/lib/conf/rancher hasn’t any of the entries I made in the file I used when installing.

Here are the attributes of my environment:

Debian jessie, 3.16.0-4-amd64  
virtualbox version: 4.3.36\_Debianr105129  
guest ram: 2gb  
guest hard drive: 8gb

rancher os: v0.7.1  
cloud config file: not using blockquote to make any indentation error obvious  
I used two spaces whenever some indentation was needed

ssh\_authorized\_keys:

- ssh-rsa AAAA…== strange@example

hostname: ranchervm

rancher:  
console: debian

---

<div class="post-metadata">

**Author:** ![mnbf9rca](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/mnbf9rca/32/1919_2.png) [@mnbf9rca](https://forums.suse.com/u/mnbf9rca)\
**Post date:** [December 8, 2016, 7:08pm UTC](https://forums.suse.com/t/bare-metal-install-on-virtualbox-cloud-config-not-working/4838/2 "2016-12-08T19:08:09Z")

</div>

I have teh same - see ["bare metal" install on VMWare never persists state](http://forums.suse.com/t/bare-metal-install-on-vmware-never-persists-state/4835/1)

---

<div class="post-metadata">

**Author:** ![SvenDowideit](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/svendowideit/32/2159_2.png) [@SvenDowideit](https://forums.suse.com/u/SvenDowideit)\
**Post date:** [December 8, 2016, 10:55pm UTC](https://forums.suse.com/t/bare-metal-install-on-virtualbox-cloud-config-not-working/4838/3 "2016-12-08T22:55:57Z")

</div>

wow - that’s a useful find - you’re right, I’ve been testing my recent work using only the default console.

---

<div class="post-metadata">

**Author:** ![SecretiveMop](https://avatars.discourse-cdn.com/v4/letter/s/c6cbf5/32.png) [@SecretiveMop](https://forums.suse.com/u/SecretiveMop)\
**Post date:** [December 9, 2016, 6:31am UTC](https://forums.suse.com/t/bare-metal-install-on-virtualbox-cloud-config-not-working/4838/4 "2016-12-09T06:31:10Z")

</div>

> ["bare metal" install on VMWare never persists state](http://forums.suse.com/t/bare-metal-install-on-vmware-never-persists-state/4835/1)

I saw it while searching and almost posted there but it felt too much like thread hijacking 😉

Also download speed is much better from the default console
