Office 365 configuration

Steps

  1. Add a Windows 10 sandbox with Office 365 support with following command. Make sure to insert the correct timezone for your location.
    sudo amd_setup sandbox --win10v2004 --office365 --vmtimezone <tzselect style>
    A <tzselect style> would be in this format: America/New_York or Europe/London for example.
    admin@bt-amdp-eng-159:~$ sudo amd_setup sandbox --win10v2004 --office365 --vmtimezone America/Denver
    [sudo] password for admin:
    Instance capacity:15
    No instance count specified, defaulting to 8
    Added instances:
        win10v2004: 8
    Total instances: 8
  2. Run sudo amd_setup sandbox --vmbuild to start building the sandbox VM.
    admin@bt-amdp-eng-159:~$ sudo amd_setup sandbox --vmbuild
    Instance capacity:15
    Total instances: 8
    VM build:
    
    Building all desired VMs
    {}

    Waiting for Office to be ready for manual action...

    1. When the Office 365 script is ran, the hatching-vms logs will log the used host and port. This log message looks like:
      The current script may need manual interaction. VNC is enabled. script=office365new vnc_host=0.0.0.0 vnc_port=29023 ..
    2. Find it by running:
      journalctl -u hatching-vms | grep "script may need manual" | tail -1
    3. The Office 365 script will first install Office 365. When it is ready to be activated, the following log messages will appear:
      script=office365new script-message="Waiting for manual activation of Office 365. Connect with VNC and manually activate.\n" ..
    4. Find it by running:
      journalctl -u hatching-vms | grep "Waiting for manual activation of Office 365" | tail -1
      Note: The vnc_port is listed in the first log message.
  3. On a separate host, use a VNC client to connect to the IP of the engine on the port listed previously.
  4. Once connected via VNC, you will be presented with a prompt to enter a product key for Office. Select Back on this menu.

  5. A new pop-up appears asking to Sign in to get started with Office. Select Sign in or create account.

  6. Enter the email address of the user that will be used with the sandboxes and select Next.

  7. Enter the password for the user entered previously.

  8. Once signed in, select No, sign in to this app only on the pop-up that says Stay signed in to all your apps.

  9. Select Account in the Microsoft Word menu and verify that Office is activated. You should see a section related to your subscription on the right side of the screen.

  10. In the taskbar, find the window that has Waiting for manual activation in the text field and select OK. Select Yes on the next pop-up to confirm that the activation is complete.

  11. Close the VNC session and wait for the VM to finish building.