[Bug]: Apache can not listen to 10.0.2.15:80 & 192.168.56.x:80 and consequently, does not start
Maintainers usually reply within 6 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 42/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- c, linux
- Domain
- networking
Research direction
Start with the Network component and the attached configuration files to understand how VirtualBox initializes the 10.0.2.x and 192.168.56.x networks. Check whether their startup timing can leave the specific guest IPs unavailable when Apache starts. Done means reproducing the issue and identifying whether VirtualBox network initialization causes it; the report currently gives a workaround, not a confirmed cause.
Written by the indexing model from the issue text.
Description
Version
VirtualBox 7.2.22
Host OS Type
Windows
Host OS name + version
Windows 11 Pro 25H2
Host Architecture
x86
Guest OS Type
Linux
Guest Architecture
x86
Guest OS name + version
Alma Linux 9.7
Component
Network
What happened?
When I configure my Apache settings to listen to specific IPs, belonged to VirtualBox networks, it can not start. However, if i do not specify the IP, but only a port number, the problem does not occur. Example:
Listen 10.0.2.15:80 .............................. Apache does not start
Listen 192.168.56.39:80 .................... Apache does not start
Listen 80 ............................................... Apache starts
How can we reproduce this?
MY CONFIGURATION FILES: see attached
POSSIBLE PROBLEM: the VirtualBox networks 10.0.2.x and 192.168.56.x are taking too much time to initialize and Apache initializes before them.
SOLUTION: delay the Apache initialization as follow:
-
Execute in terminal the following command:
systemctl edit httpd -
Add to the configuration file the following lines:
[Service]
ExecStartPre=/bin/sleep 1 -
Save the file and execute the command:
systemctl daemon-reload -
Restart the machine. Apache now will start without problems.
Comments about the solution:
It delays the loading of Apache to allow time for the VirtualBox networks to initialize BEFORE it.
Minimum experimental value for the sleep parameter: 0.12
Did you upload all of your necessary log files, screenshots, etc.?
- Yes, I've uploaded all pertinent files to this issue.
- Dominant language
- C
- Stars
- 1.4k
- Forks
- 219
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from VirtualBox/virtualbox
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 84/100
VirtualBox/virtualbox#996 ·
Maintainers usually reply within 6 days
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
VirtualBox/virtualbox#979 ·
Maintainers usually reply within 6 days
-
[Bug]: Guest Additions 7.2.20 vboxvideo fails to build on Linux kernel 6.12.113 (drm_fb_helper_restore_fbdev_mode_unlocked: too few arguments)Possibly taken @Berbe claimed this 18 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
VirtualBox/virtualbox#918 · 9 comments ·
Maintainers usually reply within 6 days
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 25/100
VirtualBox/virtualbox#995 ·
Maintainers usually reply within 6 days
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 45/100
VirtualBox/virtualbox#994 ·
Maintainers usually reply within 6 days
All issues in VirtualBox/virtualbox
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
ESPresense/ESPresense#2680 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
ImageMagick/ImageMagick#9134 ·
Maintainers usually reply within 1 day
-
Builder: a structure opened without calculation data shows the Diffraction (fibre) view by defaultOpenbug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
FriendsofECCE/ECCE#1245 · 1 comment ·
-
Arch: ARM/AArch64 Doc
Difficulty 1/5 Under an hour Newbie friendliness 90/100
RT-Thread/rt-thread#12082 · 1 comment ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
apache/nuttx-apps#4108 · 4 comments ·
Maintainers usually reply within 1 day