OpenSSH server wont install on azure Windows 10 VM - azure

I'm trying to install OpenSSH-Server on multiple Windows 10 VM from Azure.
I added some rules on network security group (directly on portal.azure) : I allowed inbound traffic for port 22 and same for outbound.
After that I tried to install openSSH-server using the windows 10 interface, but it doesn't work (no error message, just jumping back into the app list).
I tried to add the rules to the firewall and retried to install openSSH-server, no success.
I also tried to install it using powershell but without success.
There is something I must be missing, here is the guide I followed for installing OpenSSH-server: https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse
And here is the guide I followed for opening ports:
https://learn.microsoft.com/en-us/azure/virtual-machines/windows/nsg-quickstart-portal

Ok so I finally find out what was blocking the installation, the Windows update service was deactivated, by activating it I was able to install OpenSSH-Server, all good now !

Related

Azure windows server 2019 install docker

I hope somebody can help me with this issue.
I have a windows server 2019 hosted on azure. I would like to install docker for some tests.
Before to jump to docker, I updated the operative system
I downloaded docker desktop from docker website.
Installation went without any issue.
But when I try to start the app, I get the error that the Hyper-V is not running.
At this point, in the server management tool => add features I checked if Hyper-v was installed and if containers was also installed, After this I went to services.msc and restarted Hyper-v managment and also set to auto hypervisorlaunchtype and restarted the VM. When I logged in back, I had the same issue.
I know this is a case of nested virtualisation, but I was wondering if is achievable on a cloud platform.
Can please anyone help me to understand this and if its possible or/and what I am doing wrong
I tried to install the docker desktop in my environment and it was successful with out any issue. Created a vm with windows server 2019 and updated to latest and installed docker desktop from here Install Docker Desktop on Windows and it is running as expected.
Nested virtualizations is supported in azure but all the vm sizes not support nested virtualization, So Try to deploy the VM with any of the following series D_v3; Ds_v3; E_v3; Es_v3; F2s_v2 – F72s_v2; M and check.

Azure Cloud Shell Ansible with Windows hosts

Since the announcement I'm able to list my Azure infrastructure in the Azure Cloud Shell with ansible.
I want to use it with Windows machines too. I installed the winrm locally as it seems that globally is not supported.
pip install "pywinrm>=0.2.2" --user
With this I understand packages are correctly installed
pywinrm (0.3.0)
requests (2.18.4)
xmltodict (0.11.0)
...
Then I run, with the proper credentials a win ping but ansible complains that the WinRM is not available.
ansible -i workspace/azure_rm.py -m win_ping DC-01
Is it possible to run ansible in cloud shell with windows hosts?
Make sure your windows hosts are setup for WinRM control. That means you should check off a few things are working, you can see what Ansible has to say about it here.
Network path is open on TCP port 5985-5986 (try to telnet)
Powershell 3.0 or above is installed
WinRM remoting has been configured for the remote windows host.
Make sure the ansible play is using WinRM port to connect
You can use the excellent PS script ansible provides with a little modification if needed to setup your local certs and configure the box from here.
I finally opened a post on MSDN forums and Microsoft identified the missing dependency and added in the Cloud Shell!
Finally it is possible to use Ansible from the Cloud Shell. The only consideration is that the target VM should have internet connectivity on port 5986.
Also there is a sample script to test it.

Install Virtualbox in WSL Windows 10

I need to have access to Virtualbox from within the WSL, I have tried to sudo apt-get install virtualbox but I end up with the following error:
WARNING: The character device /dev/vboxdrv does not exist.
Please install the virtualbox-dkms package and the appropriate
headers, most likely linux-headers-3.4.0+.
You will not be able to start VMs until this problem is fixed.
4.3.36_Ubuntur105129
Vagrant is now capable of detecting that it is running on WSL.
How to configure Windows and WSL to enable this feature is described on Vagrant website
They claim it's an advanced feature but the configuration seems quite straightforward.
Unfortunately, that will not work (at least for now), as explained here: https://github.com/Microsoft/BashOnWindows/issues/549

Unable to install iis manager on windows 8.1

