<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>David Rancourt Jr.</title>
    <description>A simple, simple personal blog covering a wide range of topics.</description>
    <link>https://david-rancourt.com/</link>
    <atom:link href="https://david-rancourt.com/feed.xml" rel="self" type="application/rss+xml" />
    
      <item>
        <title>Switching up hosting &amp; serving this blog with Git, Jekyll, Travis-CI, and Firebase</title>
        <description>&lt;p&gt;So I am firing this blog back up now that I am no longer silenced by my employment. Since the blog will be mostly text based articles, I don’t think using a VPS is a good idea for hosting as it costs too much, and also unnecessary for a static site using Jekyll generated content. Another reason to switch from using GitHub Pages is the lack of &lt;strong&gt;&lt;em&gt;https&lt;/em&gt;&lt;/strong&gt; support, as I want my visitors to this blog to know that they can read it in confidence that nothing has changed in transit between the hosting and their browser of choice.&lt;/p&gt;

&lt;p&gt;In the years since I last posted, I have worked at NASA as a contractor and the work is very interesting and cool at the same time yet challenging. My wife and I now have a dog (Wirehaired Pointing Griffon) and a baby and really enjoy our time with both of them. I also will talk about my adventures in my Jeep here as well from time to time, outline the different projects I have done with it and along the journey to the places it takes us. Oh and the Washington Capitals have finally won a Stanley Cup!&lt;/p&gt;

&lt;p&gt;Anyhow here’s what I did as far as setting up this website with &lt;strong&gt;&lt;em&gt;Jekyll, Git, Travis-CI, and Firebase&lt;/em&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Setup your hosting with Firebase at &lt;a href=&quot;https://firebase.google.com/&quot;&gt;https://firebase.google.com/&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;Download and install Jekyll on your local machine, here’s a great place to get started, and Jekyll docs are very useful. &lt;a href=&quot;https://jekyllrb.com/&quot;&gt;https://jekyllrb.com/&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;Setup a GitHub account at &lt;a href=&quot;https://github.com&quot;&gt;https://github.com&lt;/a&gt;, the repo can be public, there’s no need for a private repo anyways because a website still needs to see it for hosting to work correctly. Also by using GitHub we are able to backup the site at GitHub and on the local machine.&lt;/li&gt;
  &lt;li&gt;Setup a free account using your GitHub credentials at Travis-CI &lt;a href=&quot;https://travis-ci.org&quot;&gt;https://travis-ci.org&lt;/a&gt; and create a new build, turn on the repository you want to use Travis-CI to build &amp;amp; deploy from and use the following code in the config:&lt;/li&gt;
&lt;/ol&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-travisci&quot; data-lang=&quot;travisci&quot;&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;code&quot;&gt;&lt;pre&gt;{
  &quot;os&quot;: &quot;linux&quot;,
  &quot;dist&quot;: &quot;trusty&quot;,
  &quot;sudo&quot;: false,
  &quot;group&quot;: &quot;stable&quot;,
  &quot;script&quot;: [
    &quot;set -e&quot;,
    &quot;jekyll build&quot;
  ],
  &quot;install&quot;: [
    &quot;npm install -g firebase-tools&quot;
  ],
  &quot;node_js&quot;: &quot;7&quot;,
  &quot;language&quot;: &quot;node_js&quot;,
  &quot;global_env&quot;: &quot;NOKOGIRI_USE_SYSTEM_LIBRARIES=true&quot;,
  &quot;after_success&quot;: [
    &quot;firebase deploy --token \&quot;$FIREBASE_API_TOKEN\&quot;&quot;
  ],
  &quot;before_install&quot;: [
    &quot;rvm install 2.3&quot;,
    &quot;rvm use 2.3&quot;,
    &quot;. $HOME/.nvm/nvm.sh &amp;amp;&amp;amp; nvm install 6.1 &amp;amp;&amp;amp; nvm use 6.1&quot;,
    &quot;gem install bundler&quot;,
    &quot;bundle check || bundle install&quot;
  ]
}&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;ol&gt;
  &lt;li&gt;To maintain operational security with your build &amp;amp; deploy it is highly recommended that you set your API token key for &lt;strong&gt;$FIREBASE_API_TOKEN&lt;/strong&gt; in an environment variable and do not check the box for the token to show in the output log.&lt;/li&gt;
  &lt;li&gt;Create content for your site using Jekyll on your local machine and when you are ready to publish &amp;amp; deploy to the public interwebs, just do a simple git push to publish it.&lt;/li&gt;
