install PanHandler on Windows 10 system.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

install PanHandler on Windows 10 system.

L2 Linker

Published install instructions for PanHandler are for MAC and Linux systems.  I run Windows.  Here is how I installed PanHandler on my Windows 10 system.

 

Install Docker for Windows from the Docker Hub -- https://docs.docker.com/docker-for-windows/install/

     I’m at Docker Engine v19.3.5

 

Once Docker is installed and after your system has rebooted, open Docker from the systray.

My Docker settings:  (Sorry, screenshots would not paste)

 

General 

  1. Check
    1. Start Docker Desktop when you log in
  2. accept defaults

Resources

  1. accept defaults 
    1. 2 CPUs; 2 GB Memory; 1 GB Swap; Disk image is 64 GB

Command Line

  1. enable experimental features

Kubernetes is unchanged. 

 

Execute “Apply & Restart” lower right.

Make sure Docker is running by checking lower left of window.

 

Download and install Git Bash.  Git Bash is an application for Microsoft Windows environments which provides an emulation layer for a Git command line experience. It is possible to turn on the Windows Subsystem for linux (WSL) but I used Git Bash.

 

Use Git Bash (or WSL) to run the PanHandler setup CLI per the setup instructions -- https://panhandler.readthedocs.io/en/master/running.html#quickstart

         curl -s -k -L http://bit.ly/2xui5gM | bash

 Output from the CLI command should include no errors and should look like this …

 

$ curl -s -k -L http://bit.ly/2xui5gM | bash

===================================================================================================

 

  Welcome to Panhandler

 

===================================================================================================

 

  Checking 6827534e456d (this is your container)

 

  Checking for image updates ... (This may take some time while the image downloads)

 

  paloaltonetworks/panhandler:latest is already up to date!

 

  Found container id of 6827534e456d

 

  Checking 6827534e456d

 

  This container is up-to-date!

 

  Panhandler is already up to date. Ensuring it's running

 

  You may now use Panhandler by opening a web browser and browsing to http://localhost:8080

 

===================================================================================================

 

If you receive output that states an inability to access you docker container, review your Docker stetting from the systray.

 

You should now be able to access PanHandler with a local system browser via the URL provided in the last line of output.

 

Continue with PanHandler usage instructions using https://live.paloaltonetworks.com/t5/Skillet-Tools/Install-and-Get-Started-With-Panhandler/ta-p/3079...

 

 

 

D. Elliott
6 REPLIES 6

Community Team Member

Hi @doug-elliott ,

 

Awesome !

 

-Kiwi.

 
LIVEcommunity team member, CISSP
Cheers,
Kiwi
Please help out other users and “Accept as Solution” if a post helps solve your problem !

Read more about how and why to accept solutions.

L2 Linker

UPDATE:  

Windows feature Hyper-V conflicts with VMWorkstation.  My VMWorkstation version is current at 15.5.1 build-15018445.   Hyper-V is required to run a Docker container on Win10.    

 

The result, turn off Hyper-V feature and reboot to run VMWorkstation; turn on Hyper-V and reboot to run PanHandler/Docker.

 

There is a powershell command to turn Hyper-V feature on/off but does not get around the reboot.

   Disable in Powershell with this command:     <  bcdedit /set hypervisorlaunchtype off  >

   Reenable Hyper-v with command:      <   bcdedit /set hypervisorlaunchtype auto   >

D. Elliott

Thanks Elliot for the post. I followed your instructions, and everything is working fine. However I couldn't run the script using Git Bash.

It returned the error below. I have spent the whole day trying to find a resolution with no luck.

Any idea what could be the issue ? It is working fine on another linux machine, but the issue exists with Windows 10 only

 

Error response from daemon: mkdir C:\Program Files\Git\var: Access is denied

 

Cheers,

Mo

FYI - in response to previous poster who had problems.  I opened a cmd prompt as Admin and created the directory c:\program files\Git\var.  Then using explorer I modified security rights,  granting users Modify rights.  After that it worked.  I did get a prompt that Docker wanted to share and I allowed that.

Thanks Glenn for your input, I will give it a try and get back to you.

 

Cheers,

 

Thanks alot Glenn, Your trick resolved my issue.

Cheers,

  • 7941 Views
  • 6 replies
  • 4 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!