qemu-kvm man page:
...
-tftp dir
When using the user mode network stack, activate a built-in TFTP server.
The files in dir will be exposed as the root of a TFTP server. The TFTP
client on the guest must be configured in binary mode (use the command
"bin" of the Unix TFTP client). The host IP address on the guest is as
usual 10.0.2.2.
Signed-off-by: Amos Kong <[email protected]>
---
0 files changed, 0 insertions(+), 0 deletions(-)
diff --git a/client/tests/kvm/kvm_vm.py b/client/tests/kvm/kvm_vm.py
index a5555b9..514dfd1 100755
--- a/client/tests/kvm/kvm_vm.py
+++ b/client/tests/kvm/kvm_vm.py
@@ -390,7 +390,7 @@ class VM:
qemu_cmd += add_floppy(help, floppy)
tftp = params.get("tftp")
- if tftp:
+ if tftp and nic_params.get("nic_mode") == "user":
tftp = kvm_utils.get_path(root_dir, tftp)
qemu_cmd += add_tftp(help, tftp)
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest