37
XenClient Enterprise 4.5 Engine Disks and Encryption

Engine Disks and Encryption

  • Upload
    ilana

  • View
    38

  • Download
    3

Embed Size (px)

DESCRIPTION

XenClient Enterprise 4.5. Engine Disks and Encryption. Table of Contents. Disk Encryption Overview. Disk Encryption Features Resources are protected at the logical volume layer. All Virtual Machine (VM) disks, engine configuration data, and log files. - PowerPoint PPT Presentation

Citation preview

Page 1: Engine Disks and Encryption

XenClient Enterprise 4.5Engine Disks and Encryption

Page 2: Engine Disks and Encryption

XenClient Enterprise 4.5Engine Disks and Encryption

Copyright © 2013 CitrixPage 2

Table of Contents

Engine Disks and Encryption Page 1

Table of Contents Page 2

Disk Encryption Overview Page 3

Disks, Partitions, Volume Groups, and Volumes Page 4

Logical Volume Summary Page 5

Why is not the Boot Volume Encrypted? Page 6

Encrypted vs. Unencrypted Installation Page 7

Checking Computer Encryption Status Page 8

Engine Disk Sizing Page 9

How Many Bytes In a Gigabyte? Page 10

Engine Disk Sizing Calculations Page 11

Disk Sizing Example Page 12

Encrypted Boot Sequence Page 13

Before Computer Startup Page 14

Encryption Unlock Screen Page 15

User Enters Unlock Password Page 16

Repository Volume Unlock Page 17

Boot Process Complete Page 18

Encryption Setup and Passwords Page 19

Encryption Setup Page 20

Password Validation After Encryption Unlock Page 21

Resetting Encryption Passwords Page 22

User Prompt To Change Encryption Password Page 23

Unlock Password vs. Active Directory Password Page 24

Encryption and Networking Page 25

Synchronizer Unlock Code Page 26

Encryption Lockout Page 27

Computer Storage Report Page 28

Computer Storage Report Page 29

Computer Storage Report Results Page 30

Total Space Page 31

Engine Space Page 32

Virtual Machines Space Page 33

Virtual Machine Space Used Page 34

Additional Virtual Machine Space Required for Growth

Page 35

Summary Results Page 36

Example of VHD Growth With 30 GB Local Disk Page 37

Page 3: Engine Disks and Encryption

XenClient Enterprise 4.5Engine Disks and Encryption

Copyright © 2013 CitrixPage 3

Disk Encryption Overview

Disk Encryption Features•Resources are protected at the logical volume layer.

• All Virtual Machine (VM) disks, engine configuration data, and log files.• Encryption remains intact if the disk is removed from the computer.

•Easy to configure and manage Encrypted computers.• Encryption is an install-time option, no further configuration required.• Encryption does not impact management operations in Synchronizer.

•Minimal impact to end-users.• No understanding or awareness of encryption is required.• Minimal impact on overall VM performance for most typical use cases.

Encryption Standards and Technologies•AES 256-bit encryption (specifically, AES-CBC-ESSIV with SHA256 hash).•Uses standard Linux modules (dm-crypt, lvm2, LUKS, etc).

What is not Supported Yet•Integration with Intel vPro trusted boot features (TXT/TPM).•Smart cards or two-factor authentication to unlock encryption.•These are features under consideration for a future release.

Page 4: Engine Disks and Encryption

XenClient Enterprise 4.5Engine Disks and Encryption

Copyright © 2013 CitrixPage 4

Disks, Partitions, Volume Groups, and Volumes

Hard Disk Partitions Volume Group Logical Volumes

XCE Engine only supports a single hard drive per computer.

Up to 4 primary partitions. XCE Engine only uses one partition. Others might be used to dual-boot another operating system.

The partition containing the Engine installation is configured into a LVM Logical Volume Group.

Several logical volumes are created within the group containing different parts of the XCE Engine installation.

Boot Volume (primary)

Boot Volume (secondary)

Root Volume (primary)

Root Volume (secondary)

Swap Space Volume

Log Volume

Engine Repository Volume

Page 5: Engine Disks and Encryption

XenClient Enterprise 4.5Engine Disks and Encryption

Copyright © 2013 CitrixPage 5

Logical Volume Summary

