Testing Containers

Table of Contents

About Testing Containers

You can test a container to make sure that the appliance runs correctly. Testing a container may include testing container services, for example. Once you are satisfied that the container runs correctly, you can then move the appliance to the destination machine.

You can test an appliance on either the source machine or the destination machine.

Testing Requirements

If you are testing on the destination machine, make sure that the environment is configured to meet the configuration requirements of the application or service in the appliance. For more information, see your application documentation for system configuration requirements.

To avoid service conflicts where appliances with services from the source machine already exist on the destination, VirtaMove will display an error message and prevent the local service from starting. You must resolve this conflict by either removing the service from the destination or removing the service from the container.

Testing a Container

  1. At the command prompt, type the following:

    virtadock <container>

    container is the full path of the container that you want to dock.

  2. If the container contains services, type the following at the command prompt to start the services inside the container:

    virtarun <container> <ServiceName>
  3. At the command prompt, enter the following:

    virtarun <container> [“application”[“arguments”]]

    where container is the full path of the container;
    where application is the full path of the application to run;
    where arguments are argument parameters for the application.
    For example:

    virtarun C:\appliances\myNotepad C:\Windows\Notepad.exe

    If you omit the application to run, the container's startup application will run.

  4. Test the container application.

What If I Find Problems During Testing?

You can address testing issues by deleting a container and recreating the container, if necessary.

To Delete and Recreate a Container

  1. Undock the container using the https://virtamove.atlassian.net/wiki/spaces/VDOC/pages/314179902/virtaundock?search_id=694299b1-77bc-482c-8139-bf52ccbad36c command.

  2. Do one of the following:

    1. Create a backup copy of the container template. Delete the container and then make the necessary changes to the template and use the https://virtamove.atlassian.net/wiki/spaces/VDOC/pages/314212506/virtacreate?search_id=3a17681f-c526-4988-9929-b6be391d1232 /T command to recreate the container.

    2. Delete the container and start over.

  3. Dock, start the container's services (if required), and run the container to confirm the changes have been made.

You can repeat any of these actions as often as required until a container satisfies your requirements.