MAC address of VMs

Hi,

If you're running KVM try something like :

cat /etc/qemu-server/1*.conf | grep vlan | cut -d"=" -f2

Best regards,
 
Hi,

If you're running KVM try something like :

cat /etc/qemu-server/1*.conf | grep vlan | cut -d"=" -f2

Best regards,
Thanks,
Actually I want to find out witch virtual interface of main server is related to specific VM, Do you know any way to find out the interface name of a VM in main server via shell?
 
Thanks,
Actually I want to find out witch virtual interface of main server is related to specific VM, Do you know any way to find out the interface name of a VM in main server via shell?
Hi,
i'm not sure that i understand you right, but if you do on the proxmox node a
Code:
ifconfig
you get also all interfaces of the clients, with VMID and vmbrN:
Code:
vmtab114i1 Link encap:Ethernet  Hardware Adresse 9e:bd:6a:80:b2:26  
...
vmtab126i0 Link encap:Ethernet  Hardware Adresse d6:58:d9:e0:9e:40  
...
vmtab126i5 Link encap:Ethernet  Hardware Adresse 4e:27:df:b4:c2:9a  
...
vmtab131i0 Link encap:Ethernet  Hardware Adresse 26:55:0f:11:71:c6  
...
vmtab133i2 Link encap:Ethernet  Hardware Adresse 8a:f0:c3:7d:00:30
(valid for brigded devices)

Udo
 
OK,thanks. I got it,
The VMID is in interface name already :D like vmtab127i0 that is related to VM number 127