{"id":745,"date":"2016-04-07T20:29:07","date_gmt":"2016-04-07T08:29:07","guid":{"rendered":"http:\/\/mdickinson.dyndns.org\/php\/wordpress\/?p=745"},"modified":"2016-04-08T18:36:42","modified_gmt":"2016-04-08T06:36:42","slug":"another-new-project-walmarts-oneops-day-2","status":"publish","type":"post","link":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/?p=745","title":{"rendered":"Another new project &#8211; Walmarts OneOps &#8211; Day 2"},"content":{"rendered":"<p>DNF should have a few more waring messages<\/p>\n<p>Playing with OneOps. Installing the <b>vagrant<\/b> setup.<\/p>\n<p>It needs VirtualBox.<br \/>\nVirtualBox needs kernel-devel.<\/p>\n<p>dnf install kernel-devel<br \/>\nNo problems.<\/p>\n<p>But VirtualBox still failed to install the kernel driver. <\/p>\n<p>The problem was&#8230;<br \/>\nsince I installed the system there had been a kernel update in the repositories, the kernel-devel installed files for a version of the kernel that the system was not actually running, it was running on an older kernel.<\/p>\n<p>dnf update<br \/>\nshutdown -r now<\/p>\n<p>Then &#8220;\/usr\/lib\/virtualbox\/vboxdrv.sh setup&#8221; compiled the kernel module OK.<\/p>\n<p>It would have been nice if DNF had installed the kernel source files for the current kernel, or warn it was installing kernel source for a version of the kernel that was not installed. It probably needs a dependency on the kernel.<\/p>\n<p>Anyway, Day 2 and the current issues are&#8230;<\/p>\n<p><b>Issue One<\/b>, the OneOps doc is missing a vital parameter, following it gives the error below (<em>see the update at the end of the post for the missing parameter<\/em>)&#8230; <em>oh, and you must be the root user to run this &#8220;vagrant up&#8221; command<\/em> which I have an issue with.<\/p>\n<pre>\r\n[root@localhost ~]# cd ~oneops\/setup\/vagrant\r\n[root@localhost vagrant]# vagrant up\r\nBringing machine 'default' up with 'libvirt' provider...\r\n==> default: Box 'bento\/centos-6.7' could not be found. Attempting to find and install...\r\n    default: Box Provider: libvirt\r\n    default: Box Version: >= 0\r\n==> default: Loading metadata for box 'bento\/centos-6.7'\r\n    default: URL: https:\/\/atlas.hashicorp.com\/bento\/centos-6.7\r\nThe box you're attempting to add doesn't support the provider\r\nyou requested. Please find an alternate box or use an alternate\r\nprovider. Double-check your requested provider to verify you didn't\r\nsimply misspell it.\r\n\r\nIf you're adding a box from HashiCorp's Atlas, make sure the box is\r\nreleased.\r\n\r\nName: bento\/centos-6.7\r\nAddress: https:\/\/atlas.hashicorp.com\/bento\/centos-6.7\r\nRequested provider: [:libvirt]\r\n[root@localhost vagrant]# \r\n<\/pre>\n<p><b>Issue Two<\/b>, the doco states that if it did start up OneOps will be running on http:\/\/localhost:3000, so even though making progress there is still the minor (ok major) issue that all the interfaces are bound to localhost which being a &#8220;server&#8221; has no X-gui to run a web browser.<\/p>\n<p>So, to progress I have to not only find all the config files using localhost but find the config files selecting the &#8220;box&#8221;, browsing the&#8221;box&#8221; weblinks from another machine there is a bento\/fedora-22 that mght work. This may be explained in the documentation, but as noted in the prior post as the documentation is also only served to localhost I am trying to navigate it with a text browser (lynx) which makes finding things difficult.<\/p>\n<h2>Steps to get to the current point since the Day 1 post<\/h2>\n<p>This is the final working steps to get to this point, using DNF to download where possible instead of blindly following the OneOps doc which takes you to vendor sites to download RPMs which wil not install without manually installing lots of dependancies, that are better hanndled automatically via DNF if possible.<\/p>\n<pre>\r\nsu - root\r\n\r\ndnf install vagrant\r\n\r\ncat < < EOF > \/etc\/tum.repos.d\/virtualbox\r\n[virtualbox]\r\nname=Fedora $releasever - $basearch - VirtualBox\r\nbaseurl=http:\/\/download.virtualbox.org\/virtualbox\/rpm\/fedora\/$releasever\/$basearch\r\nenabled=1\r\ngpgcheck=1\r\nrepo_gpgcheck=1\r\ngpgkey=https:\/\/www.virtualbox.org\/download\/oracle_vbox.asc\r\nEOF\r\n\r\ndnf update                  # DO THIS to avoid conflicts with kernel-devel\r\ndnf install kernel-devel    # needed for virtualbox\r\ndnf install libvirt vagrant-libvirt  # used as a required driver for vagrant\r\nshutdown -r now\r\ndnf install VirtualBox-5.0\r\nvi \/etc\/group\r\n   Add the oneops user to the vcboxusers group that was created\r\n\r\nsu - oneops\r\ngit clone https:\/\/github.com\/oneops\/setup\r\nexit     # (back to the root user)\r\ncd ~oneops\/setup\/vagrant\r\nvagrant up\r\n<\/pre>\n<p>The Day 3 post will probably not be until the weekend.<br \/>\nOther minor projects I need to tidy up will keep me busy until then.<\/p>\n<h2>Update 2016\/03\/08<\/h2>\n<p>Ok, the error from the &#8220;vagrant up&#8221; command was that there was no image for libvirt&#8230; that woukld be why OneOps install instructions wanted VirtualBox installed. The command to use that should have been in the OneOps documentation for using the vagrant setup is &#8220;<em>vagrant up &#8211;provider virtualbox<\/em>&#8220;.<\/p>\n<p>That gets past the no libvirt image error and we move on to the next error as below.<\/p>\n<pre>\r\nroot@localhost vagrant]# vagrant up --provider virtualbox\r\nBringing machine 'default' up with 'virtualbox' provider...\r\n==> default: Box 'bento\/centos-6.7' could not be found. Attempting to find and install...\r\n    default: Box Provider: virtualbox\r\n    default: Box Version: >= 0\r\n==> default: Loading metadata for box 'bento\/centos-6.7'\r\n    default: URL: https:\/\/atlas.hashicorp.com\/bento\/centos-6.7\r\n==> default: Adding box 'bento\/centos-6.7' (v2.2.5) for provider: virtualbox\r\n    default: Downloading: https:\/\/vagrantcloud.com\/bento\/boxes\/centos-6.7\/versions\/2.2.5\/providers\/virtualbox.box\r\n==> default: Successfully added box 'bento\/centos-6.7' (v2.2.5) for 'virtualbox'!\r\n==> default: Importing base box 'bento\/centos-6.7'...\r\n==> default: Matching MAC address for NAT networking...\r\n==> default: Checking if box 'bento\/centos-6.7' is up to date...\r\n==> default: Setting the name of the VM: oneops\r\n==> default: Clearing any previously set network interfaces...\r\n==> default: Preparing network interfaces based on configuration...\r\n    default: Adapter 1: nat\r\n==> default: Forwarding ports...\r\n    default: 3001 (guest) => 3003 (host) (adapter 1)\r\n    default: 3000 (guest) => 9090 (host) (adapter 1)\r\n    default: 8161 (guest) => 8166 (host) (adapter 1)\r\n    default: 22 (guest) => 2222 (host) (adapter 1)\r\n==> default: Running 'pre-boot' VM customizations...\r\n==> default: Booting VM...\r\nThere was an error while executing `VBoxManage`, a CLI used by Vagrant\r\nfor controlling VirtualBox. The command and stderr is shown below.\r\n\r\nCommand: [\"startvm\", \"45781759-297d-482c-9f70-9acbe0815c45\", \"--type\", \"headless\"]\r\n\r\nStderr: VBoxManage: error: VT-x is not available (VERR_VMX_NO_VMX)\r\nVBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ConsoleWrap, interface IConsole\r\n[root@localhost vagrant]# \r\n<\/pre>\n<p>This is unfortunately probably because I am doing all this testing in a VM instead of on physical hardware.<\/p>\n<p>So I am not sure if I want to take this any further at this time. The main reason for that is having ruby\/rubygems installed on a system <b>always<\/b> causes problems with OS upgrades.<br \/>I do not really have the time to do a disk image backup, play with this, and do a disk image restore when finished playing&#8230; as this is my main &#8216;play\/test&#8217; system and it already has another four VMs running for three other projects that I have more need of, that I do not want interrupted.<\/p>\n<p>So my curiosity about OneOps is now on hold until I have a window I can use a week to play and restore back to.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>DNF should have a few more waring messages Playing with OneOps. Installing the vagrant setup. It needs VirtualBox. VirtualBox needs kernel-devel. dnf install kernel-devel No problems. But VirtualBox still failed to install the kernel driver. The problem was&#8230; since I &hellip; <a href=\"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/?p=745\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-745","post","type-post","status-publish","format-standard","hentry","category-my-nux-thoughts-and-notes"],"_links":{"self":[{"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/745","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=745"}],"version-history":[{"count":3,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/745\/revisions"}],"predecessor-version":[{"id":748,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/745\/revisions\/748"}],"wp:attachment":[{"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=745"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=745"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=745"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}