Realterminator Posted February 28, 2022 Share Posted February 28, 2022 I have eth0 as mgmt interface Vlan interface eth0.10 an eth0.20 For Docker I can select eth0.20 without problems. But how can I connect a VM to interface eth0.20? Only virbr0 can I select from Gui. I think I have to insert the network card directly in the xml, the question is only what exactlyTahnks This is not working <interface type='bridge'> <mac address='52:54:00:66:be:a8'/> <source bridge='eth0.20'/> <model type='virtio'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </interface> Thanks for the help Quote Link to comment
Solution Realterminator Posted February 28, 2022 Author Solution Share Posted February 28, 2022 <interface type='direct'> <mac address='52:54:00:66:be:a8'/> <source dev='eth0.20' mode='bridge'/> <model type='virtio'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </interface> Quote Link to comment
Ystebad Posted February 28, 2022 Share Posted February 28, 2022 Have you installed the network drivers within the VM? Maybe this is wrong, but if you install the virt_io drivers in the os then you should be able to add the NIC from there and select which one you want to use. At least that's how it works in Windows VM, not sure what OS you're trying to VM. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.