# Installing RancherOS on KVM

**URL:** <https://forums.suse.com/t/installing-rancheros-on-kvm/4627>\
**Category:** RancherOS\
**Created:** [November 16, 2016, 10:48am UTC](https://forums.suse.com/t/installing-rancheros-on-kvm/4627 "2016-11-16T10:48:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NITESupport](https://avatars.discourse-cdn.com/v4/letter/n/9de053/32.png) [@NITESupport](https://forums.suse.com/u/NITESupport)\
**Post date:** [November 16, 2016, 10:48am UTC](https://forums.suse.com/t/installing-rancheros-on-kvm/4627/1 "2016-11-16T10:48:37Z")

</div>

Hello,

I installed RancherOS on **windows/virtualbox** and it works.

The installation was quite simple.

I had to define 2 NIC, when one was a **NAT host only adapter**.

Through the host only adapter, I could connect in SSH (puTTY)  
and create/edit the cloud-config.yml (especially paste the SSH key)

Now, I’d like to install RancherOS on **CentOS7/KVM**.

I didn’t succeed to define a NAT host only adapter, so I have  
only one NIC and I defined it as bridge adapter.

I connected to RancherOS through the KVM console, and I set (in  
the live Rancher) a static IP

under **/etc/network/interfaces**  
, I added what is necessary for my network (we have fixed IPs)

> auto  
> eth0

> iface  
> eth0 inet static

> address 10.0.98.98

> gateway 10.0.0.254

> netmask 255.255.0.0

And I restarted the service

(I tried the both)

> sudo system-docker restart network  
> sudo ros service restart network

But nothing.

No connection and no IP under ifconfig/eth0

So I cannot connect with SSH (puTTY) and I cannot complete  
the installation (paste the SSH key)

So…

Is it possible to set a static IP before the installation,  
and if yes, how?

Or do I have to install without SSH key and add it after?

Or any other solution.

What is the right way in my case?

Thanks,

Sam.

---

<div class="post-metadata">

**Author:** ![joshwget](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/joshwget/32/704_2.png) [@joshwget](https://forums.suse.com/u/joshwget)\
**Post date:** [November 17, 2016, 7:07pm UTC](https://forums.suse.com/t/installing-rancheros-on-kvm/4627/2 "2016-11-17T19:07:46Z")

</div>

RancherOS networking isn’t configured via `/etc/network/interfaces`. Please check out our docs on configuring interfaces ([http://docs.rancher.com/os/networking/interfaces/](http://docs.rancher.com/os/networking/interfaces/)).
