Ubuntu – How to configure two NICs in ubuntu-server preseed?


I have a script that installs Ubuntu server to a new VirtualBox instance via PXE and preseeding. It works great, I can run a complete install and come out with a fresh machine with one network card.

How do I make the preseeded installation configure two or more network cards?

Will d-i netcfg/choose_interface will let me specify two devices?

I tried changing /etc/network/interfaces inside a d-i preseed/late_command, but I am having trouble getting it to work.

Is there a better way to give the virtual machine two NICs?

Best Answer