VM import

From ISPWiki
Jump to: navigation, search

The "VM module" module can be used for importing virtual machines from a remote cluster running VMmanager. From a technical point of view, this process includes creation of a new virtual machine on the target server (with parameters that describe that virtual machine) + copying a disk. Make sure you can login as root to the master node of the remote cluster. Every remote cluster node should be assigned an external IP address enabling the master to access it.


Module «VM import»
T-bullet.gif View a list of servers
T-new.png Add server
T-delete.png Delete server
T-servers.png List of virtual machines on the server

View a list of servers

  • Id - unique identifier in the database.
  • IP address - server IP address.
  • Number of VM - number of virtual machines on the remote cluster.
  • Imported - number of imported virtual machines.
  • Import error - number of errors occurred while importing virtual machines.

Add server

To add a server with libvirt or VMmanager, click the "Add" icon and fill out the form:

«VM import»
  • IP address - enter the IP address of the server running libvirt or VMmanager.
  • Public key - enter the public ssh key that will be put into into /root/.ssh/authorized_keys of the server you want to add.
  • SSH username - enter the username to access via SSH.
  • SSH port - enter the port number to access via SSH.
  • Server type - server with libvirt or VMmanager.
  • Path to VMmanager - path to the directory where VMmanager is installed.

Have user password Enter the user password, if any, and the key will be added to the server.

  • IP address - enter the IP address of the server running libvirt or VMmanager.
  • SSH username - enter the username to access via SSH.
  • Password - enter the user password.
  • SSH port - enter the port number to access via SSH.
  • Server type - server with libvirt or VMmanager.
  • Path to VMmanager - path to the directory where VMmanager is installed.

Note: "Import from libvirt" cannot be used for searching and creating virtual machines that were created on the same server via visrh create (i.e. not through VMmaanger).

Delete server

To delete a server, select it from the list and click the "Delete" icon. Confirm that you wish to delete the server by clicking OK on the following form.

Import restrictions

  1. You cannot import a virtual machine, if it's disk is located in a network storage connected to two VMmanager, as the disk already exists in the storage.
  2. When you import a virtual machine between two Vmmanager with network storages, do not give them the same names, otherwise disk check will fail.