F5F Stay Refreshed Software Operating Systems Connecting an Ethernet adapter to a KVM on Ubuntu

Connecting an Ethernet adapter to a KVM on Ubuntu

Connecting an Ethernet adapter to a KVM on Ubuntu

R
Rexty_
Senior Member
568
04-11-2023, 01:33 PM
#1
You're running a Windows Server 2012 VM with two Ethernet interfaces on your PC. One is connected to the Linux host at 192.168.1.18, and the other to the Windows Server at 192.168.1.13. You want the virtual machine to use only the second interface (192.168.1.13) for Linux and the first one (192.168.1.18) for Windows, so you can route traffic between them as if they were separate devices. You're considering a bridged network setup but are unsure how to isolate the two physical ports. As a beginner in Linux, I'll walk you through each step clearly.
R
Rexty_
04-11-2023, 01:33 PM #1

You're running a Windows Server 2012 VM with two Ethernet interfaces on your PC. One is connected to the Linux host at 192.168.1.18, and the other to the Windows Server at 192.168.1.13. You want the virtual machine to use only the second interface (192.168.1.13) for Linux and the first one (192.168.1.18) for Windows, so you can route traffic between them as if they were separate devices. You're considering a bridged network setup but are unsure how to isolate the two physical ports. As a beginner in Linux, I'll walk you through each step clearly.

R
Rizzex
Member
54
04-22-2023, 09:51 AM
#2
It appears you're encountering an issue with network configuration in KVM. When a virtual interface is shared over a network bridge, it establishes a 'virtual' connection for the guest system. This means the guest can freely manage its own IP address without host intervention. In essence, the guest controls its virtual interface's IP, not the host. If you need to assign a specific IP like .13, remove it from your host and manually allocate it to the guest. Think of it as running Windows on actual hardware.
R
Rizzex
04-22-2023, 09:51 AM #2

It appears you're encountering an issue with network configuration in KVM. When a virtual interface is shared over a network bridge, it establishes a 'virtual' connection for the guest system. This means the guest can freely manage its own IP address without host intervention. In essence, the guest controls its virtual interface's IP, not the host. If you need to assign a specific IP like .13, remove it from your host and manually allocate it to the guest. Think of it as running Windows on actual hardware.

T
treehouse13
Junior Member
15
04-23-2023, 09:49 PM
#3
It functions through a virtual interface, which allows it to use this gigabit connection. You can modify the IP address, but it will continue to rely on that shared line instead of having its own dedicated one.
T
treehouse13
04-23-2023, 09:49 PM #3

It functions through a virtual interface, which allows it to use this gigabit connection. You can modify the IP address, but it will continue to rely on that shared line instead of having its own dedicated one.

M
Meetrix
Member
55
04-25-2023, 10:26 AM
#4
Yes, you can route the full physical connection through the device.
M
Meetrix
04-25-2023, 10:26 AM #4

Yes, you can route the full physical connection through the device.

M
maga004
Junior Member
16
04-25-2023, 03:01 PM
#5
Yes, possibly including a sound card if feasible.
M
maga004
04-25-2023, 03:01 PM #5

Yes, possibly including a sound card if feasible.

R
Robotwizard77
Junior Member
10
04-26-2023, 04:44 AM
#6
The system needs to be recent enough to handle PCIe mapping.
R
Robotwizard77
04-26-2023, 04:44 AM #6

The system needs to be recent enough to handle PCIe mapping.

T
TalemStudios
Junior Member
32
04-26-2023, 05:11 AM
#7
It's a fresh addition, the server is part of my signature.
T
TalemStudios
04-26-2023, 05:11 AM #7

It's a fresh addition, the server is part of my signature.

E
Elizikachu
Member
71
04-26-2023, 07:21 PM
#8
Impressive setup! I can't believe how powerful that is. I run my own hosting service and don’t have a server that matches it. For more details, check out the guide here: http://www.linux-kvm.org/page/How_to_ass...T-d_in_KVM
E
Elizikachu
04-26-2023, 07:21 PM #8

Impressive setup! I can't believe how powerful that is. I run my own hosting service and don’t have a server that matches it. For more details, check out the guide here: http://www.linux-kvm.org/page/How_to_ass...T-d_in_KVM