K.S. Bhaskar via plug on 28 Jun 2020 08:30:18 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PLUG] Virtual machine NIC device name


I created a Debian 10 virtual machine for users and customers to learn database administration and operations (including crash recovery; virtual machines being well suited to that). It has a single virtual NIC. When I boot it on my Arch Linux laptop with qemu, the virtual NIC has the name ens3, whereas when booted with Virtual Box on various operating systems, the virtual NIC has the name enp0s3. Since I would like the virtual machine to just come up with an IP address obtained by DHCP from the virtualization software. This means that they have to login from the console and manually edit /etc/network/interfaces. Is there any way to configure the virtual machine to just either give the NIC a consistent name, or to tell it “whatever the NIC is called, just use DHCP to get an IP address”?

Thank you very much, in advance.

Regards
– Bhaskar
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug