Dne 30.6.2016 v 15:36 Wei WA Li napsal(a):
Hi Lukáš,Thank you for your information, I will try later. I saw your commands are execution about qemu, I want to test libvirt as below. avocado run --vt-type libvirt --vt-guest-os=Linux.Ubuntu.14.04.3-server.x86_64.i440fx type_specific.io-github-autotest-libvirt.virsh.reset.negative_test.readonly 1) I found all of images from avocado list --vt-type libvirt are i440fx. Is this only one choice we can use now? But above command can be executed successfully, but I am not sure how avocado libvirt use this paramter of i440fx and whether it is necessary for libvirt test.
Hello Wei,as I mentioned previously, the `list` command does not accept `--vt-arch` nor `--vt-machine-type` and automatically applies `x86_64`, `i440fx` filters. You could temporarily change the defaults in the avocado-vt plugin, or you can simply wait as we are working on the support for changing the machine for other commands. I'd suggest simply replacing the `x86_64` with `s390`, or just omitting the unnecessary parts as when you use `--machine-type` in `avocado run` it adds the `s390-virtio` filter.
Actually cartesian_config (avocado-vt variants/params generator) is quite simple. It knows nothing about architectures, machine types, guest hw, nor tests. It simply takes all variants and applies global filters like "only s390x", which means it ignores all other variants (like `x86_64` or `ppc64le`).
For Fedora I'm using `--vt-guest-os Fedora.23` so if you already defined `Ubuntu..s390` the `--vt-guest-os Ubuntu.14.04.3-server` should be executable and along with `--vt-machine-type s390-virtio --vt-arch s390x` should give you just a single variant. If you haven't defined the `Ubuntu..s390` yet, you can do it similarly as I defined the `Fedora.23.s390`.
Currently you can't, because `s390x` is omitted due to default `avocado list` filters (`only s86_64`). But when you use `avocado run` it'll be used if you define the `--vt-machine-type`.2) How can I added a new image to list? I have added Ubuntu.16.04 info to 16.04-server.s390x.cfg and it had added to guest-os.cfg. But Ubuntu.16.04 can not show on avocado list. I want to add a image as Linux.Ubuntu.16.04-server.x86_64.s390-virtio
Hopefully this works for you. We neglected other archs for a while, but you can see the `avocado list` is on our TODO list https://trello.com/c/aumjDJde/715-add-vt-list-machines-and-vt-list-archs (most probably won't be implemented in this release, but should be implemented in the next one, which means in less than 4 weeks - no guarantee, though).
Regards, Lukáš
Best regards, - Li, Wei (李 伟) zKVM Solution Test IBM China Systems & Technology Lab, Beijing E-Mail: [email protected] 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 Inactive hide details for Lukáš Doktor ---2016/06/30 20:18:21---Hello Wei, this is an issue quite high on our todo list. The `Lukáš Doktor ---2016/06/30 20:18:21---Hello Wei, this is an issue quite high on our todo list. The `avocado list` does From: Lukáš Doktor <[email protected]> To: Wei WA Li/China/IBM@IBMCN, [email protected] Date: 2016/06/30 20:18 Subject: Re: How to create a s390-virtio image. ------------------------------------------------------------------------ Hello Wei, this is an issue quite high on our todo list. The `avocado list` does not support `--vt-arch`, nor `--vt-machine-type` and simply assumes the default (x86_64). Anyway the `run` command does support `--vt-machine-type s390-virtio --vt-arch 390x`. My workflow to install the F23 guest on RHEL7 host is (non-optimized): ```bash # Install qemu git clone https://github.com/qemu/qemu.git --recursive cd qemu yum install zlib-devel glib2-devel -y CXFLAGS="-lrt" CFLAGS="-lrt" QEMU_CFLAGS="-lrt" ./configure --target-list="s390x-softmmu" --enable-kvm make -j 3 make install # Install avocado git clone https://github.com/avocado-framework/avocado.git git clone https://github.com/avocado-framework/avocado-vt.git curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py" python get-pip.py cd avocado yum install python-devel libvirt-python libvirt -y make requirements cd ../avocado-vt make requirements cd - make install cd - make install yum install tcpdump -y avocado vt-bootstrap --vt-guest-os Fedora.23 # Playing with it # Try running boot (should fail as there is no image) avocado run --vt-guest-os Fedora.23 --vt-arch s390x --vt-machine-type s390-virtio --vt-qemu-bin /usr/local/bin/qemu-system-s390x boot # Install it yum install genisoimage mkdir /usr/share/avocado/data/avocado-vt/isos/linux wget https://dl.fedoraproject.org/pub/fedora-secondary/releases/23/Server/s390x/iso/Fedora-Server-DVD-s390x-23.iso -O /usr/share/avocado/data/avocado-vt/isos/linux/Fedora-Server-DVD-s390x-23.iso modprobe kvm avocado run --vt-guest-os Fedora.23 --vt-arch s390x --vt-machine-type s390-virtio --vt-qemu-bin /usr/local/bin/qemu-system-s390x unattended_install.cdrom.extra_cdrom_ks.default_install.aio_threads --show-job-log # And now we can run it (or any other test) avocado run --vt-guest-os Fedora.23 --vt-arch s390x --vt-machine-type s390-virtio --vt-qemu-bin /usr/local/bin/qemu-system-s390x boot ``` I'm sorry for confusion, we plan to add the `arch/machine` to the `list` commands too. Kind regards, Lukáš Dne 30.6.2016 v 10:39 Wei WA Li napsal(a):Hi all, I am testing libvirt test case on s390x now, I found all of guest are i440fx machine_type. How can I create a s390-virtio image? Which cfg file I need to modify? Thanks in advance. [root@zs95kv2 guests]# avocado list --vt-type libvirt --vt-list-guests ...... Linux.Ubuntu.12.04-server.i386.i440fx (missing ubuntu-12.04-server-32.qcow2) Linux.Ubuntu.12.04-server.x86_64.i440fx (missing ubuntu-12.04-server-64.qcow2) Linux.Ubuntu.14.04-server.i386.i440fx (missing ubuntu-14.04-server-32.qcow2) Linux.Ubuntu.14.04-server.x86_64.i440fx (missing ubuntu-14.04-server-64.qcow2) Linux.Ubuntu.14.04.1-server.i386.i440fx (missing ubuntu-14.04.1-server-32.qcow2) Linux.Ubuntu.14.04.1-server.x86_64.i440fx (missing ubuntu-14.04.1-server-64.qcow2) Linux.Ubuntu.14.04.3-server.i386.i440fx (missing ubuntu-14.04.3-server-32.qcow2) Linux.Ubuntu.14.04.3-server.x86_64.i440fx [root@zs95kv2 guests]# avocado list --vt-type libvirt --vt-list-guests --vt-machine-type s390-virtio Searched /usr/share/avocado/data/avocado-vt/images for guest images Available guests in config: [root@zs95kv2 guests]# Best regards, - Li, Wei (李 伟) zKVM Solution Test IBM China Systems & Technology Lab, Beijing E-Mail: [email protected] 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[附件 "signature.asc" 被 Wei WA Li/China/IBM 删除]
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Avocado-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/avocado-devel
