1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-03 17:36:05 +00:00

fix(instances): console changes that cannot be made are refused, not reported as done

A switch to the serial console removed the graphics device but kept a
serial console of another type, a TCP one say, which the browser does
not open; the audit log said the console type was set. The switch is now
refused, with nothing changed, unless the serial console is a pty one.

A listen address change of a console that listens on a network, a socket
or nowhere did nothing without a word. It is refused with the reason.

The .vv file pointed virt-viewer at "::" for a console on all IPv6
addresses; such a console is reached through the host, as one on
0.0.0.0.
This commit is contained in:
catborise 2026-11-13 22:32:00 +03:00
parent 88e7e0fa90
commit d6df6b1df4
11 changed files with 291 additions and 210 deletions

View file

@ -108,6 +108,11 @@ class ConsoleForm(forms.Form):
self.add_error("password", _("A VNC password takes up to 8 letters, digits or symbols, without accents.")) self.add_error("password", _("A VNC password takes up to 8 letters, digits or symbols, without accents."))
elif not password.isprintable(): # a SPICE password elif not password.isprintable(): # a SPICE password
self.add_error("password", _("A password takes no line breaks or other control characters.")) self.add_error("password", _("A password takes no line breaks or other control characters."))
# refused before anything is saved; a new console type gets an address listener
if ("listen_on" in self.changed_data and data.get("console_type") in ("", self.initial["console_type"])
and self.instance.proxy.get_console_listen_type(config=True) in ("network", "socket", "none")):
self.add_error("listen_on", _("The console listens on no address (on a network, a socket or nowhere); "
"change it in the XML editor"))
# A console that listens beyond localhost (set by an administrator) # A console that listens beyond localhost (set by an administrator)
# keeps its password unless an administrator removes it. # keeps its password unless an administrator removes it.
if action == "none" and not self.is_superuser and not self.instance.proxy.console_listens_locally(): if action == "none" and not self.is_superuser and not self.instance.proxy.console_listens_locally():

View file

@ -66,6 +66,12 @@ class CanOpenConsoleTestCase(TestCase):
# the VM found by its UUID; a console on all addresses is reached through the host # the VM found by its UUID; a console on all addresses is reached through the host
for line in (b"type=vnc", b"host=192.0.2.7", b"port=5900", b"title=cons-vm"): for line in (b"type=vnc", b"host=192.0.2.7", b"port=5900", b"title=cons-vm"):
self.assertIn(line + b"\n", res.content) self.assertIn(line + b"\n", res.content)
with patch("instances.models.wvmInstance") as wvm:
proxy = wvm.return_value.cached_reads.return_value.__enter__.return_value
proxy.host = "192.0.2.7"
proxy.get_console_listener_addr.return_value = "::" # all IPv6 addresses
res = self.client.get(reverse("instances:getvvfile", args=[self.instance.id]))
self.assertIn(b"host=192.0.2.7\n", res.content)
# the password only with the permission the console page asks for, as there # the password only with the permission the console page asks for, as there
self.assertNotIn(b"password=", res.content) self.assertNotIn(b"password=", res.content)
self.owner.user_permissions.add(Permission.objects.get(codename="passwordless_console")) self.owner.user_permissions.add(Permission.objects.get(codename="passwordless_console"))

View file

@ -57,6 +57,23 @@ class UpdateConsoleTestCase(TestCase):
self.assertEqual(messages[-1], "Console settings were not saved: " self.assertEqual(messages[-1], "Console settings were not saved: "
"The console settings were changed meanwhile; check them and save again.") "The console settings were changed meanwhile; check them and save again.")
def test_a_listen_address_that_cannot_change_saves_nothing(self):
# a socket console: refused before the password and keymap are saved
with patch("instances.models.wvmInstance") as wvm:
proxy = wvm.return_value
proxy.get_console_type.return_value = "vnc"
proxy.get_console_listen_type.return_value = "socket"
proxy.get_console_listener_addr.return_value = "127.0.0.1"
proxy.get_console_keymap.return_value = ""
proxy.get_console_passwd.return_value = None
response = self.client.post(reverse("instances:update_console", args=[self.instance.id]),
{**VNC, "listen_on": "0.0.0.0", "keymap": "de", "password_action": "generate",
"seen": console_seen("vnc", "127.0.0.1", "auto", None)})
proxy.set_console_passwd.assert_not_called()
proxy.set_console_keymap.assert_not_called()
proxy.set_console_listener_addr.assert_not_called()
self.assertIn("listens on no address", str(list(get_messages(response.wsgi_request))[0]))
def test_a_template_s_console_settings_are_not_changed(self): def test_a_template_s_console_settings_are_not_changed(self):
# its page has no console form: a template is cloned, not run # its page has no console form: a template is cloned, not run
self.instance.is_template = True self.instance.is_template = True

View file

@ -143,7 +143,7 @@ class VMRowTests(TestCase):
self.proxy.get_console_passwd.return_value = "" self.proxy.get_console_passwd.return_value = ""
self.proxy.get_console_keymap.return_value = "" self.proxy.get_console_keymap.return_value = ""
self.proxy.set_console_keymap.return_value = False # no graphics device self.proxy.set_console_keymap.return_value = False # no graphics device
self.proxy.set_console_listener_addr.return_value = False # a socket, no address self.proxy.set_console_listener_addr.return_value = False # no graphics device
form = {"listen_on": "0.0.0.0", "keymap": "de", "password_action": "keep", form = {"listen_on": "0.0.0.0", "keymap": "de", "password_action": "keep",
"seen": console_seen("vnc", "127.0.0.1", "auto", "")} "seen": console_seen("vnc", "127.0.0.1", "auto", "")}
self.post("update_console", form) self.post("update_console", form)

View file

@ -2485,7 +2485,8 @@ def getvvfile(request, pk):
listen = proxy.get_console_listener_addr() listen = proxy.get_console_listener_addr()
response.writelines("[virt-viewer]\n") response.writelines("[virt-viewer]\n")
response.writelines(f"type={proxy.get_console_type()}\n") response.writelines(f"type={proxy.get_console_type()}\n")
response.writelines(f"host={proxy.host if listen == '0.0.0.0' else listen}\n") # a console on all IPv4 or IPv6 addresses is reached through the host
response.writelines(f"host={proxy.host if listen in ('0.0.0.0', '::') else listen}\n")
response.writelines(f"port={proxy.get_console_port()}\n") response.writelines(f"port={proxy.get_console_port()}\n")
response.writelines(f"title={keyfile_value(proxy.instance.name())}\n") response.writelines(f"title={keyfile_value(proxy.instance.name())}\n")
# as the console page: without the permission the viewer asks for the password # as the console page: without the permission the viewer asks for the password

Binary file not shown.

View file

