I have compiled and installed vde2 and qemu on my computer, what do I need to add to my current qemu command to enable networking?
Code:
qemu-system-x86_64 -cpu core2duo -drive file=/home/ReactOS-0.3.14-QEMU/files/ReactOS.vmdk,index=0,media=disk -drive file=/dev/sr0,if=ide,index=1,media=cdrom -boot c -soundhw sb16 -m 384 -smp 2 -sdl -vga vmware -localtime &
I have a tap0 network device up and running
Code:
#ifconfig
eth0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx
inet addr:192.168.0.22 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::1e6f:65ff:fe4c:3aa5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:894 errors:0 dropped:0 overruns:0 frame:0
TX packets:1014 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:553577 (540.6 KiB) TX bytes:161837 (158.0 KiB)
Interrupt:45 Base address:0x8000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:9 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1323 (1.2 KiB) TX bytes:1323 (1.2 KiB)
tap0 Link encap:Ethernet HWaddr xx:xx:xx:xx:x:xx
inet addr:10.10.10.1 Bcast:0.0.0.0 Mask:255.255.255.0
inet6 addr: fe80::e4f4:e8ff:fe24:a672/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:0 (0.0 B) TX bytes:2929 (2.8 KiB)
I'm looking to network my VM with my host machine and beyond.
-------------------------
| [VM] -> HOST -> | --> Internet
-------------------------