Citrix

Produktdokumentation



Ganzes Dokument herunterladen

Hyper-V

Dec. 08, 2016

This topic provides an example of how to set up a Hyper-V virtual machine (along with the machine on which AppDNA runs) for use with Install Capture when migrating from Windows XP to Windows 8.1. This example shows one possible approach and is not meant to suggest that this is the only method. For the generic setup requirements, see Set up a virtual machine.

Pre-requisites

  • Either Hyper-V Server is configured on a separate machine from the one on which AppDNA is running or Windows 8 Hyper-V Client and the AppDNA client are installed on the same Windows 8 machine.
  • A Hyper-V virtual machine with a clean build of Microsoft Windows XP SP2 or SP3 already exists for use with Install Capture. For information about creating a Hyper-V virtual machine, refer to the Hyper-V documentation.
  • The virtual machine is connected to the same domain as the machine on which you are running AppDNA (called the AppDNA machine).
  • If you are using Hyper-V Server, you know the IP address or DNS name of the Hyper-V host server and have the user name and password of an administrative user account that has permissions to access Hyper-V and control the virtual machine. Alternatively, if you are using Hyper-V Client, your own Windows log on account must have administrative permissions to access Hyper-V and control the virtual machine.

    The user account must be part of the Administrators or Hyper-V Administrators group on the Hyper-V machine. Alternatively, the user account can be granted explicit Hyper-V permissions to control virtual machines, as described in this MSDN article.

  • You have the user name and password of an administrative user account for the guest operating system.

In order for the virtual machine to access the shared folder on the AppDNA machine, this example configures the virtual machine for automatic log on with the same domain user account that you use to log on to Windows on the AppDNA machine. (This is called your domain user account below.)

Note: These instructions cover setting up the virtual machine after opening it in a console through Hyper-V Manager. If you do not have access to this, you must ask your Hyper-V administrator to install the Hyper-V Integration Services on the virtual machine and configure it to allow remote desktop connections. You can perform all of the other setup steps when you work through the AppDNA Virtual Machine Configuration wizard, which is documented in the next topic. (The wizard opens the virtual machine in a console.)

Use Hyper-V Manager to open the VM

This section provides instructions for using Hyper-V Manager to open the virtual machine in a console so that you can set up the virtual machine.

  1. On the Windows Start menu, choose Administrative Tools > Hyper-V Manager.
  2. In the tree in the left pane, select the Hyper-V server on which the virtual machine is hosted. The virtual machines that are hosted on that Hyper-V host appear in the Virtual Machines list.
  3. Right-click the virtual machine that you want to use for Install Capture and choose Connect.
  4. If the virtual machine is not running, choose Action > Start.
  5. When prompted, log on to the virtual machine using an administrative user account.

You are now ready to perform the virtual machine setup tasks that are described below.

Install Hyper-V Integration Services on the VM

In order to use a Hyper-V Windows XP virtual machine for Install Capture, it must have the Hyper-V Integration Services installed on it. If you do not have access to Hyper-V Manager, ask your Hyper-V administrator to perform this step for you.

Note: The Hyper-V Integration Services are always required when the guest OS is Windows XP or when you are using Windows 8 Hyper-V Client. They may also be required in some other configurations.
  1. In Hyper-V Manager, open the virtual machine and log on to it using an administrative user account.
  2. From the menus in the console window, choose Action > Insert Integration Services Setup Disk.
  3. In the AutoPlay window, select Install Hyper-V Integration Services. This starts the installation of the Hyper-V Integration Services.
  4. When the installation is complete, restart the virtual machine.

Configure the VM to allow remote desktop connections

In order to use the Hyper-V virtual machine for Install Capture, it must be configured to allow remote desktop connections. If you do not have access to Hyper-V Manager, ask your Hyper-V administrator to perform this step for you.

  1. Log on to the virtual machine.
  2. Open Control Panel > System. (If necessary, first switch to Classic View.)
  3. In the System Properties dialog box, click the Remote tab.
  4. Under Remote Desktop, select the Allow users to connect remotely to this computer check box.
  5. Click OK to preserve your changes.

Enable DCOM on the VM

Communication between the Hyper-V host and the VM requires that DCOM is enabled on the VM. To enable DCOM, see Enable or Disable DCOM. Also verify that port 135 is open for DCOM.

Create the shared folder on the AppDNA machine

These instructions describe how to create a folder on the AppDNA machine and share it so that the virtual machine can read and write to it.

  1. Create a folder (for example, C:\AppDNAOutput) on the AppDNA machine to store the Install Capture output.
  2. Share the folder and give everyone read and write permissions. For example:
    1. Open Windows Explorer and locate the folder that you want to share.
    2. Right-click the folder and from the shortcut menu, choose Sharing > Advanced Sharing.
    3. Click Advanced Sharing and then in the Advanced Sharing dialog box, select the Share this folder check box.
    4. Click Permissions.
    5. In the Permissions dialog box, click Everyone, and then for Full Control, Change, and Read, select the Allow check box.
    6. Click OK twice.
