), Otherwise it fails with this error message:
libvirt.libvirtError: unsupported configuration: TPM version '2.0' is not
supported
Signed-off-by: Lin Ma
---
tests/data/cli/compare/virt-install-amd-sev.xml | 4 ++--
virtinst/guest.py | 2 ++
2 files changed, 4
It returns true if libvirt advertises tpm 2.0 in domcaps.
Signed-off-by: Lin Ma
---
virtinst/domcapabilities.py | 8
1 file changed, 8 insertions(+)
diff --git a/virtinst/domcapabilities.py b/virtinst/domcapabilities.py
index db08bf65..34d762ae 100644
--- a/virtinst/domcapabilities.py
E.g.
virt-install \
... \
--disk /tmp/disk0.qcow2,size=16,driver.type=qcow2,driver.discard=unmap,\
driver.discard_no_unref=on
It results in the following domain xml:
Signed-off-by: Lin Ma
---
tests/data/cli/compare/virt-install-many-devices.xml | 5
Libvirt enables blob resources for the virtio video device since 9.2.0.
It accelerates the display path due to less or no copying of pixel data.
E.g.
virt-install \
... \
--video model.type=virtio,blob=on
It results in the following domain xml:
Signed-off-by: Lin Ma
This patchset adds some features for virt-install
Lin Ma (7):
tests: Check missing_xorriso in osinfo-netinst-unattended test case
domcaps: tpm: Add function supports_tpm_v2()
virtinst/guest: Use tpm 1.2 if 2.0 isn't in domcapabilities
cli: Add kvm.pv-ipi.state to --features
cli: Add
Signed-off-by: Lin Ma
---
virtinst/domcapabilities.py | 7 +++
virtinst/guest.py | 2 ++
2 files changed, 9 insertions(+)
diff --git a/virtinst/domcapabilities.py b/virtinst/domcapabilities.py
index cb5fddbb..ab0bf2ab 100644
--- a/virtinst/domcapabilities.py
+++ b/virtinst
Signed-off-by: Lin Ma
---
virtinst/domcapabilities.py | 7 +++
virtinst/guest.py | 2 ++
2 files changed, 9 insertions(+)
diff --git a/virtinst/domcapabilities.py b/virtinst/domcapabilities.py
index d22ce6a2..cb5fddbb 100644
--- a/virtinst/domcapabilities.py
+++ b/virtinst
Libvirt domcaps can advertise the redirect devices and spicevmc channel
devices since v8.9.0.
Virt-install adds usb redirdevs and spicevmc channels by default on x86.
This patchset adds checks to avoid using redirect devices/spicevmc channel
devices when not supported by the target qemu.
Lin Ma
The sheepdog project is no longer actively developed, Libvirt removed
the support for sheepdog storage backend since v8.8.0, Let's drop it.
Signed-off-by: Lin Ma
---
tests/data/testdriver/testdriver.xml | 40 ++--
virtManager/object/storagepool.py| 2 --
virtinst
t;, line 4442, in createXML
raise libvirtError('virDomainCreateXML() failed')
libvirt.libvirtError: XML error: The PCI controller with index='0' must be
model='pci-root' for this machine type, but model='pcie-root' was found instead
This patch fixes it by removing the pcie-root and ports for i440fx in
apply_
Lin Ma (2):
guest: Drop the '_' prefix for _add_q35_pcie_controllers
domain: Remove the pcie-root and ports for i440fx in customized dialog
virtManager/object/domain.py | 12
virtinst/guest.py| 4 ++--
2 files changed, 14 insertions(+), 2 deletions(-)
--
2.37.3
the value of access mode of memoryBacking is
because access mode of memoryBacking will be overridden per numa node
by memAccess attribute.
- Although the checkbox is disabled, the checked checkbox presents actual
status about shared memory access to users.
Signed-off-by: Lin Ma
---
ui
Linux memfd memory backend doesn't require any host setup, We prefer to
use it as the simplest memory XML adjustments to make virtiofs works.
Signed-off-by: Lin Ma
---
virtinst/domcapabilities.py | 12
1 file changed, 12 insertions(+)
diff --git a/virtinst/domcapabilities.py b
Check whether virtiofs is exposed in domcapabilities, We can use it as a
proxy for 'libvirt is new enough to allow bare memory access mode=shared'
as well.
Signed-off-by: Lin Ma
---
virtinst/domcapabilities.py | 7 +++
1 file changed, 7 insertions(+)
diff --git a/virtinst
Future patches about virtiofs addhw support relies on shared memory access.
Lin Ma (7):
domcapabilities: Get filesystem devices
domcapabilities: Add supports_filesystem_virtiofs()
domcapabilities: Add supports_memorybacking_memfd()
domain: memorybacking: Add function is_shared_access
It returns true in case the memoryBacking element contains the "shared"
access mode.
Signed-off-by: Lin Ma
---
virtinst/domain/memorybacking.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/virtinst/domain/memorybacking.py b/virtinst/domain/memorybacking.py
index c883c57d
It returns true in case all of numa nodes have the "shared" memAccess
attribute defined explicitly.
Signed-off-by: Lin Ma
---
virtinst/domain/cpu.py | 8
1 file changed, 8 insertions(+)
diff --git a/virtinst/domain/cpu.py b/virtinst/domain/cpu.py
index 01e6c9aa..76e69
Signed-off-by: Lin Ma
---
virtinst/domcapabilities.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/virtinst/domcapabilities.py b/virtinst/domcapabilities.py
index 8a6ac66c..65b984ce 100644
--- a/virtinst/domcapabilities.py
+++ b/virtinst/domcapabilities.py
@@ -101,6 +101,7 @@ class
It returns true in case any of numa nodes has the "private" memAccess
attribute.
Signed-off-by: Lin Ma
---
virtinst/domain/cpu.py | 6 ++
1 file changed, 6 insertions(+)
diff --git a/virtinst/domain/cpu.py b/virtinst/domain/cpu.py
index 55def91f..01e6c9aa 100644
--- a/virti
Signed-off-by: Lin Ma
---
virtManager/addhardware.py | 17 -
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/virtManager/addhardware.py b/virtManager/addhardware.py
index 13b899c3..463410ab 100644
--- a/virtManager/addhardware.py
+++ b/virtManager/addhardware.py
The virtio-fs device needs shared access of memory for talking to its
vhost-user backend. We need to set memory access mode manually in the
XML editor.
After the patch, The memory access mode will be set automatically in
memory backing element or in numa node element.
Signed-off-by: Lin Ma
It returns true in case all of numa nodes have the "shared" memAccess
attribute.
Signed-off-by: Lin Ma
---
virtinst/domain/cpu.py | 8
1 file changed, 8 insertions(+)
diff --git a/virtinst/domain/cpu.py b/virtinst/domain/cpu.py
index 01e6c9aa..76e69bb5 100644
--- a/virti
Signed-off-by: Lin Ma
---
virtManager/device/fsdetails.py | 18 --
virtinst/devices/filesystem.py | 1 +
2 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/virtManager/device/fsdetails.py b/virtManager/device/fsdetails.py
index c3ecbfab..1650e1b8 100644
, That means I
need to modify the access mode attribue which belongs memorybacking or
numa in filesystem code, This perhaps looks not good, Any comments are
appreciated.
Lin Ma (8):
fsdetails: Show the 'driver' combo for qemu
fsdetails: Add support for driver="virtiofs"
domain: memoryba
Signed-off-by: Lin Ma
---
ui/fsdetails.ui | 14 ++
virtManager/addhardware.py | 6 ++
virtManager/details/details.py | 5 +
virtManager/device/fsdetails.py | 13 +
4 files changed, 30 insertions(+), 8 deletions(-)
diff --git a/ui
It returns true in case any of numa nodes has the "private" memAccess
attribute.
Signed-off-by: Lin Ma
---
virtinst/domain/cpu.py | 6 ++
1 file changed, 6 insertions(+)
diff --git a/virtinst/domain/cpu.py b/virtinst/domain/cpu.py
index 55def91f..01e6c9aa 100644
--- a/virti
Driver combo for qemu was dropped from fsdetails (commit 41023192), Add
it back due to the next patch needs it.
Signed-off-by: Lin Ma
---
tests/uitests/test_details.py | 1 +
virtManager/device/fsdetails.py | 16 +++-
virtinst/devices/filesystem.py | 2 ++
3 files changed, 14
It returns true in case the memoryBacking element contains the "shared"
access mode.
Signed-off-by: Lin Ma
---
virtinst/domain/memorybacking.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/virtinst/domain/memorybacking.py b/virtinst/domain/memorybacking.py
index c883c57d
For a shutoff VM, If user select uefi firmware auto selection, e.g.
...
Its firmware information is set to 'BIOS' in details, This is incorrect.
This fixes it.
Signed-off-by: Lin Ma
---
virtManager/details/details.py | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git
For a shutoff VM, If user select uefi firmware auto selection, e.g.
...
Its firmware information is set to 'BIOS' in details, This is incorrect.
This fixes it.
Signed-off-by: Lin Ma
---
virtManager/details/details.py | 7 +--
virtinst/domain/os.py | 3 +++
2 files changed, 8
Signed-off-by: Lin Ma
---
tests/uitests/details.py | 1 +
tests/uitests/newvm.py | 5 +
2 files changed, 6 insertions(+)
diff --git a/tests/uitests/details.py b/tests/uitests/details.py
index 974ff403..4d6279e9 100644
--- a/tests/uitests/details.py
+++ b/tests/uitests/details.py
@@ -92,6
Signed-off-by: Lin Ma
---
tests/testdriver.xml | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/testdriver.xml b/tests/testdriver.xml
index f6d09123..2bedb5e4 100644
--- a/tests/testdriver.xml
+++ b/tests/testdriver.xml
@@ -61,6 +61,7 @@
http://fedoraproject.org/fedora/unknown
qemu supports it since 2.9.0, libvirt supports it since 4.4.0.
The details of VM generation ID, Please refer to:
http://go.microsoft.com/fwlink/?LinkId=260709
Lin Ma (4):
cli: Add --genid option to support VM generation ID
details: Add VM genid support
testdriver: Add genid example
generation ID:
http://go.microsoft.com/fwlink/?LinkId=260709
Signed-off-by: Lin Ma
---
.../compare/virt-install-many-devices.xml | 1 +
tests/clitest.py | 2 ++
virt-install | 15 +++
virtinst/guest.py
Currently, It doesn't support manually specify the genid value in the
details window, Only supports auto value.
Signed-off-by: Lin Ma
---
ui/details.ui | 38 --
virtManager/details.py | 17 -
virtManager/domain.py | 7 ++-
3
Signed-off-by: Lin Ma
---
ui/vsockdetails.ui | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui/vsockdetails.ui b/ui/vsockdetails.ui
index 7f607b2b..2a8ee73a 100644
--- a/ui/vsockdetails.ui
+++ b/ui/vsockdetails.ui
@@ -67,7 +67,7 @@
True
if-valid
Signed-off-by: Lin Ma
---
virtManager/vsockdetails.py | 5 +
1 file changed, 5 insertions(+)
diff --git a/virtManager/vsockdetails.py b/virtManager/vsockdetails.py
index 7e4e8134..a4920012 100644
--- a/virtManager/vsockdetails.py
+++ b/virtManager/vsockdetails.py
@@ -56,6 +56,11 @@ class
It can convert the underscore to minus for cli_arg_name in help output or error
message.
Signed-off-by: Lin Ma
---
virt-xml| 2 +-
virtinst/cli.py | 12 ++--
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/virt-xml b/virt-xml
index e839b294..43048cd9 100755
Signed-off-by: Lin Ma
---
virtinst/cli.py | 4
1 file changed, 4 insertions(+)
diff --git a/virtinst/cli.py b/virtinst/cli.py
index 03b1b8e2..fcf3fee2 100644
--- a/virtinst/cli.py
+++ b/virtinst/cli.py
@@ -1198,6 +1198,10 @@ class VirtCLIParser(metaclass=InitClass):
None
v1 -> v2:
* Drop original 2/2 due to a better fix exists in git master.
* Add a new patch to introduce function cli_flag_name.
* Use this function to convert underscore to minus in cli_arg_name.
Lin Ma (2):
cli: Add function cli_flag_name to replace '_' from cli_arg_name with
'-'
cli:
The completion of --check subprops needs it work.
Signed-off-by: Lin Ma
---
virtinst/cli.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/virtinst/cli.py b/virtinst/cli.py
index 3ba81861..2996dbc3 100644
--- a/virtinst/cli.py
+++ b/virtinst/cli.py
@@ -1321,6 +1321,7 @@ class ParseCLICheck
The patch makes --qemu-commandline subprops completion works.
Signed-off-by: Lin Ma
---
virtinst/cli.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/virtinst/cli.py b/virtinst/cli.py
index 21586b19..3ba81861 100644
--- a/virtinst/cli.py
+++ b/virtinst/cli.py
@@ -494,7
Lin Ma (2):
cli: Replace '_' from cli_arg_name with '-' before saving to
parsernames
cli: Register parser for ParseCLICheck
virtinst/cli.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
--
2.19.0
___
virt-tools-list mailing list
Commit 73f07c5 generates the bashcompletion files in build folder, The
'/data/bash-completion' no longer exists, So remove it in .gitignore.
Signed-off-by: Lin Ma
---
.gitignore | 1 -
1 file changed, 1 deletion(-)
diff --git a/.gitignore b/.gitignore
index 945433f5..dd2404e0 100644
Signed-off-by: Lin Ma
---
virt-xml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/virt-xml b/virt-xml
index 39abd297..89cd0336 100755
--- a/virt-xml
+++ b/virt-xml
@@ -393,6 +393,8 @@ def parse_args():
misc = parser.add_argument_group(_("Miscellaneous Op
Signed-off-by: Lin Ma
---
.gitignore | 1 +
1 file changed, 1 insertion(+)
diff --git a/.gitignore b/.gitignore
index dd2404e0..5f67705d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -19,3 +19,4 @@ po/virt-manager.pot
/virt-manager.spec
/virtcli/cli.cfg
+/data/bash-completion/virt
completion in bash.
ex:
$ virt-xml --
$ virt-install --disk
$ virt-install --panic model=isa,
$ virt-install --controller model=virtio-scsi,ty
Signed-off-by: Lin Ma
---
data/bash-completion/virtmanager | 37 +
1 file changed, 37 insertions(+)
create mode
'bus' will be auto completed with a '='
$ virt-install --disk bus=
Signed-off-by: Lin Ma
---
virtinst/cli.py | 84 -
1 file changed, 42 insertions(+), 42 deletions(-)
diff --git a/virtinst/cli.py b/virtinst/cli.py
index 95e54efc..2f1f5bda
Signed-off-by: Lin Ma
---
virt-clone | 2 ++
1 file changed, 2 insertions(+)
diff --git a/virt-clone b/virt-clone
index d1eedeea..6f86732a 100755
--- a/virt-clone
+++ b/virt-clone
@@ -138,6 +138,8 @@ def parse_args():
cli.add_misc_options(misc, prompt=True, replace=True, printxml=True
irt-bootstrap will be posted to upstream after
these patches were accepted.
Lin Ma (10):
Update docs to reflect the argcomplete dependency
cli: Add the generic completer function and validator function
virt-install: Add auto complete support for the general options
virt-clone: Add auto compl
Signed-off-by: Lin Ma
---
setup.py | 27 +++
1 file changed, 27 insertions(+)
diff --git a/setup.py b/setup.py
index 658e6503..2d3446cd 100755
--- a/setup.py
+++ b/setup.py
@@ -20,6 +20,13 @@ import distutils.dist
import distutils.log
import distutils.sysconfig
+from
With this patchset, the general options completion is available. ex:
$ virt-install -
...
--arch --check --cpu --dry-run -h
--autostart --clock --cputune --events--help
...
$ virt-install --a
--arch --autostart
Signed-off-by: Lin Ma
---
virt-install | 2 ++
1
On 11/18/18 10:24 AM, Cole Robinson wrote:
On 11/14/2018 03:12 AM, Lin Ma wrote:
Signed-off-by: Lin Ma
---
setup.py | 10 ++
1 file changed, 10 insertions(+)
diff --git a/setup.py b/setup.py
index 658e6503..1c4b4340 100755
--- a/setup.py
+++ b/setup.py
@@ -273,6 +273,15 @@ class
On 11/18/18 10:21 AM, Cole Robinson wrote:
On 11/14/2018 03:12 AM, Lin Ma wrote:
The most of content of this file comes from the output of the command '
register-python-argcomplete $MY-SCRIPT', plus some changes.
For the details about argcomplete, Please refer to
https://pypi.org/project
On 11/18/18 9:53 AM, Cole Robinson wrote:
On 11/14/2018 03:12 AM, Lin Ma wrote:
With this patchset, the sub options completion is available. ex:
$ virt-install --disk
...
bus= cache= format= path= serial= size=
...
$ virt-install --disk path=test.qcow2,cache=none,
...
bus
On 11/18/18 9:45 AM, Cole Robinson wrote:
On 11/14/2018 03:12 AM, Lin Ma wrote:
With this patchset, the general options completion is available. ex:
$ virt-install -
...
--arch --check --cpu --dry-run -h
--autostart --clock --cputune --events --help
...
$ virt
Signed-off-by: Lin Ma
---
virt-convert | 4
1 file changed, 4 insertions(+)
diff --git a/virt-convert b/virt-convert
index 1b7b7963..204481e1 100755
--- a/virt-convert
+++ b/virt-convert
@@ -12,6 +12,8 @@
import sys
+import argcomplete
+
from virtinst import cli
from virtinst import
Signed-off-by: Lin Ma
---
virt-clone | 3 +++
1 file changed, 3 insertions(+)
diff --git a/virt-clone b/virt-clone
index d1eedeea..7b805aa5 100755
--- a/virt-clone
+++ b/virt-clone
@@ -7,6 +7,7 @@
import argparse
+import argcomplete
import logging
import sys
@@ -138,6 +139,8 @@ def
.
The completion support for virt-bootstrap will be posted to upstream after
these patches were accepted.
Lin Ma (9):
Update docs to reflect the argcomplete dependency
cli: Add the generic completer function and validator function
virt-install: Add auto complete support for the general options
On 11/14/18 4:12 PM, Lin Ma wrote:
Hi all,
These draft patches add the tab completion in bash for virt-* utilities.
We've been using the argparse to help parse handling, So I think that the
argcomplete is a good option to deal with argument/sub-options completion
in bash shell for virt
With this patchset, the general options completion is available. ex:
$ virt-install -
...
--arch --check --cpu --dry-run -h
--autostart --clock --cputune --events--help
...
$ virt-install --a
--arch --autostart
Signed-off-by: Lin Ma
---
virt-install | 3 +++
1
Signed-off-by: Lin Ma
---
virt-xml | 4
1 file changed, 4 insertions(+)
diff --git a/virt-xml b/virt-xml
index 39abd297..4a70206f 100755
--- a/virt-xml
+++ b/virt-xml
@@ -12,6 +12,8 @@ import os
import re
import sys
+import argcomplete
+
import libvirt
import virtinst
@@ -393,6
completion in bash.
ex:
$ virt-xml --
$ virt-install --disk
$ virt-install --panic model=isa,
$ virt-install --controller model=virtio-scsi,ty
Signed-off-by: Lin Ma
---
bash-completion/virtmanager | 40 +
1 file changed, 40 insertions(+)
create mode 100644
Signed-off-by: Lin Ma
---
setup.py | 10 ++
1 file changed, 10 insertions(+)
diff --git a/setup.py b/setup.py
index 658e6503..1c4b4340 100755
--- a/setup.py
+++ b/setup.py
@@ -273,6 +273,15 @@ class
my_install_data(distutils.command.install_data.install_data):
"
The patch adds the generic completer and validator, Further patches use
them as completer/validator. The completer won't add already specified
options to the list.
Signed-off-by: Lin Ma
---
virtinst/cli.py | 37 +
1 file changed, 37 insertions(+)
diff --git
'bus' will be auto completed with a '='
$ virt-install --disk bus=
Signed-off-by: Lin Ma
---
virtinst/cli.py | 84 -
1 file changed, 42 insertions(+), 42 deletions(-)
diff --git a/virtinst/cli.py b/virtinst/cli.py
index d46155f7..267997b3 100644
Signed-off-by: Lin Ma
---
INSTALL.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/INSTALL.md b/INSTALL.md
index 983e32ce..efe73cf7 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -35,6 +35,7 @@ Minimum version requirements of major components:
- libvirt-python >= 0.6.0
- pygobje
Create the managed or the unmanaged PR object to enable SCSI persistent
reservation for LUN Passthrough
Signed-off-by: Lin Ma
---
tests/cli-test-xml/compare/virt-install-many-devices.xml | 9 +
tests/clitest.py | 1 +
virtinst/cli.py
v2:
* Only support pr managed mode in virt-manager, drop the unmanaged mode support.
* Drop the help info in manpage.
* make the name style match libvirt XML naming.
Thank Michal and Cole for review and suggestions.
Lin Ma (3):
cli: disk: Add options to support SCSI persistent reservation
It's a common requirement for VMs to send SCSI PR commands in VM cluster
environment. This patch adds the managed mode support of scsi persistent
reservation in details page.
Signed-off-by: Lin Ma
---
ui/details.ui | 25 +
virtManager/details.py | 10
Signed-off-by: Lin Ma
---
ui/addhardware.ui | 24
virtManager/addhardware.py | 9 +
2 files changed, 33 insertions(+)
diff --git a/ui/addhardware.ui b/ui/addhardware.ui
index dffcf8c6..b6ac8912 100644
--- a/ui/addhardware.ui
+++ b/ui/addhardware.ui
On 10/2/18 11:03 PM, Cole Robinson wrote:
On 09/26/2018 08:36 AM, Michal Privoznik wrote:
On 09/25/2018 11:12 AM, Lin Ma wrote:
Lin Ma (3):
cli: disk: add pr.managed=, pr.type=, pr.path= and pr.mode= support
details: Add disk pr.managed and pr.path options to support SCSI PR
On 10/2/18 11:00 PM, Cole Robinson wrote:
On 09/25/2018 05:12 AM, Lin Ma wrote:
Enable the managed or unmanaged PR configuration to enable SCSI
persistent
reservation for LUN Passthrough.
Signed-off-by: Lin Ma
---
man/virt-install.pod | 13
unmanaged PR, user only needs to provide the value of pr.path in this case.
Signed-off-by: Lin Ma
---
ui/details.ui | 57 ++
virtManager/addhardware.py | 7 +
virtManager/details.py | 47 ++-
virtManager
Signed-off-by: Lin Ma
---
ui/addhardware.ui | 56 ++
virtManager/addhardware.py | 35
2 files changed, 91 insertions(+)
diff --git a/ui/addhardware.ui b/ui/addhardware.ui
index dffcf8c6..aa9e0339 100644
--- a/ui
Enable the managed or unmanaged PR configuration to enable SCSI persistent
reservation for LUN Passthrough.
Signed-off-by: Lin Ma
---
man/virt-install.pod| 13 +
.../compare/virt-install-many-devices.xml | 9 +
tests/clitest.py
Signed-off-by: Lin Ma
---
virtManager/addhardware.py | 7 +++
virtManager/details.py | 11 ++-
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/virtManager/addhardware.py b/virtManager/addhardware.py
index d8146bf3..9a517b74 100644
--- a/virtManager/addhardware.py
Lin Ma (2):
addhardware: Use consistent combo init for disk io mode option
addhardware: Add support for disk io mode option
ui/addhardware.ui | 32
virtManager/addhardware.py | 12
virtManager/details.py | 11 ++-
3 files
Signed-off-by: Lin Ma
---
virtManager/details.py | 15 +--
virtManager/domain.py | 4
2 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/virtManager/details.py b/virtManager/details.py
index 0d02805f..64bed185 100644
--- a/virtManager/details.py
+++ b/virtManager
Signed-off-by: Lin Ma
---
virtManager/domain.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/virtManager/domain.py b/virtManager/domain.py
index 3b1b43d1..b628b5cd 100644
--- a/virtManager/domain.py
+++ b/virtManager/domain.py
@@ -1200,6 +1200,8 @@ class vmmDomain(vmmLibvirtObject
Lin Ma (3):
Fix error while refreshing ip if the virtual nic doesn't have any ip
Fix error while refreshing ip if the virtual nic only has ipv6
Try to get ip of vm's nic only when the vm is active
virtManager/details.py | 15 +--
virtManager/domain.py | 6 ++
2 files
Signed-off-by: Lin Ma
---
virtManager/details.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/virtManager/details.py b/virtManager/details.py
index 1e619e78..0d02805f 100644
--- a/virtManager/details.py
+++ b/virtManager/details.py
@@ -2756,7 +2756,7 @@ class vmmDetails
On 09/06/2018 03:13 AM, Cole Robinson wrote:
On 08/31/2018 06:37 AM, Lin Ma wrote:
Uses lease, agent and arp to try to get ipv4 and ipv6 address of
given interface
Lin Ma (2):
domain: Add function interface_addresses to return ipv4 and ipv6
details: Show ipv4 and ipv6 address
Complete this part of feature for commit e6c7e46a
Signed-off-by: Lin Ma
---
virtManager/addhardware.py | 5 +
1 file changed, 5 insertions(+)
diff --git a/virtManager/addhardware.py b/virtManager/addhardware.py
index 87b0d918..556524d2 100644
--- a/virtManager/addhardware.py
+++ b
Complete this part of feature for commit d13b793b.
Signed-off-by: Lin Ma
---
virtManager/addhardware.py | 5 +
1 file changed, 5 insertions(+)
diff --git a/virtManager/addhardware.py b/virtManager/addhardware.py
index 2981e465..87b0d918 100644
--- a/virtManager/addhardware.py
+++ b
Lin Ma (2):
addhardware: Add support for disk discard option
addhardware: Add support for disk detect zeroes option
virtManager/addhardware.py | 10 ++
1 file changed, 10 insertions(+)
--
2.15.1
___
virt-tools-list mailing list
virt
Uses lease, agent and arp to try to get ipv4 and ipv6 address of given interface
Lin Ma (2):
domain: Add function interface_addresses to return ipv4 and ipv6
details: Show ipv4 and ipv6 address in details page of interface
ui/details.ui | 79
It returns a dict that consisting of ipv4 and ipv6 which only match the
given mac, it returns None in exception.
Signed-off-by: Lin Ma
---
virtManager/domain.py | 27 +++
1 file changed, 27 insertions(+)
diff --git a/virtManager/domain.py b/virtManager/domain.py
index
If the interface's type is 'network', then code uses lease as one of
parameters of interface_addresses to get ipv4 and ipv6 address.
If the result is negative, then uses agent to try again, If the result
is still negative, uses arp for final try.
Signed-off-by: Lin Ma
---
ui/details.ui
Signed-off-by: Lin Ma
---
virtManager/details.py | 22 ++
1 file changed, 14 insertions(+), 8 deletions(-)
diff --git a/virtManager/details.py b/virtManager/details.py
index 34bd35b3..e9ca5bda 100644
--- a/virtManager/details.py
+++ b/virtManager/details.py
@@ -2998,6
It informs users that why the device can't be removed.
Signed-off-by: Lin Ma
---
virtManager/details.py | 7 +++
1 file changed, 7 insertions(+)
diff --git a/virtManager/details.py b/virtManager/details.py
index cb298f3f..7308cde3 100644
--- a/virtManager/details.py
+++ b/virtManager
visor does not support to removing this device"
3. Click a nic item.
4. Observe the tooltip of the 'Remove' button.
Expected:
"Remove this device from the virtual machine"
Actual:
"Hypervisor does not support to removing this device"
Signed-off-by: Lin Ma
--
Lin Ma (5):
details: Show attached disk info in sata, ide and floppy controller
page
details: Disallow removing video device if graphics devices exist
details: Disallow removing virtio-serial controller if devices attach
to it
details: Fix the tooltip error on config-remove
Reflect controllers <-> disks mapping relationship for not only scsi,
But other storage controllers.
As a bonus, These controllers are not allowed to be removed if there are
disks attached to them.
Signed-off-by: Lin Ma
---
virtManager/details.py | 2 +-
1 file changed, 1 insertion
Signed-off-by: Lin Ma
---
virtManager/details.py | 5 +
1 file changed, 5 insertions(+)
diff --git a/virtManager/details.py b/virtManager/details.py
index 4b145602..e3edbe86 100644
--- a/virtManager/details.py
+++ b/virtManager/details.py
@@ -3001,6 +3001,11 @@ class vmmDetails(vmmGObjectUI
Signed-off-by: Lin Ma
---
virtManager/details.py | 13 +
1 file changed, 13 insertions(+)
diff --git a/virtManager/details.py b/virtManager/details.py
index e3edbe86..00e18949 100644
--- a/virtManager/details.py
+++ b/virtManager/details.py
@@ -3041,6 +3041,19 @@ class vmmDetails
Signed-off-by: Lin Ma
---
virtManager/libvirtenummap.py | 12 ++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/virtManager/libvirtenummap.py b/virtManager/libvirtenummap.py
index eaad0374..71e4a5eb 100644
--- a/virtManager/libvirtenummap.py
+++ b/virtManager
Signed-off-by: Lin Ma
---
virtManager/connection.py | 10 ++
1 file changed, 10 insertions(+)
diff --git a/virtManager/connection.py b/virtManager/connection.py
index 8efcca77..8539be7e 100644
--- a/virtManager/connection.py
+++ b/virtManager/connection.py
@@ -763,6 +763,14 @@ class
Further patches will pass in the callback instead of the default one.
Signed-off-by: Lin Ma
---
virtManager/connection.py | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/virtManager/connection.py b/virtManager/connection.py
index 76e78c49..8efcca77 100644
v1->v2:
* new patch 1/4 for adding callback parameter to _add_domain_xml_event.
* combine original patch 3/4 and patch 4/4 to new patch 4/4.
* avoid pylint warn.
* Register agent events through _add_domain_xml_event.
Lin Ma (4):
connection: Add callback parameter for funct
1 - 100 of 198 matches
Mail list logo