@ -2830,42 +2830,50 @@ msgstr "Parola yok"
msgid "New password" msgid "New password"
msgstr "Yeni parola" msgstr "Yeni parola"
#: instances/forms.py:66 #: instances/forms.py:67
msgid "Serial (xterm; the guest needs a getty on ttyS0)" msgid "Serial (xterm; the guest needs a getty on ttyS0)"
msgstr "Seri (xterm; konuk sistemde ttyS0 üzerinde getty gerekir)" msgstr "Seri (xterm; konuk sistemde ttyS0 üzerinde getty gerekir)"
#: instances/forms.py:76 #: instances/forms.py:77
msgid "Auto" msgid "Auto"
msgstr "Otomatik" msgstr "Otomatik"
#: instances/forms.py:85 #: instances/forms.py:86
msgid "Listen on" msgid "Listen on"
msgstr "Dinlenen" msgstr "Dinlenen"
#: instances/forms.py:92 #: instances/forms.py:93
msgid "Keymap" msgid "Keymap"
msgstr "Klavye eşlemi" msgstr "Klavye eşlemi"
#: instances/forms.py:98 #: instances/forms.py:99
msgid "The console settings were changed meanwhile; check them and save again." msgid "The console settings were changed meanwhile; check them and save again."
msgstr "" msgstr ""
"Konsol ayarları bu arada değişti; ayarları kontrol edip yeniden kaydedin." "Konsol ayarları bu arada değişti; ayarları kontrol edip yeniden kaydedin."
#: instances/forms.py:103 #: instances/forms.py:104
msgid "Enter the new password." msgid "Enter the new password."
msgstr "Yeni parolayı girin." msgstr "Yeni parolayı girin."
#: instances/forms.py:107 #: instances/forms.py:108
msgid "" msgid ""
"A VNC password takes up to 8 letters, digits or symbols, without accents." "A VNC password takes up to 8 letters, digits or symbols, without accents."
msgstr "" msgstr ""
"VNC parolası en çok 8 harf, rakam ya da simge alır; aksanlı harf olmaz." "VNC parolası en çok 8 harf, rakam ya da simge alır; aksanlı harf olmaz."
#: instances/forms.py:109 #: instances/forms.py:110
msgid "A password takes no line breaks or other control characters." msgid "A password takes no line breaks or other control characters."
msgstr "Parola satır sonu ya da başka denetim karakteri içeremez." msgstr "Parola satır sonu ya da başka denetim karakteri içeremez."
#: instances/forms.py:115 #: instances/forms.py:114 vrtManager/instance.py:1656
msgid ""
"The console listens on no address (on a network, a socket or nowhere); change"
" it in the XML editor"
msgstr ""
"Konsol bir adreste dinlemiyor (bir ağda, bir sokette ya da hiçbir yerde); "
"bunu XML düzenleyicide değiştirin"
#: instances/forms.py:121
msgid "" msgid ""
"The console listens beyond localhost; only an administrator can remove its " "The console listens beyond localhost; only an administrator can remove its "
"password." "password."
@ -2873,7 +2881,7 @@ msgstr ""
"Konsol localhost dışında da dinliyor; parolasını yalnızca bir yönetici " "Konsol localhost dışında da dinliyor; parolasını yalnızca bir yönetici "
"kaldırabilir." "kaldırabilir."
#: instances/forms.py:159 #: instances/forms.py:165
msgid "The name of the virtual machine must not contain any special characters" msgid "The name of the virtual machine must not contain any special characters"
msgstr "Sanal makine adı özel karakterler içeremez" msgstr "Sanal makine adı özel karakterler içeremez"
@ -2951,7 +2959,7 @@ msgstr ""
msgid "Delete snapshot" msgid "Delete snapshot"
msgstr "Anlık görüntüyü sil" msgstr "Anlık görüntüyü sil"
#: instances/jobs.py:356 vrtManager/instance.py:2404 #: instances/jobs.py:356 vrtManager/instance.py:2415
#, python-format #, python-format
msgid "The VM has no external snapshot named %(name)s" msgid "The VM has no external snapshot named %(name)s"
msgstr "Sanal makinede %(name)s adında harici anlık görüntü yok" msgstr "Sanal makinede %(name)s adında harici anlık görüntü yok"
@ -2986,7 +2994,7 @@ msgstr "Sanal makine artık işin çalıştığı sunucuda değil"
msgid "Take snapshot" msgid "Take snapshot"
msgstr "Anlık görüntü al" msgstr "Anlık görüntü al"
#: instances/jobs.py:424 instances/jobs.py:433 vrtManager/instance.py:1995 #: instances/jobs.py:424 instances/jobs.py:433 vrtManager/instance.py:2006
#, python-format #, python-format
msgid "A snapshot named %(name)s already exists" msgid "A snapshot named %(name)s already exists"
msgstr "%(name)s adında bir anlık görüntü zaten var" msgstr "%(name)s adında bir anlık görüntü zaten var"
@ -3148,12 +3156,12 @@ msgstr ""
msgid "Each network card needs a network" msgid "Each network card needs a network"
msgstr "Her ağ kartının bir ağı olmalı" msgstr "Her ağ kartının bir ağı olmalı"
#: instances/jobs.py:851 vrtManager/instance.py:2863 #: instances/jobs.py:851 vrtManager/instance.py:2874
#, python-format #, python-format
msgid "This host has no network %(name)s" msgid "This host has no network %(name)s"
msgstr "Bu sunucuda %(name)s ağı yok" msgstr "Bu sunucuda %(name)s ağı yok"
#: instances/jobs.py:853 vrtManager/instance.py:2865 #: instances/jobs.py:853 vrtManager/instance.py:2876
#, python-format #, python-format
msgid "This host has no network filter %(name)s" msgid "This host has no network filter %(name)s"
msgstr "Bu sunucuda %(name)s ağ filtresi yok" msgstr "Bu sunucuda %(name)s ağ filtresi yok"
@ -3178,7 +3186,7 @@ msgstr ""
msgid "Create VM" msgid "Create VM"
msgstr "Sanal makine oluştur" msgstr "Sanal makine oluştur"
#: instances/jobs.py:910 instances/jobs.py:956 instances/views.py:2546 #: instances/jobs.py:910 instances/jobs.py:956 instances/views.py:2547
msgid "A virtual machine with this name already exists" msgid "A virtual machine with this name already exists"
msgstr "Bu isimde bir sanal makine mevcut" msgstr "Bu isimde bir sanal makine mevcut"
@ -3227,7 +3235,7 @@ msgstr "cloud-init tohumu, disk için bir dizin depolama havuzu gerektirir"
msgid "This host offers no firmware %(firmware)s" msgid "This host offers no firmware %(firmware)s"
msgstr "Bu sunucu %(firmware)s firmware'ini sunmuyor" msgstr "Bu sunucu %(firmware)s firmware'ini sunmuyor"
#: instances/jobs.py:939 vrtManager/instance.py:3212 #: instances/jobs.py:939 vrtManager/instance.py:3223
msgid "This host offers no TPM 2.0: install swtpm on it" msgid "This host offers no TPM 2.0: install swtpm on it"
msgstr "Bu sunucu TPM 2.0 sunmuyor: üzerine swtpm kurun" msgstr "Bu sunucu TPM 2.0 sunmuyor: üzerine swtpm kurun"
@ -3538,7 +3546,7 @@ msgid "Disk source"
msgstr "Disk kaynağı" msgstr "Disk kaynağı"
#: instances/templates/add_instance_volume.html:21 #: instances/templates/add_instance_volume.html:21
#: instances/templates/create_instance_w2.html:134 instances/views.py:2566 #: instances/templates/create_instance_w2.html:134 instances/views.py:2567
msgid "New disk" msgid "New disk"
msgstr "Yeni disk" msgstr "Yeni disk"
@ -3924,7 +3932,7 @@ msgstr "Özel CPU modelleri"
msgid "Size (GiB)" msgid "Size (GiB)"
msgstr "Boyut (GiB)" msgstr "Boyut (GiB)"
#: instances/templates/create_instance_w2.html:161 instances/views.py:2567 #: instances/templates/create_instance_w2.html:161 instances/views.py:2568
msgid "Existing volumes" msgid "Existing volumes"
msgstr "Mevcut birimler" msgstr "Mevcut birimler"
@ -3960,7 +3968,7 @@ msgstr "Aygıt"
msgid "Remove" msgid "Remove"
msgstr "Kaldır" msgstr "Kaldır"
#: instances/templates/create_instance_w2.html:194 instances/views.py:2568 #: instances/templates/create_instance_w2.html:194 instances/views.py:2569
msgid "Clone from template" msgid "Clone from template"
msgstr "Şablondan klonla" msgstr "Şablondan klonla"
@ -4516,7 +4524,7 @@ msgid "Add USB device"
msgstr "USB aygıtı ekle" msgstr "USB aygıtı ekle"
#: instances/templates/instances/host_devices_form.html:18 #: instances/templates/instances/host_devices_form.html:18
#: vrtManager/instance.py:3116 #: vrtManager/instance.py:3127
msgid "" msgid ""
"A VM with a saved state does not change its USB devices: start it, or start " "A VM with a saved state does not change its USB devices: start it, or start "
"it without its saved state" "it without its saved state"
@ -6539,7 +6547,7 @@ msgstr "Birim başarıyla değiştirildi."
msgid "Disk %(dev)s is not a storage volume of this instance" msgid "Disk %(dev)s is not a storage volume of this instance"
msgstr "%(dev)s diski bu sanal makinenin bir depolama birimi değil" msgstr "%(dev)s diski bu sanal makinenin bir depolama birimi değil"
#: instances/views.py:1554 vrtManager/instance.py:2414 #: instances/views.py:1554 vrtManager/instance.py:2425
msgid "The VM has a saved state; start it or remove the saved state first" msgid "The VM has a saved state; start it or remove the saved state first"
msgstr "" msgstr ""
"Sanal makinenin kaydedilmiş durumu var; önce başlatın veya kaydedilmiş durumu" "Sanal makinenin kaydedilmiş durumu var; önce başlatın veya kaydedilmiş durumu"
@ -6617,7 +6625,7 @@ msgstr "Ön yükleme sırası başarıyla değiştirildi."
msgid "The XML is empty" msgid "The XML is empty"
msgstr "XML boş" msgstr "XML boş"
#: instances/views.py:1903 instances/views.py:2557 #: instances/views.py:1903 instances/views.py:2558
#, python-format #, python-format
msgid "The XML is not well-formed: %(error)s" msgid "The XML is not well-formed: %(error)s"
msgstr "XML düzgün biçimlendirilmemiş: %(error)s" msgstr "XML düzgün biçimlendirilmemiş: %(error)s"
@ -6773,28 +6781,28 @@ msgstr "Şablon olup olmadığını değiştirmek için sanal makineyi kapatın.
msgid "%(quota)s: '%(instance_name)s' stays a template." msgid "%(quota)s: '%(instance_name)s' stays a template."
msgstr "%(quota)s: '%(instance_name)s' şablon olarak kalıyor." msgstr "%(quota)s: '%(instance_name)s' şablon olarak kalıyor."
#: instances/views.py:2544 #: instances/views.py:2545
msgid "The XML has no name" msgid "The XML has no name"
msgstr "XML'de ad yok" msgstr "XML'de ad yok"
#: instances/views.py:2559 webvirtcloud/middleware.py:156 #: instances/views.py:2560 webvirtcloud/middleware.py:156
#, python-format #, python-format
msgid "libvirt Error - %(exception)s" msgid "libvirt Error - %(exception)s"
msgstr "libvirt Hatası - %(exception)s" msgstr "libvirt Hatası - %(exception)s"
#: instances/views.py:2566 #: instances/views.py:2567
msgid "An empty disk of the size you set" msgid "An empty disk of the size you set"
msgstr "Belirlediğiniz boyutta boş bir disk" msgstr "Belirlediğiniz boyutta boş bir disk"
#: instances/views.py:2567 #: instances/views.py:2568
msgid "Volumes already in a pool" msgid "Volumes already in a pool"
msgstr "Bir havuzda zaten bulunan birimler" msgstr "Bir havuzda zaten bulunan birimler"
#: instances/views.py:2568 #: instances/views.py:2569
msgid "A copy of a template volume" msgid "A copy of a template volume"
msgstr "Bir şablon biriminin kopyası" msgstr "Bir şablon biriminin kopyası"
#: instances/views.py:2646 #: instances/views.py:2647
msgid "" msgid ""
"This host has no running storage pool for the VM's disks: add or start one on" "This host has no running storage pool for the VM's disks: add or start one on"
" its Storage page." " its Storage page."
@ -6802,29 +6810,29 @@ msgstr ""
"Bu sunucuda sanal makinenin diskleri için çalışan bir depolama havuzu yok: " "Bu sunucuda sanal makinenin diskleri için çalışan bir depolama havuzu yok: "
"Depolama sayfasından bir tane ekleyin ya da başlatın." "Depolama sayfasından bir tane ekleyin ya da başlatın."
#: instances/views.py:2648 #: instances/views.py:2649
msgid "This host has no network for the VM: add one on its Networks page." msgid "This host has no network for the VM: add one on its Networks page."
msgstr "" msgstr ""
"Bu sunucuda sanal makine için ağ yok: Ağlar sayfasından bir tane ekleyin." "Bu sunucuda sanal makine için ağ yok: Ağlar sayfasından bir tane ekleyin."
#: instances/views.py:2680 #: instances/views.py:2681
#, python-format #, python-format
msgid "The machine type is q35, not %(machine)s: UEFI Secure Boot needs it" msgid "The machine type is q35, not %(machine)s: UEFI Secure Boot needs it"
msgstr "Makine türü %(machine)s değil q35: UEFI Secure Boot bunu gerektiriyor" msgstr "Makine türü %(machine)s değil q35: UEFI Secure Boot bunu gerektiriyor"
#: instances/views.py:2707 #: instances/views.py:2708
msgid "Flavor Created" msgid "Flavor Created"
msgstr "Flavor Oluşturuldu" msgstr "Flavor Oluşturuldu"
#: instances/views.py:2715 #: instances/views.py:2716
msgid "Create Flavor" msgid "Create Flavor"
msgstr "Kullanıcı Oluştur" msgstr "Kullanıcı Oluştur"
#: instances/views.py:2727 #: instances/views.py:2728
msgid "Flavor Deleted" msgid "Flavor Deleted"
msgstr "Flavor Silindi" msgstr "Flavor Silindi"
#: instances/views.py:2733 #: instances/views.py:2734
msgid "Only the size template goes; VMs made from it keep their size." msgid "Only the size template goes; VMs made from it keep their size."
msgstr "" msgstr ""
"Yalnızca boyut şablonu silinir; ondan oluşturulan sanal makineler boyutlarını" "Yalnızca boyut şablonu silinir; ondan oluşturulan sanal makineler boyutlarını"
@ -9622,11 +9630,20 @@ msgid "Please shutdown the instance then try to enable vCPU hotplug"
msgstr "" msgstr ""
"vCPU hotplug özelliğini etkinleştirmek için önce sanal makineyi kapatın" "vCPU hotplug özelliğini etkinleştirmek için önce sanal makineyi kapatın"
#: vrtManager/instance.py:1777 #: vrtManager/instance.py:1677
#, python-format
msgid ""
"The serial console is a %(type)s one, the browser opens only a pty one; "
"change it in the XML editor"
msgstr ""
"Seri konsol %(type)s türünde, tarayıcı yalnızca pty türünü açar; bunu XML "
"düzenleyicide değiştirin"
#: vrtManager/instance.py:1788
msgid "The VM has no video card" msgid "The VM has no video card"
msgstr "Sanal makinede ekran kartı yok" msgstr "Sanal makinede ekran kartı yok"
#: vrtManager/instance.py:1787 #: vrtManager/instance.py:1798
#, python-format #, python-format
msgid "" msgid ""
"The VM's CPU topology has %(count)s vCPUs: change it in the XML editor to set" "The VM's CPU topology has %(count)s vCPUs: change it in the XML editor to set"
@ -9635,62 +9652,62 @@ msgstr ""
"VM'nin CPU topolojisi %(count)s vCPU içeriyor: başka bir en fazla değer için " "VM'nin CPU topolojisi %(count)s vCPU içeriyor: başka bir en fazla değer için "
"onu XML düzenleyicide değiştirin" "onu XML düzenleyicide değiştirin"
#: vrtManager/instance.py:1813 #: vrtManager/instance.py:1824
#, python-format #, python-format
msgid "The VM's next start has a maximum memory of %(max)s MiB" msgid "The VM's next start has a maximum memory of %(max)s MiB"
msgstr "" msgstr ""
"Sanal makinenin bir sonraki başlangıcındaki en yüksek bellek %(max)s MiB" "Sanal makinenin bir sonraki başlangıcındaki en yüksek bellek %(max)s MiB"
#: vrtManager/instance.py:1954 #: vrtManager/instance.py:1965
msgid "" msgid ""
"The VM has external snapshots; internal snapshots cannot be mixed with them" "The VM has external snapshots; internal snapshots cannot be mixed with them"
msgstr "" msgstr ""
"Sanal makinenin harici anlık görüntüleri var; dahili anlık görüntüler " "Sanal makinenin harici anlık görüntüleri var; dahili anlık görüntüler "
"bunlarla karıştırılamaz" "bunlarla karıştırılamaz"
#: vrtManager/instance.py:1986 #: vrtManager/instance.py:1997
msgid "A snapshot with memory is not quiesced; it keeps the whole guest state" msgid "A snapshot with memory is not quiesced; it keeps the whole guest state"
msgstr "" msgstr ""
"Bellekli bir anlık görüntüde dosya sistemleri dondurulmaz; tüm konuk durumunu" "Bellekli bir anlık görüntüde dosya sistemleri dondurulmaz; tüm konuk durumunu"
" saklar" " saklar"
#: vrtManager/instance.py:1988 #: vrtManager/instance.py:1999
msgid "Only a running VM's file systems can be frozen" msgid "Only a running VM's file systems can be frozen"
msgstr "Yalnızca çalışan bir sanal makinenin dosya sistemleri dondurulabilir" msgstr "Yalnızca çalışan bir sanal makinenin dosya sistemleri dondurulabilir"
#: vrtManager/instance.py:1990 #: vrtManager/instance.py:2001
msgid "The QEMU guest agent is not connected; it freezes the file systems" msgid "The QEMU guest agent is not connected; it freezes the file systems"
msgstr "QEMU konuk aracısı bağlı değil; dosya sistemlerini o dondurur" msgstr "QEMU konuk aracısı bağlı değil; dosya sistemlerini o dondurur"
#: vrtManager/instance.py:1993 #: vrtManager/instance.py:2004
msgid "" msgid ""
"The VM has internal snapshots; external snapshots cannot be mixed with them" "The VM has internal snapshots; external snapshots cannot be mixed with them"
msgstr "" msgstr ""
"Sanal makinenin dahili anlık görüntüleri var; harici anlık görüntüler " "Sanal makinenin dahili anlık görüntüleri var; harici anlık görüntüler "
"bunlarla karıştırılamaz" "bunlarla karıştırılamaz"
#: vrtManager/instance.py:1998 #: vrtManager/instance.py:2009
msgid "Newer snapshots exist after the last revert; delete them first" msgid "Newer snapshots exist after the last revert; delete them first"
msgstr "" msgstr ""
"Son geri dönüşten sonra daha yeni anlık görüntüler var; önce onları silin" "Son geri dönüşten sonra daha yeni anlık görüntüler var; önce onları silin"
#: vrtManager/instance.py:2001 #: vrtManager/instance.py:2012
msgid "No snapshot is current; revert to a snapshot first" msgid "No snapshot is current; revert to a snapshot first"
msgstr "Geçerli anlık görüntü yok; önce bir anlık görüntüye geri dönün" msgstr "Geçerli anlık görüntü yok; önce bir anlık görüntüye geri dönün"
#: vrtManager/instance.py:2007 #: vrtManager/instance.py:2018
#, python-format #, python-format
msgid "Eject the media from %(dev)s first" msgid "Eject the media from %(dev)s first"
msgstr "Önce %(dev)s içindeki ortamı çıkarın" msgstr "Önce %(dev)s içindeki ortamı çıkarın"
#: vrtManager/instance.py:2009 #: vrtManager/instance.py:2020
#, python-format #, python-format
msgid "Disk %(dev)s is not a file; external snapshots need file disks" msgid "Disk %(dev)s is not a file; external snapshots need file disks"
msgstr "" msgstr ""
"Disk %(dev)s bir dosya değil; harici anlık görüntüler dosya diskleri " "Disk %(dev)s bir dosya değil; harici anlık görüntüler dosya diskleri "
"gerektirir" "gerektirir"
#: vrtManager/instance.py:2017 #: vrtManager/instance.py:2028
#, python-format #, python-format
msgid "" msgid ""
"The storage pools could not be refreshed, so their free space is unknown: " "The storage pools could not be refreshed, so their free space is unknown: "
@ -9698,21 +9715,21 @@ msgid ""
msgstr "" msgstr ""
"Depolama havuzları yenilenemedi, bu yüzden boş alanları bilinmiyor: %(err)s" "Depolama havuzları yenilenemedi, bu yüzden boş alanları bilinmiyor: %(err)s"
#: vrtManager/instance.py:2038 #: vrtManager/instance.py:2049
msgid "Memory is saved only from a running VM" msgid "Memory is saved only from a running VM"
msgstr "Bellek yalnızca çalışan bir sanal makineden kaydedilir" msgstr "Bellek yalnızca çalışan bir sanal makineden kaydedilir"
#: vrtManager/instance.py:2040 #: vrtManager/instance.py:2051
msgid "The VM has no disk to keep its memory next to" msgid "The VM has no disk to keep its memory next to"
msgstr "Sanal makinenin, belleğinin yanına kaydedileceği bir diski yok" msgstr "Sanal makinenin, belleğinin yanına kaydedileceği bir diski yok"
#: vrtManager/instance.py:2044 #: vrtManager/instance.py:2055
#, python-format #, python-format
msgid "%(disk)s is not in a storage pool; memory is saved only into one" msgid "%(disk)s is not in a storage pool; memory is saved only into one"
msgstr "" msgstr ""
"%(disk)s bir depolama havuzunda değil; bellek yalnızca bir havuza kaydedilir" "%(disk)s bir depolama havuzunda değil; bellek yalnızca bir havuza kaydedilir"
#: vrtManager/instance.py:2075 #: vrtManager/instance.py:2086
#, python-format #, python-format
msgid "" msgid ""
"Storage pool %(pool)s has %(free).1f GiB free; the snapshot needs %(size).1f " "Storage pool %(pool)s has %(free).1f GiB free; the snapshot needs %(size).1f "
@ -9723,7 +9740,7 @@ msgstr ""
"%(size).1f GiB gerektiriyor (sanal makinenin oradaki disklerinin " "%(size).1f GiB gerektiriyor (sanal makinenin oradaki disklerinin "
"%%%(percent)g kadarı, en az %(minimum)g GiB, ve kaydediliyorsa bellek)" "%%%(percent)g kadarı, en az %(minimum)g GiB, ve kaydediliyorsa bellek)"
#: vrtManager/instance.py:2093 #: vrtManager/instance.py:2104
msgid "" msgid ""
"This snapshot was taken by an older version on a UEFI VM and cannot be " "This snapshot was taken by an older version on a UEFI VM and cannot be "
"reverted; delete it instead" "reverted; delete it instead"
@ -9731,7 +9748,7 @@ msgstr ""
"Bu anlık görüntü UEFI bir sanal makinede eski bir sürümle alındı ve geri " "Bu anlık görüntü UEFI bir sanal makinede eski bir sürümle alındı ve geri "
"dönülemez; bunun yerine silin" "dönülemez; bunun yerine silin"
#: vrtManager/instance.py:2123 #: vrtManager/instance.py:2134
#, python-format #, python-format
msgid "" msgid ""
"The revert failed twice; try again in a moment (%(error)s). The VM is " "The revert failed twice; try again in a moment (%(error)s). The VM is "
@ -9740,7 +9757,7 @@ msgstr ""
"Geri dönüş iki kez başarısız oldu; biraz sonra tekrar deneyin (%(error)s). " "Geri dönüş iki kez başarısız oldu; biraz sonra tekrar deneyin (%(error)s). "
"Sanal makine çalışıyor." "Sanal makine çalışıyor."
#: vrtManager/instance.py:2125 #: vrtManager/instance.py:2136
#, python-format #, python-format
msgid "" msgid ""
"The revert failed twice; try again in a moment (%(error)s). The VM is shut " "The revert failed twice; try again in a moment (%(error)s). The VM is shut "
@ -9749,13 +9766,13 @@ msgstr ""
"Geri dönüş iki kez başarısız oldu; biraz sonra tekrar deneyin (%(error)s). " "Geri dönüş iki kez başarısız oldu; biraz sonra tekrar deneyin (%(error)s). "
"Sanal makine kapalı." "Sanal makine kapalı."
#: vrtManager/instance.py:2293 #: vrtManager/instance.py:2304
msgid "A disk moves when its VM is defined and running, paused or shut off" msgid "A disk moves when its VM is defined and running, paused or shut off"
msgstr "" msgstr ""
"Bir disk, sanal makinesi tanımlıyken ve çalışırken, duraklatılmışken veya " "Bir disk, sanal makinesi tanımlıyken ve çalışırken, duraklatılmışken veya "
"kapalıyken taşınır" "kapalıyken taşınır"
#: vrtManager/instance.py:2295 #: vrtManager/instance.py:2306
msgid "" msgid ""
"A disk of a VM with snapshots, a saved state or a running block job does not " "A disk of a VM with snapshots, a saved state or a running block job does not "
"move" "move"
@ -9763,7 +9780,7 @@ msgstr ""
"Anlık görüntüleri, kaydedilmiş durumu veya çalışan bir blok işi olan sanal " "Anlık görüntüleri, kaydedilmiş durumu veya çalışan bir blok işi olan sanal "
"makinenin diski taşınmaz" "makinenin diski taşınmaz"
#: vrtManager/instance.py:2303 #: vrtManager/instance.py:2314
#, python-format #, python-format
msgid "" msgid ""
"%(dev)s is not a disk file of the VM, the same in its running and next " "%(dev)s is not a disk file of the VM, the same in its running and next "
@ -9772,127 +9789,127 @@ msgstr ""
"%(dev)s, sanal makinenin çalışan ve sonraki başlatma tanımlarında aynı olan " "%(dev)s, sanal makinenin çalışan ve sonraki başlatma tanımlarında aynı olan "
"bir disk dosyası değil" "bir disk dosyası değil"
#: vrtManager/instance.py:2308 #: vrtManager/instance.py:2319
#, python-format #, python-format
msgid "%(dev)s does not move: only writable raw and qcow2 disks do" msgid "%(dev)s does not move: only writable raw and qcow2 disks do"
msgstr "%(dev)s taşınmaz: yalnızca yazılabilir raw ve qcow2 diskler taşınır" msgstr "%(dev)s taşınmaz: yalnızca yazılabilir raw ve qcow2 diskler taşınır"
#: vrtManager/instance.py:2315 #: vrtManager/instance.py:2326
#, python-format #, python-format
msgid "%(dev)s does not move: no storage pool has %(path)s" msgid "%(dev)s does not move: no storage pool has %(path)s"
msgstr "%(dev)s taşınmaz: hiçbir depolama havuzunda %(path)s yok" msgstr "%(dev)s taşınmaz: hiçbir depolama havuzunda %(path)s yok"
#: vrtManager/instance.py:2317 #: vrtManager/instance.py:2328
#, python-format #, python-format
msgid "%(dev)s does not move: it has a backing file" msgid "%(dev)s does not move: it has a backing file"
msgstr "%(dev)s taşınmaz: temel (backing) dosyası var" msgstr "%(dev)s taşınmaz: temel (backing) dosyası var"
#: vrtManager/instance.py:2320 #: vrtManager/instance.py:2331
#, python-format #, python-format
msgid "%(pool_name)s is not an active pool of disk files of this host" msgid "%(pool_name)s is not an active pool of disk files of this host"
msgstr "%(pool_name)s bu sunucunun etkin bir disk dosyası havuzu değil" msgstr "%(pool_name)s bu sunucunun etkin bir disk dosyası havuzu değil"
#: vrtManager/instance.py:2323 #: vrtManager/instance.py:2334
#, python-format #, python-format
msgid "%(dev)s is in pool %(pool_name)s already" msgid "%(dev)s is in pool %(pool_name)s already"
msgstr "%(dev)s zaten %(pool_name)s havuzunda" msgstr "%(dev)s zaten %(pool_name)s havuzunda"
#: vrtManager/instance.py:2327 #: vrtManager/instance.py:2338
#, python-format #, python-format
msgid "Pool %(pool_name)s already has a file %(name)s" msgid "Pool %(pool_name)s already has a file %(name)s"
msgstr "%(pool_name)s havuzunda zaten %(name)s dosyası var" msgstr "%(pool_name)s havuzunda zaten %(name)s dosyası var"
#: vrtManager/instance.py:2351 #: vrtManager/instance.py:2362
#, python-format #, python-format
msgid "The copy of %(dev)s ended before it was complete" msgid "The copy of %(dev)s ended before it was complete"
msgstr "%(dev)s kopyası tamamlanmadan sona erdi" msgstr "%(dev)s kopyası tamamlanmadan sona erdi"
#: vrtManager/instance.py:2396 #: vrtManager/instance.py:2407
#, python-format #, python-format
msgid "%(error)s; remove %(dest)s if it is there: %(cleanup_error)s" msgid "%(error)s; remove %(dest)s if it is there: %(cleanup_error)s"
msgstr "%(error)s; varsa %(dest)s dosyasını kaldırın: %(cleanup_error)s" msgstr "%(error)s; varsa %(dest)s dosyasını kaldırın: %(cleanup_error)s"
#: vrtManager/instance.py:2398 #: vrtManager/instance.py:2409
#, python-format #, python-format
msgid "%(error)s; the VM may use %(dest)s now: check its disk %(dev)s" msgid "%(error)s; the VM may use %(dest)s now: check its disk %(dev)s"
msgstr "" msgstr ""
"%(error)s; sanal makine şu anda %(dest)s dosyasını kullanıyor olabilir: " "%(error)s; sanal makine şu anda %(dest)s dosyasını kullanıyor olabilir: "
"%(dev)s diskini kontrol edin" "%(dev)s diskini kontrol edin"
#: vrtManager/instance.py:2405 #: vrtManager/instance.py:2416
#, python-format #, python-format
msgid "The VM has no internal snapshot named %(name)s" msgid "The VM has no internal snapshot named %(name)s"
msgstr "Sanal makinenin %(name)s adlı dahili anlık görüntüsü yok" msgstr "Sanal makinenin %(name)s adlı dahili anlık görüntüsü yok"
#: vrtManager/instance.py:2416 #: vrtManager/instance.py:2427
msgid "A snapshot job is still running on this VM; try again when it ends" msgid "A snapshot job is still running on this VM; try again when it ends"
msgstr "" msgstr ""
"Bu sanal makinede hâlâ bir anlık görüntü işi çalışıyor; bittiğinde tekrar " "Bu sanal makinede hâlâ bir anlık görüntü işi çalışıyor; bittiğinde tekrar "
"deneyin" "deneyin"
#: vrtManager/instance.py:2426 #: vrtManager/instance.py:2437
msgid "Shut the VM down to revert to an internal snapshot" msgid "Shut the VM down to revert to an internal snapshot"
msgstr "Dahili bir anlık görüntüye geri dönmek için sanal makineyi kapatın" msgstr "Dahili bir anlık görüntüye geri dönmek için sanal makineyi kapatın"
#: vrtManager/instance.py:2513 #: vrtManager/instance.py:2524
msgid "A VM with a host's or an external TPM is not cloned; remove it first" msgid "A VM with a host's or an external TPM is not cloned; remove it first"
msgstr "" msgstr ""
"Ana makinenin ya da harici bir TPM'i olan sanal makine klonlanmaz; önce onu " "Ana makinenin ya da harici bir TPM'i olan sanal makine klonlanmaz; önce onu "
"kaldırın" "kaldırın"
#: vrtManager/instance.py:2544 #: vrtManager/instance.py:2555
msgid "Cannot clone a VM whose NVRAM is not a file" msgid "Cannot clone a VM whose NVRAM is not a file"
msgstr "NVRAM'i dosya olmayan bir sanal makine klonlanamaz" msgstr "NVRAM'i dosya olmayan bir sanal makine klonlanamaz"
#: vrtManager/instance.py:2614 #: vrtManager/instance.py:2625
#, python-format #, python-format
msgid "Clone failed (%(err)s); remove these copies by hand: %(path)s" msgid "Clone failed (%(err)s); remove these copies by hand: %(path)s"
msgstr "" msgstr ""
"Klonlama başarısız oldu (%(err)s); bu kopyaları elle kaldırın: %(path)s" "Klonlama başarısız oldu (%(err)s); bu kopyaları elle kaldırın: %(path)s"
#: vrtManager/instance.py:2625 #: vrtManager/instance.py:2636
msgid "Shut the VM down before cloning it" msgid "Shut the VM down before cloning it"
msgstr "Klonlamadan önce sanal makineyi kapatın" msgstr "Klonlamadan önce sanal makineyi kapatın"
#: vrtManager/instance.py:2679 #: vrtManager/instance.py:2690
#, python-format #, python-format
msgid "Clone failed (%(err)s); remove these copies by hand: %(leftovers)s" msgid "Clone failed (%(err)s); remove these copies by hand: %(leftovers)s"
msgstr "" msgstr ""
"Klonlama başarısız oldu (%(err)s); bu kopyaları elle kaldırın: %(leftovers)s" "Klonlama başarısız oldu (%(err)s); bu kopyaları elle kaldırın: %(leftovers)s"
#: vrtManager/instance.py:2690 #: vrtManager/instance.py:2701
msgid "Live clone needs libvirt 11.10 or later; shut the VM down to clone it" msgid "Live clone needs libvirt 11.10 or later; shut the VM down to clone it"
msgstr "" msgstr ""
"Canlı klonlama libvirt 11.10 veya sonrasını gerektirir; klonlamak için sanal " "Canlı klonlama libvirt 11.10 veya sonrasını gerektirir; klonlamak için sanal "
"makineyi kapatın" "makineyi kapatın"
#: vrtManager/instance.py:2693 #: vrtManager/instance.py:2704
msgid "A VM with a TPM is cloned only shut down" msgid "A VM with a TPM is cloned only shut down"
msgstr "TPM'i olan bir sanal makine yalnızca kapalıyken klonlanır" msgstr "TPM'i olan bir sanal makine yalnızca kapalıyken klonlanır"
#: vrtManager/instance.py:2696 #: vrtManager/instance.py:2707
#, python-format #, python-format
msgid "Disk %(dev)s is not a local file; shut the VM down to clone it" msgid "Disk %(dev)s is not a local file; shut the VM down to clone it"
msgstr "" msgstr ""
"Disk %(dev)s yerel bir dosya değil; klonlamak için sanal makineyi kapatın" "Disk %(dev)s yerel bir dosya değil; klonlamak için sanal makineyi kapatın"
#: vrtManager/instance.py:2698 #: vrtManager/instance.py:2709
#, python-format #, python-format
msgid "Disk %(dev)s is shareable; shut the VM down to clone it" msgid "Disk %(dev)s is shareable; shut the VM down to clone it"
msgstr "Disk %(dev)s paylaşılabilir; klonlamak için sanal makineyi kapatın" msgstr "Disk %(dev)s paylaşılabilir; klonlamak için sanal makineyi kapatın"
#: vrtManager/instance.py:2703 #: vrtManager/instance.py:2714
#, python-format #, python-format
msgid "Disk %(dev)s changes at the next start; shut the VM down to clone it" msgid "Disk %(dev)s changes at the next start; shut the VM down to clone it"
msgstr "" msgstr ""
"Disk %(dev)s sonraki başlatmada değişiyor; klonlamak için sanal makineyi " "Disk %(dev)s sonraki başlatmada değişiyor; klonlamak için sanal makineyi "
"kapatın" "kapatın"
#: vrtManager/instance.py:2705 #: vrtManager/instance.py:2716
msgid "Another job is running on the VM; clone it when that ends" msgid "Another job is running on the VM; clone it when that ends"
msgstr "Sanal makinede başka bir iş çalışıyor; o bittiğinde klonlayın" msgstr "Sanal makinede başka bir iş çalışıyor; o bittiğinde klonlayın"
#: vrtManager/instance.py:2731 #: vrtManager/instance.py:2742
#, python-format #, python-format
msgid "" msgid ""
"Storage pool %(pool)s has %(free).1f GiB free; the clone needs %(size).1f GiB" "Storage pool %(pool)s has %(free).1f GiB free; the clone needs %(size).1f GiB"
@ -9902,25 +9919,25 @@ msgstr ""
"gerektiriyor (kopyalanan diskler, artı bunların %%%(percent)g kadarı, en az " "gerektiriyor (kopyalanan diskler, artı bunların %%%(percent)g kadarı, en az "
"%(minimum)g GiB)" "%(minimum)g GiB)"
#: vrtManager/instance.py:2748 #: vrtManager/instance.py:2759
#, python-format #, python-format
msgid "Volume %(name)s already exists in storage pool %(pool)s" msgid "Volume %(name)s already exists in storage pool %(pool)s"
msgstr "%(name)s birimi %(pool)s depolama havuzunda zaten var" msgstr "%(name)s birimi %(pool)s depolama havuzunda zaten var"
#: vrtManager/instance.py:2902 #: vrtManager/instance.py:2913
msgid "A network interface that is a host device is removed in the XML editor" msgid "A network interface that is a host device is removed in the XML editor"
msgstr "Sunucu aygıtı olan bir ağ arabirimi XML düzenleyicide kaldırılır" msgstr "Sunucu aygıtı olan bir ağ arabirimi XML düzenleyicide kaldırılır"
#: vrtManager/instance.py:2918 #: vrtManager/instance.py:2929
#, python-format #, python-format
msgid "No network interface with MAC %(old_mac)s" msgid "No network interface with MAC %(old_mac)s"
msgstr "MAC adresi %(old_mac)s olan ağ arabirimi yok" msgstr "MAC adresi %(old_mac)s olan ağ arabirimi yok"
#: vrtManager/instance.py:2921 #: vrtManager/instance.py:2932
msgid "A network interface that is a host device is changed in the XML editor" msgid "A network interface that is a host device is changed in the XML editor"
msgstr "Sunucu aygıtı olan bir ağ arabirimi XML düzenleyicide değiştirilir" msgstr "Sunucu aygıtı olan bir ağ arabirimi XML düzenleyicide değiştirilir"
#: vrtManager/instance.py:3015 #: vrtManager/instance.py:3026
msgid "" msgid ""
"A VM changes its PCI devices while it runs, or is shut off without a saved " "A VM changes its PCI devices while it runs, or is shut off without a saved "
"state" "state"
@ -9928,43 +9945,43 @@ msgstr ""
"Sanal makine PCI aygıtlarını çalışırken veya kaydedilmiş durumu olmadan " "Sanal makine PCI aygıtlarını çalışırken veya kaydedilmiş durumu olmadan "
"kapalıyken değiştirir" "kapalıyken değiştirir"
#: vrtManager/instance.py:3036 #: vrtManager/instance.py:3047
#, python-format #, python-format
msgid "%(err)s; whether the VM has %(device)s now is not known" msgid "%(err)s; whether the VM has %(device)s now is not known"
msgstr "%(err)s; sanal makinede şu anda %(device)s olup olmadığı bilinmiyor" msgstr "%(err)s; sanal makinede şu anda %(device)s olup olmadığı bilinmiyor"
#: vrtManager/instance.py:3038 #: vrtManager/instance.py:3049
#, python-format #, python-format
msgid "%(err)s; %(device)s: the VM is not running, its next start has it" msgid "%(err)s; %(device)s: the VM is not running, its next start has it"
msgstr "%(err)s; %(device)s: sanal makine çalışmıyor, sonraki başlatmada var" msgstr "%(err)s; %(device)s: sanal makine çalışmıyor, sonraki başlatmada var"
#: vrtManager/instance.py:3039 #: vrtManager/instance.py:3050
#, python-format #, python-format
msgid "" msgid ""
"%(err)s; %(device)s: the VM is not running, its next start does not have it" "%(err)s; %(device)s: the VM is not running, its next start does not have it"
msgstr "%(err)s; %(device)s: sanal makine çalışmıyor, sonraki başlatmada yok" msgstr "%(err)s; %(device)s: sanal makine çalışmıyor, sonraki başlatmada yok"
#: vrtManager/instance.py:3040 #: vrtManager/instance.py:3051
#, python-format #, python-format
msgid "%(err)s; %(device)s: the running VM has it, its next start has it" msgid "%(err)s; %(device)s: the running VM has it, its next start has it"
msgstr "" msgstr ""
"%(err)s; %(device)s: çalışan sanal makinede var, sonraki başlatmada var" "%(err)s; %(device)s: çalışan sanal makinede var, sonraki başlatmada var"
#: vrtManager/instance.py:3041 #: vrtManager/instance.py:3052
#, python-format #, python-format
msgid "" msgid ""
"%(err)s; %(device)s: the running VM has it, its next start does not have it" "%(err)s; %(device)s: the running VM has it, its next start does not have it"
msgstr "" msgstr ""
"%(err)s; %(device)s: çalışan sanal makinede var, sonraki başlatmada yok" "%(err)s; %(device)s: çalışan sanal makinede var, sonraki başlatmada yok"
#: vrtManager/instance.py:3042 #: vrtManager/instance.py:3053
#, python-format #, python-format
msgid "" msgid ""
"%(err)s; %(device)s: the running VM does not have it, its next start has it" "%(err)s; %(device)s: the running VM does not have it, its next start has it"
msgstr "" msgstr ""
"%(err)s; %(device)s: çalışan sanal makinede yok, sonraki başlatmada var" "%(err)s; %(device)s: çalışan sanal makinede yok, sonraki başlatmada var"
#: vrtManager/instance.py:3044 #: vrtManager/instance.py:3055
#, python-format #, python-format
msgid "" msgid ""
"%(err)s; %(device)s: the running VM does not have it, its next start does not" "%(err)s; %(device)s: the running VM does not have it, its next start does not"
@ -9972,48 +9989,48 @@ msgid ""
msgstr "" msgstr ""
"%(err)s; %(device)s: çalışan sanal makinede yok, sonraki başlatmada yok" "%(err)s; %(device)s: çalışan sanal makinede yok, sonraki başlatmada yok"
#: vrtManager/instance.py:3078 #: vrtManager/instance.py:3089
#, python-format #, python-format
msgid "The VM has no PCI device %(address)s" msgid "The VM has no PCI device %(address)s"
msgstr "Sanal makinede %(address)s PCI aygıtı yok" msgstr "Sanal makinede %(address)s PCI aygıtı yok"
#: vrtManager/instance.py:3099 #: vrtManager/instance.py:3110
msgid "The VM has no USB controller" msgid "The VM has no USB controller"
msgstr "Sanal makinede USB denetleyicisi yok" msgstr "Sanal makinede USB denetleyicisi yok"
#: vrtManager/instance.py:3133 #: vrtManager/instance.py:3144
msgid "The VM has no such USB device" msgid "The VM has no such USB device"
msgstr "Sanal makinede böyle bir USB aygıtı yok" msgstr "Sanal makinede böyle bir USB aygıtı yok"
#: vrtManager/instance.py:3147 #: vrtManager/instance.py:3158
#, python-format #, python-format
msgid "The VM has no network interface %(mac)s" msgid "The VM has no network interface %(mac)s"
msgstr "Sanal makinede %(mac)s ağ arabirimi yok" msgstr "Sanal makinede %(mac)s ağ arabirimi yok"
#: vrtManager/instance.py:3178 #: vrtManager/instance.py:3189
msgid "The VM has its own RNG device: change it in the XML editor" msgid "The VM has its own RNG device: change it in the XML editor"
msgstr "" msgstr ""
"Sanal makinenin kendi RNG aygıtı var: bunu XML düzenleyicide değiştirin" "Sanal makinenin kendi RNG aygıtı var: bunu XML düzenleyicide değiştirin"
#: vrtManager/instance.py:3205 #: vrtManager/instance.py:3216
msgid "The VM has its own TPM: change it in the XML editor" msgid "The VM has its own TPM: change it in the XML editor"
msgstr "Sanal makinenin kendi TPM'i var: bunu XML düzenleyicide değiştirin" msgstr "Sanal makinenin kendi TPM'i var: bunu XML düzenleyicide değiştirin"
#: vrtManager/instance.py:3224 #: vrtManager/instance.py:3235
#, python-format #, python-format
msgid "Unknown crash action %(action)s" msgid "Unknown crash action %(action)s"
msgstr "Bilinmeyen çökme eylemi %(action)s" msgstr "Bilinmeyen çökme eylemi %(action)s"
#: vrtManager/instance.py:3251 #: vrtManager/instance.py:3262
#, python-format #, python-format
msgid "Network interface %(mac)s is not in the definition" msgid "Network interface %(mac)s is not in the definition"
msgstr "%(mac)s ağ arayüzü tanımda yok" msgstr "%(mac)s ağ arayüzü tanımda yok"
#: vrtManager/instance.py:3342 #: vrtManager/instance.py:3353
msgid "The guest agent did not answer in time; nothing was changed" msgid "The guest agent did not answer in time; nothing was changed"
msgstr "Konuk ajanı zamanında yanıt vermedi; hiçbir şey değiştirilmedi" msgstr "Konuk ajanı zamanında yanıt vermedi; hiçbir şey değiştirilmedi"
#: vrtManager/instance.py:3345 #: vrtManager/instance.py:3356
msgid "The VM runs Windows: its guest agent sets no root password or SSH key" msgid "The VM runs Windows: its guest agent sets no root password or SSH key"
msgstr "" msgstr ""
"Sanal makinede Windows çalışıyor: konuk ajanı root parolası ya da SSH " "Sanal makinede Windows çalışıyor: konuk ajanı root parolası ya da SSH "

