qemu-discuss
[Top][All Lists]
Advanced

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

RE: missing info in the document for qemu networking (where to find linu


From: ckim
Subject: RE: missing info in the document for qemu networking (where to find linux-test-xxx.tar.gz)
Date: Wed, 11 Aug 2021 16:39:38 +0900

 

I found https://lists.nongnu.org/archive/html/qemu-discuss/2014-06/msg00009.html and tried the command below.

My host machine IP is 129.254.31.181 and I want the VM’s IP to be 129.254.32.203. (I couldn’t find a new IP address in the same subnet)

(I added me to the netuser group) I wish I can use network in the host and guest normally including accessing each other.

 

sudo brctl addbr br0

sudo brctl setfd br0 0

sudo ifconfig br0 up

sudo ip tuntap add dev tap0 mode tap

sudo brctl addif br0 tap0

LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib::/usr/local/cuda/lib64:/usr/local/cuda/lib64:/home/ckim/prj/abdsn/ab21sim/axpusim/build &&

./qemu-system-aarch64 -nographic -machine ab21q,gic-version=max,iommu=smmuv3 -m 1G -cpu max -smp 4 \

-netdev tap,id=vnet,ifname=tap0,script=no,downscript=no -device virtio-net-pci,netdev=vnet \

-drive file=ab21q-ubuntu-20.04-image.img,if=none,id=drive0,cache=writeback -device virtio-blk,drive=drive0,bootindex=0 \

-drive file=ubuntu-20.04-mini.iso,if=none,id=drive1,cache=writeback -device virtio-blk,drive=drive1,bootindex=1 \

-drive file=flash0.img,format=raw,if=pflash -drive file=flash1.img,format=raw,if=pflash

#-netdev tap,id=mynet0,ifname=tap0,script=no,downscript=no -device e1000,netdev=mynet0,mac=DE:AD:BE:EF:61:5C \

 

I set the ip address to 129.254.32.203. (sudo ifconfig enp0s1 129.254.32.203 netmask 255.255.255.0)

But I cannot ping to the host and the host can’t reach guest. What should I change?

 

I tried changing the network tap setting part to below but it doesn’t work either.

sudo ifdown enp6s0

sudo ifconfig enp6s0 0.0.0.0 promisc up

sudo brctl addbr br0

sudo brctl setfd br0 0

sudo ifconfig br0 up

sudo ip tuntap add dev tap0 mode tap

sudo brctl addif br0 tap0

sudo brctl addif br0 enp6s0

sudo ifconfig br0 129.254.31.181 netmask 255.255.255.0 broadcast 129.254.31.255

 

Any help will be really appreciated.

Thank you!

Chan Kim

 

From: ckim@etri.re.kr <ckim@etri.re.kr>
Sent: Wednesday, August 11, 2021 11:52 AM
To: 'qemu-discuss' <qemu-discuss@nongnu.org>
Subject: missing info in the document for qemu networking (where to find linux-test-xxx.tar.gz)

 

Hello list members,

 

I thought Id better setup TAP networking for qemu to solve my problem.

Ive used qemu with TAP networking several years ago and can find some information on the internet but wish there were a kind information on the official qemu document site.

(I think there are some old or wrong data on the internet)

In the main qemu document page (https://qemu-project.gitlab.io/qemu/), when I follow the Device Emulation -> Network emulation I see information on TAP networking.

But there is not much information. And the main invocation section is just a list of explanations about all the options so Im frightened to start reading it.

And another problem is that the document isnt maintained well. (I know qemu people are busy with developments themselves and Im grateful to them)

 

Anyway, in the TAP networking document, (https://qemu-project.gitlab.io/qemu/system/devices/net.html), it says

As an example, you can download the linux-test-xxx.tar.gz archive and copy the script qemu-ifup in /etc and configure properly sudo so that the command ifconfig contained in qemu-ifup can be executed as root.

Could anyone direct me where I can get this linux-test-xx.tar.gz? (example tap setup/tear-down script).

Thanks for any help!

Chan Kim

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]