*If the disk encryption option is chosen during Engine installation.

Page 6: Engine Disks and Encryption

XenClient Enterprise 4.5Engine Disks and Encryption

Copyright © 2013 CitrixPage 6

Why is not the Boot Volume Encrypted?

Boot Volume Does Not Require Encryption•Boot volume does not contain any data that requires encryption.•All sensitive data is stored in encrypted volumes.•Contents of boot volume cannot be used to unlock encrypted volumes.

Engine Cannot Boot Encrypted Partitions•Booting from encrypted volumes is not currently supported.•This is an area of investigation for a future release.

Page 7: Engine Disks and Encryption

XenClient Enterprise 4.5Engine Disks and Encryption

Copyright © 2013 CitrixPage 7

Encrypted vs. Unencrypted Installation

• Encryption status is set when Engine is installed.

• Cannot change encryption status after installation.

• Enabling or disabling encryption requires a full Engine reinstall.

Page 8: Engine Disks and Encryption

XenClient Enterprise 4.5Engine Disks and Encryption

Copyright © 2013 CitrixPage 8

Checking Computer Encryption Status

After Rebooting a Computer•If the Engine asks for a username and password, then encryption is not enabled.•If the Engine only asks for a password, then encryption is enabled.

In the Engine Control Panel•Start the Engine control panel.•Select the “Tools by Category” view.•Start the “System Summary” applet.•The encryption status appears in the Hardware section.

In the Synchronizer Console•Locate the computer in the navigation panel.•Select the “Summary” tab.•The encryption status appears in the General section.

Page 9: Engine Disks and Encryption

Engine Disk Sizing

Page 10: Engine Disks and Encryption

XenClient Enterprise 4.5Engine Disks and Encryption

Copyright © 2013 CitrixPage 10

How Many Bytes In a Gigabyte?

Windows1 GB = 1,073,741,824 (230) bytes

Disk Manufacturers1 GB = 1,000,000,000 (109) bytes

• XenClient Enterprise uses the Windows standard.• The difference is about 7%.• Must account for this difference when sizing hard drives.• Might be significant for smaller drives (especially SSDs).

Page 11: Engine Disks and Encryption

XenClient Enterprise 4.5Engine Disks and Encryption

Copyright © 2013 CitrixPage 11

Engine Disk Sizing Calculations

This is a rough calculation designed to give a conservative estimate of the required computer disk space, based on the VMs that will be installed.

•Start with 10 GB to account for disk space used by the Engine.•For each VM deployed from Synchronizer:

• Add the size of the system disk multiplied by 2.0.• Add the size of the user disk multiplied by 1.5.• Add the size of the local disk.

•For each VM installed locally on Engine:• Add the size of the system disk.

•Add 10 GB if the Dock is enabled in the Engine policy.• Multiply the result by 1.07.

This calculation is designed to give a conservative answer that should minimize the risk of disk over-subscription under most circumstances. Actual disk space requirements might be significantly less, but can be difficult to predict.

Page 12: Engine Disks and Encryption

XenClient Enterprise 4.5Engine Disks and Encryption

Copyright © 2013 CitrixPage 12

Disk Sizing Example

Engine 10 GB

Dock (enabled in Engine policy) 10 GB

Windows XP VM (deployed from Synchronizer)•16 GB system disk (x2.0)•8 GB user disk (x1.5)•4 GB local disk

48 GB

Windows 7 VM (deployed from Synchronizer)•40 GB system disk (x2.0)•10 GB user disk (x1.5)•20 GB local disk

115 GB

Windows 2008 Server VM (local)•50 GB system disk•No user or local disk

50 GB

Subtotal 233 GB

Total (add 7%) 249 GB

For this configuration, a 250 GB disk (or larger) is recommended. This is a conservative figure designed to minimize the risk of disk over-subscription.

Page 13: Engine Disks and Encryption

Encrypted Boot Sequence

Page 14: Engine Disks and Encryption

XenClient Enterprise 4.5Engine Disks and Encryption

Copyright © 2013 CitrixPage 14

Before Computer Startup

Root Volume

Boot Volume

Repository

Computer StatusEngine installed, encryption configured, but computer powered off. Encrypted volumes remain locked when the computer is powered off, or if the disk is removed from the computer.

