[Avocado-devel] How to enable a new platform and Linux on avocado-vt?
Cleber Rosa
crosa at redhat.com
Mon May 30 13:01:28 UTC 2016
On 05/18/2016 11:00 PM, Wei WA Li wrote:
>
>
> Hi all,
>
> Could you help me to take a look for this issue? I am still trying to do
> it, but I have no idea about it. Thank you very much.
> https://github.com/avocado-framework/avocado-vt/issues/512
>
Hi Wei,
I have responded on the issue itself. Adding a few extra notes here.
>
> I just installed avocado-vt on our s390x platform, the result is as below.
>
> [root at zs95kv2 avocado]# ./scripts/avocado run
> --vt-machine-type=s390-ccw-kvmibm-1.1.1
> type_specific.io-github-autotest-qemu.migrate.default.tcp --show-g
> Config
> file /usr/share/avocado/data/avocado-vt/backends/qemu/cfg/guest-os.cfg auto
> generated from guest OS samples
> Config
> file /usr/share/avocado/data/avocado-vt/backends/qemu/cfg/subtests.cfg auto
> generated from subtest samples
> Test discovery plugin <avocado_vt.loader.VirtTestLoader object at
> 0x917d17f0> failed: option --vt-guest-os 'JeOS.23' is not on the known
> guest os for aone' and machine type 's390-ccw-kvmibm-1.1.1'. (see
> --vt-list-guests)
>
> Unable to discover url(s)
> 'type_specific.io-github-autotest-qemu.migrate.default.tcp' with loader
> plugins(s) 'file', 'vt', 'external', try running 'avoist -V
> type_specific.io-github-autotest-qemu.migrate.default.tcp' to see the
> details.
> [root at zs95kv2 avocado]#
>
First thing is `--vt-machine-type`. While s390-ccw-kvmibm-1.1.1 may be
a valid machine type from qemu's perspective (qemu --machine help), they
are not valid (as in present in upstream) avocado machine types.
Unfortunately, there's no standard way to check the valid Avocado
machine types. I created a card to tackle this:
https://trello.com/c/aumjDJde/715-avocado-vt-add-vt-list-machines
For now, you can look at avocado-vt/shared/cfg/machines.cfg
>
> s390x is our platfrom on Z mianframe, and I am trying to test it
> virtualiztion functions by avocado. The relationship is as below.
>
> s390 like X86
> zLinux like Fedora
> zKVM like KVM
>
> So current avocado does not support our platfrom, I want to modify it and
> contribute it.
>
>
> Shoud I need to add some cfg here firstly?
>
See the machines.cfg reference here and the other reference on the
github issue.
- Cleber.
> [root at zs95kv2 Linux]# ll
> total 72
> drwxr-xr-x. 4 root root 4096 May 11 04:45 CentOS
> -rw-r--r--. 1 root root 416 May 11 04:45 CentOS.cfg
> drwxr-xr-x. 2 root root 4096 May 11 04:45 Debian
> -rw-r--r--. 1 root root 275 May 11 04:45 Debian.cfg
> drwxr-xr-x. 2 root root 4096 May 11 04:45 Fedora
> -rw-r--r--. 1 root root 1787 May 11 04:45 Fedora.cfg
> drwxr-xr-x. 2 root root 4096 May 11 04:45 JeOS
> -rw-r--r--. 1 root root 21 May 11 04:45 JeOS.cfg
> drwxr-xr-x. 2 root root 4096 May 11 04:45 LinuxCustom
> -rw-r--r--. 1 root root 64 May 11 04:45 LinuxCustom.cfg
> drwxr-xr-x. 2 root root 4096 May 11 04:45 OpenSUSE
> -rw-r--r--. 1 root root 549 May 11 04:45 OpenSUSE.cfg
> drwxr-xr-x. 27 root root 4096 May 11 04:45 RHEL
> -rw-r--r--. 1 root root 973 May 11 04:45 RHEL.cfg
> drwxr-xr-x. 2 root root 4096 May 11 04:45 SLES
> -rw-r--r--. 1 root root 772 May 11 04:45 SLES.cfg
> drwxr-xr-x. 2 root root 4096 May 11 04:45 Ubuntu
> -rw-r--r--. 1 root root 361 May 11 04:45 Ubuntu.cfg
> [root at zs95kv2 Linux]# pwd
> /avocado/avocado-vt/shared/cfg/guest-os/Linux
> [root at zs95kv2 Linux]#
>
> Best regards,
> -
> Li, Wei (李 伟)
> zKVM Solution Test
> IBM China Systems & Technology Lab, Beijing
> E-Mail: liwbj at cn.ibm.com
> Tel: 86-10-82450631 Notes: Wei WA Li/China/IBM
> Address: 3BW298, Ring Bldg. No.28 Building, ZhongGuanCun Software Park,No.8
> DongBeiWang West Road, ShangDi, Haidian District, Beijing,
> P.R.China
>
>
>
> _______________________________________________
> Avocado-devel mailing list
> Avocado-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/avocado-devel
>
--
Cleber Rosa
[ Sr Software Engineer - Virtualization Team - Red Hat ]
[ Avocado Test Framework - avocado-framework.github.io ]
More information about the Avocado-devel
mailing list