Binary file not shown.

View file

@ -2720,46 +2720,52 @@ msgstr "无密码"
msgid "New password" msgid "New password"
msgstr "新密码" msgstr "新密码"
#: instances/forms.py:66 #: instances/forms.py:67
msgid "Serial (xterm; the guest needs a getty on ttyS0)" msgid "Serial (xterm; the guest needs a getty on ttyS0)"
msgstr "串行(xterm;客户机需要在 ttyS0 上运行 getty)" msgstr "串行(xterm;客户机需要在 ttyS0 上运行 getty)"
#: instances/forms.py:76 #: instances/forms.py:77
msgid "Auto" msgid "Auto"
msgstr "自动" msgstr "自动"
#: instances/forms.py:85 #: instances/forms.py:86
msgid "Listen on" msgid "Listen on"
msgstr "监听地址" msgstr "监听地址"
#: instances/forms.py:92 #: instances/forms.py:93
msgid "Keymap" msgid "Keymap"
msgstr "键盘映射" msgstr "键盘映射"
#: instances/forms.py:98 #: instances/forms.py:99
msgid "The console settings were changed meanwhile; check them and save again." msgid "The console settings were changed meanwhile; check them and save again."
msgstr "控制台设置已在此期间被更改;请检查后重新保存。" msgstr "控制台设置已在此期间被更改;请检查后重新保存。"
#: instances/forms.py:103 #: instances/forms.py:104
msgid "Enter the new password." msgid "Enter the new password."
msgstr "请输入新密码。" msgstr "请输入新密码。"
#: instances/forms.py:107 #: instances/forms.py:108
msgid "" msgid ""
"A VNC password takes up to 8 letters, digits or symbols, without accents." "A VNC password takes up to 8 letters, digits or symbols, without accents."
msgstr "VNC 密码最多 8 个字母、数字或符号,不能有带重音的字母。" msgstr "VNC 密码最多 8 个字母、数字或符号,不能有带重音的字母。"
#: instances/forms.py:109 #: instances/forms.py:110
msgid "A password takes no line breaks or other control characters." msgid "A password takes no line breaks or other control characters."
msgstr "密码不能包含换行或其他控制字符。" msgstr "密码不能包含换行或其他控制字符。"
#: instances/forms.py:115 #: instances/forms.py:114 vrtManager/instance.py:1656
msgid ""
"The console listens on no address (on a network, a socket or nowhere); change"
" it in the XML editor"
msgstr "控制台没有在某个地址上监听(而是在网络、套接字上或不监听);请在 XML 编辑器中更改"
#: instances/forms.py:121
msgid "" msgid ""
"The console listens beyond localhost; only an administrator can remove its " "The console listens beyond localhost; only an administrator can remove its "
"password." "password."
msgstr "控制台监听的不只是 localhost;只有管理员可以移除其密码。" msgstr "控制台监听的不只是 localhost;只有管理员可以移除其密码。"
#: instances/forms.py:159 #: instances/forms.py:165
msgid "The name of the virtual machine must not contain any special characters" msgid "The name of the virtual machine must not contain any special characters"
msgstr "虚拟机名称不能包含任何特殊字符" msgstr "虚拟机名称不能包含任何特殊字符"
@ -2834,7 +2840,7 @@ msgstr "虚拟机未定义;请检查这些卷,然后处理此任务:%(volu
msgid "Delete snapshot" msgid "Delete snapshot"
msgstr "删除快照" msgstr "删除快照"
#: instances/jobs.py:356 vrtManager/instance.py:2404 #: instances/jobs.py:356 vrtManager/instance.py:2415
#, python-format #, python-format
msgid "The VM has no external snapshot named %(name)s" msgid "The VM has no external snapshot named %(name)s"
msgstr "虚拟机没有名为 %(name)s 的外部快照" msgstr "虚拟机没有名为 %(name)s 的外部快照"
@ -2866,7 +2872,7 @@ msgstr "虚拟机已不在运行该任务的计算节点上"
msgid "Take snapshot" msgid "Take snapshot"
msgstr "创建快照" msgstr "创建快照"
#: instances/jobs.py:424 instances/jobs.py:433 vrtManager/instance.py:1995 #: instances/jobs.py:424 instances/jobs.py:433 vrtManager/instance.py:2006
#, python-format #, python-format
msgid "A snapshot named %(name)s already exists" msgid "A snapshot named %(name)s already exists"
msgstr "名为 %(name)s 的快照已存在" msgstr "名为 %(name)s 的快照已存在"
@ -3005,12 +3011,12 @@ msgstr "镜像已存在。请检查卷或更改虚拟机名称"
msgid "Each network card needs a network" msgid "Each network card needs a network"
msgstr "每个网卡都需要一个网络" msgstr "每个网卡都需要一个网络"
#: instances/jobs.py:851 vrtManager/instance.py:2863 #: instances/jobs.py:851 vrtManager/instance.py:2874
#, python-format #, python-format
msgid "This host has no network %(name)s" msgid "This host has no network %(name)s"
msgstr "此主机没有网络 %(name)s" msgstr "此主机没有网络 %(name)s"
#: instances/jobs.py:853 vrtManager/instance.py:2865 #: instances/jobs.py:853 vrtManager/instance.py:2876
#, python-format #, python-format
msgid "This host has no network filter %(name)s" msgid "This host has no network filter %(name)s"
msgstr "此主机没有网络过滤器 %(name)s" msgstr "此主机没有网络过滤器 %(name)s"
@ -3032,7 +3038,7 @@ msgstr "磁盘缓存 %(cache)s 与设置中的原生 (native) 磁盘 I/O 不兼
msgid "Create VM" msgid "Create VM"
msgstr "创建虚拟机" msgstr "创建虚拟机"
#: instances/jobs.py:910 instances/jobs.py:956 instances/views.py:2546 #: instances/jobs.py:910 instances/jobs.py:956 instances/views.py:2547
msgid "A virtual machine with this name already exists" msgid "A virtual machine with this name already exists"
msgstr "同名虚拟机已存在" msgstr "同名虚拟机已存在"
@ -3080,7 +3086,7 @@ msgstr "cloud-init 种子需要为磁盘使用目录类型的存储池"
msgid "This host offers no firmware %(firmware)s" msgid "This host offers no firmware %(firmware)s"
msgstr "此主机不提供固件 %(firmware)s" msgstr "此主机不提供固件 %(firmware)s"
#: instances/jobs.py:939 vrtManager/instance.py:3212 #: instances/jobs.py:939 vrtManager/instance.py:3223
msgid "This host offers no TPM 2.0: install swtpm on it" msgid "This host offers no TPM 2.0: install swtpm on it"
msgstr "此主机不提供 TPM 2.0:请在主机上安装 swtpm" msgstr "此主机不提供 TPM 2.0:请在主机上安装 swtpm"
@ -3380,7 +3386,7 @@ msgid "Disk source"
msgstr "磁盘来源" msgstr "磁盘来源"
#: instances/templates/add_instance_volume.html:21 #: instances/templates/add_instance_volume.html:21
#: instances/templates/create_instance_w2.html:134 instances/views.py:2566 #: instances/templates/create_instance_w2.html:134 instances/views.py:2567
msgid "New disk" msgid "New disk"
msgstr "新磁盘" msgstr "新磁盘"
@ -3754,7 +3760,7 @@ msgstr "自定义 CPU 型号"
msgid "Size (GiB)" msgid "Size (GiB)"
msgstr "大小(GiB)" msgstr "大小(GiB)"
#: instances/templates/create_instance_w2.html:161 instances/views.py:2567 #: instances/templates/create_instance_w2.html:161 instances/views.py:2568
msgid "Existing volumes" msgid "Existing volumes"
msgstr "已有卷" msgstr "已有卷"
@ -3790,7 +3796,7 @@ msgstr "设备"
msgid "Remove" msgid "Remove"
msgstr "移除" msgstr "移除"
#: instances/templates/create_instance_w2.html:194 instances/views.py:2568 #: instances/templates/create_instance_w2.html:194 instances/views.py:2569
msgid "Clone from template" msgid "Clone from template"
msgstr "从模板克隆" msgstr "从模板克隆"
@ -4314,7 +4320,7 @@ msgid "Add USB device"
msgstr "添加 USB 设备" msgstr "添加 USB 设备"
#: instances/templates/instances/host_devices_form.html:18 #: instances/templates/instances/host_devices_form.html:18
#: vrtManager/instance.py:3116 #: vrtManager/instance.py:3127
msgid "" msgid ""
"A VM with a saved state does not change its USB devices: start it, or start " "A VM with a saved state does not change its USB devices: start it, or start "
"it without its saved state" "it without its saved state"
@ -6180,7 +6186,7 @@ msgstr "卷已成功更改。"
msgid "Disk %(dev)s is not a storage volume of this instance" msgid "Disk %(dev)s is not a storage volume of this instance"
msgstr "磁盘 %(dev)s 不是此虚拟机的存储卷" msgstr "磁盘 %(dev)s 不是此虚拟机的存储卷"
#: instances/views.py:1554 vrtManager/instance.py:2414 #: instances/views.py:1554 vrtManager/instance.py:2425
msgid "The VM has a saved state; start it or remove the saved state first" msgid "The VM has a saved state; start it or remove the saved state first"
msgstr "虚拟机有保存的状态;请先启动它或删除保存的状态" msgstr "虚拟机有保存的状态;请先启动它或删除保存的状态"
@ -6250,7 +6256,7 @@ msgstr "启动顺序已成功更改。"
msgid "The XML is empty" msgid "The XML is empty"
msgstr "XML 为空" msgstr "XML 为空"
#: instances/views.py:1903 instances/views.py:2557 #: instances/views.py:1903 instances/views.py:2558
#, python-format #, python-format
msgid "The XML is not well-formed: %(error)s" msgid "The XML is not well-formed: %(error)s"
msgstr "XML 格式不正确:%(error)s" msgstr "XML 格式不正确:%(error)s"
@ -6389,55 +6395,55 @@ msgstr "请关闭虚拟机以更改其是否为模板。"
msgid "%(quota)s: '%(instance_name)s' stays a template." msgid "%(quota)s: '%(instance_name)s' stays a template."
msgstr "%(quota)s:“%(instance_name)s”仍为模板。" msgstr "%(quota)s:“%(instance_name)s”仍为模板。"
#: instances/views.py:2544 #: instances/views.py:2545
msgid "The XML has no name" msgid "The XML has no name"
msgstr "XML 中没有名称" msgstr "XML 中没有名称"
#: instances/views.py:2559 webvirtcloud/middleware.py:156 #: instances/views.py:2560 webvirtcloud/middleware.py:156
#, python-format #, python-format
msgid "libvirt Error - %(exception)s" msgid "libvirt Error - %(exception)s"
msgstr "libvirt 错误 - %(exception)s" msgstr "libvirt 错误 - %(exception)s"
#: instances/views.py:2566 #: instances/views.py:2567
msgid "An empty disk of the size you set" msgid "An empty disk of the size you set"
msgstr "按设定大小创建的空磁盘" msgstr "按设定大小创建的空磁盘"
#: instances/views.py:2567 #: instances/views.py:2568
msgid "Volumes already in a pool" msgid "Volumes already in a pool"
msgstr "存储池中已有的卷" msgstr "存储池中已有的卷"
#: instances/views.py:2568 #: instances/views.py:2569
msgid "A copy of a template volume" msgid "A copy of a template volume"
msgstr "模板卷的副本" msgstr "模板卷的副本"
#: instances/views.py:2646 #: instances/views.py:2647
msgid "" msgid ""
"This host has no running storage pool for the VM's disks: add or start one on" "This host has no running storage pool for the VM's disks: add or start one on"
" its Storage page." " its Storage page."
msgstr "此主机没有可用于虚拟机磁盘的运行中存储池:请在其“存储”页面添加或启动一个。" msgstr "此主机没有可用于虚拟机磁盘的运行中存储池:请在其“存储”页面添加或启动一个。"
#: instances/views.py:2648 #: instances/views.py:2649
msgid "This host has no network for the VM: add one on its Networks page." msgid "This host has no network for the VM: add one on its Networks page."
msgstr "此主机没有可供虚拟机使用的网络:请在其“网络”页面添加一个。" msgstr "此主机没有可供虚拟机使用的网络:请在其“网络”页面添加一个。"
#: instances/views.py:2680 #: instances/views.py:2681
#, python-format #, python-format
msgid "The machine type is q35, not %(machine)s: UEFI Secure Boot needs it" msgid "The machine type is q35, not %(machine)s: UEFI Secure Boot needs it"
msgstr "机器类型为 q35,而不是 %(machine)s:UEFI 安全启动需要它" msgstr "机器类型为 q35,而不是 %(machine)s:UEFI 安全启动需要它"
#: instances/views.py:2707 #: instances/views.py:2708
msgid "Flavor Created" msgid "Flavor Created"
msgstr "规格已创建" msgstr "规格已创建"
#: instances/views.py:2715 #: instances/views.py:2716
msgid "Create Flavor" msgid "Create Flavor"
msgstr "创建规格" msgstr "创建规格"
#: instances/views.py:2727 #: instances/views.py:2728
msgid "Flavor Deleted" msgid "Flavor Deleted"
msgstr "规格已删除" msgstr "规格已删除"
#: instances/views.py:2733 #: instances/views.py:2734
msgid "Only the size template goes; VMs made from it keep their size." msgid "Only the size template goes; VMs made from it keep their size."
msgstr "仅删除此规格;由它创建的虚拟机保持其大小。" msgstr "仅删除此规格;由它创建的虚拟机保持其大小。"
@ -9084,83 +9090,90 @@ msgstr "磁盘 %(target_dev)s 不在虚拟机的定义中"
msgid "Please shutdown the instance then try to enable vCPU hotplug" msgid "Please shutdown the instance then try to enable vCPU hotplug"
msgstr "请先关闭虚拟机,再启用 vCPU 热插拔" msgstr "请先关闭虚拟机,再启用 vCPU 热插拔"
#: vrtManager/instance.py:1777 #: vrtManager/instance.py:1677
#, python-format
msgid ""
"The serial console is a %(type)s one, the browser opens only a pty one; "
"change it in the XML editor"
msgstr "串行控制台的类型是 %(type)s,浏览器只能打开 pty 类型的;请在 XML 编辑器中更改"
#: vrtManager/instance.py:1788
msgid "The VM has no video card" msgid "The VM has no video card"
msgstr "虚拟机没有显卡" msgstr "虚拟机没有显卡"
#: vrtManager/instance.py:1787 #: vrtManager/instance.py:1798
#, python-format #, python-format
msgid "" msgid ""
"The VM's CPU topology has %(count)s vCPUs: change it in the XML editor to set" "The VM's CPU topology has %(count)s vCPUs: change it in the XML editor to set"
" another maximum" " another maximum"
msgstr "该虚拟机的 CPU 拓扑为 %(count)s 个 vCPU:要设置其他最大值,请在 XML 编辑器中修改拓扑" msgstr "该虚拟机的 CPU 拓扑为 %(count)s 个 vCPU:要设置其他最大值,请在 XML 编辑器中修改拓扑"
#: vrtManager/instance.py:1813 #: vrtManager/instance.py:1824
#, python-format #, python-format
msgid "The VM's next start has a maximum memory of %(max)s MiB" msgid "The VM's next start has a maximum memory of %(max)s MiB"
msgstr "虚拟机下次启动时的最大内存为 %(max)s MiB" msgstr "虚拟机下次启动时的最大内存为 %(max)s MiB"
#: vrtManager/instance.py:1954 #: vrtManager/instance.py:1965
msgid "" msgid ""
"The VM has external snapshots; internal snapshots cannot be mixed with them" "The VM has external snapshots; internal snapshots cannot be mixed with them"
msgstr "虚拟机有外部快照;内部快照不能与其混用" msgstr "虚拟机有外部快照;内部快照不能与其混用"
#: vrtManager/instance.py:1986 #: vrtManager/instance.py:1997
msgid "A snapshot with memory is not quiesced; it keeps the whole guest state" msgid "A snapshot with memory is not quiesced; it keeps the whole guest state"
msgstr "含内存的快照不会静默文件系统;它保存整个客户机状态" msgstr "含内存的快照不会静默文件系统;它保存整个客户机状态"
#: vrtManager/instance.py:1988 #: vrtManager/instance.py:1999
msgid "Only a running VM's file systems can be frozen" msgid "Only a running VM's file systems can be frozen"
msgstr "只有运行中的虚拟机的文件系统可以冻结" msgstr "只有运行中的虚拟机的文件系统可以冻结"
#: vrtManager/instance.py:1990 #: vrtManager/instance.py:2001
msgid "The QEMU guest agent is not connected; it freezes the file systems" msgid "The QEMU guest agent is not connected; it freezes the file systems"
msgstr "QEMU 客户机代理未连接;文件系统由它冻结" msgstr "QEMU 客户机代理未连接;文件系统由它冻结"
#: vrtManager/instance.py:1993 #: vrtManager/instance.py:2004
msgid "" msgid ""
"The VM has internal snapshots; external snapshots cannot be mixed with them" "The VM has internal snapshots; external snapshots cannot be mixed with them"
msgstr "虚拟机有内部快照;外部快照不能与其混用" msgstr "虚拟机有内部快照;外部快照不能与其混用"
#: vrtManager/instance.py:1998 #: vrtManager/instance.py:2009
msgid "Newer snapshots exist after the last revert; delete them first" msgid "Newer snapshots exist after the last revert; delete them first"
msgstr "上次还原后存在更新的快照;请先删除它们" msgstr "上次还原后存在更新的快照;请先删除它们"
#: vrtManager/instance.py:2001 #: vrtManager/instance.py:2012
msgid "No snapshot is current; revert to a snapshot first" msgid "No snapshot is current; revert to a snapshot first"
msgstr "没有当前快照;请先还原到某个快照" msgstr "没有当前快照;请先还原到某个快照"
#: vrtManager/instance.py:2007 #: vrtManager/instance.py:2018
#, python-format #, python-format
msgid "Eject the media from %(dev)s first" msgid "Eject the media from %(dev)s first"
msgstr "请先弹出 %(dev)s 中的介质" msgstr "请先弹出 %(dev)s 中的介质"
#: vrtManager/instance.py:2009 #: vrtManager/instance.py:2020
#, python-format #, python-format
msgid "Disk %(dev)s is not a file; external snapshots need file disks" msgid "Disk %(dev)s is not a file; external snapshots need file disks"
msgstr "磁盘 %(dev)s 不是文件;外部快照需要文件磁盘" msgstr "磁盘 %(dev)s 不是文件;外部快照需要文件磁盘"
#: vrtManager/instance.py:2017 #: vrtManager/instance.py:2028
#, python-format #, python-format
msgid "" msgid ""
"The storage pools could not be refreshed, so their free space is unknown: " "The storage pools could not be refreshed, so their free space is unknown: "
"%(err)s" "%(err)s"
msgstr "无法刷新存储池,其可用空间未知:%(err)s" msgstr "无法刷新存储池,其可用空间未知:%(err)s"
#: vrtManager/instance.py:2038 #: vrtManager/instance.py:2049
msgid "Memory is saved only from a running VM" msgid "Memory is saved only from a running VM"
msgstr "只能保存运行中的虚拟机的内存" msgstr "只能保存运行中的虚拟机的内存"
#: vrtManager/instance.py:2040 #: vrtManager/instance.py:2051
msgid "The VM has no disk to keep its memory next to" msgid "The VM has no disk to keep its memory next to"
msgstr "虚拟机没有可存放其内存的磁盘" msgstr "虚拟机没有可存放其内存的磁盘"
#: vrtManager/instance.py:2044 #: vrtManager/instance.py:2055
#, python-format #, python-format
msgid "%(disk)s is not in a storage pool; memory is saved only into one" msgid "%(disk)s is not in a storage pool; memory is saved only into one"
msgstr "%(disk)s 不在存储池中;内存只能保存到存储池中" msgstr "%(disk)s 不在存储池中;内存只能保存到存储池中"
#: vrtManager/instance.py:2075 #: vrtManager/instance.py:2086
#, python-format #, python-format
msgid "" msgid ""
"Storage pool %(pool)s has %(free).1f GiB free; the snapshot needs %(size).1f " "Storage pool %(pool)s has %(free).1f GiB free; the snapshot needs %(size).1f "
@ -9170,151 +9183,151 @@ msgstr ""
"存储池 %(pool)s 可用 %(free).1f GiB;快照需要 %(size).1f GiB(其中虚拟机磁盘的 %(percent)g%%,至少 " "存储池 %(pool)s 可用 %(free).1f GiB;快照需要 %(size).1f GiB(其中虚拟机磁盘的 %(percent)g%%,至少 "
"%(minimum)g GiB,若保存内存则另加内存)" "%(minimum)g GiB,若保存内存则另加内存)"
#: vrtManager/instance.py:2093 #: vrtManager/instance.py:2104
msgid "" msgid ""
"This snapshot was taken by an older version on a UEFI VM and cannot be " "This snapshot was taken by an older version on a UEFI VM and cannot be "
"reverted; delete it instead" "reverted; delete it instead"
msgstr "此快照由旧版本在 UEFI 虚拟机上创建,无法还原;请将其删除" msgstr "此快照由旧版本在 UEFI 虚拟机上创建,无法还原;请将其删除"
#: vrtManager/instance.py:2123 #: vrtManager/instance.py:2134
#, python-format #, python-format
msgid "" msgid ""
"The revert failed twice; try again in a moment (%(error)s). The VM is " "The revert failed twice; try again in a moment (%(error)s). The VM is "
"running." "running."
msgstr "还原两次失败;请稍后重试(%(error)s)。虚拟机正在运行。" msgstr "还原两次失败;请稍后重试(%(error)s)。虚拟机正在运行。"
#: vrtManager/instance.py:2125 #: vrtManager/instance.py:2136
#, python-format #, python-format
msgid "" msgid ""
"The revert failed twice; try again in a moment (%(error)s). The VM is shut " "The revert failed twice; try again in a moment (%(error)s). The VM is shut "
"off." "off."
msgstr "还原两次失败;请稍后重试(%(error)s)。虚拟机已关机。" msgstr "还原两次失败;请稍后重试(%(error)s)。虚拟机已关机。"
#: vrtManager/instance.py:2293 #: vrtManager/instance.py:2304
msgid "A disk moves when its VM is defined and running, paused or shut off" msgid "A disk moves when its VM is defined and running, paused or shut off"
msgstr "仅当虚拟机已定义且处于运行、暂停或关机状态时才能移动磁盘" msgstr "仅当虚拟机已定义且处于运行、暂停或关机状态时才能移动磁盘"
#: vrtManager/instance.py:2295 #: vrtManager/instance.py:2306
msgid "" msgid ""
"A disk of a VM with snapshots, a saved state or a running block job does not " "A disk of a VM with snapshots, a saved state or a running block job does not "
"move" "move"
msgstr "有快照、保存的状态或正在运行块任务的虚拟机的磁盘不能移动" msgstr "有快照、保存的状态或正在运行块任务的虚拟机的磁盘不能移动"
#: vrtManager/instance.py:2303 #: vrtManager/instance.py:2314
#, python-format #, python-format
msgid "" msgid ""
"%(dev)s is not a disk file of the VM, the same in its running and next " "%(dev)s is not a disk file of the VM, the same in its running and next "
"start's definition" "start's definition"
msgstr "%(dev)s 不是该虚拟机在运行中的定义和下次启动定义中相同的磁盘文件" msgstr "%(dev)s 不是该虚拟机在运行中的定义和下次启动定义中相同的磁盘文件"
#: vrtManager/instance.py:2308 #: vrtManager/instance.py:2319
#, python-format #, python-format
msgid "%(dev)s does not move: only writable raw and qcow2 disks do" msgid "%(dev)s does not move: only writable raw and qcow2 disks do"
msgstr "%(dev)s 不能移动:只能移动可写的 raw 和 qcow2 磁盘" msgstr "%(dev)s 不能移动:只能移动可写的 raw 和 qcow2 磁盘"
#: vrtManager/instance.py:2315 #: vrtManager/instance.py:2326
#, python-format #, python-format
msgid "%(dev)s does not move: no storage pool has %(path)s" msgid "%(dev)s does not move: no storage pool has %(path)s"
msgstr "%(dev)s 不能移动:没有存储池包含 %(path)s" msgstr "%(dev)s 不能移动:没有存储池包含 %(path)s"
#: vrtManager/instance.py:2317 #: vrtManager/instance.py:2328
#, python-format #, python-format
msgid "%(dev)s does not move: it has a backing file" msgid "%(dev)s does not move: it has a backing file"
msgstr "%(dev)s 不能移动:它有后备文件" msgstr "%(dev)s 不能移动:它有后备文件"
#: vrtManager/instance.py:2320 #: vrtManager/instance.py:2331
#, python-format #, python-format
msgid "%(pool_name)s is not an active pool of disk files of this host" msgid "%(pool_name)s is not an active pool of disk files of this host"
msgstr "%(pool_name)s 不是此主机上活动的磁盘文件存储池" msgstr "%(pool_name)s 不是此主机上活动的磁盘文件存储池"
#: vrtManager/instance.py:2323 #: vrtManager/instance.py:2334
#, python-format #, python-format
msgid "%(dev)s is in pool %(pool_name)s already" msgid "%(dev)s is in pool %(pool_name)s already"
msgstr "%(dev)s 已在存储池 %(pool_name)s 中" msgstr "%(dev)s 已在存储池 %(pool_name)s 中"
#: vrtManager/instance.py:2327 #: vrtManager/instance.py:2338
#, python-format #, python-format
msgid "Pool %(pool_name)s already has a file %(name)s" msgid "Pool %(pool_name)s already has a file %(name)s"
msgstr "存储池 %(pool_name)s 中已有文件 %(name)s" msgstr "存储池 %(pool_name)s 中已有文件 %(name)s"
#: vrtManager/instance.py:2351 #: vrtManager/instance.py:2362
#, python-format #, python-format
msgid "The copy of %(dev)s ended before it was complete" msgid "The copy of %(dev)s ended before it was complete"
msgstr "%(dev)s 的复制在完成前结束" msgstr "%(dev)s 的复制在完成前结束"
#: vrtManager/instance.py:2396 #: vrtManager/instance.py:2407
#, python-format #, python-format
msgid "%(error)s; remove %(dest)s if it is there: %(cleanup_error)s" msgid "%(error)s; remove %(dest)s if it is there: %(cleanup_error)s"
msgstr "%(error)s;如果 %(dest)s 存在请将其删除:%(cleanup_error)s" msgstr "%(error)s;如果 %(dest)s 存在请将其删除:%(cleanup_error)s"
#: vrtManager/instance.py:2398 #: vrtManager/instance.py:2409
#, python-format #, python-format
msgid "%(error)s; the VM may use %(dest)s now: check its disk %(dev)s" msgid "%(error)s; the VM may use %(dest)s now: check its disk %(dev)s"
msgstr "%(error)s;虚拟机现在可能在使用 %(dest)s:请检查其磁盘 %(dev)s" msgstr "%(error)s;虚拟机现在可能在使用 %(dest)s:请检查其磁盘 %(dev)s"
#: vrtManager/instance.py:2405 #: vrtManager/instance.py:2416
#, python-format #, python-format
msgid "The VM has no internal snapshot named %(name)s" msgid "The VM has no internal snapshot named %(name)s"
msgstr "虚拟机没有名为 %(name)s 的内部快照" msgstr "虚拟机没有名为 %(name)s 的内部快照"
#: vrtManager/instance.py:2416 #: vrtManager/instance.py:2427
msgid "A snapshot job is still running on this VM; try again when it ends" msgid "A snapshot job is still running on this VM; try again when it ends"
msgstr "此虚拟机上仍有快照任务在运行;请在其结束后重试" msgstr "此虚拟机上仍有快照任务在运行;请在其结束后重试"
#: vrtManager/instance.py:2426 #: vrtManager/instance.py:2437
msgid "Shut the VM down to revert to an internal snapshot" msgid "Shut the VM down to revert to an internal snapshot"
msgstr "请关闭虚拟机后再还原到内部快照" msgstr "请关闭虚拟机后再还原到内部快照"
#: vrtManager/instance.py:2513 #: vrtManager/instance.py:2524
msgid "A VM with a host's or an external TPM is not cloned; remove it first" msgid "A VM with a host's or an external TPM is not cloned; remove it first"
msgstr "带有主机 TPM 或外部 TPM 的虚拟机无法克隆;请先将其移除" msgstr "带有主机 TPM 或外部 TPM 的虚拟机无法克隆;请先将其移除"
#: vrtManager/instance.py:2544 #: vrtManager/instance.py:2555
msgid "Cannot clone a VM whose NVRAM is not a file" msgid "Cannot clone a VM whose NVRAM is not a file"
msgstr "NVRAM 不是文件的虚拟机无法克隆" msgstr "NVRAM 不是文件的虚拟机无法克隆"
#: vrtManager/instance.py:2614 #: vrtManager/instance.py:2625
#, python-format #, python-format
msgid "Clone failed (%(err)s); remove these copies by hand: %(path)s" msgid "Clone failed (%(err)s); remove these copies by hand: %(path)s"
msgstr "克隆失败(%(err)s);请手动删除这些副本:%(path)s" msgstr "克隆失败(%(err)s);请手动删除这些副本:%(path)s"
#: vrtManager/instance.py:2625 #: vrtManager/instance.py:2636
msgid "Shut the VM down before cloning it" msgid "Shut the VM down before cloning it"
msgstr "请先关闭虚拟机再克隆" msgstr "请先关闭虚拟机再克隆"
#: vrtManager/instance.py:2679 #: vrtManager/instance.py:2690
#, python-format #, python-format
msgid "Clone failed (%(err)s); remove these copies by hand: %(leftovers)s" msgid "Clone failed (%(err)s); remove these copies by hand: %(leftovers)s"
msgstr "克隆失败(%(err)s);请手动删除这些副本:%(leftovers)s" msgstr "克隆失败(%(err)s);请手动删除这些副本:%(leftovers)s"
#: vrtManager/instance.py:2690 #: vrtManager/instance.py:2701
msgid "Live clone needs libvirt 11.10 or later; shut the VM down to clone it" msgid "Live clone needs libvirt 11.10 or later; shut the VM down to clone it"
msgstr "在线克隆需要 libvirt 11.10 或更高版本;请关闭虚拟机后再克隆" msgstr "在线克隆需要 libvirt 11.10 或更高版本;请关闭虚拟机后再克隆"
#: vrtManager/instance.py:2693 #: vrtManager/instance.py:2704
msgid "A VM with a TPM is cloned only shut down" msgid "A VM with a TPM is cloned only shut down"
msgstr "带 TPM 的虚拟机只能在关机时克隆" msgstr "带 TPM 的虚拟机只能在关机时克隆"
#: vrtManager/instance.py:2696 #: vrtManager/instance.py:2707
#, python-format #, python-format
msgid "Disk %(dev)s is not a local file; shut the VM down to clone it" msgid "Disk %(dev)s is not a local file; shut the VM down to clone it"
msgstr "磁盘 %(dev)s 不是本地文件;请关闭虚拟机后再克隆" msgstr "磁盘 %(dev)s 不是本地文件;请关闭虚拟机后再克隆"
#: vrtManager/instance.py:2698 #: vrtManager/instance.py:2709
#, python-format #, python-format
msgid "Disk %(dev)s is shareable; shut the VM down to clone it" msgid "Disk %(dev)s is shareable; shut the VM down to clone it"
msgstr "磁盘 %(dev)s 是可共享的;请关闭虚拟机后再克隆" msgstr "磁盘 %(dev)s 是可共享的;请关闭虚拟机后再克隆"
#: vrtManager/instance.py:2703 #: vrtManager/instance.py:2714
#, python-format #, python-format
msgid "Disk %(dev)s changes at the next start; shut the VM down to clone it" msgid "Disk %(dev)s changes at the next start; shut the VM down to clone it"
msgstr "磁盘 %(dev)s 在下次启动时会改变;请关闭虚拟机后再克隆" msgstr "磁盘 %(dev)s 在下次启动时会改变;请关闭虚拟机后再克隆"
#: vrtManager/instance.py:2705 #: vrtManager/instance.py:2716
msgid "Another job is running on the VM; clone it when that ends" msgid "Another job is running on the VM; clone it when that ends"
msgstr "虚拟机上有另一个任务正在运行;请在其结束后再克隆" msgstr "虚拟机上有另一个任务正在运行;请在其结束后再克隆"
#: vrtManager/instance.py:2731 #: vrtManager/instance.py:2742
#, python-format #, python-format
msgid "" msgid ""
"Storage pool %(pool)s has %(free).1f GiB free; the clone needs %(size).1f GiB" "Storage pool %(pool)s has %(free).1f GiB free; the clone needs %(size).1f GiB"
@ -9323,111 +9336,111 @@ msgstr ""
"存储池 %(pool)s 可用 %(free).1f GiB;克隆需要 %(size).1f GiB(复制的磁盘,再加其 %(percent)g%%,至少" "存储池 %(pool)s 可用 %(free).1f GiB;克隆需要 %(size).1f GiB(复制的磁盘,再加其 %(percent)g%%,至少"
" %(minimum)g GiB)" " %(minimum)g GiB)"
#: vrtManager/instance.py:2748 #: vrtManager/instance.py:2759
#, python-format #, python-format
msgid "Volume %(name)s already exists in storage pool %(pool)s" msgid "Volume %(name)s already exists in storage pool %(pool)s"
msgstr "卷 %(name)s 已存在于存储池 %(pool)s 中" msgstr "卷 %(name)s 已存在于存储池 %(pool)s 中"
#: vrtManager/instance.py:2902 #: vrtManager/instance.py:2913
msgid "A network interface that is a host device is removed in the XML editor" msgid "A network interface that is a host device is removed in the XML editor"
msgstr "作为主机设备的网络接口需在 XML 编辑器中删除" msgstr "作为主机设备的网络接口需在 XML 编辑器中删除"
#: vrtManager/instance.py:2918 #: vrtManager/instance.py:2929
#, python-format #, python-format
msgid "No network interface with MAC %(old_mac)s" msgid "No network interface with MAC %(old_mac)s"
msgstr "没有 MAC 为 %(old_mac)s 的网络接口" msgstr "没有 MAC 为 %(old_mac)s 的网络接口"
#: vrtManager/instance.py:2921 #: vrtManager/instance.py:2932
msgid "A network interface that is a host device is changed in the XML editor" msgid "A network interface that is a host device is changed in the XML editor"
msgstr "作为主机设备的网络接口需在 XML 编辑器中修改" msgstr "作为主机设备的网络接口需在 XML 编辑器中修改"
#: vrtManager/instance.py:3015 #: vrtManager/instance.py:3026
msgid "" msgid ""
"A VM changes its PCI devices while it runs, or is shut off without a saved " "A VM changes its PCI devices while it runs, or is shut off without a saved "
"state" "state"
msgstr "虚拟机只能在运行时或无保存的状态的关机时更改其 PCI 设备" msgstr "虚拟机只能在运行时或无保存的状态的关机时更改其 PCI 设备"
#: vrtManager/instance.py:3036 #: vrtManager/instance.py:3047
#, python-format #, python-format
msgid "%(err)s; whether the VM has %(device)s now is not known" msgid "%(err)s; whether the VM has %(device)s now is not known"
msgstr "%(err)s;虚拟机现在是否有 %(device)s 未知" msgstr "%(err)s;虚拟机现在是否有 %(device)s 未知"
#: vrtManager/instance.py:3038 #: vrtManager/instance.py:3049
#, python-format #, python-format
msgid "%(err)s; %(device)s: the VM is not running, its next start has it" msgid "%(err)s; %(device)s: the VM is not running, its next start has it"
msgstr "%(err)s;%(device)s:虚拟机未运行,下次启动时有它" msgstr "%(err)s;%(device)s:虚拟机未运行,下次启动时有它"
#: vrtManager/instance.py:3039 #: vrtManager/instance.py:3050
#, python-format #, python-format
msgid "" msgid ""
"%(err)s; %(device)s: the VM is not running, its next start does not have it" "%(err)s; %(device)s: the VM is not running, its next start does not have it"
msgstr "%(err)s;%(device)s:虚拟机未运行,下次启动时没有它" msgstr "%(err)s;%(device)s:虚拟机未运行,下次启动时没有它"
#: vrtManager/instance.py:3040 #: vrtManager/instance.py:3051
#, python-format #, python-format
msgid "%(err)s; %(device)s: the running VM has it, its next start has it" msgid "%(err)s; %(device)s: the running VM has it, its next start has it"
msgstr "%(err)s;%(device)s:运行中的虚拟机有它,下次启动时有它" msgstr "%(err)s;%(device)s:运行中的虚拟机有它,下次启动时有它"
#: vrtManager/instance.py:3041 #: vrtManager/instance.py:3052
#, python-format #, python-format
msgid "" msgid ""
"%(err)s; %(device)s: the running VM has it, its next start does not have it" "%(err)s; %(device)s: the running VM has it, its next start does not have it"
msgstr "%(err)s;%(device)s:运行中的虚拟机有它,下次启动时没有它" msgstr "%(err)s;%(device)s:运行中的虚拟机有它,下次启动时没有它"
#: vrtManager/instance.py:3042 #: vrtManager/instance.py:3053
#, python-format #, python-format
msgid "" msgid ""
"%(err)s; %(device)s: the running VM does not have it, its next start has it" "%(err)s; %(device)s: the running VM does not have it, its next start has it"
msgstr "%(err)s;%(device)s:运行中的虚拟机没有它,下次启动时有它" msgstr "%(err)s;%(device)s:运行中的虚拟机没有它,下次启动时有它"
#: vrtManager/instance.py:3044 #: vrtManager/instance.py:3055
#, python-format #, python-format
msgid "" msgid ""
"%(err)s; %(device)s: the running VM does not have it, its next start does not" "%(err)s; %(device)s: the running VM does not have it, its next start does not"
" have it" " have it"
msgstr "%(err)s;%(device)s:运行中的虚拟机没有它,下次启动时没有它" msgstr "%(err)s;%(device)s:运行中的虚拟机没有它,下次启动时没有它"
#: vrtManager/instance.py:3078 #: vrtManager/instance.py:3089
#, python-format #, python-format
msgid "The VM has no PCI device %(address)s" msgid "The VM has no PCI device %(address)s"
msgstr "虚拟机没有 PCI 设备 %(address)s" msgstr "虚拟机没有 PCI 设备 %(address)s"
#: vrtManager/instance.py:3099 #: vrtManager/instance.py:3110
msgid "The VM has no USB controller" msgid "The VM has no USB controller"
msgstr "虚拟机没有 USB 控制器" msgstr "虚拟机没有 USB 控制器"
#: vrtManager/instance.py:3133 #: vrtManager/instance.py:3144
msgid "The VM has no such USB device" msgid "The VM has no such USB device"
msgstr "虚拟机没有此 USB 设备" msgstr "虚拟机没有此 USB 设备"
#: vrtManager/instance.py:3147 #: vrtManager/instance.py:3158
#, python-format #, python-format
msgid "The VM has no network interface %(mac)s" msgid "The VM has no network interface %(mac)s"
msgstr "虚拟机没有网络接口 %(mac)s" msgstr "虚拟机没有网络接口 %(mac)s"
#: vrtManager/instance.py:3178 #: vrtManager/instance.py:3189
msgid "The VM has its own RNG device: change it in the XML editor" msgid "The VM has its own RNG device: change it in the XML editor"
msgstr "虚拟机有自己的 RNG 设备:请在 XML 编辑器中修改" msgstr "虚拟机有自己的 RNG 设备:请在 XML 编辑器中修改"
#: vrtManager/instance.py:3205 #: vrtManager/instance.py:3216
msgid "The VM has its own TPM: change it in the XML editor" msgid "The VM has its own TPM: change it in the XML editor"
msgstr "虚拟机有自己的 TPM:请在 XML 编辑器中修改" msgstr "虚拟机有自己的 TPM:请在 XML 编辑器中修改"
#: vrtManager/instance.py:3224 #: vrtManager/instance.py:3235
#, python-format #, python-format
msgid "Unknown crash action %(action)s" msgid "Unknown crash action %(action)s"
msgstr "未知的崩溃操作 %(action)s" msgstr "未知的崩溃操作 %(action)s"
#: vrtManager/instance.py:3251 #: vrtManager/instance.py:3262
#, python-format #, python-format
msgid "Network interface %(mac)s is not in the definition" msgid "Network interface %(mac)s is not in the definition"
msgstr "网络接口 %(mac)s 不在定义中" msgstr "网络接口 %(mac)s 不在定义中"
#: vrtManager/instance.py:3342 #: vrtManager/instance.py:3353
msgid "The guest agent did not answer in time; nothing was changed" msgid "The guest agent did not answer in time; nothing was changed"
msgstr "客户机代理未及时响应;未做任何更改" msgstr "客户机代理未及时响应;未做任何更改"
#: vrtManager/instance.py:3345 #: vrtManager/instance.py:3356
msgid "The VM runs Windows: its guest agent sets no root password or SSH key" msgid "The VM runs Windows: its guest agent sets no root password or SSH key"
msgstr "该虚拟机运行 Windows:其客户机代理不能设置 root 密码或 SSH 密钥" msgstr "该虚拟机运行 Windows:其客户机代理不能设置 root 密码或 SSH 密钥"

