nictype1 Invalid Parameter

Discussions related to using VirtualBox on Linux hosts.
Post Reply
cedric_n1n0x
Posts: 2
Joined: 26. Aug 2017, 16:07

nictype1 Invalid Parameter

Post by cedric_n1n0x »

Hi,

I'm running VirtualBox headless on Ubuntu Server and I'm having some trouble getting the nic of my guest Ubuntu Desktop configured. When I try to set it up like this:

VBoxManage modifyvm "Ubuntu 16.04 Desktop" --nic1 bridged –-nictype1 82540OEM --bridgeadapter1 eno1

it just throws me:

VBoxManage: error: Invalid parameter '–-nictype1'

I already verified if I have some odd version where this parameter is not available or something like that, and this is not the case. When I type VBoxManage modifyvm I can see '--nictype<1-N> in the parameters available.

Any suggestions?
Last edited by cedric_n1n0x on 26. Aug 2017, 16:52, edited 1 time in total.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: nictype1 Invalid Parameter

Post by Perryg »

Version of VirtualBox?
Where did you get the install from, repo or virtualbox.org?
cedric_n1n0x
Posts: 2
Joined: 26. Aug 2017, 16:07

Re: nictype1 Invalid Parameter

Post by cedric_n1n0x »

Version:
Oracle VM VirtualBox Command Line Management Interface Version 5.1.26

I followed the following steps to install:
1) Added the repository with xenial contrib to /etc/apt/sources.list
2) installed the repository key
3) sudo apt-get update
4) sudo apt-get install linux-headers-$(uname -r) build-essential virtualbox-5.1 dkms
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: nictype1 Invalid Parameter

Post by Perryg »

Typo?
–-nictype1 82540OEM should be –-nictype1 82540EM
Post Reply