Xen Custom Vifname

Home » CentOS-Virt » Xen Custom Vifname
CentOS-Virt 1 Comment

Hi,

CentOS 7
Xen4CentOS – 4.6.1
Open vSwitch

When i specify custom name of the domU NIC than it refues to start

vif = [ ‘vifname=vNIC1’ ]

libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus:
/etc/xen/scripts/vif-openvswitch online [10168] exited with error status 1
libxl: error: libxl_device.c:1084:device_hotplug_child_death_cb: script: ip link set vif38.0 name vNIC1 failed libxl: error: libxl_create.c:1381:domcreate_attach_vtpms: unable to add nic devices libxl: error: libxl.c:1591:libxl__destroy_domid: non-existant domain 38
libxl: error: libxl.c:1549:domain_destroy_callback: unable to destroy guest with domid 38
libxl: error: libxl.c:1476:domain_destroy_cb: destruction of domain 38
failed

When removed the vifname settings the domU starts just fine.

vif = [ ” ]

Same error when used wi classic Bridge for networking.

Is vifname setting still supported?

On CentOS5 & Xen 3.4 this parameter works just fine.

Regards

One thought on - Xen Custom Vifname

  • Can you add set -x to capture the output from the scripts?

    It’s not possible to change the name while the interface is in use. Maybe something is making the interface active before there’s a chance to change the name? Do you have network manager or anything like it running? I think there would be logs in /var/log/messages if it was doing something with the vif.