Lista Até agora fiz o seguinte --------------------------------------------- # apt-get install bridge-utils qemu kvm module-assistant # modprobe kvm-intel # lsmod Module Size Used by kvm_intel 31136 0 kvm 106428 1 kvm_intel bridge 40024 0 tun 8292 0 # adduser username kvm # qemu-img create debian.qcow 4G # switch=$(ip route ls | awk '/^default / { for(i=0;i<NF;i++) { if ($(i) == "dev") print $(i+1) }}') # sudo ifdown ${switch} # /etc/network/interfaces # The loopback network interface auto lo iface lo inet loopback # The primary network interface #allow-hotplug eth0 #iface eth0 inet static # address 192.168.2.10 # netmask 255.255.255.0 # network 192.168.2.0 # broadcast 192.168.2.255 # gateway 192.168.2.1 # dns-* options are implemented by the resolvconf package, if installed # dns-nameservers 200.204.0.10 # dns-search terra.com.br # Bridge auto br0 iface br0 inet static address 192.168.2.11 netmask 255.255.255.0 network 192.168.2.0 broadcast 192.168.2.255 gateway 192.168.2.1 bridge_ports eth0 bridge_stp off bridge_maxwait 5 dns-nameservers 200.204.0.10 dns-search terra.com.br # sudo ifup br0 # /etc/kvm/kvm-ifup #!/bin/sh switch=$(/sbin/ip route list | awk '/^default / { print $NF }') /sbin/ifconfig $1 0.0.0.0 up /usr/sbin/brctl addif ${switch} $1 # /etc/qemu-if #!/bin/sh sudo -p "Password for $0:" /sbin/ifconfig $1 172.20.0.1 # kvm -hda debian.qcow -cdrom debian-40r4a-i386-netinst.iso -m 128 -boot d -net nic -net tap,script=/etc/kvm/kvm-ifup --------------------------------------------- Quando executo o comando acima, continua aparecendo a mensagem de erro abaixo. warning: could not configure /dev/net/tun: no virtual network emulation Could not initialize device 'tap' Por acaso alguém teria alguma idéia do que eu possa estar fazendo de errado? On (09/09/08 11:32), Daniel wrote: > Aparentemente, o modulo tun/tap não está carregado. Experimento executar o comando > > modprobe tun > > E tente novamente. Se houver problema, retorne. > > []'s > > Daniel > > -----Mensagem original----- > De: Caio Abreu Ferreira [mailto:idic@terra.com.br] > Enviada em: domingo, 7 de setembro de 2008 19:24 > Para: Debian User Portuguese > Assunto: kvm e rede > > Lista > > Para poder utilizar o kvm estou utilizando os seguintes textos[1][2]. > Infelizmente estou tendo problemas com a rede. Quando inicializo a máquina virtual com rede aparece a seguinte mensagem de erro > > warning: could not configure /dev/net/tun: no virtual network emulation Could not initialize device 'tap' > > O arquivo "/etc/kvm/kvm-ifup" esta assim > > #!/bin/sh > switch=$(/sbin/ip route list | awk '/^default / { print $NF }') /sbin/ifconfig $1 0.0.0.0 up /usr/sbin/brctl addif ${switch} $1 > > > Para inicializar a criaćão da máquina virtual estou utilizando o seguinte comando > > kvm -hda debian.qcow -cdrom debian-40r4a-i386-netinst.iso -m 256 -boot d -net nic -net tap,script=/etc/kvm/kvm-ifup > > Alguém saberia me dizer o que estou fazendo de errado? > > Estou utilizando o debian stable. > > Obrigado. > > 1 - http://www.punknix.com/?q=virtualization_kvm > 2 - http://kvm.qumranet.com/kvmwiki/Debian
Attachment:
signature.asc
Description: Digital signature