View file

@ -1639,6 +1639,10 @@ class wvmInstance(wvmConnect):
except ValueError: # a host name except ValueError: # a host name
return False return False
def get_console_listen_type(self, config=False):
"""address, network, socket or none; None for a console without a listen element"""
return util.get_xml_path(self._XMLDesc(PERSISTENT_XML if config else 0), "/domain/devices/graphics[1]/listen/@type")
def set_console_listener_addr(self, listener_addr): def set_console_listener_addr(self, listener_addr):
root = etree.fromstring(self._XMLDesc(PERSISTENT_XML)) root = etree.fromstring(self._XMLDesc(PERSISTENT_XML))
# The console is the first graphics device of the definition being # The console is the first graphics device of the definition being
@ -1648,7 +1652,9 @@ class wvmInstance(wvmConnect):
return False return False
listen = graphic.find("listen[@type='address']") listen = graphic.find("listen[@type='address']")
if listen is None: if listen is None:
return False raise util.OperationError(
gettext_noop("The console listens on no address (on a network, a socket or nowhere); "
"change it in the XML editor"))
if listener_addr: if listener_addr:
graphic.set("listen", listener_addr) graphic.set("listen", listener_addr)
listen.set("address", listener_addr) listen.set("address", listener_addr)
@ -1665,6 +1671,11 @@ class wvmInstance(wvmConnect):
serial console opens (libvirt adds the serial port for the console).""" serial console opens (libvirt adds the serial port for the console)."""
root = etree.fromstring(self._XMLDesc(PERSISTENT_XML)) root = etree.fromstring(self._XMLDesc(PERSISTENT_XML))
devices = root.find("devices") devices = root.find("devices")
console = devices.find("console")
if console_type == "pty" and console is not None and console.get("type") != "pty":
raise util.OperationError(
gettext_noop("The serial console is a %(type)s one, the browser opens only a pty one; "
"change it in the XML editor"), type=console.get("type"))
graphics = devices.findall("graphics") graphics = devices.findall("graphics")
for graphic in graphics: for graphic in graphics:
devices.remove(graphic) devices.remove(graphic)
@ -1684,7 +1695,7 @@ class wvmInstance(wvmConnect):
if passwd is not None: if passwd is not None:
fits = len(passwd) <= 8 and all(" " <= c <= "~" for c in passwd) fits = len(passwd) <= 8 and all(" " <= c <= "~" for c in passwd)
vnc.set("passwd", passwd if fits else util.randomPasswd(8)) vnc.set("passwd", passwd if fits else util.randomPasswd(8))
elif devices.find("console") is None: elif console is None:
etree.SubElement(devices, "console", type="pty") etree.SubElement(devices, "console", type="pty")
return self._defineXML(etree.tostring(root).decode()) return self._defineXML(etree.tostring(root).decode())

