Open tambewilliam opened 6 years ago
It seems missing the variant arch
, please try to use the following name instead, thanks.
- amdcustomguest.x86_64:
...
I tried the followings with no luck:
sudo avocado run type_specific.io-github-autotest-qemu.migrate.default.tcp --vt-type qemu --vt-guest-os LinuxCustom.amdcustomguest.x86_64
sudo avocado run type_specific.io-github-autotest-qemu.migrate.default.tcp --vt-type qemu --vt-guest-os amdcustomguest.x86_64
As additional information, we are using avocado-vt 58.0 .
@tambewilliam it works well on my side.
# cat workspace/avocado-vt/shared/cfg/guest-os/Linux/LinuxCustom/amdcustomguest.cfg
- amdcustomguest.x86_64:
image_name = amdcustomguest
shell_prompt = "^.*@.*[\#\$]\s*$"
password = amd123
image_name = images/amdcustomguest
# Shell client used (may be telnet or ssh)
shell_client = ssh
# Port were the shell client is running
shell_port = 22
# File transfer client
file_transfer_client = scp
# File transfer port
file_transfer_port = 22
# avocado vt-bootstrap --vt-type qemu --yes-to-all --vt-update-providers --vt-skip-verify-download-assets
...
# avocado run io-github-autotest-qemu.skip_test --vt-guest-os LinuxCustom.amdcustomguest.x86_64
JOB ID : 94cc9430499acdbaeab115a69120442d0f565437
JOB LOG : /root/avocado/job-results/job-2018-04-26T17.54-94cc943/job.log
(1/1) io-github-autotest-qemu.skip_test: CANCEL (1.46 s)
RESULTS : PASS 0 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 1
JOB TIME : 9.41 s
JOB HTML : /root/avocado/job-results/job-2018-04-26T17.54-94cc943/results.html
Anyway, the doc does need to be updated since it did not mention the arch
variant.
Defining a new guest fail following the instructions at: http://avocado-vt.readthedocs.io/en/latest/WritingTests/DefiningNewGuests.html
We created the config file /usr/share/avocado-plugins-vt/shared/cfg/guest-os/Linux/LinuxCustom/amdcustomguest.cfg with the content:
and placed a qcow2 image at: /usr/share/avocado-plugins-vt/shared/cfg/guest-os/Linux/LinuxCustom/images/amdcustomguest.qcow2
However running: sudo avocado run type_specific.io-github-autotest-qemu.migrate.default.tcp --vt-type qemu --vt-guest-os LinuxCustom.amdcustomguest
print the following error:
Test discovery plugin <avocado_vt.loader.VirtTestLoader object at 0x7fb44430a390> failed: option --vt-guest-os 'LinuxCustom.amdcustomguest' is not on the known guest os for arch 'None' and machine type 'i440fx'. (see --vt-list-guests)