Networking StatusNo networking (computer is powered off).

Boot Volume StatusUnlocked. The boot volume is always unlocked. There is no requirement to lock this volume.

Root Volume StatusLocked. The root volume is locked with the user password.

Repository Volume StatusLocked. The repository volume is locked with a key stored in the root volume, which is locked with the user password.

Page 15: Engine Disks and Encryption

XenClient Enterprise 4.5Engine Disks and Encryption

Copyright © 2013 CitrixPage 15

Encryption Unlock Screen

Root Volume

Boot Volume

Repository

Computer StatusAfter power-on, computer boots up just enough so the Engine can accept a password from the user.

Networking StatusDisabled. Engine does not start networking until the computer is fully booted.

Boot Volume StatusUnlocked.

Root Volume StatusLocked. The root volume cannot be unlocked until the user provides the password.

Repository Volume StatusLocked.

Password:

Page 16: Engine Disks and Encryption

XenClient Enterprise 4.5Engine Disks and Encryption

Copyright © 2013 CitrixPage 16

User Enters Unlock Password

16

Boot Volume StatusUnlocked.

Root Volume StatusUnlocked. Encryption is unlocked with the password provided by the user.

Repository Volume StatusLocked. This volume is not locked with the user’s password. It gets unlocked in the next boot phase.

Password: mypassword

Boot Volume

Repository

Root Volume

Computer StatusUser enters the password. Engine uses the password to unlock the root volume.

Networking StatusStill disabled. Checking the password with Synchronizer or Active Directory is not necessary or possible. If the password can be used to unlock the root volume then it must be correct.

Page 17: Engine Disks and Encryption

XenClient Enterprise 4.5Engine Disks and Encryption

Copyright © 2013 CitrixPage 17

Repository Volume Unlock

Boot Volume StatusUnlocked.

Root Volume StatusUnlocked. Engine reads the repository key from the unlocked volume.

Repository Volume StatusUnlocked. Engine uses the repository key to unlock the repository volume.

Computer StatusAfter unlocking the root volume, Engine reads a key from the root partition and uses the key to unlock the repository volume. The repository volume is not encrypted with the user password.

Networking StatusStill disabled. Networking is not enabled until Engine is fully booted.

Boot Volume

Root Volume

Repository

Page 18: Engine Disks and Encryption

XenClient Enterprise 4.5Engine Disks and Encryption

Copyright © 2013 CitrixPage 18

Boot Process Complete

Boot Volume StatusUnlocked.

Root Volume StatusUnlocked.

Repository Volume StatusUnlocked. This volume contains VHD files for VMs which can now be started.

Boot Volume

Root Volume

Repository

Computer StatusFully booted. User might start VMs or access the Engine control panel. Engine can communicate with and be managed by the Synchronizer.

Networking StatusEnabled. Networking becomes available when the Engine boot process is complete.

Page 19: Engine Disks and Encryption

Encryption Setup and Passwords

Page 20: Engine Disks and Encryption

XenClient Enterprise 4.5Engine Disks and Encryption

Copyright © 2013 CitrixPage 20

Encryption Setup

The following message is displayed when Engine sets up disk encryption. The encryption setup process should not be interrupted!

Initial Encryption Setup•Encryption is not initially setup when the Engine is installed.•A password is required to setup encryption.•Encryption setup is delayed:

• Until the computer is registered to Synchronizer.• Or when a local password is set for unregistered computers.

Subsequent Encryption Setup•Encryption setup also happens when the user’s Active Directory password changes.•This is to keep disk encryption in sync with Active Directory passwords.

Page 21: Engine Disks and Encryption

XenClient Enterprise 4.5Engine Disks and Encryption

Copyright © 2013 CitrixPage 21

Password Validation After Encryption Unlock

User provides password to Engine.

Engine unlocks encryption and completes the boot process. Password is encrypted and cached in memory.

Engine sends the encrypted password to Synchronizer for validation. For local users, Synchronizer can validate the password directly.

For domain users, Synchronizer validates the password with Active Directory.

Synchronizer

password

Engine

password

AD

password

The Engine never communicates directly with Active Directory. Any operations that require Active Directory go through the Synchronizer.

Page 22: Engine Disks and Encryption

