mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
Acceptance Tests: add port redirection for ssh by default
For users of the LinuxTest class, let's set up the VM with the port redirection for SSH, instead of requiring each test to set the same arguments. It also sets the network device, by default, to virtio-net. Signed-off-by: Cleber Rosa <crosa@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Eric Auger <eric.auger@redhat.com> Reviewed-by: Willian Rampazzo <willianr@redhat.com> Message-Id: <20210412044644.55083-6-crosa@redhat.com> Signed-off-by: John Snow <jsnow@redhat.com>
This commit is contained in:
parent
7edee7ad94
commit
54914114af
2 changed files with 4 additions and 5 deletions
|
@ -207,10 +207,6 @@ class VirtiofsSubmountsTest(LinuxTest):
|
|||
self.vm.add_args('-kernel', vmlinuz,
|
||||
'-append', 'console=ttyS0 root=/dev/sda1')
|
||||
|
||||
# Allow us to connect to SSH
|
||||
self.vm.add_args('-netdev', 'user,id=vnet,hostfwd=:127.0.0.1:0-:22',
|
||||
'-device', 'virtio-net,netdev=vnet')
|
||||
|
||||
self.require_accelerator("kvm")
|
||||
self.vm.add_args('-accel', 'kvm')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue