[KVM] adding guest computer to the network
I'm trying to connect the guest to the same network as the host's. I'm using the KVM/Qemu.
kernel is 2.6.23-rc5 kvm/qemu userspace version is 36 (which is the newest version) when i start the guest machine via a little script i wrote: Code:
#!/bin/sh I tried goggling and researching but nothing seem to work. http://fabrice.bellard.free.fr/qemu/qemu-doc.html#SEC25 talks about networking emulation options in qemu, but it doesn't say how to configure the ip address on startup or anything like that. If anyone has any insight or tips on how to get this to work that would be very helpful. Let me know if you need any other info. Thanks, djgerbavor3 |
sounds like it's doing natting and routing, not bridging, which is what you seem to be asking for. check here for bridging in kvm... http://www.watzmann.net/blog/index.p...vm_and_libvirt http://kabru.eecs.umich.edu/bin/view/Main/KvmSetup
|
acid_kewpie that is what I was looking for...Thanks. I thought I need bridging but wasn't sure.
However I'm having trouble configuring the bridge, and I don't know how to debug it. Basically I created TUN/TAP device called tap0 with tunctl command. Then I need to create a bridge via: Code:
sudo /usr/sbin/brctl addbr kvm-brigde Code:
sudo /sbin/ifconfig tap0 0.0.0.0 up Code:
sudo /usr/sbin/brctl addif kvm-bridge tap0 Code:
bash-3.2$ /usr/sbin/brctl show Code:
bash-3.2$ sudo /etc/init.d/network restart Code:
eth0 Link encap:Ethernet HWaddr 00:19:DB:6D:72:72 Code:
bash-3.2$ ping 192.168.1.1 So I'm alittle confused how to debug this. my route looks like this: Code:
bash-3.2$ /sbin/route To get my internet connection back I remove the eth0 from the brigde: Code:
sudo /usr/sbin/brctl delif kvm-bridge eth0 Thanks, djgerbavor3 |
setting KVM guest IP
Did you solve your guest IP address with tthe bridging and how did you do it ?
|
Unfortunately, I never got this to work. Are you having the same issue? What commands are you using? If we both are having the same problem we might be able to figure it out.
thanks, djgerbavore |
Even I am having same problem:scratch:. I tried bridge, I tried editing XML file but no success. Please post here if you have solved it.
|
All times are GMT -5. The time now is 02:50 PM. |