diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..c419263 --- /dev/null +++ b/_config.yml @@ -0,0 +1 @@ +theme: jekyll-theme-cayman \ No newline at end of file diff --git a/computes/templates/overview.html b/computes/templates/overview.html index 8bfad6e..34e68c5 100644 --- a/computes/templates/overview.html +++ b/computes/templates/overview.html @@ -34,7 +34,8 @@
{% trans "Hostname" %}
-{% trans "Hypervisor" %}
+{% trans "Hypervisors" %}
+{% trans "Emulator" %}
{% trans "Memory" %}
{% trans "Architecture" %}
{% trans "Logical CPUs" %}
@@ -44,7 +45,14 @@{{ hostname }}
-{{ hypervisor }}
+{% for arch, hpv in hypervisor.items %} + + {{ arch }} + {% for h in hpv %} + {{ h }}{% endfor %} + {% endfor %} +
+{{ emulator }}
{{ host_memory|filesizeformat }}
{{ host_arch }}
{{ logical_cpu }}
diff --git a/computes/views.py b/computes/views.py index 8bea447..18ad680 100644 --- a/computes/views.py +++ b/computes/views.py @@ -156,6 +156,7 @@ def overview(request, compute_id): hostname, host_arch, host_memory, logical_cpu, model_cpu, uri_conn = conn.get_node_info() hypervisor = conn.hypervisor_type() mem_usage = conn.get_memory_usage() + emulator = conn.emulator() conn.close() except libvirtError as lib_err: error_messages.append(lib_err) diff --git a/create/forms.py b/create/forms.py index fccf944..0f208ce 100644 --- a/create/forms.py +++ b/create/forms.py @@ -2,6 +2,7 @@ import re from django import forms from django.utils.translation import ugettext_lazy as _ from create.models import Flavor +from webvirtcloud.settings import QEMU_CONSOLE_LISTEN_ADDRESSES class FlavorAddForm(forms.Form): @@ -45,6 +46,9 @@ class NewVMForm(forms.Form): meta_prealloc = forms.BooleanField(required=False) virtio = forms.BooleanField(required=False) mac = forms.CharField(required=False) + console_pass = forms.CharField(required=False,empty_value="", widget=forms.PasswordInput()) + video = forms.CharField(error_messages={'required': _('Please select a graphic display')}) + listener_addr = forms.ChoiceField(required=True, widget=forms.RadioSelect, choices=QEMU_CONSOLE_LISTEN_ADDRESSES) def clean_name(self): name = self.cleaned_data['name'] @@ -54,3 +58,4 @@ class NewVMForm(forms.Form): elif len(name) > 20: raise forms.ValidationError(_('The name of the virtual machine must not exceed 20 characters')) return name + diff --git a/create/templates/create_instance.html b/create/templates/create_instance.html index 42f18aa..88b5fbe 100644 --- a/create/templates/create_instance.html +++ b/create/templates/create_instance.html @@ -14,8 +14,8 @@