LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-23-2024, 09:30 AM   #1
LucianLibre002
LQ Newbie
 
Registered: Mar 2024
Posts: 5

Rep: Reputation: 0
Smile Unable to install Linux headers. Please assist!


Hey folks,

I'm completely new to this site and somewhat new to the linux terminal. long story short, I'm trying to get virtualbox going and in that process, trying to set up a DHCP Server. I'm following a tutorial so I'm not exactly sure how to handle this error I got. Can someone help me troubleshoot?

Code:
vboxmanage dhcpserver add --network=WorldWideWeb --server-ip=10.38.1.1 --lower-ip=10.38.1.110 --upper-ip=10.38.1.120
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (6.1.0-14-amd64) or it failed to
         load. Please recompile the kernel module and install it by

           sudo /sbin/vboxconfig

         You will not be able to start VMs until this problem is fixed.
Oracle VM VirtualBox Command Line Management Interface Version 7.0.14
Copyright (C) 2005-2024 Oracle and/or its affiliates

VBoxManage: error: Missing required option: --netmask

Usage:

  VBoxManage dhcpserver add <--network=netname | --interface=ifname> <--server-ip=address> <--netmask=mask> <--lower-ip=address>
      <--upper-ip=address> <--enable | --disable>
       [--global | --set-opt=dhcp-opt-no value... | --set-opt-hex=dhcp-opt-no hexstring... | --force-opt=dhcp-opt-no... |
           --supress-opt=dhcp-opt-no... | --min-lease-time=seconds | --default-lease-time=seconds | --max-lease-time=seconds...]
       [--group=name | --set-opt=dhcp-opt-no value... | --set-opt-hex=dhcp-opt-no hexstring... | --force-opt=dhcp-opt-no... |
           --supress-opt=dhcp-opt-no... | --incl-mac=address... | --excl-mac=address... | --incl-mac-wild=pattern... |
           --excl-mac-wild=pattern... | --incl-vendor=string... | --excl-vendor=string... | --incl-vendor-wild=pattern... |
           --excl-vendor-wild=pattern... | --incl-user=string... | --excl-user=string... | --incl-user-wild=pattern... |
           --excl-user-wild=pattern... | --min-lease-time=seconds | --default-lease-time=seconds | --max-lease-time=seconds...]
       [--vm=name|uuid | --nic=1-N | --set-opt=dhcp-opt-no value... | --set-opt-hex=dhcp-opt-no hexstring... |
           --force-opt=dhcp-opt-no... | --supress-opt=dhcp-opt-no... | --min-lease-time=seconds | --default-lease-time=seconds |
           --max-lease-time=seconds | --fixed-address=address...]
       [--mac-address=address | --set-opt=dhcp-opt-no value... | --set-opt-hex=dhcp-opt-no hexstring... |
           --force-opt=dhcp-opt-no... | --supress-opt=dhcp-opt-no... | --min-lease-time=seconds | --default-lease-time=seconds |
           --max-lease-time=seconds | --fixed-address=address...]

VBoxManage: error: Missing required option: --netmask

Last edited by LucianLibre002; 03-23-2024 at 09:32 AM.
 
Old 03-23-2024, 09:46 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,710

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
Welcome to LinuxQuestions.

What linux distribution/version are you running?

Please post the link to the tutorial you are following and what you are trying to accomplish. The dhcpserver commands allow you to control the DHCP server builtin to VirtualBox.
 
Old 03-23-2024, 10:13 AM   #3
LucianLibre002
LQ Newbie
 
Registered: Mar 2024
Posts: 5

Original Poster
Rep: Reputation: 0
Linux 6.1.0-14-amd64 x86_64
Distributor ID: Debian
Description: Debian GNU/Linux 12 (bookworm)
Release: 12
Codename: bookworm


Tutorial: https://www.youtube.com/watch?v=mvsiuLzpx2E

I'm trying to set up a hacking lab with virtualbox.
 
Old 03-23-2024, 10:16 AM   #4
LucianLibre002
LQ Newbie
 
Registered: Mar 2024
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
Welcome to LinuxQuestions.

What linux distribution/version are you running?

Please post the link to the tutorial you are following and what you are trying to accomplish. The dhcpserver commands allow you to control the DHCP server builtin to VirtualBox.
Linux 6.1.0-14-amd64 x86_64
Distributor ID: Debian
Description: Debian GNU/Linux 12 (bookworm)
Release: 12
Codename: bookworm

Tutorial: https://www.youtube.com/watch?v=mvsiuLzpx2E

I'm trying to set up a hacking lab with VirtualBox.
 
Old 03-23-2024, 10:22 AM   #5
LucianLibre002
LQ Newbie
 
Registered: Mar 2024
Posts: 5

Original Poster
Rep: Reputation: 0
Distro Details

Code:
Distributor ID:	Debian
Description:	Debian GNU/Linux 12 (bookworm)
Release:	12
Codename:	bookworm

Linux 6.1.0-14-amd64 x86_64

Tutorial: https://www.youtube.com/watch?v=mvsiuLzpx2E

I'm trying to set up a hacking lab using VirtualBox.
 
Old 03-23-2024, 12:00 PM   #6
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 779

Rep: Reputation: 246Reputation: 246Reputation: 246
It looks like there's some kernel module component to this software. The headers to build modules are expressed by /lib/modules/`uname -r`/build so you'd better have them accessible there. That's a link to the versioned kernel source under /usr/src. If you don't have the kernel source installed, you'll need it. Building modules and installing them in place requires root privileges.
 
Old 03-23-2024, 03:21 PM   #7
LucianLibre002
LQ Newbie
 
Registered: Mar 2024
Posts: 5

Original Poster
Rep: Reputation: 0
Distro Details

Linux 6.1.0-14-amd64 x86_64

Distributor ID: Debian
Description: Debian GNU/Linux 12 (bookworm)
Release: 12
Codename: bookworm

Tutorial: https://www.youtube.com/watch?v=mvsiuLzpx2E

I was trying to setup a hacking lab with VirtualBox.
 
Old 03-23-2024, 08:55 PM   #8
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,328
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
You should be able to download the headers from the repos.

I would suggest using the Synaptic package manager, which is a GUI frontend for managing Debian packages.

Make sure to note your installed kernel version before searching for headers. You can do that using uname -a.
 
Old 03-24-2024, 10:58 AM   #9
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
Run:
Code:
sudo apt install linux-headers-$(uname -r)
 
Old 03-25-2024, 02:30 PM   #10
giesbert
Member
 
Registered: Aug 2003
Location: The Netherlands
Distribution: Debian 12
Posts: 57

Rep: Reputation: 12
Or maybe better:
Code:
sudo apt install linux-headers-amd64
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to get linksys wusb100 on ubuntu 9.10 using live cd. Please assist MRPRECICE Linux - Hardware 1 01-29-2010 10:25 AM
I want to install KDE libraries only. Please assist. hrp2171 Slackware 3 11-21-2006 09:04 AM
Newbie. Buy Linux Legally, please assist. T3 Rules Mandriva 14 02-20-2004 05:12 PM
Please assist with Mount Error. rvijay Linux - Newbie 35 10-11-2003 10:28 PM
Please assist newbie with glib question Gurtnamona Linux - Software 10 08-20-2003 01:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration