K
K
k0taperkot2016-02-28 13:01:38
Computer networks
k0taperkot, 2016-02-28 13:01:38

[QEMU] How to properly configure TAP in VmWare?

Hi all. Initially, there was a question about how to configure TAP in Win7. But, because in addition to the fact that after several attempts and following various articles, the network did not appear in Qemu - I decided to forget about Windows and do the same in Debian (x64) running in VmWare. Moreover, when running Qemu in Win7, its processes were not killed (at least until the end - they hung in the TaskManager, and taskkill wrote that there was no such process).
So, how to forward the network to Qemu running in Debian on VmWare (without virsh) read the answer below.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
k0taperkot, 2016-03-02
@k0taperkot

In Debian (on VmWare) TAP did not immediately submit to me either. It turned out that it depends on the type of network of the virtual machine in VmWare - I had NAT, but I needed Bridge.
There is another way - it is much simpler: you do not need to create any additional interfaces and bridges. You need to use User Networking in Qemu. Here's how it works:
But just start the machine in Qemu with network parameters
won't be enough. Before that, you need to run the following command in the guest system:
otherwise hostnames in Qemu will be resolved but not pinged .
As a bonus. My startup and installation script:

#!/bin/sh

# Install
#qemu-system-arm -m 256 -machine vexpress-a9 -cpu cortex-a9 \
#       -kernel vexpress/vmlinuz-3.2.0-4-vexpress \
#       -initrd vexpress/initrd.gz \
#       -sd armdisk.img -append "root=/dev/ram" \
#       -localtime -net nic,vlan=0 -net user,vlan=0

# Boot after install
qemu-system-arm -m 256 -machine vexpress-a9 -cpu cortex-a9 \
       -kernel vexpress/vmlinuz-3.2.0-4-vexpress \
       -initrd initrd.img-3.2.0-4-vexpress \
       -sd armdisk.img -append "root=/dev/mmcblk0p2" \
       -localtime -net nic,vlan=0 -net user,vlan=0

Here is the debian installer for vexpress. Here is an article on installing and then running debian. The article is for versatile, but there is also a core for vexpress.

N
nikoinlove, 2016-02-29
@nikoinlove

show brctl show and ifconfig -a
interfaces of the bridge and tap were transferred to UP?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question