XenClient Enterprise 4.5Engine Disks and Encryption

Copyright © 2013 CitrixPage 22

Resetting Encryption Passwords

22

At the end of this process, the AD password, the Engine password cache, and the encryption unlock password are all synchronized.

If the encryption unlock password validation fails, the following process is used to synchronize the password between Engine and Synchronizer or Active Directory.

New password is validated, password cache is updated, and encryption is setup with the new password.

The user is prompted to enter a new password.

Active Directory password validation fails.

AD

password

Or validation of a local password fails at the Synchronizer.

Synchronizer

password

Engine clears the password cache.

Engine

password

Engine

password

Page 23: Engine Disks and Encryption

XenClient Enterprise 4.5Engine Disks and Encryption

Copyright © 2013 CitrixPage 23

User Prompt To Change Encryption Password

23

If the password validation process fails because of an invalid password:

•Engine will lock the computer screen.•A message is displayed indicating the password has changed.•User must enter credentials which are validated with Synchronizer.•After validation, the new password is used to setup encryption.•When the computer reboots, use the new password to unlock encryption.

Page 24: Engine Disks and Encryption

XenClient Enterprise 4.5Engine Disks and Encryption

Copyright © 2013 CitrixPage 24

Unlock Password vs. Active Directory Password

Password for Encryption UnlockThe password used to unlock encryption must be the same password that was last used to setup encryption. No other password will work. But an unlock code is available at the Synchronizer if the password is lost or forgotten.

Encryption Password vs. Active Directory PasswordUsually the encryption unlock password will be the same as the Active Directory password for the registered user. But they can get out of sync. This usually happens when the Active Directory password changes while the Engine is offline.

Current Password vs. Previous PasswordIf the encryption unlock password gets out of sync with the Active Directory password, it might be necessary to provide the previous password to unlock encryption. If the previous password is lost or forgotten, use the unlock code from the Synchronizer.

Page 25: Engine Disks and Encryption

XenClient Enterprise 4.5Engine Disks and Encryption

Copyright © 2013 CitrixPage 25

Encryption and Networking

Networking Status During Encrypted BootDuring encrypted boot, networking is not available until after encryption is unlocked. Engine network configuration data is stored in the encrypted volumes, so it cannot be accessed until after the volumes are unlocked.

Networking Status at Encryption Unlock ScreenWhen the computer has booted to the encryption unlock screen, there is no networking available. The password provided by the user cannot be validated with Synchronizer or Active Directory until later in the boot process, after the encrypted volumes are unlocked.

Password Validation for Encryption UnlockIt is not necessary for the Engine to validate the unlock password with Synchronizer or Active Directory. If the password can be used to unlock the encrypted volumes, then it must be correct.

Remote Access to Encrypted ComputersIf you are managing an encrypted computer with the VNC remote helpdesk feature, be careful about rebooting the computer. When the computer reboots, it will pause at the encryption unlock screen until the password is entered. There is no networking available at this stage so the VNC remote helpdesk feature cannot be used to connect to the computer and unlock encryption.

Page 26: Engine Disks and Encryption

XenClient Enterprise 4.5Engine Disks and Encryption

Copyright © 2013 CitrixPage 26

Synchronizer Unlock Code

26

The Synchronizer stores an alternate key for each encrypted computer that can be used to unlock encryption on the computer if the user forgets the password, or if an administrator is required to unlock a computer and the user is not available.

To request the unlock code from Synchronizer, select the computer in the navigation panel then click the “Unlock Code” action button. Only administrators with the “Super User” role should have access to this feature.

Page 27: Engine Disks and Encryption

XenClient Enterprise 4.5Engine Disks and Encryption

Copyright © 2013 CitrixPage 27

Encryption Lockout

• User has 4 attempts to unlock encryption.

• After the 4th unsuccessful unlock attempt:

• The computer will pause for 30 seconds.

• Then the computer will reboot.

• The unlock count is reset after reboot.

• The user is never permanently locked out.

Page 28: Engine Disks and Encryption

Computer Storage Report

Page 29: Engine Disks and Encryption

XenClient Enterprise 4.5Engine Disks and Encryption

Copyright © 2013 CitrixPage 29

Computer Storage Report

