DragonFly BSD
DragonFly users List (threaded) for 2010-06
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: configure network and usb into qemu

From: Naoya Sugioka <naoya.sugioka@xxxxxxxxx>
Date: Sun, 13 Jun 2010 16:32:36 -0700

FYI.  here is my configuration.

1) add bridge/tap devices in kernel config file

pseudo-device   bridge		# Bridging support
pseudo-device	   tap		# Ethernet Packet tunnel.

2) add bridge/tap device init in rc.conf (my phys n/w device is em0)
ifconfig_tap0="create up"
ifconfig_bridge0="create addm em0 up"

3) write if-up/if-down scripts
> cat /usr/local/etc/qemu-ifup
ifconfig ${1} up
ifconfig bridge0 addm ${1}

> cat /usr/local/etc/qemu-ifdown
ifconfig bridge0 deletem ${1}
ifconfig ${1} down

4) startup qemu with following options
I'm using qemu 0.12.2 which works with bridged n/w without any problems.
with SDL.

> cat q.sh
qemu-system-x86_64 -smp 1 -m 256 -boot c  -net nic -net
-cdrom ${1} ${2}

> qemu-system-x86_64 -version
QEMU PC emulator version 0.12.2, Copyright (c) 2003-2008 Fabrice Bellard

Hope this helps you. I never tired to configure usb though.

thank you,

On Sun, Jun 13, 2010 at 10:38 AM, Justin C. Sherrill
<justin@shiningsilence.com> wrote:
> On Sun, June 13, 2010 12:41 pm, dark0s Optik wrote:
>> I've installed DragonFly BSD in qmeu 0.12.
>> Now I want configure usb pendrive and network:
>> 1) How can I configure DragonFly network in qemu.
>> 2) How can I mount usb when DragonFly is into qemu.
> Make sure qemu is running with a network device emulated and attached to a
> real network device, and then it should show up normally to the DragonFly
> system and be configured just like a real network card.
> Same for the USB device - you need to make qemu pass the USB connection
> from the real system to the virtual one, and then treat as if it was real
> on the DragnonFly system.
> I haven't run qemu in a while, so I can't tell you the correct syntax off
> the top of my head for creating virtual network/passing through USB.

[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]