# ESXi Replacement

**URL:** <https://forums.suse.com/t/esxi-replacement/225>\
**Category:** RancherOS\
**Created:** [August 7, 2015, 7:42pm UTC](https://forums.suse.com/t/esxi-replacement/225 "2015-08-07T19:42:32Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![nathan\_deyoung](https://avatars.discourse-cdn.com/v4/letter/n/82dd89/32.png) [@nathan\_deyoung](https://forums.suse.com/u/nathan_deyoung)\
**Post date:** [August 7, 2015, 7:42pm UTC](https://forums.suse.com/t/esxi-replacement/225/1 "2015-08-07T19:42:32Z")

</div>

Greetings and thank you for reading,

I am currently trying to simulate a fresh install on new machine and I believe I missing a step here. Could someone possibly provide some insight into what I am doing wrong here?

I start with this guide:  
[http://docs.rancher.com/os/running-rancheros/workstation/boot-from-iso/](http://docs.rancher.com/os/running-rancheros/workstation/boot-from-iso/)

- Run sudo mkfs.ext4 -L RANCHER\_STATE /dev/sda

Then proceed to:  
[http://docs.rancher.com/os/running-rancheros/server/install-to-disk/](http://docs.rancher.com/os/running-rancheros/server/install-to-disk/)

The step that I get stuck on is after I have created the ssh key and built my cloud-config.yml (I have placed it both in the root and in /var/lib/rancher/conf/), but I get the error of “No install type specified…defaulting to generic \ cp: can’t stat ‘cloud\_config.yml’: No such file or directory” when I try to run rancheros-install -c cloud\_config.yml -d /dev/sda

What I am trying to accomplish is this with is the following:

RancherOS  
System Docker  
\\\\\\\\ System Containers

\\\\\\\\ RancherVM  
\\\\\\\\\\\\\\ Windows Server 2012

\\\\\\\\ User Docker  
\\\\\\\\\\\\\\ Linux instances

---

<div class="post-metadata">

**Author:** ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)\
**Post date:** [August 7, 2015, 9:27pm UTC](https://forums.suse.com/t/esxi-replacement/225/2 "2015-08-07T21:27:48Z")

</div>

You do not need to do `sudo mkfs.ext4 -L RANCHER_STATE /dev/sda` before installing to disk.

The cloud config file should be in the directory where you are running your command.

Hope that helps move you along!

---

<div class="post-metadata">

**Author:** ![nathan\_deyoung](https://avatars.discourse-cdn.com/v4/letter/n/82dd89/32.png) [@nathan\_deyoung](https://forums.suse.com/u/nathan_deyoung)\
**Post date:** [August 7, 2015, 11:08pm UTC](https://forums.suse.com/t/esxi-replacement/225/3 "2015-08-07T23:08:09Z")

</div>

Denise,

Thank you for the information. I placed my file in ./root (not sure if that is permitted) and ran this command as root:  
rancheros-install -c cloud\_config.yml -d /dev/sda

I got this reply:  
No install type specified…defaulting to generic  
cp: can’t stat ‘cloud\_config.yml’: No such file or directory

So I tried running:  
rancheros-install -c cloud\_config.yml -d /dev/sda -t rancher/os:v0.3.3 remote

And now I got:  
cp: can’t stat ‘cloud\_config.yml’: No such file or directory

I tried putting a second copy into:  
./var/lib/rancher/conf/

And ran:  
rancheros-install -c /var/lib/rancher/conf/cloud\_config.yml -d /dev/sda -t rancher/os:v0.3.3 remote

And:  
rancheros-install -c /var/lib/rancher/conf/ -d /dev/sda -t rancher/os:v0.3.3 remote

And various others, but I am not able to get this command to show:  
All data will be wiped from this device  
Partition: true  
DEVICE: /dev/sda  
Are you sure you want to continue? [yN]

My cloud\_config.yml (I have a real key in the file):

#cloud-config  
// ssh\_authorized\_keys:  
//// - ssh-rsa AAAAB3N… user@host

// network:  
// dns:  
//// nameservers:  
//// - 8.8.8.8  
//// - 8.8.4.4  
// interfaces:  
// eth\*: {}  
// eth0:  
//// match: eth0  
//// address: 192.168.0.133/24  
//// gateway: 192.168.0.254  
//// mtu: 1460  
// lo:  
//// address: 127.0.0.1/8

Ideas?

---

<div class="post-metadata">

**Author:** ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)\
**Post date:** [August 8, 2015, 10:24pm UTC](https://forums.suse.com/t/esxi-replacement/225/4 "2015-08-08T22:24:55Z")

</div>

There are a couple of issues with your installment.

In your cloud-config.yml, you’ll need to place the `network` key underneath the `rancher` key for RancherOS to parse through it and apply the networking changes.

I usually just save my cloud config in the directory that I am logged in as a the rancher user. I wouldn’t recommend saving it in `/var/lib/rancher/conf` because that’s where rancherOS tends to save cloud config information after being processed. Have you tried logging into RancherOS as the rancher user and just creating the cloud config file in the directory that you log in and running the command?

As for the commands, the options are not being used correctly. It makes me realize that we should make the docs more clear on how to use versions. 🙂

It should be `-v` instead of `-t` when setting a version. It should also be `-v v0.3.3` when you pass in the version. But you shouldn’t need to pass in the v0.3.3 version because that’s the latest and current default.

---

<div class="post-metadata">

**Author:** ![nathan\_deyoung](https://avatars.discourse-cdn.com/v4/letter/n/82dd89/32.png) [@nathan\_deyoung](https://forums.suse.com/u/nathan_deyoung)\
**Post date:** [August 10, 2015, 6:43pm UTC](https://forums.suse.com/t/esxi-replacement/225/5 "2015-08-10T18:43:23Z")

</div>

Denise,

Thank you very much for the prompt reply! Per your instruction, if I read them correctly, I have done the following and received the following results.

Reorganized my cloud\_config.yml (noticed you used a “-” and I am unsure if that makes a difference) to have the network config first. I placed the file in “/home/rancher” and if this isn’t what you mean, let me know.

I then ran the command: sudo rancheros-install -c could\_config.yml -d /dev/sda -v v0.3.3  
and got the response of No install type specified…defaulting to generic  
cp can’t stat ‘could\_config.yml’: No such file or directory

What did I miss this time?

---

<div class="post-metadata">

**Author:** ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)\
**Post date:** [August 10, 2015, 7:01pm UTC](https://forums.suse.com/t/esxi-replacement/225/6 "2015-08-10T19:01:29Z")

</div>

That message, and the previous ones, means it’s not finding the .yml file, so it doesn’t really matter what is in the file until the command is actually getting to read it. In the last one “cloud” is spelled wrong in the command…

---

<div class="post-metadata">

**Author:** ![nathan\_deyoung](https://avatars.discourse-cdn.com/v4/letter/n/82dd89/32.png) [@nathan\_deyoung](https://forums.suse.com/u/nathan_deyoung)\
**Post date:** [August 10, 2015, 8:08pm UTC](https://forums.suse.com/t/esxi-replacement/225/7 "2015-08-10T20:08:43Z")

</div>

That was a typing error in the reply. I would upload the image, but “Sorry, new users can not upload images.”

Yup.

---

<div class="post-metadata">

**Author:** ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)\
**Post date:** [August 10, 2015, 8:35pm UTC](https://forums.suse.com/t/esxi-replacement/225/8 "2015-08-10T20:35:16Z")

</div>

I’ve updated so that you can add photos.

Can you do a screen shot of these commands?

`ls`  
`sudo rancheros-install -c cloud_config.yml -d /dev/sda`
