Thursday, December 12, 2019

Creating a ubuntu 18.04 vm on deepthot

Steps to install ubuntu on deepthot

Creating an ubuntu Bionic Beaver (18.04) vm here at deepthot is really easy. I wanted to write down all of the
steps here so I’ve got them.

  1. Create the machine on the esx server
  2. Remember to point the cd drive to the iso image on the san
  3. Right click on the VM and select console->launch console
  4. Default through everything until you get to the disk
  5. On the disk, select manual
  6. Create a partition on / formatted as btrfs
  7. Select install openssh server
  8. import ssh identity from github, denebeim
  9. allow password authentication over ssh
  10. Create a user that’s specific to the machine
  11. Finish install/reboot
  12. log in as that specific user
  13. sudo apt update;sudo apt dist-upgrade -y (ssh is broken until you upgrade)
  14. yawn, this is slow I wish I had artifactory
  15. reboot
  16. sudo systemd-resolve --flush-caches (on the laptop)
  17. ssh in as the device specific user
  18. sudo apt install emacs-nox freeipa-client autofs nfs-kernel-server docker.io -y
  19. echo automount: files sss|sudo tee -a /etc/nsswitch.conf
  20. sudo hostnamectl set-hostname $(hostname -s).deepthot.aa
  21. sudo ipa-client-install
  22. sudo kinit
  23. sudo ipa service-add nfs/$(hostname -f)
  24. sudo ipa-getkeytab -s ipa.deepthot.aa -p nfs/$(hostname -f) -k /etc/krb5.keytab
  25. sudo klist -k /etc/krb5.keytab (to check and make sure, should have host and nfs keys)
  26. sudo ipa-client-automount
  27. ls -lA /nethome/denebeim (to make sure automount is doing its bit)
  28. sudo gpasswd -a k8s docker
  29. sudo gpasswd -a denebeim@deepthot.aa docker
  30. exit back and ssh in again as myself. Now I’m sparked.

notes: the sudos after the kinit are because /etc/krb5.keytab is only root writable. kinit gives you root for kerberos/ipa stuff. Or rather it gives you whatever role you’re initing as. Cool really.

Ok, you now have a client configured. It should really take you about 5 minutes or so if you’re not making a blog post.

Written with StackEdit.

No comments:

Post a Comment

How Simple Does It Have to Be Before It’s Mine?

 Hi, Joy here, I'm tired.  I'm too tired to polish this.  However bare with me, the text below is *trying* to be me.  It's not l...