View file

@ -6,6 +6,7 @@ import unittest
from lxml import etree from lxml import etree
from vrtManager.instance import wvmInstance from vrtManager.instance import wvmInstance
from vrtManager.util import OperationError
SPICE = """<domain><devices> SPICE = """<domain><devices>
<graphics type='spice' autoport='yes' keymap='de' passwd='%s'><listen type='address' address='0.0.0.0'/></graphics> <graphics type='spice' autoport='yes' keymap='de' passwd='%s'><listen type='address' address='0.0.0.0'/></graphics>
@ -54,3 +55,13 @@ class ConsoleGraphicsTestCase(unittest.TestCase):
self.assertEqual((p.get_console_type(), p.get_console_port(), p.get_console_passwd(), self.assertEqual((p.get_console_type(), p.get_console_port(), p.get_console_passwd(),
p.get_console_keymap(), p.get_console_listener_addr()), p.get_console_keymap(), p.get_console_listener_addr()),
("vnc", "5901", None, "", "127.0.0.1")) ("vnc", "5901", None, "", "127.0.0.1"))
def test_a_change_the_console_cannot_take_is_refused_and_nothing_is_saved(self):
# the browser opens only a pty serial console; a socket console has no address to change
p = vm("""<domain><devices><console type='tcp'><source mode='bind' host='127.0.0.1' service='4555'/></console>
<graphics type='vnc'><listen type='socket'/></graphics></devices></domain>""")
for change, reason in ((lambda: p.set_console_type("pty"), "The serial console is a tcp one"),
(lambda: p.set_console_listener_addr("0.0.0.0"), "The console listens on no address")):
with self.subTest(reason), self.assertRaisesRegex(OperationError, reason):
change()
self.assertEqual(p.defined, [])