{% extends "base.html" %} {% load i18n %} {% load staticfiles %} {% block title %}{% trans "VMs" %} - {{ vname }}{% endblock %} {% block content %} {% include 'sidebar.html' %}
{% if errors %} {% for error in errors %}
{{ error }}
{% endfor %} {% endif %} {% if messages %} {% for message in messages %}
{{ message }}
{% endfor %} {% endif %}
{% trans "Name" %} {% trans "Status" %} {% trans "VCPUs" %} {% trans "Memory" %} {% trans "Description" %}
{{ vname }} {% if status %} {% trans "Saved" %} {% else %} "label label-danger">{% trans "Shutoff" %} {% endifequal %} {% endifequal %} {% ifequal status 1 %}"label label-success">{% trans "Running" %}{% endifequal %} {% ifequal status 3 %}"label label-warning">{% trans "Suspend" %}{% endifequal %} {% else %} {% trans "None" %} {% endif %} {% if cur_vcpu %}{{ cur_vcpu }}{% else %}{{ vcpu }}{% endif %} {{ cur_memory }}{% trans "MB" %} {{ description }}

{% ifequal status 5 %}

{% trans "Click on Start button to start this instance." %}

{% else %}

{% trans "This action sends an ACPI shutdown signal to the instance." %}

{% endifequal %}
{% csrf_token %} {% ifequal status 5 %} {% endifequal %} {% ifequal status 1 %} {% endifequal %} {% ifequal status 3 %} {% endifequal %}
{% ifnotequal status 5 %}

{% trans "This action forcibly powers off the instance and may cause data corruption." %}

{% csrf_token %} {% ifequal status 1 %} {% endifequal %} {% ifequal status 3 %} {% endifequal %}

{% trans "This action suspends or restores the instance." %}

{% csrf_token %} {% ifequal status 1 %} {% endifequal %} {% ifequal status 3 %} {% endifequal %}
{% endifnotequal %} {% if status != 5 or has_managed_save_image == 1 %}

{% trans "This action saves the state of the instance." %}

{% csrf_token %} {% ifequal status 5 %} {% ifequal has_managed_save_image 1 %}
{% endifequal %} {% endifequal %} {% ifequal status 1 %} {% endifequal %} {% ifequal status 3 %} {% endifequal %}
{% endif %}

{% trans "This action opens a new window with a connection to the console of the instance." %}

{% ifequal status 5 %} {% else %} {% trans "Console" %} {% endifequal %}

{% trans "This action open new window with console Telnet connection to your instance." %}

{% ifequal status 5 %} {% else %} {% trans "Console" %} {% endifequal %}

{% trans "To set console's type, shutdown the instance." %}

{% csrf_token %}
{% ifequal status 5 %} {% else %} {% endifequal %}

{% trans "To create console password, shutdown the instance." %}

{% csrf_token %}
{% if console_passwd %} {% trans "Show" %} {% endif %}
{% ifequal status 5 %} {% else %} {% endifequal %}

{% trans "To set console's keymap, shutdown the instance." %}

{% csrf_token %}
{% ifequal status 5 %} {% else %} {% endifequal %}

{% trans "Description and Autostart" %}

{% csrf_token %}
{% ifequal autostart 0 %} {% else %} {% endifequal %}
{% csrf_token %}

{% trans "Logical host CPUs:" %} {{ vcpu_host }}

{% trans "Total host memory:" %} {{ memory_host|filesizeformat }}

{% trans "Custom value" %}
{% trans "Custom value" %}
{% ifequal status 5 %} {% else %} {% endifequal %}
{% csrf_token %} {% for cd in media %}
{% if not cd.image %}
{% if media_iso %} {% else %} {% endif %}
{% else %}

{{ cd.image }}

{% endif %}
{% endfor %}

{% trans "Network devices" %}

{% for network in networks %}

eth{{ forloop.counter0 }} ({{ network.nic }})

{% endfor %}
{% for network in networks %} {% if network.ip %}

{{ network.ip }}

{% else %}

{{ network.mac }}

{% endif %} {% endfor %}
{% ifequal compute.hypervisor 'qemu' %}

{% trans "Storage devices" %}

{% for disk in disks %}

{{ disk.dev }} ({{ disk.storage }})

{% endfor %}
{% for disk in disks %}

{{ disk.image }} ({{ disk.format }})

{% endfor %}
{% endifequal %}

{% trans "Create a clone" %}

{% csrf_token %}

{% trans "Network devices" %}

{% for network in networks %}
{% endfor %}

{% trans "Storage devices" %}

{% for disk in clone_disks %}
{% ifequal disk.format 'qcow2' %}
{% endifequal %}
{% endfor %} {% ifequal status 5 %} {% else %} {% endifequal %}
{% ifnotequal status 5 %}

{% trans "To edit XML the instance must be shutdown" %}

{% endifnotequal %}
{% csrf_token %}
{% ifequal status 5 %} {% else %} {% endifequal %}

{% trans "To take a snapshot, shutdown the instance." %}

{% csrf_token %}
{% ifequal status 5 %} {% else %} {% endifequal %}

{% trans "To revert to a snapshot, shutdown the instance" %}

{% if snapshots %} {% for snap in snapshots %} {% endfor %}
{% trans "Name" %} {% trans "Date" %} {% trans "Action" %}
{{ snap.name }} {{ snap.date|date:"M d H:i:s" }}
{% csrf_token %} {% ifequal status 5 %} {% else %} {% endifequal %}
{% csrf_token %}
{% else %}

{% trans "You do not have any snapshots" %}

{% endif %}

{% trans "CPU usage" %}

{% for network in networks %}

{% trans "Bandwidth" %} - Eth{{ forloop.counter0 }}

{% trans "In" %} {% trans "Out" %}
{% endfor %}
{% for disk in disks %}

{% trans "Disk I/O" %} - {{ disk.dev }}

{% trans "Read" %} {% trans "Write" %}
{% endfor %}

{% trans "Warning:" %} {% trans "Both host servers must have equal settings and OS type" %}


{% trans "Original host" %}

{{ compute.name }}

{% csrf_token %}
{% if computes_count != 1 %} {% else %} {% endif %}
{% ifequal compute.hypervisor 'qemu' %}

{% trans "Delete HDD image?" %}

{% else %}

{% trans "Warning:" %} {% trans "The container rootfs must be deleted manually." %} {% endifequal %}

{% csrf_token %} {% ifequal compute.hypervisor 'qemu' %}
{% endifequal %}
{% include 'sidebar_close.html' %} {% endblock %} {% block script %} {% endblock %}