> ## Documentation Index
> Fetch the complete documentation index at: https://docs.levelblue.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create the Hyper-V Virtual Machine

The first tasks in deploying the Microsoft Hyper-V Sensor are to create, configure, and start the virtual machine (VM) using either the Microsoft System Center Virtual Machine Manager (SCVMM) 2012 or Microsoft Hyper-V Manager. Before you begin these tasks, download the Hyper-V Sensor package from LevelBlue.

**To download the Hyper-V package**

1. Go to the [USM Anywhere Sensor Downloads](https://www.levelblue.com/products/usm-anywhere/sensor-downloads) page and click the  icon of your specific sensor. After clicking, your browser starts to download the USM Anywhere Sensor package. Depending on your Internet connection, the download can take 30 minutes or more.
2. Extract the USM Anywhere Sensor package and place the files where they are accessible from your Hyper-V management tool.

## Create the VM with SCVMM 2012

Follow these procedures to create and start the VM using SCVMM 2012.

<AccordionGroup>
  <Accordion title="Creating the VM">
    **To create a VM with SCVMM 2012**

    1. Connect to the SCVMM 2012.
    2. Select **Library > VM Templates**.
    3. Select the LevelBlue VM template under VM Templates, and then click **Create Virtual Machine**.

           <Frame>
             <img src="https://mintcdn.com/levelblue-5324744e/gquiOMNhzY0zw0n7/images/usm-anywhere/deployment-guide/hyperv/createvirtualmachine_525x346.webp?fit=max&auto=format&n=gquiOMNhzY0zw0n7&q=85&s=9c555405e8abf8885a7a5e6f09c9f712" alt="" width="525" height="346" data-path="images/usm-anywhere/deployment-guide/hyperv/createvirtualmachine_525x346.webp" />
           </Frame>
    4. Enter a name for the VM, and then click **Next**.
    5. In Configure Hardware, click **Next**.
    6. In Select Destination, choose whether to deploy or store the VM, and then click **Next**.
    7. In Select Host, select a destination for the VM, and then click **Next**.
    8. In Configure Settings, review the VM settings, and then click **Next**.
    9. In Add Properties, change the automatic actions if necessary, and then click **Next**.
    10. In Summary, confirm the settings and then click **Next**.

        The Jobs window opens and shows the VM being created.

            <Frame>
              <img src="https://mintcdn.com/levelblue-5324744e/gquiOMNhzY0zw0n7/images/usm-anywhere/deployment-guide/hyperv/jobsvmcreated_525x180.webp?fit=max&auto=format&n=gquiOMNhzY0zw0n7&q=85&s=35a200299274f39594b15ffe489f9990" alt="" width="525" height="180" data-path="images/usm-anywhere/deployment-guide/hyperv/jobsvmcreated_525x180.webp" />
            </Frame>

    After the VM is created, you can close the window.
  </Accordion>

  <Accordion title="Starting the VM">
    **To start the VM and connect**

    1. Right-click the VM and select **Power On**.

       This process could take a few minutes. The Virtual Machine State will display as Running when this is complete.
    2. Right-click the VM and select **Connect or View > Connect via Console**.

           <Frame>
             <img src="https://mintcdn.com/levelblue-5324744e/gquiOMNhzY0zw0n7/images/usm-anywhere/deployment-guide/hyperv/connectviaconsole.webp?fit=max&auto=format&n=gquiOMNhzY0zw0n7&q=85&s=34ec9e2ab984e7556c222a389fc1e2ca" alt="" width="1078" height="759" data-path="images/usm-anywhere/deployment-guide/hyperv/connectviaconsole.webp" />
           </Frame>

       Use the information in the Welcome screen to log in to the sensor. This screen also displays the URL you can use to access USM Anywhere and register the sensor.
  </Accordion>
</AccordionGroup>

## Create the VM with Hyper-V Manager

Follow these procedures to create and start the VM using Hyper-V Manager.

<AccordionGroup>
  <Accordion title="Creating the VM">
    **To create a new VM with Hyper-V Manager**

    1. Open the Hyper-V Manager and connect to the server.
    2. From the Actions panel, go to **New > Virtual Machine**.

       The New Virtual Machine Wizard launches.
    3. Click **Next**.
    4. In Specify Name and Location, enter a name for the new VM, and then click Next.

           <Frame>
             <img src="https://mintcdn.com/levelblue-5324744e/gquiOMNhzY0zw0n7/images/usm-anywhere/deployment-guide/hyperv/managerspecifynamelocation_525x254.webp?fit=max&auto=format&n=gquiOMNhzY0zw0n7&q=85&s=6b7c850c24ce8dbe0aeadd60ab68c8cd" alt="" width="525" height="254" data-path="images/usm-anywhere/deployment-guide/hyperv/managerspecifynamelocation_525x254.webp" />
           </Frame>
    5. In Specify Generation, choose **Generation 1** for the virtual machine, and then click **Next**.
    6. In Assign Memory, change the value of the Startup memory to **12288 MB**.

           <Warning>
             **Important:** Make sure that the Use Dynamic Memory option is not selected.
           </Warning>

       Click **Next** when complete.

           <Frame>
             <img src="https://mintcdn.com/levelblue-5324744e/gquiOMNhzY0zw0n7/images/usm-anywhere/deployment-guide/hyperv/managerassignmemory.png?fit=max&auto=format&n=gquiOMNhzY0zw0n7&q=85&s=e586f59d391a113c6afe99b2420e6649" alt="" width="706" height="314" data-path="images/usm-anywhere/deployment-guide/hyperv/managerassignmemory.png" />
           </Frame>
    7. In Configure Networking, connect the new VM to the desired network, and then click **Next**.
    8. In Connect Virtual Hard Disk, select **Use an existing virtual hard disk**, and then click **Browse** to locate the usm-os-disk.vhd file that was extracted from the USM Anywhere Sensor package download.

           <Note>
             **Note:** You will add the data disk later in another step because the wizard doesn't support this.
           </Note>

           <Frame>
             <img src="https://mintcdn.com/levelblue-5324744e/gquiOMNhzY0zw0n7/images/usm-anywhere/deployment-guide/hyperv/managerconnectharddisk.png?fit=max&auto=format&n=gquiOMNhzY0zw0n7&q=85&s=b3dc96d1ab62d66f55060b1ec984ad19" alt="" width="704" height="533" data-path="images/usm-anywhere/deployment-guide/hyperv/managerconnectharddisk.png" />
           </Frame>
    9. In Complete the New Virtual Machine Wizard, click **Next** and then **Finish**.
  </Accordion>

  <Accordion title="Configuring the VM">
    **To configure a VM using the Hyper-V Manager**

    1. Select the VM you previously created, and then select **Action > Settings**.
    2. In the left navigation menu of the dialog box, select **Processor**, and then set the number of virtual processors to **4**.

           <Frame>
             <img src="https://mintcdn.com/levelblue-5324744e/gquiOMNhzY0zw0n7/images/usm-anywhere/deployment-guide/hyperv/processors.webp?fit=max&auto=format&n=gquiOMNhzY0zw0n7&q=85&s=3a68b0cd1c93023a65c03d294e895c09" alt="" width="724" height="491" data-path="images/usm-anywhere/deployment-guide/hyperv/processors.webp" />
           </Frame>
    3. Click **Apply**.
    4. In the left navigation menu, select **IDE Controller 0**.
    5. Select **Hard Drive**, click **Add**, and then click **Browse** to locate the `usm-data-disk.vhdx` file that was part of the USM Anywhere Sensor download.

           <Frame>
             <img src="https://mintcdn.com/levelblue-5324744e/gquiOMNhzY0zw0n7/images/usm-anywhere/deployment-guide/hyperv/hd-disk.png?fit=max&auto=format&n=gquiOMNhzY0zw0n7&q=85&s=d071ebc7f41ab055c9c55da8ef940b29" alt="" width="724" height="520" data-path="images/usm-anywhere/deployment-guide/hyperv/hd-disk.png" />
           </Frame>
    6. In the top-left corner of the dialog box, click **Add Hardware**, and then select **Network Adapter > Add** to add additional network adapters.

           <Frame>
             <img src="https://mintcdn.com/levelblue-5324744e/gquiOMNhzY0zw0n7/images/usm-anywhere/deployment-guide/hyperv/network-adapters-add.png?fit=max&auto=format&n=gquiOMNhzY0zw0n7&q=85&s=34b3a8e96a856a42dd60a326b64d7c97" alt="" width="724" height="319" data-path="images/usm-anywhere/deployment-guide/hyperv/network-adapters-add.png" />
           </Frame>

       Repeat this function so that you have a total of five network adapters.

           <Danger>
             **Warning:** The Hyper-V Sensor requires \*all five network interface cards (NICs) \*to be enabled; otherwise, the USM Anywhere update will fail. The NICs can remain disconnected.

             See [Configure Network Interfaces for On-Premises Sensors](../setup/configuring-network) for more information about these interfaces.
           </Danger>

           <Frame>
             <img src="https://mintcdn.com/levelblue-5324744e/gquiOMNhzY0zw0n7/images/usm-anywhere/deployment-guide/hyperv/network-adapters.png?fit=max&auto=format&n=gquiOMNhzY0zw0n7&q=85&s=72d1b227468e97111014e27161c46448" alt="" width="724" height="586" data-path="images/usm-anywhere/deployment-guide/hyperv/network-adapters.png" />
           </Frame>
    7. Click **OK**.
    8. Configure the ISO file for the datastore.

           <Danger>
             **Warning:** You must complete this step and ensure that the ISO is mounted before you start the sensor VM for the first time.

             If you see REPLACEME as the initial login password in the sensor welcome screen when you connect to the VM, it is most likely that the ISO was not mounted before the sensor was started. If this happens, you must shut down the VM, complete this step so that the ISO is configured for the datastore, and then begin the deployment process anew.
           </Danger>

       * Select **IDE Controller 1 > DVD Drive**.
       * Select **Image file**, and then click **Browse** to locate the deploy\_config.iso image file that was extracted from the USM Anywhere Sensor package download.
       * Click **Apply**.

           <Frame>
             <img src="https://mintcdn.com/levelblue-5324744e/gquiOMNhzY0zw0n7/images/usm-anywhere/deployment-guide/hyperv/legacy-network-adapters.webp?fit=max&auto=format&n=gquiOMNhzY0zw0n7&q=85&s=b22d0afc58f1d80e0c90738478f2b986" alt="" width="709" height="654" data-path="images/usm-anywhere/deployment-guide/hyperv/legacy-network-adapters.webp" />
           </Frame>
    9. Click **OK** and close the dialog box.
  </Accordion>

  <Accordion title="Starting the VM">
    **To start the VM and connect**

    1. Select the VM and select **Action > Start**.

       This process can take a few minutes. The status displays as Running when this is complete.
    2. Select your VM and select **Action > Connect**.

       Use the information in the Welcome screen to log in to the sensor. This screen also displays the URL you can use to access USM Anywhere and register the sensor.
  </Accordion>
</AccordionGroup>

See [Set Up USM Anywhere on the Hyper-V Virtual Machine](hyperv-vm-sensor)