&lt;/ol&gt;
</description>
        <pubDate>Thu, 26 Jul 2018 00:00:00 +0000</pubDate>
        <link>https://david-rancourt.com/blog,%20hosting,%20security,%20git,%20jekyll,%20travis-ci,%20firebase,%20https,%20google/2018/07/26/switching-up-hosting-serving-this-blog-with-git-jekyll-travis-ci-and-firebase/</link>
        <guid isPermaLink="true">https://david-rancourt.com/blog,%20hosting,%20security,%20git,%20jekyll,%20travis-ci,%20firebase,%20https,%20google/2018/07/26/switching-up-hosting-serving-this-blog-with-git-jekyll-travis-ci-and-firebase/</guid>
      </item>
    
      <item>
        <title>Jeep Mods</title>
        <description>&lt;p&gt;Mods that have been done to the Jeep. I list all items here, service work that has been done is also listed here as well with dates.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Purchase: June 2016&lt;/li&gt;
  &lt;li&gt;Sliders: LoD Offroad Signature Series&lt;/li&gt;
  &lt;li&gt;Skid Plates: JCR Offroad full skid plate package with trans crossmember&lt;/li&gt;
  &lt;li&gt;Soft top: Bestop Trektop NX&lt;/li&gt;
  &lt;li&gt;Lift: Metalcloak True Dual Rate 3.5”&lt;/li&gt;
  &lt;li&gt;Tires: Nitto Trail Grapplers 315/70R17&lt;/li&gt;
  &lt;li&gt;Tire Carrier: Rugged Ridge Spartacus HD Carrier&lt;/li&gt;
  &lt;li&gt;Grab Handles: Bartact coyote/black&lt;/li&gt;
  &lt;li&gt;Tool Bag: Blue Ridge Overland Gear Tool bag, BROG Recovery Backpack&lt;/li&gt;
  &lt;li&gt;Fog Lights: BajaDesigns Fog Light Kit Squadron Sport wide driving mode&lt;/li&gt;
  &lt;li&gt;Headlights: JW Speaker 8700 J2 Series black bezel&lt;/li&gt;
  &lt;li&gt;Steering stabilizer: Old Man Emu&lt;/li&gt;
  &lt;li&gt;Trackbar &amp;amp; Steering box brace: Synergy&lt;/li&gt;
  &lt;li&gt;C-Gussets: Artec Industries&lt;/li&gt;
  &lt;li&gt;On-board Air: ARB CKMA12, ARB Hose, ARB Digital Pressure Gauge&lt;/li&gt;
  &lt;li&gt;Switches: Switch-Pros SP8100, Blue Sea Systems Bus Bar, Blue Sea Systems in-line fuses&lt;/li&gt;
  &lt;li&gt;Rock Lights: Sunpie Amazon special white color.&lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Tue, 24 Jul 2018 00:00:00 +0000</pubDate>
        <link>https://david-rancourt.com/2018/07/24/jeep-mods/</link>
        <guid isPermaLink="true">https://david-rancourt.com/2018/07/24/jeep-mods/</guid>
      </item>
    
      <item>
        <title>Unlocking Locked VM's in ESXi</title>
        <description>&lt;p&gt;So one of your virtual machines either won’t lock or got locked in ESXi and you need to fix it quickly? Well &lt;a href=&quot;http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;amp;cmd=displayKC&amp;amp;externalId=10051&quot;&gt;VMware’s KB&lt;/a&gt; can be pretty useful when it’s direct and to the point. However I found it difficult to figure out after a bit of digging around in my ESXi system. So I thought I would clarify this for everyone here. Often times you’ll probably see one of these errors:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;A virtual machine cannot power on.&lt;/li&gt;
  &lt;li&gt;Powering on a virtual machine fails.&lt;/li&gt;
  &lt;li&gt;Unable to power on a virtual machine.&lt;/li&gt;
  &lt;li&gt;Adding an existing disk (VMDK) to a virtual machine that is already powered on fails with the error:&lt;/li&gt;