I get an error while trying to install IIS manager from "Turn on off windows features" on a windows 8 machine. Just before trying to install this I install Visual Studio community online and rebooted my machine. Visual Studio works fine.
I also made sure all updates are installed on my machine and also rebooted and tried installing IIS manager.
The error that I get is "The function attempted to use a name that is reserved for use by another transaction"
Thanks
Ranjith
Try to turn off your antivirus before install IIS.
I had the same problem and spent hours trying to find out the root cause. Tried to disable anti virus and other options as discussed in forums on the internet.
Here is how i resolved the problem.
Open up msconfig -> go to boot tab -> select Safe boot (Minimal) -> Apply -> Okay
Your machine should restart in safe mode and you should be able to successfully install IIS from the "Turn Windows Feature On/Off" section as described by others.
After the installation is complete, run msconfig again to unselected Safe boot so that you log in to the normal desktop environment on restart. Enjoy!
Just now i also faced that problem and this is how fixed the problem.
The reason can be another server which running on your pc, is using the same port as IIS. (e.g: 80 or 8080).
According to my solution, I started the wampserver. then click on wamp icon on the task bar. then opened the httpd.conf file from Apache.
find (ctrl+F) the "Listen 80" and replace it to "Listen 8080" or any other. save it.
restart your pc and try to install the IIS manager again.
hope it will works!! Good luck.

Meteor support developing on Windows

