Coder Social home page Coder Social logo

Comments (8)

muktaa avatar muktaa commented on August 25, 2024

Please check the username and password for the windows image. You must give
that as the --winrm-username and --winrm-password.
Let me know this helps.

from knife-azure.

phoellig avatar phoellig commented on August 25, 2024

I created a new image and retested to make sure I had the credentials mirrored and the error persists. I also tried providing the username as machinename\username in case it was a domain issue, but that didn't help. I'm a little surprised that the credentials need to match the ones from the VM the image was created with since you normally provide new credentials each time you create a VM based on an image. It doesn't seem to be the source of my issue though.

from knife-azure.

phoellig avatar phoellig commented on August 25, 2024

So I've managed to get it to work by setting "--winrm-user Administrator". I didn't use Administrator for the user in the base image, any other username that I've tried fails with the 401.

While this is open, I see in the code that ssh bootstrapping is supported for windows VMs. Am I correct in thinking that the base image would have to be configured as an SSH server that starts on boot and listens on --ssh-port?

from knife-azure.

muktaa avatar muktaa commented on August 25, 2024

Yes. Thats right.

from knife-azure.

sethvargo avatar sethvargo commented on August 25, 2024

Hey @phoellig! Thank you for supporting this Opscode knife plugin! Our process has a couple prerequisites before we can merge your contribution. We need to ensure you've completed a Contributor License Agreement (CLA) and a ticket on our ticket tracker for the release workflow. I looked, but I could not find one under your name. Pull requests are optional, but should always include the ticket number that they're related to for cross-referencing. Please take a moment to review the below wiki page for the appropriate steps:

Please feel free to ping me if you have any questions 😄

from knife-azure.

phoellig avatar phoellig commented on August 25, 2024

@sethvargo The CLA is in the process of getting set up with my company (PROS Inc.) at the moment. Hopefully that will move through relatively soon and I can start getting some fixes and enhancements back into the main line.

from knife-azure.

sethvargo avatar sethvargo commented on August 25, 2024

@phoellig okay sounds good! I moved your stacktrace to a gist to cleanup the description a bit

from knife-azure.

siddheshwar-more avatar siddheshwar-more commented on August 25, 2024

@phoellig
Seems this issue is resolved.

from knife-azure.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.