Welcome to the Linux Foundation Forum!

Lab 2.2: Unknown device type

I am using Ubuntu 21.10 on a VM. I am trying to create virtual ethernet devices:

sudo ip link add veth1 type veth peer name veth2

However I get the error:

Error: Unknown device type.

I looked at the list of devices using modprobe and did not see veth listed. From searching online it does not seem like i need to do anything special to load that device type. What am I missing?

Thanks.

Answers

  • Hi @corey44,

    Perhaps this is an issue related to either the OS distribution running on your VM, or the virtual hardware supported by the VM itself. Where is your VM provisioned (local hypervisor or cloud)?

    Regards,
    -Chris

  • Hi @chrispokorni

    My VM is using a local VMWare hypervisor. This is the same VM that I was using in LFS211. I had hoped it would be close enough to the setup suggested at the start of this course but this is the second issue I have had with my VM. It sounds like I need to go back and go through the suggested setup process.

  • Using the recommended VirtualBox VM solved this.

  • 确认内核选项 Device Drivers->Network device support->Virtual ethernet pair device是否开启

Categories

Upcoming Training