diff --git a/locale/tr/LC_MESSAGES/django.mo b/locale/tr/LC_MESSAGES/django.mo index a790150a..40457431 100644 Binary files a/locale/tr/LC_MESSAGES/django.mo and b/locale/tr/LC_MESSAGES/django.mo differ diff --git a/locale/tr/LC_MESSAGES/django.po b/locale/tr/LC_MESSAGES/django.po index 124d6848..90aea246 100644 --- a/locale/tr/LC_MESSAGES/django.po +++ b/locale/tr/LC_MESSAGES/django.po @@ -11,7 +11,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2026-11-12 09:51+0000\n" +"POT-Creation-Date: 2026-11-12 09:58+0000\n" "PO-Revision-Date: 2020-11-04 12:00+0000\n" "Last-Translator: catborise , 2020\n" "Language-Team: Turkish (https://www.transifex.com/catborise/teams/110663/tr/)\n" @@ -2871,7 +2871,7 @@ msgstr "" msgid "Delete snapshot" msgstr "Anlık görüntüyü sil" -#: instances/jobs.py:356 vrtManager/instance.py:2310 +#: instances/jobs.py:356 vrtManager/instance.py:2317 #, python-format msgid "The VM has no external snapshot named %(name)s" msgstr "Sanal makinede %(name)s adında harici anlık görüntü yok" @@ -2906,7 +2906,7 @@ msgstr "Sanal makine artık işin çalıştığı sunucuda değil" msgid "Take snapshot" msgstr "Anlık görüntü al" -#: instances/jobs.py:424 instances/jobs.py:433 vrtManager/instance.py:1901 +#: instances/jobs.py:424 instances/jobs.py:433 vrtManager/instance.py:1908 #, python-format msgid "A snapshot named %(name)s already exists" msgstr "%(name)s adında bir anlık görüntü zaten var" @@ -3110,7 +3110,7 @@ msgstr "cloud-init tohumu, disk için bir dizin depolama havuzu gerektirir" msgid "This host offers no firmware %(firmware)s" msgstr "Bu sunucu %(firmware)s firmware'ini sunmuyor" -#: instances/jobs.py:908 vrtManager/instance.py:3099 +#: instances/jobs.py:908 vrtManager/instance.py:3116 msgid "This host offers no TPM 2.0: install swtpm on it" msgstr "Bu sunucu TPM 2.0 sunmuyor: üzerine swtpm kurun" @@ -4403,7 +4403,7 @@ msgid "Add USB device" msgstr "USB aygıtı ekle" #: instances/templates/instances/host_devices_form.html:18 -#: vrtManager/instance.py:3003 +#: vrtManager/instance.py:3020 msgid "" "A VM with a saved state does not change its USB devices: start it, or start " "it without its saved state" @@ -6322,7 +6322,7 @@ msgstr "Birim başarıyla değiştirildi." msgid "Disk %(dev)s is not a storage volume of this instance" msgstr "%(dev)s diski bu sanal makinenin bir depolama birimi değil" -#: instances/views.py:1546 vrtManager/instance.py:2320 +#: instances/views.py:1546 vrtManager/instance.py:2327 msgid "The VM has a saved state; start it or remove the saved state first" msgstr "" "Sanal makinenin kaydedilmiş durumu var; önce başlatın veya kaydedilmiş durumu" @@ -6384,7 +6384,7 @@ msgstr "Anlık görüntü silinmedi: %(err)s" msgid "Add at least one device to the boot order." msgstr "Ön yükleme sırasına en az bir aygıt ekleyin." -#: instances/views.py:1852 vrtManager/instance.py:1119 +#: instances/views.py:1852 vrtManager/instance.py:1126 msgid "Invalid Device Type for boot order" msgstr "Ön yükleme sırası için geçersiz aygıt türü" @@ -9105,7 +9105,7 @@ msgstr "Bağlantı başarısız: %(host)s bağlı değil" msgid "This host has no architecture %(arch)s" msgstr "Bu sunucuda %(arch)s mimarisi yok" -#: vrtManager/connection.py:1178 +#: vrtManager/connection.py:1190 #, python-format msgid "" "Pool %(pool)s is not active: the files the disks of the VMs in it are made " @@ -9134,41 +9134,52 @@ msgstr "Kaydedilmiş durumu olan bir sanal makine taşınamaz" msgid "A VM with host devices cannot be migrated; remove them first" msgstr "Sunucu aygıtları olan bir sanal makine taşınamaz; önce onları kaldırın" +#: vrtManager/instance.py:177 +#, python-format +msgid "The destination host does not have these networks of the VM: %(names)s" +msgstr "Hedef sunucuda VM'in şu ağları yok: %(names)s" + #: vrtManager/instance.py:180 #, python-format +msgid "" +"The destination host does not have these network filters of the VM: %(names)s" +msgstr "Hedef sunucuda VM'in şu ağ filtreleri yok: %(names)s" + +#: vrtManager/instance.py:187 +#, python-format msgid "The destination host does not have these disks of the VM: %(disks)s" msgstr "Hedef sunucuda sanal makinenin şu diskleri yok: %(disks)s" -#: vrtManager/instance.py:181 +#: vrtManager/instance.py:188 #, python-format msgid "%(target)s (%(source)s)" msgstr "%(target)s (%(source)s)" -#: vrtManager/instance.py:189 +#: vrtManager/instance.py:196 msgid "Destination host emulator is different. Cannot be migrated" msgstr "Hedef sunucunun emülatörü farklı. Taşınamaz" -#: vrtManager/instance.py:323 +#: vrtManager/instance.py:330 msgid "an image is not copied; eject it first" msgstr "bir imaj kopyalanmaz; önce onu çıkarın" -#: vrtManager/instance.py:326 +#: vrtManager/instance.py:333 msgid "a read-only or encrypted disk is not copied" msgstr "salt okunur veya şifreli bir disk kopyalanmaz" -#: vrtManager/instance.py:329 +#: vrtManager/instance.py:336 msgid "only raw and qcow2 disks are copied" msgstr "yalnızca raw ve qcow2 diskler kopyalanır" -#: vrtManager/instance.py:331 +#: vrtManager/instance.py:338 msgid "no storage pool of the source host has it" msgstr "kaynak sunucunun hiçbir depolama havuzunda yok" -#: vrtManager/instance.py:333 +#: vrtManager/instance.py:340 msgid "a disk with a backing file is not copied" msgstr "temel (backing) dosyası olan bir disk kopyalanmaz" -#: vrtManager/instance.py:353 +#: vrtManager/instance.py:360 #, python-format msgid "" "%(target)s (%(path)s): the destination host does not share it; choose a pool " @@ -9177,12 +9188,12 @@ msgstr "" "%(target)s (%(path)s): hedef sunucu bunu paylaşmıyor; kopyalanacağı bir havuz" " seçin" -#: vrtManager/instance.py:357 +#: vrtManager/instance.py:364 #, python-format msgid "%(target)s (%(path)s): %(refusal)s" msgstr "%(target)s (%(path)s): %(refusal)s" -#: vrtManager/instance.py:362 +#: vrtManager/instance.py:369 #, python-format msgid "" "%(target)s (%(path)s): the destination host has no pool %(pool)s for disk " @@ -9190,7 +9201,7 @@ msgid "" msgstr "" "%(target)s (%(path)s): hedef sunucuda disk dosyaları için %(pool)s havuzu yok" -#: vrtManager/instance.py:369 +#: vrtManager/instance.py:376 #, python-format msgid "" "%(target)s (%(path)s): pool %(pool)s of the destination host already has a " @@ -9199,17 +9210,17 @@ msgstr "" "%(target)s (%(path)s): hedef sunucunun %(pool)s havuzunda zaten %(file)s " "dosyası var" -#: vrtManager/instance.py:376 +#: vrtManager/instance.py:383 #, python-format msgid "%(target)s (%(path)s): another disk is copied to %(dest)s" msgstr "%(target)s (%(path)s): başka bir disk %(dest)s konumuna kopyalanıyor" -#: vrtManager/instance.py:381 +#: vrtManager/instance.py:388 #, python-format msgid "%(target)s: the VM has no disk file to copy" msgstr "%(target)s: sanal makinenin kopyalanacak disk dosyası yok" -#: vrtManager/instance.py:385 +#: vrtManager/instance.py:392 #, python-format msgid "" "%(target)s (%(path)s) of the next start: the destination host does not share " @@ -9218,12 +9229,12 @@ msgstr "" "Sonraki başlatmanın %(target)s (%(path)s) diski: hedef sunucu bunu " "paylaşmıyor" -#: vrtManager/instance.py:389 +#: vrtManager/instance.py:396 #, python-format msgid "The disks cannot be migrated: %(problems)s" msgstr "Diskler taşınamaz: %(problems)s" -#: vrtManager/instance.py:402 +#: vrtManager/instance.py:409 #, python-format msgid "" "%(error)s; remove the partial disk copies from the destination host: " @@ -9231,14 +9242,14 @@ msgid "" msgstr "" "%(error)s; yarım kalan disk kopyalarını hedef sunucudan kaldırın: %(copies)s" -#: vrtManager/instance.py:419 +#: vrtManager/instance.py:426 #, python-format msgid "" "%(error)s; remove the partial disk copies from the destination host: %(left)s" msgstr "" "%(error)s; yarım kalan disk kopyalarını hedef sunucudan kaldırın: %(left)s" -#: vrtManager/instance.py:433 +#: vrtManager/instance.py:440 #, python-format msgid "" "The NVRAM file %(path)s is not in libvirt's NVRAM directory %(dir)s and " @@ -9247,26 +9258,26 @@ msgstr "" "%(path)s NVRAM dosyası libvirt'in NVRAM dizini %(dir)s içinde değil ve " "kopyalanamaz" -#: vrtManager/instance.py:442 +#: vrtManager/instance.py:449 #, python-format msgid "The destination host cannot see the NVRAM file %(path)s" msgstr "Hedef sunucu %(path)s NVRAM dosyasını göremiyor" -#: vrtManager/instance.py:518 +#: vrtManager/instance.py:525 #, python-format msgid "%(type)s disk, cannot be checked" msgstr "%(type)s disk, kontrol edilemiyor" -#: vrtManager/instance.py:558 +#: vrtManager/instance.py:565 #, python-format msgid "The destination host already has a VM %(key)s" msgstr "Hedef sunucuda zaten %(key)s sanal makinesi var" -#: vrtManager/instance.py:580 +#: vrtManager/instance.py:587 msgid "The VM was started on the source host during the migration" msgstr "Sanal makine taşıma sırasında kaynak sunucuda başlatıldı" -#: vrtManager/instance.py:596 +#: vrtManager/instance.py:603 #, python-format msgid "" "%(error)s; the VM may now be defined only on the destination host: check both" @@ -9275,7 +9286,7 @@ msgstr "" "%(error)s; sanal makine artık yalnızca hedef sunucuda tanımlı olabilir: iki " "sunucuyu da kontrol edin" -#: vrtManager/instance.py:602 +#: vrtManager/instance.py:609 #, python-format msgid "" "%(error)s; the VM is now defined on both hosts, remove it from the " @@ -9284,7 +9295,7 @@ msgstr "" "%(error)s; sanal makine artık iki sunucuda da tanımlı, hedeften kaldırın: " "%(undo_error)s" -#: vrtManager/instance.py:608 +#: vrtManager/instance.py:615 msgid "" "Snapshot names are 1-64 letters, digits, '.', '_' or '-' and do not start " "with '.'" @@ -9292,7 +9303,7 @@ msgstr "" "Anlık görüntü adları 1-64 harf, rakam, '.', '_' veya '-' karakterinden oluşur" " ve '.' ile başlamaz" -#: vrtManager/instance.py:1107 +#: vrtManager/instance.py:1114 msgid "" "A device other than a disk or NIC is in the boot order: change it in the XML " "editor" @@ -9300,51 +9311,51 @@ msgstr "" "Önyükleme sırasında disk veya NIC dışında bir aygıt var: bunu XML " "düzenleyicide değiştirin" -#: vrtManager/instance.py:1122 +#: vrtManager/instance.py:1129 #, python-format msgid "Boot device %(dev)s is not in the definition" msgstr "Ön yükleme aygıtı %(dev)s tanımda yok" -#: vrtManager/instance.py:1142 +#: vrtManager/instance.py:1149 #, python-format msgid "CD-ROM %(dev)s is not in the running definition" msgstr "CD-ROM %(dev)s çalışan tanımda yok" -#: vrtManager/instance.py:1143 +#: vrtManager/instance.py:1150 #, python-format msgid "CD-ROM %(dev)s is not in the persistent definition" msgstr "CD-ROM %(dev)s kalıcı tanımda yok" -#: vrtManager/instance.py:1156 +#: vrtManager/instance.py:1163 #, python-format msgid "Media of %(dev)s changed in the running VM only: %(err)s" msgstr "%(dev)s ortamı yalnızca çalışan sanal makinede değişti: %(err)s" -#: vrtManager/instance.py:1167 +#: vrtManager/instance.py:1174 #, python-format msgid "ISO image %(image)s was not found" msgstr "ISO imajı %(image)s bulunamadı" -#: vrtManager/instance.py:1169 +#: vrtManager/instance.py:1176 #, python-format msgid "ISO image %(image)s is in more than one storage pool" msgstr "ISO imajı %(image)s birden fazla depolama havuzunda var" -#: vrtManager/instance.py:1264 +#: vrtManager/instance.py:1271 #, python-format msgid "Disk %(target_dev)s is not in the VM's definition" msgstr "Disk %(target_dev)s sanal makinenin tanımında yok" -#: vrtManager/instance.py:1396 +#: vrtManager/instance.py:1403 msgid "Please shutdown the instance then try to enable vCPU hotplug" msgstr "" "vCPU hotplug özelliğini etkinleştirmek için önce sanal makineyi kapatın" -#: vrtManager/instance.py:1683 +#: vrtManager/instance.py:1690 msgid "The VM has no video card" msgstr "Sanal makinede ekran kartı yok" -#: vrtManager/instance.py:1693 +#: vrtManager/instance.py:1700 #, python-format msgid "" "The VM's CPU topology has %(count)s vCPUs: change it in the XML editor to set" @@ -9353,62 +9364,62 @@ msgstr "" "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" -#: vrtManager/instance.py:1719 +#: vrtManager/instance.py:1726 #, python-format msgid "The VM's next start has a maximum memory of %(max)s MiB" msgstr "" "Sanal makinenin bir sonraki başlangıcındaki en yüksek bellek %(max)s MiB" -#: vrtManager/instance.py:1860 +#: vrtManager/instance.py:1867 msgid "" "The VM has external snapshots; internal snapshots cannot be mixed with them" msgstr "" "Sanal makinenin harici anlık görüntüleri var; dahili anlık görüntüler " "bunlarla karıştırılamaz" -#: vrtManager/instance.py:1892 +#: vrtManager/instance.py:1899 msgid "A snapshot with memory is not quiesced; it keeps the whole guest state" msgstr "" "Bellekli bir anlık görüntüde dosya sistemleri dondurulmaz; tüm konuk durumunu" " saklar" -#: vrtManager/instance.py:1894 +#: vrtManager/instance.py:1901 msgid "Only a running VM's file systems can be frozen" msgstr "Yalnızca çalışan bir sanal makinenin dosya sistemleri dondurulabilir" -#: vrtManager/instance.py:1896 +#: vrtManager/instance.py:1903 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" -#: vrtManager/instance.py:1899 +#: vrtManager/instance.py:1906 msgid "" "The VM has internal snapshots; external snapshots cannot be mixed with them" msgstr "" "Sanal makinenin dahili anlık görüntüleri var; harici anlık görüntüler " "bunlarla karıştırılamaz" -#: vrtManager/instance.py:1904 +#: vrtManager/instance.py:1911 msgid "Newer snapshots exist after the last revert; delete them first" msgstr "" "Son geri dönüşten sonra daha yeni anlık görüntüler var; önce onları silin" -#: vrtManager/instance.py:1907 +#: vrtManager/instance.py:1914 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" -#: vrtManager/instance.py:1913 +#: vrtManager/instance.py:1920 #, python-format msgid "Eject the media from %(dev)s first" msgstr "Önce %(dev)s içindeki ortamı çıkarın" -#: vrtManager/instance.py:1915 +#: vrtManager/instance.py:1922 #, python-format msgid "Disk %(dev)s is not a file; external snapshots need file disks" msgstr "" "Disk %(dev)s bir dosya değil; harici anlık görüntüler dosya diskleri " "gerektirir" -#: vrtManager/instance.py:1923 +#: vrtManager/instance.py:1930 #, python-format msgid "" "The storage pools could not be refreshed, so their free space is unknown: " @@ -9416,21 +9427,21 @@ msgid "" msgstr "" "Depolama havuzları yenilenemedi, bu yüzden boş alanları bilinmiyor: %(err)s" -#: vrtManager/instance.py:1944 +#: vrtManager/instance.py:1951 msgid "Memory is saved only from a running VM" msgstr "Bellek yalnızca çalışan bir sanal makineden kaydedilir" -#: vrtManager/instance.py:1946 +#: vrtManager/instance.py:1953 msgid "The VM has no disk to keep its memory next to" msgstr "Sanal makinenin, belleğinin yanına kaydedileceği bir diski yok" -#: vrtManager/instance.py:1950 +#: vrtManager/instance.py:1957 #, python-format msgid "%(disk)s is not in a storage pool; memory is saved only into one" msgstr "" "%(disk)s bir depolama havuzunda değil; bellek yalnızca bir havuza kaydedilir" -#: vrtManager/instance.py:1981 +#: vrtManager/instance.py:1988 #, python-format msgid "" "Storage pool %(pool)s has %(free).1f GiB free; the snapshot needs %(size).1f " @@ -9441,7 +9452,7 @@ msgstr "" "%(size).1f GiB gerektiriyor (sanal makinenin oradaki disklerinin " "%%%(percent)g kadarı, en az %(minimum)g GiB, ve kaydediliyorsa bellek)" -#: vrtManager/instance.py:1999 +#: vrtManager/instance.py:2006 msgid "" "This snapshot was taken by an older version on a UEFI VM and cannot be " "reverted; delete it instead" @@ -9449,7 +9460,7 @@ msgstr "" "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" -#: vrtManager/instance.py:2029 +#: vrtManager/instance.py:2036 #, python-format msgid "" "The revert failed twice; try again in a moment (%(error)s). The VM is " @@ -9458,7 +9469,7 @@ msgstr "" "Geri dönüş iki kez başarısız oldu; biraz sonra tekrar deneyin (%(error)s). " "Sanal makine çalışıyor." -#: vrtManager/instance.py:2031 +#: vrtManager/instance.py:2038 #, python-format msgid "" "The revert failed twice; try again in a moment (%(error)s). The VM is shut " @@ -9467,13 +9478,13 @@ msgstr "" "Geri dönüş iki kez başarısız oldu; biraz sonra tekrar deneyin (%(error)s). " "Sanal makine kapalı." -#: vrtManager/instance.py:2199 +#: vrtManager/instance.py:2206 msgid "A disk moves when its VM is defined and running, paused or shut off" msgstr "" "Bir disk, sanal makinesi tanımlıyken ve çalışırken, duraklatılmışken veya " "kapalıyken taşınır" -#: vrtManager/instance.py:2201 +#: vrtManager/instance.py:2208 msgid "" "A disk of a VM with snapshots, a saved state or a running block job does not " "move" @@ -9481,7 +9492,7 @@ msgstr "" "Anlık görüntüleri, kaydedilmiş durumu veya çalışan bir blok işi olan sanal " "makinenin diski taşınmaz" -#: vrtManager/instance.py:2209 +#: vrtManager/instance.py:2216 #, python-format msgid "" "%(dev)s is not a disk file of the VM, the same in its running and next " @@ -9490,127 +9501,127 @@ msgstr "" "%(dev)s, sanal makinenin çalışan ve sonraki başlatma tanımlarında aynı olan " "bir disk dosyası değil" -#: vrtManager/instance.py:2214 +#: vrtManager/instance.py:2221 #, python-format 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" -#: vrtManager/instance.py:2221 +#: vrtManager/instance.py:2228 #, python-format msgid "%(dev)s does not move: no storage pool has %(path)s" msgstr "%(dev)s taşınmaz: hiçbir depolama havuzunda %(path)s yok" -#: vrtManager/instance.py:2223 +#: vrtManager/instance.py:2230 #, python-format msgid "%(dev)s does not move: it has a backing file" msgstr "%(dev)s taşınmaz: temel (backing) dosyası var" -#: vrtManager/instance.py:2226 +#: vrtManager/instance.py:2233 #, python-format 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" -#: vrtManager/instance.py:2229 +#: vrtManager/instance.py:2236 #, python-format msgid "%(dev)s is in pool %(pool_name)s already" msgstr "%(dev)s zaten %(pool_name)s havuzunda" -#: vrtManager/instance.py:2233 +#: vrtManager/instance.py:2240 #, python-format msgid "Pool %(pool_name)s already has a file %(name)s" msgstr "%(pool_name)s havuzunda zaten %(name)s dosyası var" -#: vrtManager/instance.py:2257 +#: vrtManager/instance.py:2264 #, python-format msgid "The copy of %(dev)s ended before it was complete" msgstr "%(dev)s kopyası tamamlanmadan sona erdi" -#: vrtManager/instance.py:2302 +#: vrtManager/instance.py:2309 #, python-format 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" -#: vrtManager/instance.py:2304 +#: vrtManager/instance.py:2311 #, python-format msgid "%(error)s; the VM may use %(dest)s now: check its disk %(dev)s" msgstr "" "%(error)s; sanal makine şu anda %(dest)s dosyasını kullanıyor olabilir: " "%(dev)s diskini kontrol edin" -#: vrtManager/instance.py:2311 +#: vrtManager/instance.py:2318 #, python-format msgid "The VM has no internal snapshot named %(name)s" msgstr "Sanal makinenin %(name)s adlı dahili anlık görüntüsü yok" -#: vrtManager/instance.py:2322 +#: vrtManager/instance.py:2329 msgid "A snapshot job is still running on this VM; try again when it ends" msgstr "" "Bu sanal makinede hâlâ bir anlık görüntü işi çalışıyor; bittiğinde tekrar " "deneyin" -#: vrtManager/instance.py:2332 +#: vrtManager/instance.py:2339 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" -#: vrtManager/instance.py:2419 +#: vrtManager/instance.py:2426 msgid "A VM with a host's or an external TPM is not cloned; remove it first" msgstr "" "Ana makinenin ya da harici bir TPM'i olan sanal makine klonlanmaz; önce onu " "kaldırın" -#: vrtManager/instance.py:2441 +#: vrtManager/instance.py:2448 msgid "Cannot clone a VM whose NVRAM is not a file" msgstr "NVRAM'i dosya olmayan bir sanal makine klonlanamaz" -#: vrtManager/instance.py:2511 +#: vrtManager/instance.py:2518 #, python-format msgid "Clone failed (%(err)s); remove these copies by hand: %(path)s" msgstr "" "Klonlama başarısız oldu (%(err)s); bu kopyaları elle kaldırın: %(path)s" -#: vrtManager/instance.py:2522 +#: vrtManager/instance.py:2529 msgid "Shut the VM down before cloning it" msgstr "Klonlamadan önce sanal makineyi kapatın" -#: vrtManager/instance.py:2576 +#: vrtManager/instance.py:2583 #, python-format msgid "Clone failed (%(err)s); remove these copies by hand: %(leftovers)s" msgstr "" "Klonlama başarısız oldu (%(err)s); bu kopyaları elle kaldırın: %(leftovers)s" -#: vrtManager/instance.py:2587 +#: vrtManager/instance.py:2594 msgid "Live clone needs libvirt 11.10 or later; shut the VM down to clone it" msgstr "" "Canlı klonlama libvirt 11.10 veya sonrasını gerektirir; klonlamak için sanal " "makineyi kapatın" -#: vrtManager/instance.py:2590 +#: vrtManager/instance.py:2597 msgid "A VM with a TPM is cloned only shut down" msgstr "TPM'i olan bir sanal makine yalnızca kapalıyken klonlanır" -#: vrtManager/instance.py:2593 +#: vrtManager/instance.py:2600 #, python-format msgid "Disk %(dev)s is not a local file; shut the VM down to clone it" msgstr "" "Disk %(dev)s yerel bir dosya değil; klonlamak için sanal makineyi kapatın" -#: vrtManager/instance.py:2595 +#: vrtManager/instance.py:2602 #, python-format 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" -#: vrtManager/instance.py:2600 +#: vrtManager/instance.py:2607 #, python-format msgid "Disk %(dev)s changes at the next start; shut the VM down to clone it" msgstr "" "Disk %(dev)s sonraki başlatmada değişiyor; klonlamak için sanal makineyi " "kapatın" -#: vrtManager/instance.py:2602 +#: vrtManager/instance.py:2609 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" -#: vrtManager/instance.py:2628 +#: vrtManager/instance.py:2635 #, python-format msgid "" "Storage pool %(pool)s has %(free).1f GiB free; the clone needs %(size).1f GiB" @@ -9620,25 +9631,35 @@ msgstr "" "gerektiriyor (kopyalanan diskler, artı bunların %%%(percent)g kadarı, en az " "%(minimum)g GiB)" -#: vrtManager/instance.py:2645 +#: vrtManager/instance.py:2652 #, python-format msgid "Volume %(name)s already exists in storage pool %(pool)s" msgstr "%(name)s birimi %(pool)s depolama havuzunda zaten var" -#: vrtManager/instance.py:2790 +#: vrtManager/instance.py:2767 +#, python-format +msgid "This host has no network %(name)s" +msgstr "Bu sunucuda %(name)s ağı yok" + +#: vrtManager/instance.py:2769 +#, python-format +msgid "This host has no network filter %(name)s" +msgstr "Bu sunucuda %(name)s ağ filtresi yok" + +#: vrtManager/instance.py:2806 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" -#: vrtManager/instance.py:2806 +#: vrtManager/instance.py:2822 #, python-format msgid "No network interface with MAC %(old_mac)s" msgstr "MAC adresi %(old_mac)s olan ağ arabirimi yok" -#: vrtManager/instance.py:2809 +#: vrtManager/instance.py:2825 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" -#: vrtManager/instance.py:2902 +#: vrtManager/instance.py:2919 msgid "" "A VM changes its PCI devices while it runs, or is shut off without a saved " "state" @@ -9646,43 +9667,43 @@ msgstr "" "Sanal makine PCI aygıtlarını çalışırken veya kaydedilmiş durumu olmadan " "kapalıyken değiştirir" -#: vrtManager/instance.py:2923 +#: vrtManager/instance.py:2940 #, python-format 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" -#: vrtManager/instance.py:2925 +#: vrtManager/instance.py:2942 #, python-format 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" -#: vrtManager/instance.py:2926 +#: vrtManager/instance.py:2943 #, python-format msgid "" "%(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" -#: vrtManager/instance.py:2927 +#: vrtManager/instance.py:2944 #, python-format msgid "%(err)s; %(device)s: the running VM has it, its next start has it" msgstr "" "%(err)s; %(device)s: çalışan sanal makinede var, sonraki başlatmada var" -#: vrtManager/instance.py:2928 +#: vrtManager/instance.py:2945 #, python-format msgid "" "%(err)s; %(device)s: the running VM has it, its next start does not have it" msgstr "" "%(err)s; %(device)s: çalışan sanal makinede var, sonraki başlatmada yok" -#: vrtManager/instance.py:2929 +#: vrtManager/instance.py:2946 #, python-format msgid "" "%(err)s; %(device)s: the running VM does not have it, its next start has it" msgstr "" "%(err)s; %(device)s: çalışan sanal makinede yok, sonraki başlatmada var" -#: vrtManager/instance.py:2931 +#: vrtManager/instance.py:2948 #, python-format msgid "" "%(err)s; %(device)s: the running VM does not have it, its next start does not" @@ -9690,39 +9711,39 @@ msgid "" msgstr "" "%(err)s; %(device)s: çalışan sanal makinede yok, sonraki başlatmada yok" -#: vrtManager/instance.py:2965 +#: vrtManager/instance.py:2982 #, python-format msgid "The VM has no PCI device %(address)s" msgstr "Sanal makinede %(address)s PCI aygıtı yok" -#: vrtManager/instance.py:2986 +#: vrtManager/instance.py:3003 msgid "The VM has no USB controller" msgstr "Sanal makinede USB denetleyicisi yok" -#: vrtManager/instance.py:3020 +#: vrtManager/instance.py:3037 msgid "The VM has no such USB device" msgstr "Sanal makinede böyle bir USB aygıtı yok" -#: vrtManager/instance.py:3034 +#: vrtManager/instance.py:3051 #, python-format msgid "The VM has no network interface %(mac)s" msgstr "Sanal makinede %(mac)s ağ arabirimi yok" -#: vrtManager/instance.py:3065 +#: vrtManager/instance.py:3082 msgid "The VM has its own RNG device: change it in the XML editor" msgstr "" "Sanal makinenin kendi RNG aygıtı var: bunu XML düzenleyicide değiştirin" -#: vrtManager/instance.py:3092 +#: vrtManager/instance.py:3109 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" -#: vrtManager/instance.py:3111 +#: vrtManager/instance.py:3128 #, python-format msgid "Unknown crash action %(action)s" msgstr "Bilinmeyen çökme eylemi %(action)s" -#: vrtManager/instance.py:3138 +#: vrtManager/instance.py:3155 #, python-format msgid "Network interface %(mac)s is not in the definition" msgstr "%(mac)s ağ arayüzü tanımda yok" diff --git a/locale/zh/LC_MESSAGES/django.mo b/locale/zh/LC_MESSAGES/django.mo index 54bcf85f..e7761fff 100644 Binary files a/locale/zh/LC_MESSAGES/django.mo and b/locale/zh/LC_MESSAGES/django.mo differ diff --git a/locale/zh/LC_MESSAGES/django.po b/locale/zh/LC_MESSAGES/django.po index d0a2ee41..0e325ac9 100644 --- a/locale/zh/LC_MESSAGES/django.po +++ b/locale/zh/LC_MESSAGES/django.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2026-11-12 09:51+0000\n" +"POT-Creation-Date: 2026-11-12 09:58+0000\n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" @@ -2762,7 +2762,7 @@ msgstr "虚拟机未定义;请检查这些卷,然后处理此任务:%(volu msgid "Delete snapshot" msgstr "删除快照" -#: instances/jobs.py:356 vrtManager/instance.py:2310 +#: instances/jobs.py:356 vrtManager/instance.py:2317 #, python-format msgid "The VM has no external snapshot named %(name)s" msgstr "虚拟机没有名为 %(name)s 的外部快照" @@ -2794,7 +2794,7 @@ msgstr "虚拟机已不在运行该任务的计算节点上" msgid "Take snapshot" msgstr "创建快照" -#: instances/jobs.py:424 instances/jobs.py:433 vrtManager/instance.py:1901 +#: instances/jobs.py:424 instances/jobs.py:433 vrtManager/instance.py:1908 #, python-format msgid "A snapshot named %(name)s already exists" msgstr "名为 %(name)s 的快照已存在" @@ -2975,7 +2975,7 @@ msgstr "cloud-init 种子需要为磁盘使用目录类型的存储池" msgid "This host offers no firmware %(firmware)s" msgstr "此主机不提供固件 %(firmware)s" -#: instances/jobs.py:908 vrtManager/instance.py:3099 +#: instances/jobs.py:908 vrtManager/instance.py:3116 msgid "This host offers no TPM 2.0: install swtpm on it" msgstr "此主机不提供 TPM 2.0:请在主机上安装 swtpm" @@ -4213,7 +4213,7 @@ msgid "Add USB device" msgstr "添加 USB 设备" #: instances/templates/instances/host_devices_form.html:18 -#: vrtManager/instance.py:3003 +#: vrtManager/instance.py:3020 msgid "" "A VM with a saved state does not change its USB devices: start it, or start " "it without its saved state" @@ -5978,7 +5978,7 @@ msgstr "卷已成功更改。" msgid "Disk %(dev)s is not a storage volume of this instance" msgstr "磁盘 %(dev)s 不是此虚拟机的存储卷" -#: instances/views.py:1546 vrtManager/instance.py:2320 +#: instances/views.py:1546 vrtManager/instance.py:2327 msgid "The VM has a saved state; start it or remove the saved state first" msgstr "虚拟机有保存的状态;请先启动它或删除保存的状态" @@ -6032,7 +6032,7 @@ msgstr "快照未删除:%(err)s" msgid "Add at least one device to the boot order." msgstr "请至少向启动顺序中添加一个设备。" -#: instances/views.py:1852 vrtManager/instance.py:1119 +#: instances/views.py:1852 vrtManager/instance.py:1126 msgid "Invalid Device Type for boot order" msgstr "启动顺序的设备类型无效" @@ -8606,7 +8606,7 @@ msgstr "连接失败:%(host)s 未连接" msgid "This host has no architecture %(arch)s" msgstr "此主机没有 %(arch)s 架构" -#: vrtManager/connection.py:1178 +#: vrtManager/connection.py:1190 #, python-format msgid "" "Pool %(pool)s is not active: the files the disks of the VMs in it are made " @@ -8633,269 +8633,280 @@ msgstr "有保存的状态的虚拟机不能迁移" msgid "A VM with host devices cannot be migrated; remove them first" msgstr "有主机设备的虚拟机不能迁移;请先移除它们" +#: vrtManager/instance.py:177 +#, python-format +msgid "The destination host does not have these networks of the VM: %(names)s" +msgstr "目标主机没有该虚拟机的这些网络:%(names)s" + #: vrtManager/instance.py:180 #, python-format +msgid "" +"The destination host does not have these network filters of the VM: %(names)s" +msgstr "目标主机没有该虚拟机的这些网络过滤器:%(names)s" + +#: vrtManager/instance.py:187 +#, python-format msgid "The destination host does not have these disks of the VM: %(disks)s" msgstr "目标主机没有该虚拟机的这些磁盘:%(disks)s" -#: vrtManager/instance.py:181 +#: vrtManager/instance.py:188 #, python-format msgid "%(target)s (%(source)s)" msgstr "%(target)s(%(source)s)" -#: vrtManager/instance.py:189 +#: vrtManager/instance.py:196 msgid "Destination host emulator is different. Cannot be migrated" msgstr "目标主机的模拟器不同,无法迁移" -#: vrtManager/instance.py:323 +#: vrtManager/instance.py:330 msgid "an image is not copied; eject it first" msgstr "镜像不会被复制;请先弹出它" -#: vrtManager/instance.py:326 +#: vrtManager/instance.py:333 msgid "a read-only or encrypted disk is not copied" msgstr "只读或加密的磁盘不会被复制" -#: vrtManager/instance.py:329 +#: vrtManager/instance.py:336 msgid "only raw and qcow2 disks are copied" msgstr "只复制 raw 和 qcow2 磁盘" -#: vrtManager/instance.py:331 +#: vrtManager/instance.py:338 msgid "no storage pool of the source host has it" msgstr "源主机的任何存储池中都没有它" -#: vrtManager/instance.py:333 +#: vrtManager/instance.py:340 msgid "a disk with a backing file is not copied" msgstr "有后备文件的磁盘不会被复制" -#: vrtManager/instance.py:353 +#: vrtManager/instance.py:360 #, python-format msgid "" "%(target)s (%(path)s): the destination host does not share it; choose a pool " "to copy it to" msgstr "%(target)s (%(path)s):目标主机不共享它;请选择要复制到的存储池" -#: vrtManager/instance.py:357 +#: vrtManager/instance.py:364 #, python-format msgid "%(target)s (%(path)s): %(refusal)s" msgstr "%(target)s (%(path)s):%(refusal)s" -#: vrtManager/instance.py:362 +#: vrtManager/instance.py:369 #, python-format msgid "" "%(target)s (%(path)s): the destination host has no pool %(pool)s for disk " "files" msgstr "%(target)s (%(path)s):目标主机没有用于磁盘文件的存储池 %(pool)s" -#: vrtManager/instance.py:369 +#: vrtManager/instance.py:376 #, python-format msgid "" "%(target)s (%(path)s): pool %(pool)s of the destination host already has a " "file %(file)s" msgstr "%(target)s (%(path)s):目标主机的存储池 %(pool)s 中已有文件 %(file)s" -#: vrtManager/instance.py:376 +#: vrtManager/instance.py:383 #, python-format msgid "%(target)s (%(path)s): another disk is copied to %(dest)s" msgstr "%(target)s (%(path)s):另一个磁盘已复制到 %(dest)s" -#: vrtManager/instance.py:381 +#: vrtManager/instance.py:388 #, python-format msgid "%(target)s: the VM has no disk file to copy" msgstr "%(target)s:虚拟机没有可复制的磁盘文件" -#: vrtManager/instance.py:385 +#: vrtManager/instance.py:392 #, python-format msgid "" "%(target)s (%(path)s) of the next start: the destination host does not share " "it" msgstr "下次启动的 %(target)s (%(path)s):目标主机不共享它" -#: vrtManager/instance.py:389 +#: vrtManager/instance.py:396 #, python-format msgid "The disks cannot be migrated: %(problems)s" msgstr "磁盘无法迁移:%(problems)s" -#: vrtManager/instance.py:402 +#: vrtManager/instance.py:409 #, python-format msgid "" "%(error)s; remove the partial disk copies from the destination host: " "%(copies)s" msgstr "%(error)s;请从目标主机删除不完整的磁盘副本:%(copies)s" -#: vrtManager/instance.py:419 +#: vrtManager/instance.py:426 #, python-format msgid "" "%(error)s; remove the partial disk copies from the destination host: %(left)s" msgstr "%(error)s;请从目标主机删除不完整的磁盘副本:%(left)s" -#: vrtManager/instance.py:433 +#: vrtManager/instance.py:440 #, python-format msgid "" "The NVRAM file %(path)s is not in libvirt's NVRAM directory %(dir)s and " "cannot be copied" msgstr "NVRAM 文件 %(path)s 不在 libvirt 的 NVRAM 目录 %(dir)s 中,无法复制" -#: vrtManager/instance.py:442 +#: vrtManager/instance.py:449 #, python-format msgid "The destination host cannot see the NVRAM file %(path)s" msgstr "目标主机看不到 NVRAM 文件 %(path)s" -#: vrtManager/instance.py:518 +#: vrtManager/instance.py:525 #, python-format msgid "%(type)s disk, cannot be checked" msgstr "%(type)s 磁盘,无法检查" -#: vrtManager/instance.py:558 +#: vrtManager/instance.py:565 #, python-format msgid "The destination host already has a VM %(key)s" msgstr "目标主机上已有虚拟机 %(key)s" -#: vrtManager/instance.py:580 +#: vrtManager/instance.py:587 msgid "The VM was started on the source host during the migration" msgstr "迁移期间虚拟机在源主机上被启动" -#: vrtManager/instance.py:596 +#: vrtManager/instance.py:603 #, python-format msgid "" "%(error)s; the VM may now be defined only on the destination host: check both" " hosts" msgstr "%(error)s;虚拟机现在可能只在目标主机上定义:请检查两台主机" -#: vrtManager/instance.py:602 +#: vrtManager/instance.py:609 #, python-format msgid "" "%(error)s; the VM is now defined on both hosts, remove it from the " "destination: %(undo_error)s" msgstr "%(error)s;虚拟机现在在两台主机上都有定义,请从目标主机删除它:%(undo_error)s" -#: vrtManager/instance.py:608 +#: vrtManager/instance.py:615 msgid "" "Snapshot names are 1-64 letters, digits, '.', '_' or '-' and do not start " "with '.'" msgstr "快照名称为 1-64 个字母、数字、'.'、'_' 或 '-',且不能以 '.' 开头" -#: vrtManager/instance.py:1107 +#: vrtManager/instance.py:1114 msgid "" "A device other than a disk or NIC is in the boot order: change it in the XML " "editor" msgstr "启动顺序中有磁盘或网卡以外的设备:请在 XML 编辑器中修改" -#: vrtManager/instance.py:1122 +#: vrtManager/instance.py:1129 #, python-format msgid "Boot device %(dev)s is not in the definition" msgstr "启动设备 %(dev)s 不在定义中" -#: vrtManager/instance.py:1142 +#: vrtManager/instance.py:1149 #, python-format msgid "CD-ROM %(dev)s is not in the running definition" msgstr "CD-ROM %(dev)s 不在运行中的定义中" -#: vrtManager/instance.py:1143 +#: vrtManager/instance.py:1150 #, python-format msgid "CD-ROM %(dev)s is not in the persistent definition" msgstr "CD-ROM %(dev)s 不在持久定义中" -#: vrtManager/instance.py:1156 +#: vrtManager/instance.py:1163 #, python-format msgid "Media of %(dev)s changed in the running VM only: %(err)s" msgstr "%(dev)s 的介质仅在运行中的虚拟机中更改:%(err)s" -#: vrtManager/instance.py:1167 +#: vrtManager/instance.py:1174 #, python-format msgid "ISO image %(image)s was not found" msgstr "未找到 ISO 镜像 %(image)s" -#: vrtManager/instance.py:1169 +#: vrtManager/instance.py:1176 #, python-format msgid "ISO image %(image)s is in more than one storage pool" msgstr "ISO 镜像 %(image)s 位于多个存储池中" -#: vrtManager/instance.py:1264 +#: vrtManager/instance.py:1271 #, python-format msgid "Disk %(target_dev)s is not in the VM's definition" msgstr "磁盘 %(target_dev)s 不在虚拟机的定义中" -#: vrtManager/instance.py:1396 +#: vrtManager/instance.py:1403 msgid "Please shutdown the instance then try to enable vCPU hotplug" msgstr "请先关闭虚拟机,再启用 vCPU 热插拔" -#: vrtManager/instance.py:1683 +#: vrtManager/instance.py:1690 msgid "The VM has no video card" msgstr "虚拟机没有显卡" -#: vrtManager/instance.py:1693 +#: vrtManager/instance.py:1700 #, python-format msgid "" "The VM's CPU topology has %(count)s vCPUs: change it in the XML editor to set" " another maximum" msgstr "该虚拟机的 CPU 拓扑为 %(count)s 个 vCPU:要设置其他最大值,请在 XML 编辑器中修改拓扑" -#: vrtManager/instance.py:1719 +#: vrtManager/instance.py:1726 #, python-format msgid "The VM's next start has a maximum memory of %(max)s MiB" msgstr "虚拟机下次启动时的最大内存为 %(max)s MiB" -#: vrtManager/instance.py:1860 +#: vrtManager/instance.py:1867 msgid "" "The VM has external snapshots; internal snapshots cannot be mixed with them" msgstr "虚拟机有外部快照;内部快照不能与其混用" -#: vrtManager/instance.py:1892 +#: vrtManager/instance.py:1899 msgid "A snapshot with memory is not quiesced; it keeps the whole guest state" msgstr "含内存的快照不会静默文件系统;它保存整个客户机状态" -#: vrtManager/instance.py:1894 +#: vrtManager/instance.py:1901 msgid "Only a running VM's file systems can be frozen" msgstr "只有运行中的虚拟机的文件系统可以冻结" -#: vrtManager/instance.py:1896 +#: vrtManager/instance.py:1903 msgid "The QEMU guest agent is not connected; it freezes the file systems" msgstr "QEMU 客户机代理未连接;文件系统由它冻结" -#: vrtManager/instance.py:1899 +#: vrtManager/instance.py:1906 msgid "" "The VM has internal snapshots; external snapshots cannot be mixed with them" msgstr "虚拟机有内部快照;外部快照不能与其混用" -#: vrtManager/instance.py:1904 +#: vrtManager/instance.py:1911 msgid "Newer snapshots exist after the last revert; delete them first" msgstr "上次还原后存在更新的快照;请先删除它们" -#: vrtManager/instance.py:1907 +#: vrtManager/instance.py:1914 msgid "No snapshot is current; revert to a snapshot first" msgstr "没有当前快照;请先还原到某个快照" -#: vrtManager/instance.py:1913 +#: vrtManager/instance.py:1920 #, python-format msgid "Eject the media from %(dev)s first" msgstr "请先弹出 %(dev)s 中的介质" -#: vrtManager/instance.py:1915 +#: vrtManager/instance.py:1922 #, python-format msgid "Disk %(dev)s is not a file; external snapshots need file disks" msgstr "磁盘 %(dev)s 不是文件;外部快照需要文件磁盘" -#: vrtManager/instance.py:1923 +#: vrtManager/instance.py:1930 #, python-format msgid "" "The storage pools could not be refreshed, so their free space is unknown: " "%(err)s" msgstr "无法刷新存储池,其可用空间未知:%(err)s" -#: vrtManager/instance.py:1944 +#: vrtManager/instance.py:1951 msgid "Memory is saved only from a running VM" msgstr "只能保存运行中的虚拟机的内存" -#: vrtManager/instance.py:1946 +#: vrtManager/instance.py:1953 msgid "The VM has no disk to keep its memory next to" msgstr "虚拟机没有可存放其内存的磁盘" -#: vrtManager/instance.py:1950 +#: vrtManager/instance.py:1957 #, python-format msgid "%(disk)s is not in a storage pool; memory is saved only into one" msgstr "%(disk)s 不在存储池中;内存只能保存到存储池中" -#: vrtManager/instance.py:1981 +#: vrtManager/instance.py:1988 #, python-format msgid "" "Storage pool %(pool)s has %(free).1f GiB free; the snapshot needs %(size).1f " @@ -8905,151 +8916,151 @@ msgstr "" "存储池 %(pool)s 可用 %(free).1f GiB;快照需要 %(size).1f GiB(其中虚拟机磁盘的 %(percent)g%%,至少 " "%(minimum)g GiB,若保存内存则另加内存)" -#: vrtManager/instance.py:1999 +#: vrtManager/instance.py:2006 msgid "" "This snapshot was taken by an older version on a UEFI VM and cannot be " "reverted; delete it instead" msgstr "此快照由旧版本在 UEFI 虚拟机上创建,无法还原;请将其删除" -#: vrtManager/instance.py:2029 +#: vrtManager/instance.py:2036 #, python-format msgid "" "The revert failed twice; try again in a moment (%(error)s). The VM is " "running." msgstr "还原两次失败;请稍后重试(%(error)s)。虚拟机正在运行。" -#: vrtManager/instance.py:2031 +#: vrtManager/instance.py:2038 #, python-format msgid "" "The revert failed twice; try again in a moment (%(error)s). The VM is shut " "off." msgstr "还原两次失败;请稍后重试(%(error)s)。虚拟机已关机。" -#: vrtManager/instance.py:2199 +#: vrtManager/instance.py:2206 msgid "A disk moves when its VM is defined and running, paused or shut off" msgstr "仅当虚拟机已定义且处于运行、暂停或关机状态时才能移动磁盘" -#: vrtManager/instance.py:2201 +#: vrtManager/instance.py:2208 msgid "" "A disk of a VM with snapshots, a saved state or a running block job does not " "move" msgstr "有快照、保存的状态或正在运行块任务的虚拟机的磁盘不能移动" -#: vrtManager/instance.py:2209 +#: vrtManager/instance.py:2216 #, python-format msgid "" "%(dev)s is not a disk file of the VM, the same in its running and next " "start's definition" msgstr "%(dev)s 不是该虚拟机在运行中的定义和下次启动定义中相同的磁盘文件" -#: vrtManager/instance.py:2214 +#: vrtManager/instance.py:2221 #, python-format msgid "%(dev)s does not move: only writable raw and qcow2 disks do" msgstr "%(dev)s 不能移动:只能移动可写的 raw 和 qcow2 磁盘" -#: vrtManager/instance.py:2221 +#: vrtManager/instance.py:2228 #, python-format msgid "%(dev)s does not move: no storage pool has %(path)s" msgstr "%(dev)s 不能移动:没有存储池包含 %(path)s" -#: vrtManager/instance.py:2223 +#: vrtManager/instance.py:2230 #, python-format msgid "%(dev)s does not move: it has a backing file" msgstr "%(dev)s 不能移动:它有后备文件" -#: vrtManager/instance.py:2226 +#: vrtManager/instance.py:2233 #, python-format msgid "%(pool_name)s is not an active pool of disk files of this host" msgstr "%(pool_name)s 不是此主机上活动的磁盘文件存储池" -#: vrtManager/instance.py:2229 +#: vrtManager/instance.py:2236 #, python-format msgid "%(dev)s is in pool %(pool_name)s already" msgstr "%(dev)s 已在存储池 %(pool_name)s 中" -#: vrtManager/instance.py:2233 +#: vrtManager/instance.py:2240 #, python-format msgid "Pool %(pool_name)s already has a file %(name)s" msgstr "存储池 %(pool_name)s 中已有文件 %(name)s" -#: vrtManager/instance.py:2257 +#: vrtManager/instance.py:2264 #, python-format msgid "The copy of %(dev)s ended before it was complete" msgstr "%(dev)s 的复制在完成前结束" -#: vrtManager/instance.py:2302 +#: vrtManager/instance.py:2309 #, python-format msgid "%(error)s; remove %(dest)s if it is there: %(cleanup_error)s" msgstr "%(error)s;如果 %(dest)s 存在请将其删除:%(cleanup_error)s" -#: vrtManager/instance.py:2304 +#: vrtManager/instance.py:2311 #, python-format msgid "%(error)s; the VM may use %(dest)s now: check its disk %(dev)s" msgstr "%(error)s;虚拟机现在可能在使用 %(dest)s:请检查其磁盘 %(dev)s" -#: vrtManager/instance.py:2311 +#: vrtManager/instance.py:2318 #, python-format msgid "The VM has no internal snapshot named %(name)s" msgstr "虚拟机没有名为 %(name)s 的内部快照" -#: vrtManager/instance.py:2322 +#: vrtManager/instance.py:2329 msgid "A snapshot job is still running on this VM; try again when it ends" msgstr "此虚拟机上仍有快照任务在运行;请在其结束后重试" -#: vrtManager/instance.py:2332 +#: vrtManager/instance.py:2339 msgid "Shut the VM down to revert to an internal snapshot" msgstr "请关闭虚拟机后再还原到内部快照" -#: vrtManager/instance.py:2419 +#: vrtManager/instance.py:2426 msgid "A VM with a host's or an external TPM is not cloned; remove it first" msgstr "带有主机 TPM 或外部 TPM 的虚拟机无法克隆;请先将其移除" -#: vrtManager/instance.py:2441 +#: vrtManager/instance.py:2448 msgid "Cannot clone a VM whose NVRAM is not a file" msgstr "NVRAM 不是文件的虚拟机无法克隆" -#: vrtManager/instance.py:2511 +#: vrtManager/instance.py:2518 #, python-format msgid "Clone failed (%(err)s); remove these copies by hand: %(path)s" msgstr "克隆失败(%(err)s);请手动删除这些副本:%(path)s" -#: vrtManager/instance.py:2522 +#: vrtManager/instance.py:2529 msgid "Shut the VM down before cloning it" msgstr "请先关闭虚拟机再克隆" -#: vrtManager/instance.py:2576 +#: vrtManager/instance.py:2583 #, python-format msgid "Clone failed (%(err)s); remove these copies by hand: %(leftovers)s" msgstr "克隆失败(%(err)s);请手动删除这些副本:%(leftovers)s" -#: vrtManager/instance.py:2587 +#: vrtManager/instance.py:2594 msgid "Live clone needs libvirt 11.10 or later; shut the VM down to clone it" msgstr "在线克隆需要 libvirt 11.10 或更高版本;请关闭虚拟机后再克隆" -#: vrtManager/instance.py:2590 +#: vrtManager/instance.py:2597 msgid "A VM with a TPM is cloned only shut down" msgstr "带 TPM 的虚拟机只能在关机时克隆" -#: vrtManager/instance.py:2593 +#: vrtManager/instance.py:2600 #, python-format msgid "Disk %(dev)s is not a local file; shut the VM down to clone it" msgstr "磁盘 %(dev)s 不是本地文件;请关闭虚拟机后再克隆" -#: vrtManager/instance.py:2595 +#: vrtManager/instance.py:2602 #, python-format msgid "Disk %(dev)s is shareable; shut the VM down to clone it" msgstr "磁盘 %(dev)s 是可共享的;请关闭虚拟机后再克隆" -#: vrtManager/instance.py:2600 +#: vrtManager/instance.py:2607 #, python-format msgid "Disk %(dev)s changes at the next start; shut the VM down to clone it" msgstr "磁盘 %(dev)s 在下次启动时会改变;请关闭虚拟机后再克隆" -#: vrtManager/instance.py:2602 +#: vrtManager/instance.py:2609 msgid "Another job is running on the VM; clone it when that ends" msgstr "虚拟机上有另一个任务正在运行;请在其结束后再克隆" -#: vrtManager/instance.py:2628 +#: vrtManager/instance.py:2635 #, python-format msgid "" "Storage pool %(pool)s has %(free).1f GiB free; the clone needs %(size).1f GiB" @@ -9058,102 +9069,112 @@ msgstr "" "存储池 %(pool)s 可用 %(free).1f GiB;克隆需要 %(size).1f GiB(复制的磁盘,再加其 %(percent)g%%,至少" " %(minimum)g GiB)" -#: vrtManager/instance.py:2645 +#: vrtManager/instance.py:2652 #, python-format msgid "Volume %(name)s already exists in storage pool %(pool)s" msgstr "卷 %(name)s 已存在于存储池 %(pool)s 中" -#: vrtManager/instance.py:2790 +#: vrtManager/instance.py:2767 +#, python-format +msgid "This host has no network %(name)s" +msgstr "此主机没有网络 %(name)s" + +#: vrtManager/instance.py:2769 +#, python-format +msgid "This host has no network filter %(name)s" +msgstr "此主机没有网络过滤器 %(name)s" + +#: vrtManager/instance.py:2806 msgid "A network interface that is a host device is removed in the XML editor" msgstr "作为主机设备的网络接口需在 XML 编辑器中删除" -#: vrtManager/instance.py:2806 +#: vrtManager/instance.py:2822 #, python-format msgid "No network interface with MAC %(old_mac)s" msgstr "没有 MAC 为 %(old_mac)s 的网络接口" -#: vrtManager/instance.py:2809 +#: vrtManager/instance.py:2825 msgid "A network interface that is a host device is changed in the XML editor" msgstr "作为主机设备的网络接口需在 XML 编辑器中修改" -#: vrtManager/instance.py:2902 +#: vrtManager/instance.py:2919 msgid "" "A VM changes its PCI devices while it runs, or is shut off without a saved " "state" msgstr "虚拟机只能在运行时或无保存的状态的关机时更改其 PCI 设备" -#: vrtManager/instance.py:2923 +#: vrtManager/instance.py:2940 #, python-format msgid "%(err)s; whether the VM has %(device)s now is not known" msgstr "%(err)s;虚拟机现在是否有 %(device)s 未知" -#: vrtManager/instance.py:2925 +#: vrtManager/instance.py:2942 #, python-format msgid "%(err)s; %(device)s: the VM is not running, its next start has it" msgstr "%(err)s;%(device)s:虚拟机未运行,下次启动时有它" -#: vrtManager/instance.py:2926 +#: vrtManager/instance.py:2943 #, python-format msgid "" "%(err)s; %(device)s: the VM is not running, its next start does not have it" msgstr "%(err)s;%(device)s:虚拟机未运行,下次启动时没有它" -#: vrtManager/instance.py:2927 +#: vrtManager/instance.py:2944 #, python-format msgid "%(err)s; %(device)s: the running VM has it, its next start has it" msgstr "%(err)s;%(device)s:运行中的虚拟机有它,下次启动时有它" -#: vrtManager/instance.py:2928 +#: vrtManager/instance.py:2945 #, python-format msgid "" "%(err)s; %(device)s: the running VM has it, its next start does not have it" msgstr "%(err)s;%(device)s:运行中的虚拟机有它,下次启动时没有它" -#: vrtManager/instance.py:2929 +#: vrtManager/instance.py:2946 #, python-format msgid "" "%(err)s; %(device)s: the running VM does not have it, its next start has it" msgstr "%(err)s;%(device)s:运行中的虚拟机没有它,下次启动时有它" -#: vrtManager/instance.py:2931 +#: vrtManager/instance.py:2948 #, python-format msgid "" "%(err)s; %(device)s: the running VM does not have it, its next start does not" " have it" msgstr "%(err)s;%(device)s:运行中的虚拟机没有它,下次启动时没有它" -#: vrtManager/instance.py:2965 +#: vrtManager/instance.py:2982 #, python-format msgid "The VM has no PCI device %(address)s" msgstr "虚拟机没有 PCI 设备 %(address)s" -#: vrtManager/instance.py:2986 +#: vrtManager/instance.py:3003 msgid "The VM has no USB controller" msgstr "虚拟机没有 USB 控制器" -#: vrtManager/instance.py:3020 +#: vrtManager/instance.py:3037 msgid "The VM has no such USB device" msgstr "虚拟机没有此 USB 设备" -#: vrtManager/instance.py:3034 +#: vrtManager/instance.py:3051 #, python-format msgid "The VM has no network interface %(mac)s" msgstr "虚拟机没有网络接口 %(mac)s" -#: vrtManager/instance.py:3065 +#: vrtManager/instance.py:3082 msgid "The VM has its own RNG device: change it in the XML editor" msgstr "虚拟机有自己的 RNG 设备:请在 XML 编辑器中修改" -#: vrtManager/instance.py:3092 +#: vrtManager/instance.py:3109 msgid "The VM has its own TPM: change it in the XML editor" msgstr "虚拟机有自己的 TPM:请在 XML 编辑器中修改" -#: vrtManager/instance.py:3111 +#: vrtManager/instance.py:3128 #, python-format msgid "Unknown crash action %(action)s" msgstr "未知的崩溃操作 %(action)s" -#: vrtManager/instance.py:3138 +#: vrtManager/instance.py:3155 #, python-format msgid "Network interface %(mac)s is not in the definition" msgstr "网络接口 %(mac)s 不在定义中" diff --git a/vrtManager/connection.py b/vrtManager/connection.py index 0e7f23ea..1dfb7644 100644 --- a/vrtManager/connection.py +++ b/vrtManager/connection.py @@ -663,6 +663,18 @@ class wvmConnect(object): nwfilters.append(nwfilter) return nwfilters + def unknown_networks(self, trees): + """The networks and the network filters that the network cards in + trees (VM definitions or cards) name and this host does not have, + each sorted: libvirt saves such a card, and the VM then does not + start.""" + networks = {name for tree in trees for name in tree.xpath( + "descendant-or-self::interface[@type='network']/source/@network")} + filters = {name for tree in trees for name in tree.xpath("descendant-or-self::interface/filterref/@filter")} + # the host is asked only about what the cards name + return (sorted(networks - set(self.get_networks())) if networks else [], + sorted(filters - set(self.get_nwfilters())) if filters else []) + def get_cache_modes(self): """ :return: Get cache available modes diff --git a/vrtManager/instance.py b/vrtManager/instance.py index 5c0c33a5..586dfb94 100644 --- a/vrtManager/instance.py +++ b/vrtManager/instance.py @@ -172,6 +172,13 @@ class wvmInstances(wvmConnect): # a host device is of the source host: the destination may have none, or another one if any(etree.fromstring(xml).xpath(HOST_DEVICES) for xml in definitions): raise util.OperationError(gettext_noop("A VM with host devices cannot be migrated; remove them first")) + networks, filters = self.unknown_networks([etree.fromstring(xml) for xml in definitions]) + if networks: + raise util.OperationError(gettext_noop("The destination host does not have these networks of the VM: %(names)s"), + names=", ".join(networks)) + if filters: + raise util.OperationError(gettext_noop("The destination host does not have these network filters of the VM: %(names)s"), + names=", ".join(filters)) copies = self.disk_copies(conn, definitions, pools or {}) if copies: mode.append("disks copied: " + ", ".join(f"{copy['target']} to {copy['pool'].name()}" for copy in copies)) @@ -2750,8 +2757,17 @@ class wvmInstance(wvmConnect): etree.SubElement(iface, "model", type=model) if nwfilter: etree.SubElement(iface, "filterref", filter=nwfilter) + self.check_card(iface) self._attach_device(etree.tostring(iface).decode()) + def check_card(self, iface): + """Refuses a network card whose network or filter this host does not have.""" + networks, filters = self.unknown_networks([iface]) + if networks: + raise util.OperationError(gettext_noop("This host has no network %(name)s"), name=networks[0]) + if filters: + raise util.OperationError(gettext_noop("This host has no network filter %(name)s"), name=filters[0]) + def _attach_device(self, xml): """Attach to the persistent definition and, when the VM is active, to the running one, in one call. QEMU checks a copy of the persistent @@ -2829,6 +2845,7 @@ class wvmInstance(wvmConnect): iface.remove(old_filter) if nwfilter and iface.find("filterref") is None: etree.SubElement(iface, "filterref", filter=nwfilter) + self.check_card(iface) self._defineXML(etree.tostring(tree).decode()) diff --git a/vrtManager/tests/fakes.py b/vrtManager/tests/fakes.py index fb73a158..319026f0 100644 --- a/vrtManager/tests/fakes.py +++ b/vrtManager/tests/fakes.py @@ -123,10 +123,14 @@ class FakePool: class FakeHost: """The destination's libvirt connection. volumes: the paths its pools - list; unlisted: files its pools show after a refresh.""" + list; unlisted: files its pools show after a refresh; networks and + nwfilters: the names of its networks and network filters.""" - def __init__(self, existing=(), volumes=(), unlisted=(), backing=None, inactive_pools=(), pool_types=None): + def __init__(self, existing=(), volumes=(), unlisted=(), backing=None, inactive_pools=(), pool_types=None, + networks=(), nwfilters=()): self.existing = set(existing) + self.networks = list(networks) + self.nwfilters = list(nwfilters) self.defined = [] self.new = [] self.volumes = set(volumes) @@ -136,6 +140,15 @@ class FakeHost: self.pool_types = pool_types or {} # path: the type of its volume's pool, dir if not named self.refreshes = 0 + def listNetworks(self): + return self.networks + + def listDefinedNetworks(self): + return [] + + def listNWFilters(self): + return self.nwfilters + def storageVolLookupByPath(self, path): if path not in self.volumes: raise no_volume() diff --git a/vrtManager/tests/test_change_network.py b/vrtManager/tests/test_change_network.py index 9d555807..c57fca02 100644 --- a/vrtManager/tests/test_change_network.py +++ b/vrtManager/tests/test_change_network.py @@ -16,7 +16,9 @@ DOMAIN_XML = """ def stopped_instance(): inst = wvmInstance.__new__(wvmInstance) inst.instance = MagicMock() - inst.wvm = MagicMock() + # the host's networks and filters: a card naming another is refused + inst.wvm = MagicMock(**{"listNetworks.return_value": ["default"], "listDefinedNetworks.return_value": ["lab"], + "listNWFilters.return_value": ["clean-traffic", "no-mac-spoofing", "f'/>"]}) inst._XMLDesc = MagicMock(return_value=DOMAIN_XML) inst.get_status = MagicMock(return_value=5) return inst @@ -77,6 +79,21 @@ class TestChangeNetwork(unittest.TestCase): inst.change_network("52:54:00:00:00:09", "52:54:00:00:00:03", "default", "net", "virtio", "") inst.wvm.defineXML.assert_not_called() + def test_a_network_or_filter_the_host_does_not_have_is_refused(self): + # libvirt saves such a card: the VM would then not start + inst = stopped_instance() + for args, why in ((("missing", "net", "virtio", ""), "This host has no network missing"), + (("default", "net", "virtio", "gone"), "This host has no network filter gone")): + with self.subTest(why), self.assertRaisesRegex(libvirtError, why): + inst.change_network("52:54:00:00:00:01", "52:54:00:00:00:01", *args) + inst.wvm.defineXML.assert_not_called() + with self.assertRaisesRegex(libvirtError, "This host has no network missing"): + inst.add_network("", "missing") + inst.instance.attachDeviceFlags.assert_not_called() + # a stopped network is the host's too + inst.add_network("", "lab") + inst.instance.attachDeviceFlags.assert_called_once() + class TestAddNetworkXml(unittest.TestCase): def attached(self, **kwargs): diff --git a/vrtManager/tests/test_device_edits.py b/vrtManager/tests/test_device_edits.py index 1b1cc607..6d082cc8 100644 --- a/vrtManager/tests/test_device_edits.py +++ b/vrtManager/tests/test_device_edits.py @@ -34,7 +34,7 @@ def proxy(active=True): p.instance = MagicMock(**{"isActive.return_value": active}) p._XMLDesc = lambda flags: PERSISTENT if flags == PERSISTENT_XML else LIVE p._defineXML = MagicMock() - p.wvm = MagicMock() + p.wvm = MagicMock(**{"listNetworks.return_value": ["default"]}) return p diff --git a/vrtManager/tests/test_migration.py b/vrtManager/tests/test_migration.py index 0b3b81bb..c98504fa 100644 --- a/vrtManager/tests/test_migration.py +++ b/vrtManager/tests/test_migration.py @@ -68,6 +68,21 @@ class ShutOffMigrationTestCase(unittest.TestCase): self.assertEqual(host.defined, []) self.assertIsNone(source.instance.undefined) + def test_a_network_or_filter_the_destination_does_not_have_is_refused(self): + # libvirt defines the VM there without them: it would not start + card = ("vm" + "") + for host, why in ((FakeHost(nwfilters=["clean-traffic"]), "does not have these networks of the VM: lab"), + (FakeHost(networks=["lab"]), "does not have these network filters of the VM: clean-traffic")): + source = FakeSource(5, xml=card) + with self.subTest(why), self.assertRaisesRegex(util.OperationError, why): + destination(host).moveto(source, "vm", live=False, unsafe=False, offline=True) + self.assertEqual(host.defined, []) + self.assertIsNone(source.instance.undefined) + host = FakeHost(networks=["lab"], nwfilters=["clean-traffic"]) + destination(host).moveto(FakeSource(5, xml=card), "vm", live=False, unsafe=False, offline=True) + self.assertEqual(host.defined, [card]) + def test_a_failed_source_undefine_removes_the_new_definition(self): host = FakeHost() source = FakeSource(5, undefine_fails=True) diff --git a/vrtManager/tests/test_persistent_edits.py b/vrtManager/tests/test_persistent_edits.py index 04866001..dbe694fb 100644 --- a/vrtManager/tests/test_persistent_edits.py +++ b/vrtManager/tests/test_persistent_edits.py @@ -88,6 +88,7 @@ class DeviceEditsByStateTestCase(unittest.TestCase): vm = wvmInstance.__new__(wvmInstance) vm.instance = MagicMock() vm.instance.isActive.return_value = active + vm.wvm = MagicMock(**{"listNetworks.return_value": ["default"]}) vm.get_status = MagicMock(return_value=state) # an agent channel is added where there is none, removed where there is one vm._XMLDesc = MagicMock(return_value=DOMAIN if name == "add_guest_agent" else AGENT_DOMAIN) @@ -115,6 +116,7 @@ class DeviceEditsByStateTestCase(unittest.TestCase): vm = wvmInstance.__new__(wvmInstance) vm.instance = MagicMock() vm.instance.isActive.return_value = True + vm.wvm = MagicMock(**{"listNetworks.return_value": ["default"]}) vm._XMLDesc = MagicMock(return_value=DOMAIN) vm.instance.attachDeviceFlags.side_effect = libvirtError("target sda already exists") with self.assertRaises(libvirtError):