Note: The virtual machine also needs access to the location of the input files. To use an existing shared folder that contains the applications deployed within your organization, ensure that it is accessible from within the virtual machine. Otherwise you can either store these input files in the same folder as the output, or you can create a separate shared folder for the input files. In all cases the virtual machine must have read access to the input files.

Add your domain user account as an administrator on the VM

Note: It is not necessary to perform this step if your domain user account has already been set up as an administrative user on the virtual machine.
  1. Log on to the virtual machine.
  2. Open Control Panel > Administrative Tools > Computer Management. (If necessary, first switch to Classic View.)
  3. In the tree in the left pane, click System Tools > Local Users and Groups > Groups.
  4. In the right pane, double-click Administrators.
  5. In the Administrators Properties dialog box, click Add.
  6. In the Select Users, Computers, or Groups dialog box, enter your domain-qualified username (for example, Domain\User) in the Enter the object names to select box.
  7. Click OK to close the Select Users, Computers, or Groups dialog box.
  8. Click OK to close the Administrators Properties dialog box.

Configure the virtual machine for automatic log on

This is an optional step that speeds up Install Capture. If you choose not to perform this step, you will need to log on to the virtual machine manually with your domain user account every time the virtual machine starts up.

On the virtual machine, follow the instructions in http://support.microsoft.com/kb/315231 to set up automatic log on with your domain username.

Turn off simple file sharing on the AppDNA and virtual machines

Carry out the following steps on both the AppDNA machine and the virtual machine.

  1. In Windows Explorer, from the menus choose Tools > Folder Options. (On Windows 8.1, from the Windows Explorer Organize menu, choose Folder and Search Options.)
  2. In the Folder Options dialog box, click the View tab.
  3. Clear the Use simple file sharing (Recommended) check box. (For Windows 8.1, clear the Use Sharing Wizard (Recommended) check box.)
  4. Click OK.

Anti-virus configuration on the AppDNA machine

You must configure the anti-virus software on the AppDNA machine to disable on-access scanning of the Install Capture output and input folders. For example, for Norton Anti-Virus, you disable the auto-protect option for the AppDNA output and input folders.

Verify access to the shared folder

You now need to check that the virtual machine can access the shared folder that you created earlier on the AppDNA machine.

On the virtual machine, type the following into the Windows Start > Run prompt:
\\<AppDNA machine name>\AppDNAOutput

Where <AppDNA machine name> is the name of the AppDNA machine.

If this opens the shared folder on the AppDNA machine, it verifies that the virtual machine can access it. For troubleshooting tips, see Troubleshooting Access to a Shared Folder from the Virtual Machine.

Install the AppDNA VM Configuration MSI on the virtual machine

To do this, you need the installer (called Citrix AppDNA VM Configuration.msi). This comes with AppDNA. It is copied into a Tools subfolder of the AppDNA installation folder when you install AppDNA. The default location is C:\Program Files\Citrix\AppDNA\Tools (C:\Program Files (x86)\Citrix\AppDNA\Tools on a 64-bit machine).

  1. Install the Citrix AppDNA VM Configuration MSI within the virtual machine, accepting the default file location.
  2. Restart the virtual machine.
Important: Ensure that the AppDNA VM Configuration MSI has the same version number as the version of AppDNA that you are using. This means that you need to upgrade the VM Configuration on the virtual machine when you upgrade AppDNA.

Configure AppDNA to run elevated

Note: This step is relevant only if you are using Windows 8 Hyper-V Client.

If you are using Windows 8 Hyper-V Client, you must run AppDNA to run as an administrator when interacting with the virtual machine – for example, when using the Virtual Machine Configuration wizard or running Install Capture.

You can configure AppDNA so that it is always run as an administrator as follows:

  1. If necessary, close AppDNA.
  2. In Windows Explorer, locate the main AppDNA executable (called appTitude.exe). The following table shows the default location of this file.
    Machine type Default location
    32-bit C:\Program Files\Citrix\AppDNA\Client
    64-bit C:\Program Files (x86)\Citrix\AppDNA\Client
  3. Right-click the file and from the shortcut menu, choose Properties.
  4. Click the Compatibility tab.
  5. Under Privilege level, select the Run this program as an administrator check box.
  6. Click OK to save the changes.

Take a snapshot of the virtual machine

  1. Connect to the virtual machine in Hyper-V Manager.
  2. From the menus in the console, choose Action > Snapshot. In the Snapshot Name dialog box, enter a name for the snapshot, and then click Yes.

You are now ready to use the AppDNA Virtual Machine Configuration wizard to set up a virtual machine configuration for use with Install Capture. See Configure a Hyper-V VM for step-by-step instructions.

Back to Top