Does Meteor support developing on Windows? I did not see any downloads or mention of Windows in the docs.
The "Quick Start" assumes you are on *Nix OS.
Meteor 1.1+: official Windows support launched on https://win.meteor.com/
Meteor 1.0+: there is an official Windows preview.
Meteor 0.8 and older: see http://win.meteor.com/
Proof, Meteor running on Windows.
Edit: See Tom's answer.
Old answer below.
No, this is not yet supported on windows. If you try to install in you will receive the following error:
Sorry, this OS is not supported yet.
As a workaround you can run a linux box in a VM and use that as a server to run meteor but still do all development from within windows. I've done this using VirtualBox to run Ubuntu with no GUI. Here's the steps:
Install VirtualBox
Grab Ubuntu ISO
Setup Ubuntu VM using VirtualBox (just follow the wizard steps)
Install samba on VM to enable file access from windows. This article was a great help.
Install ssh using Ubuntu Software Center. This was helpful.
Shutdown VM and run from a DOS prompt using vboxheadless -startvm "VM Name"
You can then use a ssh client (I'm using cygwin) to connect to the box to run commands e.g. ssh user#box_ip_address
Can browse and edit files using windows file share e.g. \\box_ip_address\share
Can run meteor apps within local browser, just replace the localhost in the address that meteor assigns with the ip address of the box.
I just tried to install it with curl on Windows 7, and got:
Sorry, this OS is not supported yet.
A substantial update as the existing answers to this question are very out of date.
Official Windows support can be found at https://github.com/meteor/meteor/wiki/Preview-of-Meteor-on-Windows
Unofficial Windows support for Meteor can be found on http://win.meteor.com/
There are 3 solutions outlined on win.meteor.com, one native MSI installer, and 2 virtualized solutions based on Vagrant:
1) MSI Installer:
Stephen Darnell has picked up where Tom Wijsman graciously left off.
This solution is the most straight forward way to get Meteor running
on Windows with an MSI Installer provided. There are some trade-offs
because this is a fork and can lag behind the latest version as
Stephen can update to and test the latest version.
2) Vagrant Shell Provisioning
Gabriel Pugliese has posted a guide for how to provision Meteor on
Linux with Vagrant's Shell Provisioning. These may be more accessible
to users familier with Linux and Shell scripts. This solution is
easier to tweak through the straight forward shell commands than the
Chef alternative.
3) Vagrant Chef Provisioning
Matthew Sullivan is maintaining a set of Vagrant files, Chef cookbook,
and guide for provisioning Meteor on Linux with Vagrant. This Chef
solution is a slightly more automated and configurable than the shell
solution, however likely not as simple to tweak beyond the provided
configuration parameters as the Shell solution.
GitHub Repos and details can be found on win.meteor.com. The three authors are very responsive on the Meteor-talk Google Group.
A bit of history:
Unofficial Windows support for Meteor was started by Tom Wijsman, and was supported by Tom until 0.5.9. Versions 0.6.0 and later are by Stephen Darnell, Gabriel Pugliese, and Matt Sullivan.
I do not see Nitrous.io mentioned here.
I am using Nitrous.io together with Nitrous Desktop, which allows you to use your favourite text editor (in my case, Sublime Text).
There is a quick tutorial here and Discover Meteor also deals with this in chapter 2.
It sounds like Windows is not supported yet. If you want to play with it, I would suggest grabbing VirtualBox and installing your favorite flavor of Linux on it.
I downloaded the above .msi installer and installed to c:\Meteor
Add the c:\Meteor directory you just made to your PATH environment variable.
Run the following command: npm install Meteor-Test-Installer
Add the C:\Meteor\bin\node_modules\npm\bin directory you just made to your PATH environment variable.
Log below from my DOS screen:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\mike>cd\
C:\>cd meteor
C:\Meteor>cd C:\Meteor\bin\node_modules\npm\bin
C:\Meteor\bin\node_modules\npm\bin>meteor create try-meteor
try-meteor: created.
To run your new app:
cd try-meteor
meteor
C:\Meteor\bin\node_modules\npm\bin>curl
‘curl’ is not recognized as an internal or external command,
operable program or batch file.
C:\Meteor\bin\node_modules\npm\bin>cd try-meteor
C:\Meteor\bin\node_modules\npm\bin\try-meteor>meteor
[[[[[ C:\Meteor\bin\node_modules\npm\bin\try-meteor ]]]]]
Initializing mongo database… this may take a moment.
Running on: http://localhost:3000/
Open http://localhost:3000/ in broswer ... Voila !!
Hello World!
Welcome to try-meteor.
If you get error like this below :
{
[[[[[ D:\sms\Apps\Meteor\bin\node_modules\npm\bin\try-meteor ]]]]]
Unexpected mongo exit code 127. Restarting.
Unexpected mongo exit code 127. Restarting.
////////////////////////////////////////
////////////////////////////////////////
meteor is out of date. Please run:
meteor update
////////////////////////////////////////
////////////////////////////////////////
Unexpected mongo exit code 127. Restarting.
Can't start mongod. Check for other processes listening on port 3002 or other me
teors running in the same project.
}
Update the MondoDB folder with the latest mogodb files from the mongodb site.
I've found that new coders who are also new to Meteor might have installed it correctly, but are having trouble figuring out how to open and run it. So I'll just address that issue in this post.
1) I assume you went here: http://win.meteor.com/ and downloaded the MSI installer
2) I assume you then created a newapp in meteor and then ran meteor
3) If steps 1 & 2 are complete, you should see this in your command line:
Initializing mongo database... this may take a moment.
=> Meteor server running on: http://localhost:3000/
4) Open Chrome and type in the local host address: http://localhost:3000/
5) Open your newapp folder - should be located in your Meteor folder wherever its installed on your hard drive
6) Open your newapp.html, newapp.css, and newapp.js files in your favorite editor (like Sublime Text 2)
7) Begin editing these files as you like and watch your page automatically update, as Meteor is designed to do.
Voila!! You're building with Meteor. Enjoy!!
As of two days ago, a preview version is available here:
https://github.com/meteor/meteor/wiki/Preview-of-Meteor-on-Windows
Recent check of their site and checking their FAQ, you'll find the Meteor Development Roadmap. They host it on Trello and after the 1.0 launch, you'll see "Official Windows Support." So, it's on the map - now we wait!
https://trello.com/board/meteor-roadmap/508721606e02bb9d570016ae
Using linux in VM you probably want meteorite which isn't easy if you are as bad as I am to Linux... Here's how (thank you johntday Unable to install meteorite on Ubuntu VM):
Here are my Install Steps
Update and Upgrade your Ubuntu Depending on how up-to-date your image is, this may take a while.
sudo apt-get update && sudo apt-get upgrade
Install curl sudo apt-get install curl
Install node http://lucidservices.com/2013/09/17/install-node-on-ubuntu/
Install meteor curl https://install.meteor.com | sh
Install meteorite sudo -H npm install -g meteorite
If you have problems setting a high screen resolution, here's a fix:
http://youtu.be/t36wXUu1UtQ

Resources