Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

KVM device interface

Need help with peripherals or devices?
Post Reply
Message
Author
gofuur
Posts: 17
Joined: 2023-08-07 06:41

KVM device interface

#1 Post by gofuur »

Hi I am on a Debian 12
my net connection is on a Mobil

my question is about KVM net configuration, and how to find the right Device Interface, for the net work
I haw followed a manual from SysGuides and is at section 8

https://sysguides.com/install-kvm-on-linux/

the two commands there com first is

Code: Select all

 sudo virsh net-list --all
 Name      State    Autostart   Persistent
--------------------------------------------
 default   active   yes         yes

Code: Select all

 sudo virsh net-dumpxml default | xmllint
 --xpath '//ip' -
 <ip address="192.168.122.1"
 netmask="255.255.255.0">
 <dhcp>
 <range start="192.168.122.2"
 end="192.168.122.254"/>
 </dhcp>
 </ip>
and the nmcli is probably show me which device is available!?

Code: Select all

$ sudo nmcli device status
DEVICE           TYPE      STATE                   CONNECTION         
enx02d8bdb171d7  ethernet  connected               Wired connection 1 
lo               loopback  connected (externally)  lo                 
virbr0           bridge    connected (externally)  virbr0             
enp0s25          ethernet  unavailable             --                 
wlp3s0           wifi      unavailable             --    
then the problem, what is the right devices to add as Bridget fore the KVM?

Aki
Global Moderator
Global Moderator
Posts: 3082
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 76 times
Been thanked: 417 times

Re: KVM device interface

#2 Post by Aki »

Hello,
gofuur wrote: 2023-11-25 08:39

Code: Select all

$ sudo nmcli device status
DEVICE           TYPE      STATE                   CONNECTION         
enx02d8bdb171d7  ethernet  connected               Wired connection 1 
lo               loopback  connected (externally)  lo                 
virbr0           bridge    connected (externally)  virbr0             
enp0s25          ethernet  unavailable             --                 
wlp3s0           wifi      unavailable             --    
then the problem, what is the right devices to add as Bridget fore the KVM?
As you can read from the list quoted above, there's currently only one device with "TYPE" (second column) set to "bridge": it's virbr0 .
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

gofuur
Posts: 17
Joined: 2023-08-07 06:41

Re: KVM device interface

#3 Post by gofuur »

Yes, I thought it should be created by mi, in this way
Create a bridge interface. I'll name it bridge0

Code: Select all

$ sudo nmcli connection add type bridge con-name bridge0 ifname bridge0
Assign the interface to the bridge. I'm going to name this connection 'Bridge connection 1',

Code: Select all

$ sudo nmcli connection add type ethernet slave-type bridge \
con-name 'Bridge connection 1' ifname enx02d8bdb171d7 master bridge0
and that vil make my bridge connection?

Code: Select all

enx02d8bdb171d7
but after reconnect my internet too my mobil my status is different

Code: Select all

EVICE           TYPE      STATE                   CONNECTION         
enxfa136562a3a6  ethernet  connected               Wired connection 1 

gofuur
Posts: 17
Joined: 2023-08-07 06:41

Re: KVM device interface

#4 Post by gofuur »

when activated kvm machine net brige looks like thes

Code: Select all

$ sudo nmcli device status
DEVICE           TYPE      STATE                   CONNECTION         
enxd27429098922  ethernet  connected               Wired connection 1 
lo               loopback  connected (externally)  lo                 
virbr0           bridge    connected (externally)  virbr0             
vnet0            tun       connected (externally)  vnet0              
enp0s25          ethernet  unavailable             --                 
wlp3s0           wifi      unavailable             -- 
Is there anyone who can add a comment that can explain a little about how I should understand the output of 'nmcli device status'

Post Reply