9

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?

5
  • 3
    I completely disagree that this question is "too localized". Most servers have multiple NICs: 1-4 1GbE on-board, and with 10GbE, usually 2 on a PCIe card. I too would like suggestions on how best to enable them. Apr 17, 2013 at 16:14
  • 5
    It is unfortunate that this was closed as "too localized", as I came to it seeking an answer to exactly the same question.
    – kdt
    Sep 18, 2013 at 21:48
  • 1
    I've long since moved to vagrant for my use case, which exposes multiple NIC support sanely: groups.google.com/forum/#!topic/vagrant-up/aNAlY4g3lWE
    – phs
    Sep 18, 2013 at 22:03
  • This question is important for VirtualBox because setting up 2 NICs is the typical means of allowing the Guest to access the Internet (interface configured as NAT using DHCP) and to also allow an ssh connection from the host to the guest using a knowable IP address (interface configured as host-only w/ static IP address configured in the guest os). Jul 22, 2016 at 5:55
  • this is a useful question. Disappointing to see if closed.
    – LinuxBill
    Sep 7, 2016 at 10:16

0

Browse other questions tagged .