DragonflyBSD on 64-bit KVM

Matthew Dillon dillon at apollo.backplane.com
Sat Nov 9 09:40:19 PST 2013

    It's best to run a HDD image, such as the usb disk key image, and
    not a CD image.

    Something like this from linux's qemu:

	qemu-system-x86_64 \
	    -enable-kvm \
	    -m 4096 \
	    -smp 4 \
	    -drive file=<diskimage>,if=virtio,cache=none,aio=native \
	    -net nic,macaddr=00:bd:00:12:22:01 -net vde,sock=/var/run/vde.sock

    For network access I typically use vde_switch and bridge with the
    linux system's main ethernet:

	/usr/bin/vde_switch -sock /var/run/vde.sock -tap tap0 -daemon
	sleep 1
	/sbin/brctl addif br0 tap0
	/sbin/ifconfig tap0 up

    That assumes that eth0 is already bridged onto br0, which (if Debian)
    can be done vi /etc/network/interfaces with something like this
    (this is just an example, the '...' just whatever else was there
    before stays):

	auto ... br0 br0:0

	iface br0 inet static
		bridge_ports eth0
		address <blah>
		netmask <blah>
		broadcast <blah>
		gateway <blah>

	iface br0:0 inet static
		address <blah>
		netmask <blah>
		broadcast <blah>


More information about the Users mailing list