# Rancheros install

**URL:** <https://forums.suse.com/t/rancheros-install/96>\
**Category:** RancherOS\
**Created:** [July 15, 2015, 10:58pm UTC](https://forums.suse.com/t/rancheros-install/96 "2015-07-15T22:58:28Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![pl33g0r](https://avatars.discourse-cdn.com/v4/letter/p/b5a626/32.png) [@pl33g0r](https://forums.suse.com/u/pl33g0r)\
**Post date:** [July 15, 2015, 10:58pm UTC](https://forums.suse.com/t/rancheros-install/96/1 "2015-07-15T22:58:28Z")

</div>

Still facing some issues while installing OS on bare metal. I would like to confirm couple of things…  
Do I need to run sudo mkfs.ext4 -L RANCHER\_STATE /dev/sda before I run racnheros-install?  
this is the error I am getting:

- install\_grub
- grub-install --boot-directory=/mnt/new\_img/boot /dev/sda  
Installing for i386-pc platform.  
grub-install: warning: Attempting to install GRUB to a disk with multiple partition labels. This is not supported yet…  
grub-install: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged…  
grub-install: error: will not proceed with blocklists.
- umount /mnt/new\_img

---

<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:** [July 16, 2015, 4:21am UTC](https://forums.suse.com/t/rancheros-install/96/2 "2015-07-16T04:21:38Z")

</div>

No, you should not need to run `sudo mkfs.ext4 -L RANCHER_STATE /dev/sda` before running rancheros-install. Did you run it before the command and getting these warnings/errors?

---

<div class="post-metadata">

**Author:** ![pl33g0r](https://avatars.discourse-cdn.com/v4/letter/p/b5a626/32.png) [@pl33g0r](https://forums.suse.com/u/pl33g0r)\
**Post date:** [July 16, 2015, 4:39am UTC](https://forums.suse.com/t/rancheros-install/96/3 "2015-07-16T04:39:07Z")

</div>

I tried both options and both gave me the same error…

---

<div class="post-metadata">

**Author:** ![MichaelDays](https://avatars.discourse-cdn.com/v4/letter/m/87869e/32.png) [@MichaelDays](https://forums.suse.com/u/MichaelDays)\
**Post date:** [July 16, 2015, 8:33pm UTC](https://forums.suse.com/t/rancheros-install/96/4 "2015-07-16T20:33:28Z")

</div>

Are you using the right iso? I built my bare metal servers using machine-rancheros.iso (the wrong one) and got that error. Using rancheros.iso (the right one) made the problem go away. 🙂

---

<div class="post-metadata">

**Author:** ![imikushin](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/imikushin/32/17_2.png) [@imikushin](https://forums.suse.com/u/imikushin)\
**Post date:** [July 17, 2015, 1:19pm UTC](https://forums.suse.com/t/rancheros-install/96/5 "2015-07-17T13:19:40Z")

</div>

@pl33g0r  
like @MichaelDays said,

1. use rancheros.iso
2. make sure the disk you’re installing to is not partitioned: `fdisk -l`  
This will list all existing partitions. If you see partitions on the disk where you intend to install RancherOS (e.g. `/dev/sda`):

```auto
...
/dev/sda1 3 98113 41942016 83 Linux

```

then **before** running rancheros-install, you need to wipe all partitions from that disk. Run `fdisk /dev/sda`, and on the prompt enter `m` to get help, then use `d` command to delete existing partitions and finally `w` to write down the modified partition table to disk.  
3) Run `rancheros-install -f -d /dev/sda -c cloud-config.yml`  
Easy 😉

---

<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:** [July 17, 2015, 5:16pm UTC](https://forums.suse.com/t/rancheros-install/96/6 "2015-07-17T17:16:09Z")

</div>

Just to be abundantly clear:

1. Make sure you don’t want whatever was on that partition, because it’s about to be gone forever 🙂

---

<div class="post-metadata">

**Author:** ![pl33g0r](https://avatars.discourse-cdn.com/v4/letter/p/b5a626/32.png) [@pl33g0r](https://forums.suse.com/u/pl33g0r)\
**Post date:** [July 21, 2015, 2:06am UTC](https://forums.suse.com/t/rancheros-install/96/7 "2015-07-21T02:06:11Z")

</div>

> [@imikushin](#):
>
> rancheros-install -f -d /dev/sda -c cloud-config.yml

I was missing -f option; however, now I am stuck during the boot on 9pnet: Could not find request transport: virtio

---

<div class="post-metadata">

**Author:** ![Jacob\_Gadikian](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/jacob_gadikian/32/45_2.png) [@Jacob\_Gadikian](https://forums.suse.com/u/Jacob_Gadikian)\
**Post date:** [August 3, 2015, 4:06am UTC](https://forums.suse.com/t/rancheros-install/96/8 "2015-08-03T04:06:44Z")

</div>

Also ended up at “could not find request transport: virtio”. I read on another GH repo (looked like a guide to using it in China) that there’s a problem when there’s more than one network interface. Not sure if that is the case or not.

---

<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 4, 2015, 3:53pm UTC](https://forums.suse.com/t/rancheros-install/96/9 "2015-08-04T15:53:51Z")

</div>

@pl33g0r What is contained in your Cloud Config? Typically, users are running into this error due to their network configuration.

We are currently working on v0.4.0, which is a major refactoring of RancherOS to give our users more control on customization.

---

<div class="post-metadata">

**Author:** ![pl33g0r](https://avatars.discourse-cdn.com/v4/letter/p/b5a626/32.png) [@pl33g0r](https://forums.suse.com/u/pl33g0r)\
**Post date:** [August 4, 2015, 4:22pm UTC](https://forums.suse.com/t/rancheros-install/96/10 "2015-08-04T16:22:18Z")

</div>

this is network park of my cloud-config file  
hostname: rancher01  
ssh\_authorized\_keys:  
- ssh-rsa  
rancher01:  
network:  
interfaces:  
eth0:  
dhcp: true  
mtu:1500  
dns:  
nameservers:  
- 192.168.1.1

---

<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 4, 2015, 4:41pm UTC](https://forums.suse.com/t/rancheros-install/96/11 "2015-08-04T16:41:53Z")

</div>

Can you share what is in the rest of your cloud config? Also, can you share it in the proper yaml format? I want to check the whitespacing of the file as yaml is quite particular on it. 😄

Please note that we currently don’t support adding users through cloud config, so that could be an issue.

---

<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 4, 2015, 6:57pm UTC](https://forums.suse.com/t/rancheros-install/96/12 "2015-08-04T18:57:59Z")

</div>

Also, all the networking needs to be under `rancher:` and not `rancher01:` even though you changed the hostname.
