Ken Moffat wrote:
On Wed, Dec 03, 2014 at 08:27:34PM -0600, Bruce Dubbs wrote:
Great links. I'll test after bit. I'm currently rebuilding LFS on my qemu
test system so I need to wait till that is done. It's currently running the
gcc tests. I don't want to throw off the timing measurements.
Sure. My impression of timings in qemu is that they are all over
the place compared to building on the same machine's real hardware.
Good luck with the bridging.
I got it to work.
chmod o+s /usr/libexec/qemu-bridge-helper
echo 'allow br0' > /etc/qemu/bridge.conf
qemu -enable-kvm -boot c \
-drive file=/mnt/qemu1/deb71.img \
-drive file=/mnt/qemu1/lfs.img \
-m 2G \
-cpu host \
-smp 2 \
-net nic -net bridge \
-machine type=pc,accel=kvm
I do have br0 up with eth0 attached when the above is run.
This does give me full network connectivity: tcp, udp, and icmp.
I can ping outside and from the outside, I can ping the vm.
The only root requirement is seting the suid bit for qemu-bridge-helper.
I suppose it could be tightened down by using setcap and/or setting the
group to kvm and the permissions to 4750 instead of 4755.
-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page