Page 1 of 1

nictype1 Invalid Parameter

Posted: 26. Aug 2017, 16:11
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?

Re: nictype1 Invalid Parameter

Posted: 26. Aug 2017, 16:25
by Perryg
Version of VirtualBox?
Where did you get the install from, repo or virtualbox.org?

Re: nictype1 Invalid Parameter

Posted: 26. Aug 2017, 16:50
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

Re: nictype1 Invalid Parameter

Posted: 26. Aug 2017, 17:18
by Perryg
Typo?
–-nictype1 82540OEM should be –-nictype1 82540EM