5.4 Deploying a VM to the NAS Repository

The Network Attached Storage (NAS) Repository represents VMs stored in a NAS. This is a storage where VMs are visible to multiple VM Hosts, so they can be run by any one of the available hosts.

The following procedure shows an example of setting up a NAS Repository. For the example, assume you have a Xen setup where the directory /vms is auto-mounted on multiple VM hosts as the shared storage location for your VMs.

To deploy a VM to the NAS Repository:

  1. To create a new Repository object, go to the ZENworks Orchestrator Console, then click Actions > Create Repository.

  2. Specify a new name and choose which adapter group this Repository is used for.

    The example is for Xen VMs, so choose the xen30 adapter.

  3. Close the dialog box to display the Info/Groups tab for the new repository.

  4. Set the location path.

    This is the root path for the repository. It is usually /.

  5. Set the search path and preferred path.

    In this example, the vms are all in /vms, so leave searchpath empty and set the preferredpath == "vms".

  6. Select the VM Host objects that have visibility to the shared directory and add the new repository to the VM hosts list of available Repositories.

    To find a VM host, either go the VM Hosts view or open the Physical tree under Resources and open the physical host representing the VM host.

  7. Run Provision > Discover VM Images on the new Repository.