&lt;/ul&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-code&quot; data-lang=&quot;code&quot;&gt;Failed to add disk scsi0:1. Failed to power on scsi0:1&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;When powering on the virtual machine you may see one of these errors:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Unable to open Swap File&lt;/li&gt;
  &lt;li&gt;Unable to access a file since it is locked&lt;/li&gt;
  &lt;li&gt;Unable to access virtual machine configuration&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In the &lt;strong&gt;&lt;em&gt;/var/log/vmkernel&lt;/em&gt;&lt;/strong&gt; log file, you see entries similar to:&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-code&quot; data-lang=&quot;code&quot;&gt;WARNING: World: VM xxxx: xxx: Failed to open swap file &amp;lt;path&amp;gt;: Lock was not free  

WARNING: World: VM xxxx: xxx: Failed to initialize swap file &amp;lt;path&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;When opening a console to the virtual machine, you receive this error:&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-code&quot; data-lang=&quot;code&quot;&gt;Error connecting to &amp;lt;path&amp;gt;&amp;lt;virtual machine&amp;gt;, vmx because the VMX is not started&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;ul&gt;
  &lt;li&gt;Powering on the virtual machine results in the power on task remaining at 95% indefinitely.&lt;/li&gt;
  &lt;li&gt;Cannot power on the virtual machine after deploying it from a template.&lt;/li&gt;
  &lt;li&gt;The virtual machine reports conflicting power sates between VMWare vCenter Server and the ESXi host console.&lt;/li&gt;
  &lt;li&gt;Attempting to view or open the .vmx file using the &lt;em&gt;cat&lt;/em&gt; or &lt;em&gt;vi&lt;/em&gt; command reports the error:&lt;/li&gt;
&lt;/ul&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-code&quot; data-lang=&quot;code&quot;&gt;cat: can't open '[name of vm].vmx': Invalid argument&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Any one of the above error statements that is output by your ESXi server there is an easy fix for it: The virtual machine files are commonly locked for run time use (i.e. when the host is running the machine) are usually any of the files in the directory. The easiest way to identify the locked file is to attempt to power on the VM and you will see an error message that will give you the full path to the VM’s directory plus the locked file. So the work around is as follows:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Login to the ESXi host via SSH.&lt;/li&gt;
  &lt;li&gt;Confirm that the virtual machine is registered on the server and obtain the full path to the VM. Run the following command:&lt;/li&gt;
&lt;/ol&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-code&quot; data-lang=&quot;code&quot;&gt;# vmware-cmd -l&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;The output returns a list of VM’s registered to the host server. Should look similar to this:&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-code&quot; data-lang=&quot;code&quot;&gt;[&amp;lt;datastore&amp;gt;] &amp;lt;VMDIR&amp;gt;/&amp;lt;VMNAME&amp;gt;.vmx&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;You the need to move the VM’s working directory:&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-code&quot; data-lang=&quot;code&quot;&gt;cd /vmfs/volumes/&amp;lt;datastore&amp;gt;/&amp;lt;VMDIR&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;You can use any text editor to view the vmware.log file, near the end it will have the most verbose output related to your error. The command is really easy to fix the whole unlock/lock issue for the whole directory:&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-code&quot; data-lang=&quot;code&quot;&gt;touch *&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;You should now be able to start up your VM without any issues.&lt;/p&gt;

