Discussion:
Qemu Access Network help
Maurizio Caloro
2014-06-23 05:26:51 UTC
Permalink
Hello Group
i running with Netbsd 6.0.1, and i have install Qemu 2.0 with one VM Server
installed with Microsft Srv, but i become (with dhcp) IP Adress 0.0.0.0.

Syntax:
qemu-system-x86_64 -m 2048 -hda /usr/Srv2003.img -net nic,model=e1000

if running command without "net nic" i have a valid from Qemu-DHCP
Address 10.0.2.15/24
here i can only ping me own address :-)

bridge, and brconfig done but without success, me aspect are that me Windows
machine can ping from bothside me network and reach the internet.

Please can you give me more help to see me misake?
Thanks
Mauri

hp7900# dmesg | grep wm0
wm0 at pci0 dev 25 function 0: 82567LM-3 LAN Controller (rev. 0x02)
wm0: interrupting at ioapic0 pin 19
wm0: PCI-Express bus
wm0: FLASH
wm0: Ethernet address 00:24:81:04:3e:0c

hp7900$ ifconfig -a
wm0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500

capabilities=7ff80<TSO4,IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx,TCP4CSUM_Tx,UDP4CSUM_Rx,UDP4CSUM_Tx,TCP6CSUM_Rx,TCP6CSUM_Tx,UDP6CSUM_Rx,UDP6CSUM_Tx,TSO6>
enabled=0
address: 00:24:81:04:3e:0c
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet 192.168.0.103 netmask 0xffffffe0 broadcast 192.168.0.127
inet6 fe80::224:81ff:fe04:3e0c%wm0 prefixlen 64 scopeid 0x1
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33648
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
bridge0: flags=41<UP,RUNNING> mtu 1500
tap0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
address: f2:0b:a4:81:1b:04
media: Ethernet autoselect
inet 192.168.0.105 netmask 0xffffff00 broadcast 192.168.0.255
inet6 fe80::f00b:a4ff:fe81:1b04%tap0 prefixlen 64 scopeid 0x4

hp7900$ brconfig -a
bridge0: flags=41<UP,RUNNING>
Configuration:
priority 32768 hellotime 2 fwddelay 15 maxage 20
ipfilter disabled flags 0x0
Interfaces:
tap0 flags=3<LEARNING,DISCOVER>
port 4 priority 128
Address cache (max cache: 100, timeout: 1200):
hp7900$
Robert Swindells
2014-06-23 09:25:30 UTC
Permalink
Post by Maurizio Caloro
i running with Netbsd 6.0.1, and i have install Qemu 2.0 with one VM Server
installed with Microsft Srv, but i become (with dhcp) IP Adress 0.0.0.0.
qemu-system-x86_64 -m 2048 -hda /usr/Srv2003.img -net nic,model=e1000
if running command without "net nic" i have a valid from Qemu-DHCP
Address 10.0.2.15/24
here i can only ping me own address :-)
bridge, and brconfig done but without success, me aspect are that me Windows
machine can ping from bothside me network and reach the internet.
Please can you give me more help to see me misake?
hp7900$ ifconfig -a
wm0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
capabilities=7ff80<TSO4,IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx,TCP4CSUM_Tx,UDP4CSUM_Rx,UDP4CSUM_Tx,TCP6CSUM_Rx,TCP6CSUM_Tx,UDP6CSUM_Rx,UDP6CSUM_Tx,TSO6>
enabled=0
address: 00:24:81:04:3e:0c
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet 192.168.0.103 netmask 0xffffffe0 broadcast 192.168.0.127
inet6 fe80::224:81ff:fe04:3e0c%wm0 prefixlen 64 scopeid 0x1
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33648
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
bridge0: flags=41<UP,RUNNING> mtu 1500
tap0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
address: f2:0b:a4:81:1b:04
media: Ethernet autoselect
inet 192.168.0.105 netmask 0xffffff00 broadcast 192.168.0.255
inet6 fe80::f00b:a4ff:fe81:1b04%tap0 prefixlen 64 scopeid 0x4
hp7900$ brconfig -a
bridge0: flags=41<UP,RUNNING>
priority 32768 hellotime 2 fwddelay 15 maxage 20
ipfilter disabled flags 0x0
tap0 flags=3<LEARNING,DISCOVER>
port 4 priority 128
You need to add wm0 to the bridge if you want the VM to be able to reach
the internet.

I think you will also want to give the VM a 192.168.0.x address, do you
have a DHCP server running on your network ?

Robert Swindells
Maurizio Caloro
2014-06-23 21:13:36 UTC
Permalink
Post by Robert Swindells
You need to add wm0 to the bridge if you want the VM to be able to
reach the internet.
hp7900# brconfig -a
bridge0: flags=41<UP,RUNNING>
Configuration:
priority 32768 hellotime 2 fwddelay 15 maxage 20
ipfilter disabled flags 0x0
Interfaces:
tap0 flags=3<LEARNING,DISCOVER>
port 4 priority 128
wm0 flags=3<LEARNING,DISCOVER>
port 1 priority 128
Address cache (max cache: 100, timeout: 1200):
00:26:88:32:49:05 wm0 700 flags=0<>

after add i can't ping any internet site (8.8.8.8 nothing), are possible
i need to set any route?,
if run me Image i have now Qemu DHCP Addressrange 10.0.2.x
Post by Robert Swindells
I think you will also want to give the VM a 192.168.0.x address, do
you have a DHCP server running on your network ? Robert Swindells
Yes DHCP Server in this case are my router. i want that this Server can
be accessable from all internal network clients.
i don't know how do configure that this VM can handle any internal
network address that are serviced from me router.

Thanks for your Answer!
Mauri

Continue reading on narkive:
Loading...