Difference between revisions of "Red Cloud Windows Instances"
m (Updated Networks links for new section titles) |
|||
Line 13: | Line 13: | ||
# If you have not already, [[OpenStack Key Pairs#Creating_a_Key_Pair|create a key pair]] | # If you have not already, [[OpenStack Key Pairs#Creating_a_Key_Pair|create a key pair]] | ||
# If you have not already, [[OpenStack Security Groups#Creating a Security Group|create a security group]]. Note that your security group should include the inbound RDP port (3389) rule from at least your current IP address so you can connect to it. | # If you have not already, [[OpenStack Security Groups#Creating a Security Group|create a security group]]. Note that your security group should include the inbound RDP port (3389) rule from at least your current IP address so you can connect to it. | ||
− | # '''Optional:''' [[Networks#Private | + | # '''Optional:''' [[Networks#Private Networks|Set up a Private Network]] |
# Select <tt>Launch Instance</tt> from the [https://redcloud.cac.cornell.edu/dashboard/project/instances/ Instances] page | # Select <tt>Launch Instance</tt> from the [https://redcloud.cac.cornell.edu/dashboard/project/instances/ Instances] page | ||
# Follow the instructions about [[OpenStack#Launch an Instance|launching a new instance]], and select one of the Windows [[Images|images]] under the <tt>Source</tt> tab | # Follow the instructions about [[OpenStack#Launch an Instance|launching a new instance]], and select one of the Windows [[Images|images]] under the <tt>Source</tt> tab | ||
# '''Optional:''' [[Volumes#Create and Attach a Volume|Create and attach a Volume]] | # '''Optional:''' [[Volumes#Create and Attach a Volume|Create and attach a Volume]] | ||
− | # '''Optional:''' [[Networks#Floating IP|Associate a Floating IP address]] | + | # '''Optional:''' [[Networks#Floating IP Addresses|Associate a Floating IP address]] |
Now that you have created and launched an instance, your next steps will be to [[#Accessing_Instances|connect to it]] and set up a new user account. See the [[#To Do On First Login|To Do On First Login]] section for more information on how to set up a new user, update, and other useful information. Also, consult the [[#Working with Windows Instances|Working with Windows Instances]] section. | Now that you have created and launched an instance, your next steps will be to [[#Accessing_Instances|connect to it]] and set up a new user account. See the [[#To Do On First Login|To Do On First Login]] section for more information on how to set up a new user, update, and other useful information. Also, consult the [[#Working with Windows Instances|Working with Windows Instances]] section. |
Revision as of 18:34, 26 February 2019
Windows Instances can be created and maintained on Red Cloud using the OpenStack Web Interface. This documentation assumes a basic understanding of OpenStack, so please review that page as needed.
Creating A New Windows Instance
Currently Red Cloud offers VM images running the following versions of Windows:
- Windows Server 2016
Steps
- Log in to the OpenStack Web Interface (check out how to log in if you need to)
- If you have not already, create a key pair
- If you have not already, create a security group. Note that your security group should include the inbound RDP port (3389) rule from at least your current IP address so you can connect to it.
- Optional: Set up a Private Network
- Select Launch Instance from the Instances page
- Follow the instructions about launching a new instance, and select one of the Windows images under the Source tab
- Optional: Create and attach a Volume
- Optional: Associate a Floating IP address
Now that you have created and launched an instance, your next steps will be to connect to it and set up a new user account. See the To Do On First Login section for more information on how to set up a new user, update, and other useful information. Also, consult the Working with Windows Instances section.
Accessing Instances
- Make sure your security group allows access to RDP port (3389) from your current IP address.
- The first time you start a Windows instance it may take up to 10 minutes or more from pushing the start button, depending on the size of the instance, before you can log in.
- After your instance is running you should be able to Remote Desktop into it.
- To log in to a Windows instance:
- Wait until the OpenStack Web Interface says the instance is running
- Select instance -> Actions -> Retrieve Password
- Select your Private Key File (that you created when you created a Key Pair) and select Decrypt Password. The password for user Administrator will be displayed.
- You can then log in to the Windows instance using Microsoft's Remote Desktop program for Windows or Mac, or with rdesktop for Linux. The name of the computer in Red Cloud is simply the public IP address of the instance (e.g., 128.84.8.42).
- We highly recommend you create a new Administrative account. For more information, see the Create New Users section below.
Connect to Windows - This page details how to connect to Windows Instances using remote desktop.
To Do On First Login
After you have launched a Windows Instance, there are a few recommended steps you take when you first log in, which are included in the below sections: Create New Users, Windows Activation, and Security and Updates. The For Convenience section should also be considered as helpful suggestions, but not essential.
Create New Users
We highly recommend you at least create a new account with Administrative privileges which will persist if you stop and restart an instance. The default Administrator account password will change each time the instance is stopped and restarted, so it should not be reused after initial login. Accounts for users can also be created as you would normally do in Windows:
- Go to Control Panel > User Accounts > Add or remove user accounts
- Create accounts for all desired users as administrators using Cornell NetIDs
- For each account, assign a temporary password, such as "changeme"
If you create a new Admin or user account on the machine, the account and password are retained when stopping and starting the instance. If you stop the instance, the default Administrator account password gets reset when you start the instance. You can get the password the same way as previously described.
Windows Activation
The Windows instance is not activated by default, but it can be done for free through Cornell. Cornell provides Windows license keys to members of its community via a server. You must tell Windows which server to use and then ask it to go get a license. If you attempt to activate Windows without using a Cornell license, you will most likely receive the following error: Activation Error: Code 0x8007232b
. To avoid this, follow these steps (which are also documented at the CIT website):
- On the Windows instance, open a command prompt (cmd) as Administrator and switch to the
system32
folder:cd \Windows\system32
- Enter the following command to specify the server you will use for activation:
cscript slmgr.vbs /skms kms01.cit.cornell.edu
- Enter the following command to activate Windows:
cscript slmgr.vbs /ato
- On the Windows instance, open a command prompt (cmd) as Administrator and switch to the
After you have activated Windows, it does stay activated through stops and starts of an instance.
Note: Please refer to Microsoft support for more information on activating Windows
Security and Updates
These steps help to keep your system up-to-date and secure, and are strongly recommended.
- Turn on Automatic Updates in Settings > Updates & security and Check Updates
- Turn on Real-time protection in Settings > Updates & security > Windows Defender
- Open Windows Defender and Update definitions under the Update tab to get the latest virus definitions
For Convenience
- Select "Work Network" when prompted by the network dialog
- Turn off messages about not having performed a backup in Control Panel > System and Security > Action Center
Working with Windows Instances
Note: Anything installed or stored on the C: drive will be retained. If you want data other than the C: drive kept then use a storage volume.
Creating a Windows instance with a larger C: drive
If you're running Windows, you probably know the C: drive can fill up quickly with Windows security patches, etc. so you may want your Windows instance to have a larger C: drive than the default, which is 30GB. Before proceeding to do this, be sure to check the Red Cloud storage limit for your project.
This may be done in the OpenStack web portal when launching a new instance on the Source tab by setting the Volume size to a larger amount.
OR
If the instance has already been created and is currently running, this may be done by creating a new volume and attaching it to the instance.
Initialize and Mount a Volume
First, logon to your instance, then follow the steps below for using either a GUI or PowerShell depending on your preference.
GUI
- Open command prompt (run as administrator)
- Type
diskmgmt
and press Enter - Right-click on Unknown Disk and select Online
- Right-click again on Unknown Disk and select Initialize Disk
- Check Disk you want to add, Check GPT select Next
- Right-click on Unallocated Disk (area has a black strip over it), select New Simple Volume
- Take all defaults unless you want to change drive letter and/or add volume label
- Select Finish
- Open File Explorer and verify that the new drive is there
PowerShell
- Open PowerShell (run as administrator)
- Type the following:
get-disk #write down number of the offline disk you will need it Initialize-Disk -Number 1 New-Partition -DiskNumber 1 -UseMaximumSize -AssignDriveLetter #write down the number of the partition number will be using this for formatting Get-Partition -DiskNumber 1 -PartitionNumber 2 | Format-Volume -FileSystem NTFS -NewFileSystemLabel temp #For New label you can name it whatever you want or you don’t need to add it if you don’t want disk label.