User Tools

Site Tools


informatica:linux:virt_test

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
informatica:linux:virt_test [2014/01/07 14:53] – created javiinformatica:linux:virt_test [2018/09/23 16:43] (current) javi
Line 24: Line 24:
  
   sudo aptitude update; sudo aptitude install p7zip-full autotest tcpdump arping gcc python-dev   sudo aptitude update; sudo aptitude install p7zip-full autotest tcpdump arping gcc python-dev
 +  
 +3. Configurar:
 +
 +  cd /tmp/virt-test; ./run -t qemu --bootstrap
 +
 +===== Ejecutar tests =====
 +
 +  * Todos los tests de qemu
 +
 +  sudo ./run -t qemu
 +
 +Salida:
 +
 +<code>Running setup. Please wait...
 +SETUP: PASS (18.83 s)
 +DATA DIR: /home/usuario/virt_test
 +DEBUG LOG: /srv/no_data/virt-test/logs/run-2014-01-07-16.11.55/debug.log
 +TESTS: 10
 +(1/10) type_specific.migrate.default.tcp: ERROR (9.88 s)
 +(2/10) type_specific.migrate.default.unix: ERROR (3.13 s)
 +(3/10) type_specific.migrate.default.exec.default_exec: ERROR (2.65 s)
 +(4/10) type_specific.migrate.default.exec.gzip_exec: ERROR (2.63 s)
 +(5/10) type_specific.migrate.default.fd: ERROR (2.64 s)
 +(6/10) type_specific.migrate.with_set_speed.tcp: ERROR (2.66 s)
 +(7/10) type_specific.migrate.with_set_speed.unix: ERROR (2.66 s)
 +(8/10) type_specific.migrate.with_set_speed.exec.default_exec: ERROR (2.65 s)
 +(9/10) type_specific.migrate.with_set_speed.exec.gzip_exec: ERROR (2.64 s)
 +(10/10) type_specific.migrate.with_set_speed.fd: ERROR (2.65 s)
 +TOTAL TIME: 34.27 s
 +TESTS PASSED: 0
 +TESTS FAILED: 10
 +SUCCESS RATE: 0.00 %
 +</code>
 +
 +  * Un test especifico de qemu
 +
 +  sudo ./run -t qemu --tests type_specific.migrate.default.tcp
 +
 +===== Cortafuegos =====
 +
 +Reglas para yo aplico. Mi entorno es bastante restrictivo:
 +
 +<code>
 +#!/bin/bash
 +
 +IPTABLES=/sbin/iptables
 +
 +VIRT_IF="virbr0"
 +EXT_IF="eth0"
 +
 +$IPTABLES -F INPUT
 +$IPTABLES -F OUTPUT
 +$IPTABLES -F FORWARD
 +$IPTABLES -t filter -F
 +$IPTABLES -t nat -F
 +$IPTABLES -t mangle -F
 +
 +$IPTABLES -A FORWARD -i $VIRT_IF -o $VIRT_IF -p udp --sport 5353 --dport 5353 -j ACCEPT
 +$IPTABLES -A FORWARD -p igmp -j ACCEPT
 +$IPTABLES -A FORWARD -i $VIRT_IF -o $VIRT_IF -p udp -s 0.0.0.0 -d 255.255.255.255 --sport 68 --dport 67 -j ACCEPT
 +$IPTABLES -A INPUT -i $VIRT_IF -p udp -d 10.2.3.255 --sport 138 --dport 138 -j ACCEPT
 +$IPTABLES -A FORWARD -i $VIRT_IF -o $VIRT_IF -p udp -s 0.0.0.0 -d 255.255.255.255 --sport 68 --dport 67 -j ACCEPT
 +</code>
 +
 +===== Errores =====
 +
 +Estoy investigando este error:
 +
 +https://github.com/autotest/virt-test/issues/80
 +
 +Comandos utiles:
 +
 +  tail -F virt-test/logs/latest/debug.log | grep "DEBUG| Could not verify DHCP lease"
 +  ssh $(cat virt-test/logs/latest/debug.log | grep "DEBUG| Could not verify DHCP lease" | awk '{print $10}' | tail -n 1)
informatica/linux/virt_test.1389106400.txt.gz · Last modified: 2015/04/13 20:19 (external edit)