Problem with installation


#1

I am trying to install RancherOS but I have trouble setting up the name server and ros install fails without it.

Any idea how to proceed?


#2

This is not a RancherOS particular problem. you will fail to do so in most of the linux systems.
Using vi to edit the file. instead. If you prefer doing it from cmd line, try this instead:
echo “nameserver 8.8.8.” | sudo tee -a /etc/resolv.conf

Good luck!


#3

Thank you very much liyi! :astonished:

If you’d like a laugh, let me tell you the story on how I ending up trying to echo into resolv.conf :slight_smile:

$ sudo vim resolv.conf -> vim? No vim installed

  • hmm, I know, nano
    $ sudo nano resolv.conf -> nano? No nano either
  • hmm, since it’s a small image, it many not include any editor… now what? oh, I have a great idea! :sunglasses:


#4

:grin:
no vim, but vi should be there. This is a very compact system, it dose not have anything that needed. IMHO, this is also one of the feature that make RancherOS unique.

Another way to do modify the content of the file is to use cloud-init.


#5

In my day we just needed a magnet held over the hard drive and a steady hand to flip the desired bits. But yes vi is in busybox, not vim.


#6

I hear magnets were pretty useful in the old days :smiley: :innocent:


#7

Love the magnet flipping part…