Skip to content

Windows guest specific procedures

Creating Windows Desktop Machines

The OpenStack Windows 10 images provided by the Windows Service need at least 100GB of disk space to ensure a smooth upgrade and maintenance of the system.

In personal projects, this disk requirement is greater than the default flavors available. In such projects, users need to boot machines from volume to accomodate the installation of Windows. To ensure a smooth operation of Windows clients, personal projects allow since the first quarter of 2024 the creation of an io1 volume of 100G. This volume is more performant than the standard type and it is recommended for this use case.

Use cases requiring more resources than the default quota must request a shared project with the desired amount of resources, as well as access to io1 or any other available volume type.

Configuring with CMF

Windows configurations can be automatically configured with CMF using the cloud-init plug in. See Power Shell section for the details.

Mounting Volumes

Once you attached a volume to a Windows instance, you'll need to format it before the first use:

  1. Launch Disk Management by using any of these methods.

  2. On a Windows 10 instance, Use the Windows key + X keyboard shortcut to open the Power User menu and select Disk Management.

  3. Run the program ‘diskmgmt.msc’.
  4. In File explorer, right click on This PC and click manage, the computer management program will launch, Disk Management is on the storage submenu.

  5. 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.

Initialize disk

  1. Select GPT (compatible with all sizes of volumes) and click "OK".

  2. Now the volume becomes online and unallocated. Click on the unallocated space and select New Simple Volume

Unallocated disk

  1. Click "Next" on the first page of the wizard.

Simple Wizard 01

  1. Click "Next" on the size page of the volume (defaults to all volume size).

Simple Wizard 02

  1. 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".

Simple Wizard 03

  1. 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".

Simple Wizard 04

  1. 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.

Simple Wizard 05

Extend Volumes

Once you have extended the size of a volume already attached to a Windows instance, you'll need to extend the filesystem to be able to fully use it.

  1. Launch Disk Management by using any of these methods.

  2. On a Windows 10 instance, Use the Windows key + X keyboard shortcut to open the Power User menu and select Disk Management.

  3. Run the program ‘diskmgmt.msc’.
  4. In File explorer, right click on This PC and click manage, the computer management program will launch, Disk Management is on the storage submenu.

  5. On the list of disks, you'll see the partition drive normally (C:) and an unallocated space on the right. Right click on the partition and select Extend Volume...

Initial diskmgmt window

  1. Click "Next" on the first page of the wizard.

Extend Wizard 01

  1. Click "Next" on the size page of the volume (defaults to all volume size).

Extend Wizard 02

  1. Now you have a summary of all options selected. If you are happy with them, click on "OK" and the volume will be extended.

Extend Wizard 03

Local Administrator account

It is advisable to have set the password of the Local Administrator account for recovery scenarios.

Machines created from the public Windows images produced by the Windows Service are integrated automatically into the Windows Toolbox portal. Among other things, this portal allows the main user or responsible of the machine to discover the local administrator password using the LAPS tool.

Knowing the local administrator password is particularly important when creating machines from snapshots. 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.

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.

Recovery process

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

  1. Please go to the website, select the machine and click on console
  2. Once there, press the button CTRL+SHIFT+SUPR in the top right corner
  3. Click on other user
  4. 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.

  1. Right click on 'This PC' in Windows Explorer and select properties

Recovery properties

  1. Then on the System Properties window click on Change

System properties

  1. Then click on 'Change...'

System properties

  1. Change 'Member of' from domain 'cern.ch' to workgroup 'NICE'
  2. It will ask you for your CERN password to leave the CERN domain, please type it and press OK
  3. When done you'll need to reboot the machine
  4. Once reboot it, log in again using the local administrator password
  5. We need to do again the previous steps 1-7 and change the 'Member of' from workgroup to domain 'cern.ch'
  6. It will ask you again for your CERN password to join the CERN domain, please type it and press OK
  7. When done it will ask you to reboot the machine. Afterwards, you can connect to the machine using your CERN credentials