informatica:linux:virt_test
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| informatica:linux:virt_test [2014/01/07 14:53] – created javi | informatica: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 / | ||
| + | |||
| + | ===== Ejecutar tests ===== | ||
| + | |||
| + | * Todos los tests de qemu | ||
| + | |||
| + | sudo ./run -t qemu | ||
| + | |||
| + | Salida: | ||
| + | |||
| + | < | ||
| + | SETUP: PASS (18.83 s) | ||
| + | DATA DIR: / | ||
| + | DEBUG LOG: / | ||
| + | TESTS: 10 | ||
| + | (1/10) type_specific.migrate.default.tcp: | ||
| + | (2/10) type_specific.migrate.default.unix: | ||
| + | (3/10) type_specific.migrate.default.exec.default_exec: | ||
| + | (4/10) type_specific.migrate.default.exec.gzip_exec: | ||
| + | (5/10) type_specific.migrate.default.fd: | ||
| + | (6/10) type_specific.migrate.with_set_speed.tcp: | ||
| + | (7/10) type_specific.migrate.with_set_speed.unix: | ||
| + | (8/10) type_specific.migrate.with_set_speed.exec.default_exec: | ||
| + | (9/10) type_specific.migrate.with_set_speed.exec.gzip_exec: | ||
| + | (10/10) type_specific.migrate.with_set_speed.fd: | ||
| + | TOTAL TIME: 34.27 s | ||
| + | TESTS PASSED: 0 | ||
| + | TESTS FAILED: 10 | ||
| + | SUCCESS RATE: 0.00 % | ||
| + | </ | ||
| + | |||
| + | * 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: | ||
| + | |||
| + | < | ||
| + | #!/bin/bash | ||
| + | |||
| + | IPTABLES=/ | ||
| + | |||
| + | VIRT_IF=" | ||
| + | EXT_IF=" | ||
| + | |||
| + | $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 | ||
| + | </ | ||
| + | |||
| + | ===== Errores ===== | ||
| + | |||
| + | Estoy investigando este error: | ||
| + | |||
| + | https:// | ||
| + | |||
| + | Comandos utiles: | ||
| + | |||
| + | tail -F virt-test/ | ||
| + | ssh $(cat virt-test/ | ||
informatica/linux/virt_test.1389106400.txt.gz · Last modified: (external edit)
