Using Folders

A folder is a container that you can use to group any managed resources in whatever manner makes sense for your environment; for example, you might create a folder for each branch office in your organization. Folders can contain any type of resource from anywhere in your XenServer environment. Resources can be accessed independently of the folder in which they are referenced.

The organization of folders in XenCenter is conceptual, not physical. The resources are not physically located in the folder, therefore, you can place resources into folders independently of their physical location. For example, placing a VM into a folder does not place its host server in the folder as well; placing a server into a folder does not place all the VMs and storage resources on that server into the folder as well.

Folders can also be used in search queries, for example, you can search by folder, with a contained in / not contained in relation and a drop down hierarchy of folders. See Create a Search Query.

The folder in which a resource is currently located is shown on the resource’s General tab and in its Properties dialog box, so you can see folder information for a resource at all times. You can also move a resource into a different folder or remove it from a folder from the General tab.

To create a new folder

The simplest way to create a new folder is through Resources pane. Click Organization Views in the Navigation pane, and then select Objects by Folder. In the Resources pane, click on the Folders group, right-click, and select New Folder from the shortcut menu. Type a name for the new folder, select the server where your folder metadata will be stored, and then click Create.

You can also create new folders from the General tab for any resource:

  1. In the Resources pane, select a pool, server, SR, virtual machine, or template, then click on the General tab and click Properties.
  2. On the General tab of the Properties dialog box, click Change in the Folder box.
  3. In the Change Folder dialog box, click In this folder button and then click New Folder.
  4. Type a name for the new folder and select the server where your folder metadata will be stored, then click Create.
  5. Click Move to apply the change and click OK on the Properties dialog box.

To move resources into and out of folders

The simplest way to move a resource into a folder is by dragging it from within the Resources pane or from the Search tab and dropping it onto the folder. Resources can only be in one folder, so if the resource is already in another folder it will be moved when you drag and drop in onto a different folder.

You can also move a resource into a different folder or remove it from a folder from the General tab:

  1. In the Resources pane, select the pool, server, SR, virtual machine, or template you want to place in a folder, then click on the General tab and click Properties.
  2. On the General tab of the Properties dialog box, click Change in the Folder box.
  3. To remove the resource from its current folder, select Not in any folder.
  4. To move the resource into a different folder, select In this folder and choose a folder or a subfolder from the list.
  5. To place the resource in a new folder, click New Folder , type a name for the new folder and select the server where your folder metadata will be stored, and then click Create.
  6. Click Move to apply the change and click OK on the Properties dialog box.

To rename a folder

  1. In the Resources pane, select the folder then right-click and select Rename Folder on the shortcut menu.
  2. Type the new name.

To delete a folder

Note that you won’t actually delete the resources in the folder when you delete the folder: they will be returned to the general collection.

  1. In the Resources pane, select the folder, then right-click and select Delete Folder on the shortcut menu.
  2. Click Yes to confirm.

All the contents will be moved out of the folder and then the folder will be deleted.