<html><body><p>Hi Lukáš,<br><br><br>Thank you for your information, I will try later.<br><br>I saw your commands are execution about qemu, I want to test libvirt as below.<br><br><font face="微软雅黑">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</font><font size="4"> </font><br><br>1) I found all of images from <tt>avocado list --vt-type libvirt </tt>are i440fx. Is this only one choice we can use now?<br>   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.<br>   <br>   <br>2) How can I added a new image to list? I have added <font face="微软雅黑">Ubuntu.16.04</font><tt> info to </tt><tt>16.04-server.s390x.cfg and it had added to </tt><tt>guest-os.cfg.</tt><br><tt>   But </tt><font face="微软雅黑">Ubuntu.16.04</font><tt> can not show on avocado list. I want to add a image as </tt><font face="微软雅黑">Linux.Ubuntu.16.04-server.x86_64.</font>s390-virtio <br><tt>   </tt><br><br><br><br><br>Best regards,<br>-<br>Li, Wei (李 伟)<br>zKVM Solution Test<br>IBM China Systems & Technology Lab, Beijing<br>E-Mail: liwbj@cn.ibm.com<br>Tel: 86-10-82450631  Notes: Wei WA Li/China/IBM<br>Address: 3BW298, Ring Bldg. No.28 Building, ZhongGuanCun Software Park,No.8  <br>         DongBeiWang West Road, ShangDi, Haidian District, Beijing, P.R.China<br><br><br><img width="16" height="16" src="cid:1__=8FBBF571DFDADF998f9e8a93df938690918c8FB@" border="0" alt="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 `"><font color="#424282">Lukáš Doktor ---2016/06/30 20:18:21---Hello Wei, this is an issue quite high on our todo list. The `avocado list` does</font><br><br><font size="2" color="#5F5F5F">From:        </font><font size="2">Lukáš Doktor <ldoktor@redhat.com></font><br><font size="2" color="#5F5F5F">To:        </font><font size="2">Wei WA Li/China/IBM@IBMCN, Avocado-devel@redhat.com</font><br><font size="2" color="#5F5F5F">Date:        </font><font size="2">2016/06/30 20:18</font><br><font size="2" color="#5F5F5F">Subject:        </font><font size="2">Re: How to create a s390-virtio image.</font><br><hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br><br><br><tt>Hello Wei,<br><br>this is an issue quite high on our todo list. The `avocado list` does <br>not support `--vt-arch`, nor `--vt-machine-type` and simply assumes the <br>default (x86_64). Anyway the `run` command does support <br>`--vt-machine-type s390-virtio --vt-arch 390x`.<br><br>My workflow to install the F23 guest on RHEL7 host is (non-optimized):<br><br>```bash<br># Install qemu<br>git clone </tt><tt><a href="https://github.com/qemu/qemu.git">https://github.com/qemu/qemu.git</a></tt><tt> --recursive<br>cd qemu<br>yum install zlib-devel glib2-devel -y<br>CXFLAGS="-lrt" CFLAGS="-lrt" QEMU_CFLAGS="-lrt" ./configure <br>--target-list="s390x-softmmu" --enable-kvm<br>make -j 3<br>make install<br><br># Install avocado<br>git clone </tt><tt><a href="https://github.com/avocado-framework/avocado.git">https://github.com/avocado-framework/avocado.git</a></tt><tt><br>git clone </tt><tt><a href="https://github.com/avocado-framework/avocado-vt.git">https://github.com/avocado-framework/avocado-vt.git</a></tt><tt><br><br>curl "</tt><tt><a href="https://bootstrap.pypa.io/get-pip.py">https://bootstrap.pypa.io/get-pip.py</a></tt><tt>" -o "get-pip.py"<br>python get-pip.py<br><br>cd avocado<br>yum install python-devel libvirt-python libvirt -y<br>make requirements<br>cd ../avocado-vt<br>make requirements<br>cd -<br>make install<br>cd -<br>make install<br>yum install tcpdump -y<br>avocado vt-bootstrap --vt-guest-os Fedora.23<br><br># Playing with it<br># Try running boot (should fail as there is no image)<br>avocado run --vt-guest-os Fedora.23 --vt-arch s390x --vt-machine-type <br>s390-virtio --vt-qemu-bin /usr/local/bin/qemu-system-s390x boot<br># Install it<br>yum install genisoimage<br>mkdir  /usr/share/avocado/data/avocado-vt/isos/linux<br>wget <br></tt><tt><a href="https://dl.fedoraproject.org/pub/fedora-secondary/releases/23/Server/s390x/iso/Fedora-Server-DVD-s390x-23.iso">https://dl.fedoraproject.org/pub/fedora-secondary/releases/23/Server/s390x/iso/Fedora-Server-DVD-s390x-23.iso</a></tt><tt> <br>-O <br>/usr/share/avocado/data/avocado-vt/isos/linux/Fedora-Server-DVD-s390x-23.iso<br>modprobe kvm<br>avocado run --vt-guest-os Fedora.23 --vt-arch s390x --vt-machine-type <br>s390-virtio --vt-qemu-bin /usr/local/bin/qemu-system-s390x <br>unattended_install.cdrom.extra_cdrom_ks.default_install.aio_threads <br>--show-job-log<br># And now we can run it (or any other test)<br>avocado run --vt-guest-os Fedora.23 --vt-arch s390x --vt-machine-type <br>s390-virtio --vt-qemu-bin /usr/local/bin/qemu-system-s390x boot<br>```<br><br>I'm sorry for confusion, we plan to add the `arch/machine` to the `list` <br>commands too.<br><br>Kind regards,<br>Lukáš<br><br>Dne 30.6.2016 v 10:39 Wei WA Li napsal(a):<br>> Hi all,<br>><br>> I am testing libvirt test case on s390x now, I found all of guest are<br>> i440fx machine_type.<br>> How can I create a s390-virtio image? Which cfg file I need to modify?<br>> Thanks in advance.<br>><br>><br>> [root@zs95kv2 guests]# avocado list --vt-type libvirt --vt-list-guests<br>> ......<br>> Linux.Ubuntu.12.04-server.i386.i440fx (missing ubuntu-12.04-server-32.qcow2)<br>> Linux.Ubuntu.12.04-server.x86_64.i440fx (missing<br>> ubuntu-12.04-server-64.qcow2)<br>> Linux.Ubuntu.14.04-server.i386.i440fx (missing ubuntu-14.04-server-32.qcow2)<br>> Linux.Ubuntu.14.04-server.x86_64.i440fx (missing<br>> ubuntu-14.04-server-64.qcow2)<br>> Linux.Ubuntu.14.04.1-server.i386.i440fx (missing<br>> ubuntu-14.04.1-server-32.qcow2)<br>> Linux.Ubuntu.14.04.1-server.x86_64.i440fx (missing<br>> ubuntu-14.04.1-server-64.qcow2)<br>> Linux.Ubuntu.14.04.3-server.i386.i440fx (missing<br>> ubuntu-14.04.3-server-32.qcow2)<br>> Linux.Ubuntu.14.04.3-server.x86_64.i440fx<br>><br>><br>> [root@zs95kv2 guests]# avocado list --vt-type libvirt --vt-list-guests<br>> --vt-machine-type s390-virtio<br>> Searched /usr/share/avocado/data/avocado-vt/images for guest images<br>><br>> Available guests in config:<br>><br>> [root@zs95kv2 guests]#<br>><br>><br>><br>> Best regards,<br>> -<br>> Li, Wei (李 伟)<br>> zKVM Solution Test<br>> IBM China Systems & Technology Lab, Beijing<br>> E-Mail: liwbj@cn.ibm.com<br>> Tel: 86-10-82450631 Notes: Wei WA Li/China/IBM<br>> Address: 3BW298, Ring Bldg. No.28 Building, ZhongGuanCun Software Park,No.8<br>> DongBeiWang West Road, ShangDi, Haidian District, Beijing, P.R.China<br>><br><br>[附件 "signature.asc" 被 Wei WA Li/China/IBM 删除]</tt><br><BR>
</body></html>