Talk:Local testing with KVM, VDE and dnsmasq: Difference between revisions

From FAIWiki
Jump to navigation Jump to search
(Feedback on the Howto.)
 
(Correct name.)
Line 11: Line 11:


/var/run/vde2/tap0.ctl didn't initially exist. I had to load the tun module before bringing the interface up. It's probably worth saying this in the docs.
/var/run/vde2/tap0.ctl didn't initially exist. I had to load the tun module before bringing the interface up. It's probably worth saying this in the docs.
  [[User:RusselJones|RusselJones]] 19:50, 13 October 2009 (CEST)
  [[User:RusselJones|Russell Jones]] 19:50, 13 October 2009 (CEST)

Revision as of 17:50, 13 October 2009

Note that you don't need dhcp3-server and tftpd-hpa which are pulled in by default.

Really? Doesn't the use of tap and -net nic stop the internal dhcp from working for you? I used the command line vdeq kvm -m 256 -net nic,vlan=1 -net vde,vlan=1,sock=/var/run/vde2/tap0.ctl -hda 4g-pxe-test.img -boot n -tftp /srv/fai/tftp/

And I just get "Searching for server (DHCP)....No IP address" with the second bit repeated many times. Perhaps another option is needed? I've tried a real DHCP server, listening on tap0's IP. It gets the discover packet, and sends an offer, but qemu's network card emulation seems to ignore it. I ran iptables -F and made sure all the policies are set to accept, so it's not that.

DHCPDISCOVER from 52:54:00:12:34:56 via tap0
DHCPOFFER on 172.25.25.10 to 52:54:00:12:34:56 via tap0

/var/run/vde2/tap0.ctl didn't initially exist. I had to load the tun module before bringing the interface up. It's probably worth saying this in the docs.

Russell Jones 19:50, 13 October 2009 (CEST)