</description>
        <pubDate>Fri, 12 Oct 2012 00:00:00 +0000</pubDate>
        <link>https://david-rancourt.com/virtualization,%20vmware,%20esxi,%20virtual%20machine/2012/10/12/unlocking-locked-vm-s-in-esxi/</link>
        <guid isPermaLink="true">https://david-rancourt.com/virtualization,%20vmware,%20esxi,%20virtual%20machine/2012/10/12/unlocking-locked-vm-s-in-esxi/</guid>
      </item>
    
      <item>
        <title>Get Dell Service Tag &amp; Express Service Code from Linux &amp; Windows</title>
        <description>&lt;p&gt;This article is for the masses who support Dell hardware and have to reach out to Dell Support every now and then. This is an awesome trick for those times when you need to get in touch with Dell’s technical support or to get drivers and other documentation from Dell. The following methods are known to be good with Windows and Linux.&lt;/p&gt;

&lt;h1 id=&quot;1-get-dell-service-tag-on-remote-windows-system-via-rdpvnc-etc&quot;&gt;1. Get DELL Service Tag on remote Windows System via RDP/VNC etc.&lt;/h1&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-shell&quot; data-lang=&quot;shell&quot;&gt;C:&lt;span class=&quot;se&quot;&gt;\w&lt;/span&gt;mic bios get serialnumber SerialNumber ABCDEF1&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;The following command can give you more information such as the make, model, and service tag.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-code&quot; data-lang=&quot;code&quot;&gt;C:\wmic csproduct get vendor,name,identifyingnumber IdentifyingNumber Name Vendor ABCDEF1 PowerEdge 2950 Dell Inc.&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;h1 id=&quot;2-get-dell-service-tag-on-remote-windows-system&quot;&gt;2. Get DELL Service Tag on remote Windows System&lt;/h1&gt;
&lt;p&gt;If VNC or Remote Desktop isn’t available, you can execute the following command from your local machine to get the service tag of the remote machine.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-code&quot; data-lang=&quot;code&quot;&gt;C:\wmic /user:administrator /note:remote-host bios get serialnumber  
SerialNumber ABCDEF1&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; replace remote-host with the machine name of your remote host.]&lt;/p&gt;

&lt;h1 id=&quot;3-get-dell-service-tag-on-remote-linux-system&quot;&gt;3. Get DELL Service Tag on remote Linux System&lt;/h1&gt;
&lt;p&gt;Login to your Linux system using SSH. Use dmidecode on Linux to get service tag as shown.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-code&quot; data-lang=&quot;code&quot;&gt;[remote-host]# dmidecode -s system-serial-number
ABCDEF1&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;h1 id=&quot;4-get-dell-express-service-code-from-your-service-tag&quot;&gt;4. Get DELL Express Service Code from your Service Tag&lt;/h1&gt;
&lt;p&gt;Service Tag is a base-36 integer. Once you have your service tag, you can calculate your Express Service Code yourself. Express Service Code is a base-10 integer. Dell mainly uses the Service Code for support based in-call routing. When you call Dell support, it may ask you for your express service code which you can easily enter in your telephone in the dial pad, as it is a bunch of numbers. Use the following tools to find express service code from service tag and vice-versa.&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;&lt;a href=&quot;http://www.creativyst.com/Doc/Articles/HT/Dell/DellPop.htm&quot;&gt;Creativyst Dell-Number Widget&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;http://www.powerdog.com/dellconv.cgi&quot;&gt;Dell PC service tag/code converter from PowerDog Industries&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I have also tried this method on some of my other vendor equipment so far I have seen it work on the following:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;IBM&lt;/li&gt;
  &lt;li&gt;HP Blades&lt;/li&gt;
  &lt;li&gt;HP Servers&lt;/li&gt;
  &lt;li&gt;Supermicro Servers&lt;/li&gt;
&lt;/ol&gt;

