Windows guest specific procedures
Configuring with CMF
Windows configurations can be automatically configured with CMF using the cloud-init plug in. See Power Shell section for the details.
Once you attached a volume to a Windows instance, you'll need to format it before the first use:
Launch Disk Management by using any of these methods.
On a Windows 10 instance, Use the Windows key + X keyboard shortcut to open the Power User menu and select Disk Management.
- Run the program ‘diskmgmt.msc’.
In File explorer, right click on This PC and click manage, the computer management program will launch, Disk Management is on the storage submenu.
A popup will appear to initialize the disk. If that does not happen, right click on the not initialized disk (on the icon and label that says unknown) and select Initialize Disk.
Select GPT (compatible with all sizes of volumes) and click "OK".
Now the volume becomes online and unallocated. Click on the unallocated space and select New Simple Volume
- Click "Next" on the first page of the wizard.
- Click "Next" on the size page of the volume (defaults to all volume size).
- Select if you want to mount it as a drive or as a folder (if it is a folder, it must exist beforehand and it should be empty). When finished click "Next".
- In the Format Partition select NTFS and select the appropriate label that you prefer in order to proper identify it (if you have multiple volumes attached) and click "Next".
- Now you have a summary of all options selected. If you are happy with them, click on "OK" and the volume will be formatted and mounted as desired. The formatting step can take a couple of minutes, depending the size of the volume.
Local Administrator account
It is advisable to have set the password of the Local Administrator account for recovery scenarios.
If you restored a machine using a snapshot previously taken, it may break the domain join. In such cases the only possibility to log into the machine to rejoin the CERN domain is via the local administrator of the machine. In cases like this one, you need to set it up before the snapshot is taken.
By default on all the Windows images, the Administrator account is disabled. So if you want to use it, you only need to set its password.
In order to do so, you need to launch the 'Command Prompt' in Administrator mode in the virtual machine.
In Windows 8, 10, 2012 and 2012r2, you can right click on the Windows logo and select 'Command Prompt (Admin)' In Windows 7 and 2008 r2, click on the start button, type cmd in the Search program and files, and right click on the process and select 'Run as administrator'
Then you only need to type 'net user Administrator PASSWORD' replace PASSWORD with your desired password.
Once executed, you can take safely the snapshot.
If you've lost access to the machine after boot from a previous snapshot and you've already set up the local administrator password mentioned earlier, you can regain access to the machine via the console
- Please go to the website, select the machine and click on console
- Once there, press the button CTRL+SHIFT+SUPR in the top right corner
- Click on other user
- And then type '.\Administrator' and the password you've set previously on the 'Local Administrator account' section
Once you've logged in, in order to rejoin the CERN Domain, you need to remove the existing domain information by disjoin the domain, and then join it again.
- Right click on 'This PC' in Windows Explorer and select properties
- Then on the System Properties window click on Change
- Then click on 'Change...'
- Change 'Member of' from domain 'cern.ch' to workgroup 'NICE'
- It will ask you for your CERN password to leave the CERN domain, please type it and press OK
- When done you'll need to reboot the machine
- Once reboot it, log in again using the local administrator password
- We need to do again the previous steps 1-7 and change the 'Member of' from workgroup to domain 'cern.ch'
- It will ask you again for your CERN password to join the CERN domain, please type it and press OK
- When done it will ask you to reboot the machine. Afterwards, you can connect to the machine using your CERN credentials