[ubuntu-ar] Configuración de bridge para KVM

Emiliano Moscato moski666 at gmail.com
Mon Mar 30 17:24:18 BST 2009


Hola Daniel

2009/3/28 Daniel Bareiro <daniel-listas at gmx.net>:

> $KVM -hda $DISK_PATH/ratatoskr.img -m 512 -boot c -smp 2 -net \
>  nic,vlan=0,macaddr=00:16:3e:00:00:31 -net tap -daemonize -vnc :1 \
>  -k es -localtime -monitor telnet:localhost:4001,server,nowait \
>  -serial telnet:localhost:4041,server,nowait
> ----------------------------------------------------------------------------
>
> pero cuando lo ejecuto manualmente, obtengo el siguiente mensaje de
> error:
>
> root at ss01:~# /etc/init.d/vm_start
> can't add tap0 to bridge eth1: Operation not supported


Por como tenés el archivo interfaces, supongo que el problema es que
está tratando de usar a eth1 como bridge, cuando debería usar br0.
No se si esto te servirá de algo, parece un poco más básico, pero...

http://zonabuologica.wordpress.com/2009/02/10/maquinas-virtuales-en-linux-usando-kvm-y-qemu/

Saludos

Moski

>
> root at ss01:~# cat /etc/network/interfaces
> # The loopback network interface
> auto lo
> iface lo inet loopback
>
> # The primary network interface
> # auto eth0
> # iface eth0 inet dhcp
>
> auto br0
> iface br0 inet static
>         address 10.1.0.49
>         netmask 255.255.0.0
>         network 10.1.0.0
>         broadcast 10.1.255.255
>         bridge_ports eth0
>         bridge_stp off
>         bridge_maxwait 5
>
> auto eth1
> iface eth1 inet static
>         address 10.3.0.49
>         netmask 255.255.0.0
>         network 10.3.0.0
>         broadcast 10.3.255.255
>         gateway 10.3.0.5
> ----------------------------------------------------------------------------
>
> El script qemu-ifup que estoy usando es el siguiente:
>
> ----------------------------------------------------------------------------
> root at ss01:~# cat /etc/qemu-ifup
> #!/bin/sh
>
> # DGB - 20090106
> #sudo -p "Password for $0:" /sbin/ifconfig $1 172.20.0.1
>
> /sbin/ifconfig $1 0.0.0.0 promisc up
> /usr/sbin/brctl addif br0 $1
> sleep 2
> ----------------------------------------------------------------------------
>
> Supongo que quizás, modificando este script, podría bootear las VMs
> manteniendo el bridge en eth0 y con el default gateway en eth1. Alguien
> me podría dar una mano para ver cómo configurar el script para conseguir
> este resultado.
>
> Gracias anticipadas.
>
> Saludos,
> Daniel
>
> [1] https://bugs.launchpad.net/ubuntu/+source/kvm/+bug/125302
> --
> Mi frase del día:
> "All we are given is possibilities -- to make ourselves one thing or another."
>                -- Ortega y Gasset
>
> Daniel Bareiro - GNU/Linux registered user #188.598
> Proudly running Debian GNU/Linux with uptime:
> 14:43:09 up 35 days, 20:26, 11 users,  load average: 0.18, 0.18, 0.13
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iEYEARECAAYFAknOZigACgkQZpa/GxTmHTd6GACfZuF+UYA7HR0BbooEnUVC2CXY
> iuEAn2Ge7O6IbVQLsG1xnXHz8FXVJj90
> =hZZP
> -----END PGP SIGNATURE-----
>
> --
> Ubuntu-ar lista de correo
> Ubuntu-ar at lists.ubuntu.com
> Modifica tus opciones o desuscribite en: https://lists.ubuntu.com/mailman/listinfo/ubuntu-ar
> Siempre leer, comprender y aplicar nuestra etiqueta: https://wiki.ubuntu.com/ArgentinaTeam/EtiquetaML
>
>
>



More information about the Ubuntu-ar mailing list