</description>
        <pubDate>Tue, 09 Oct 2012 00:00:00 +0000</pubDate>
        <link>https://david-rancourt.com/dell,%20service%20tag,%20express%20service%20code,%20express%20service,%20linux,%20windows/2012/10/09/get-dell-service-tag-express-service-code-from-linux-windows/</link>
        <guid isPermaLink="true">https://david-rancourt.com/dell,%20service%20tag,%20express%20service%20code,%20express%20service,%20linux,%20windows/2012/10/09/get-dell-service-tag-express-service-code-from-linux-windows/</guid>
      </item>
    
      <item>
        <title>P2V Conversion Failure Fixed</title>
        <description>&lt;p&gt;We’ve been trying to convert a few Windows 2000 SP4 server to a VMWare machine for a while and running into the same issue.  I would always get a MODEEXCEPTIONNOT_HANDLED BSOD right after the login screen would appear.  I tried the normal fixes listed on the VMWare website including the right SP4 rollup 1 v2 and checking the versions of scsiport.sys.  Fortunately, I stumbled across this wonderful article: &lt;a href=&quot;http://www.networkworld.com/news/2005/041105-windows-crash.html?page=1&quot;&gt;http://www.networkworld.com/news/2005/041105-windows-crash.html?page=1&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I set the virtual machine to a kernel mode dump and let it BSOD as recommended by the article.  I then copied to memory.dmp file to my Windows 7 workstation where I had installed the debugging tools referenced in the article.  I quickly identified usbsp.sys as the offending driver.  I renamed it on the virtual and rebooted.  Result?  Perfect!  I will definitely make sure I use this in the future to get a handle on blue screens when they pop up. Here is the relevant data from the process with the info highlighted in red.   How cool is that?&lt;/p&gt;

&lt;p&gt;The important bits to know is this section here: &lt;strong&gt;SYMBOL_NAME:  usbsp+af5 FOLLOWUP_NAME:  MachineOwner MODULE_NAME: usbspIMAGE_NAME:  usbsp.sys&lt;/strong&gt;&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-shell&quot; data-lang=&quot;shell&quot;&gt;EXCEPTION_PARAMETER1:  00000000EXCEPTION_PARAMETER2:  00000000 ERROR_CODE: &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;NTSTATUS&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt; 0 - STATUS_WAIT_0 BUGCHECK_STR:  0x1E_0
DEFAULT_BUCKET_ID:  DRIVER_FAULT PROCESS_NAME:  System LAST_CONTROL_TRANSFER:  from f2695af5 to 8042be0b STACK_TEXT: f245fc78
f2695af5 0000001e 00000001 804b1cd8 nt!KeBugCheck+0xf WARNING: Stack unwind information not available. Following frames may be
wrong. f245fc90 804b1d5e 828696f0 82614000 f219fd08 usbsp+0xaf5 f245fd58 804b1f9f 0000008c 82614000 f219fd08
nt!IopLoadDriver+0x672 f245fd78 80417b47 f219fd08 00000000 00000000 nt!IopLoadUnloadDriver+0x3f f245fda8 80457838 f219fd08
00000000 00000000 nt!ExpWorkerThread+0xaf f245fddc 8046c8e6 80417a98 00000001 00000000 nt!PspSystemThreadStartup+0x54 00000000
00000000 00000000 00000000 00000000 nt!KiThreadStartup+0x16 STACK_COMMAND:  kb FOLLOWUP_IP: usbsp+af5 f2695af5 8d45f4         
lea     eax,[ebp-0Ch] SYMBOL_STACK_INDEX:  1 SYMBOL_NAME:  usbsp+af5 FOLLOWUP_NAME:  MachineOwner MODULE_NAME:
usbspIMAGE_NAME:  usbsp.sys DEBUG_FLR_IMAGE_TIMESTAMP:  3cc859dd FAILURE_BUCKET_ID:  0x1E_0_usbsp+af5 BUCKET_ID:
0x1E_0_usbsp+af5 Followup: MachineOwner&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

</description>
        <pubDate>Fri, 28 Sep 2012 00:00:00 +0000</pubDate>
        <link>https://david-rancourt.com/p2v,/vmware,/windows/2000,/server/p2v/2012/09/28/p2v-conversion-failure-fixed/</link>
        <guid isPermaLink="true">https://david-rancourt.com/p2v,/vmware,/windows/2000,/server/p2v/2012/09/28/p2v-conversion-failure-fixed/</guid>
      </item>
    
  </channel>
</rss>
