qemu-discuss
[Top][All Lists]
Advanced

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

[Qemu-discuss] User networking - bind to concrete interface/IP


From: profforgr
Subject: [Qemu-discuss] User networking - bind to concrete interface/IP
Date: Fri, 15 Jan 2016 14:52:52 +0300

Hello.


I have an issue.

I have multiple QEMU virtual machines with User networking and have multiple 
network interfaces (eth0, eth0:1, eth0:2, eth0:3 and so on) with one public 
IPv4 address per interface.

QEMU seems to always bind to eth0 interface (default). So virtual machine is 
always using static IP of eth0 interface.

What i want is to bind each virtual machine to own interface.

For example:

Virtual Machine 1: qemu-system-i386 -netdev user,id=netdev1,interface=eth0 
-device rtl8139,netdev=netdev1,id=netdev1
Virtual Machine 2: qemu-system-i386 -netdev user,id=netdev1,interface=eth0:1 
-device rtl8139,netdev=netdev1,id=netdev1
Virtual Machine 3: qemu-system-i386 -netdev user,id=netdev1,interface=eth0:2 
-device rtl8139,netdev=netdev1,id=netdev1

and so on.

So my question is:

Is there any way to bind qemu virtual machine's User networking to concrete 
interface?


Thanks in advance for any answers,

Alex.



reply via email to

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