A summary of disk space and disk usage for a computer is available in the Synchronizer console. Select the computer in the navigation panel then click the “Storage” tab.

Page 30: Engine Disks and Encryption

XenClient Enterprise 4.5Engine Disks and Encryption

Copyright © 2013 CitrixPage 30

Computer Storage Report Results

A sample computer storage report is shown below. This report only reflects VMs deployed from Synchronizer. Local VMs are not included in the report.

Page 31: Engine Disks and Encryption

XenClient Enterprise 4.5Engine Disks and Encryption

Copyright © 2013 CitrixPage 31

Total Space

• Equal to the size of the volume group containing the Engine logical volumes.

• Nearly equal to the size of the disk partition containing the Engine installation.

• Nearly equal to the entire disk size for installations using the entire disk.

Page 32: Engine Disks and Encryption

XenClient Enterprise 4.5Engine Disks and Encryption

Copyright © 2013 CitrixPage 32

Engine Space

• Amount of disk space currently being used (or reserved for future use) by the Engine.• Including the Dock, but not including any other VMs.

• Usually around 10 GB.• Could be larger if the Dock is used in a way that causes its VHD files to grow.• For example, downloading files in the Chrome browser, or writing data to the Dock file share.

Page 33: Engine Disks and Encryption

XenClient Enterprise 4.5Engine Disks and Encryption

Copyright © 2013 CitrixPage 33

Virtual Machines Space

• About equal to “Total Space” minus “Engine Space”.

• Represents the total space available within the repository volume for VMs.• Not including the Dock VHD files (they are part of Engine Space).

• Calculated as follows:• Start with the total capacity of the repository volume,• Then subtract about 1.5 GB reserved for use by the Engine,• Then subtract the size of the Dock VHD files.

Page 34: Engine Disks and Encryption

XenClient Enterprise 4.5Engine Disks and Encryption

Copyright © 2013 CitrixPage 34

VM Space Used

VM Space Used•Actual amount of disk space currently being used by the disk within the repository volume.•For disks with multiple VHD files, this is the total size of all VHD files for the disk.

Percent of VM Space Used•This is “VM Space Used” expressed as a percentage of “Virtual Machine Space”.

These Numbers Might Be Larger Than Expected!•Might be much larger than what the VM reports as space used within the virtual disk.•Could even be larger than the logical size of the virtual disk.

• If this happens to a system disk:• Synchronizer might have many versions of a VM image outstanding.• Check to see if VM image versions can be rolled up.

• If this happens to a user disk:• Engine might have pending backups that cannot be uploaded.• Check for a network or storage issue that might be preventing backups.

Page 35: Engine Disks and Encryption

XenClient Enterprise 4.5Engine Disks and Encryption

Copyright © 2013 CitrixPage 35

Additional VM Space Required for Growth

Additional VM Space Required for Growth•VHD files start out very small and grow as data is written into them.

•This column reflects the additional space that would be used if the VHD files were to grow to maximum size.

•These numbers are used to determine if the hard disk is over-subscribed or under-subscribed.

Page 36: Engine Disks and Encryption

XenClient Enterprise 4.5Engine Disks and Encryption

Copyright © 2013 CitrixPage 36

Summary Results

Total current size of all VHD files for all VMs.

Current amount of free disk space available for new VMs or VM growth.

Total extra space that would be used if all VHD files grew to maximum size.

Indication of whether the disk is over-subscribed or under-subscribed. Keep the disk under-subscribed to avoid running out of disk space because of VHD growth.

Page 37: Engine Disks and Encryption

XenClient Enterprise 4.5Engine Disks and Encryption

Copyright © 2013 CitrixPage 37

Example of VHD Growth With 30 GB Local Disk

Disk space reporting in the VM is not a reliable indicator of how much disk space is actually being used for the VM within the Engine.

Initial VM Installation Local Disk Fills Up After Local Disk Cleanup

The local disk in the Windows VM is almost completely empty.

The user has written data to the local disk, causing it to fill up.

After disk cleanup, Windows reports significant free space available.

The VHD file has expanded to contain the data written to the local disk by the Windows VM.

The VHD file is still large. VHD files start small, and grow as required to a maximum size, but never get smaller.

The VHD file for the local disk begins much smaller than the 30 GB logical size. VHD files start small and grow as required.