Page MenuHomeVyOS Platform

It is not possible to delete an interface in vm
Open, Requires assessmentPublicBUG


It is not possible to delete an interface in vm which was removed/detached from the hypervisor.

Add 3 interface
Configure eth2 interface
Remove from vm hardware eth2 nic

vyos@r2-roll:~$ show int
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface        IP Address                        S/L  Description
---------        ----------                        ---  -----------
eth0                    u/u  
eth1             -                                 u/u  foo
lo                            u/u  

Conf mode

vyos@r2-roll# show interfaces 
 ethernet eth0 {
 ethernet eth1 {
     description foo
 ethernet eth2 {

Delete eth2

vyos@r2-roll# delete interfaces ethernet eth2
vyos@r2-roll# commit
[ interfaces ethernet eth2 ]
VyOS had an issue completing a command.

We are sorry that you encountered a problem while using VyOS.
There are a few things you can do to help us (and yourself):
- Make sure you are running the latest version of the code available at
- Consult the forum to see how to handle this issue
- Join our community on slack where our users exchange help and advice

When reporting problems, please include as much information as possible:
- do not obfuscate any data (feel free to contact us privately if your 
  business policy requires it)
- and include all the information presented below

Report Time:      2020-08-10 21:01:14
Image Version:    VyOS 1.3-rolling-202008101519
Release Train:    equuleus

Built by:
Built on:         Mon 10 Aug 2020 15:19 UTC
Build UUID:       1559e709-8201-423c-a839-bc640e610f45
Build Commit ID:  99114c57bad638

Architecture:     x86_64
Boot via:         installed image
System type:      KVM guest

Hardware vendor:  QEMU
Hardware model:   Standard PC (Q35 + ICH9, 2009)
Hardware S/N:     
Hardware UUID:    707134eb-893f-4c31-97e2-8c3c1f8b702b

Traceback (most recent call last):
  File "/usr/libexec/vyos/conf_mode/", line 86, in <module>
  File "/usr/libexec/vyos/conf_mode/", line 73, in apply
    e = EthernetIf(ethernet['ifname'])
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/", line 237, in __init__
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/", line 251, in _create
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/", line 51, in _cmd
    return cmd(command, self.debug)
  File "/usr/lib/python3/dist-packages/vyos/", line 179, in cmd
    raise OSError(code, feedback)
FileNotFoundError: [Errno 2] failed to run command: ip link add dev eth2 type ethernet
exit code: 2

cmd 'ip link add dev eth2 type ethernet'
returned (out):

returned (err):
RTNETLINK answers: Operation not supported

delete [ interfaces ethernet eth2 ] failed
Commit failed


vyos@r2-roll# sudo lspci | grep -i eth
01:00.0 Ethernet controller: Red Hat, Inc Virtio network device (rev 01)
02:00.0 Ethernet controller: Red Hat, Inc Virtio network device (rev 01)


Difficulty level
Unknown (require assessment)
VyOS 1.3-rolling-202008101519
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)