Bug 280062 - emulators/virtualbox-ose{,-legacy}: add vboxinit start/stop script for VMs which is controlled from phpvirtualbox
Summary: emulators/virtualbox-ose{,-legacy}: add vboxinit start/stop script for VMs wh...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Vladimir Druzenko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-30 14:02 UTC by Vladimir Druzenko
Modified: 2024-07-20 09:39 UTC (History)
2 users (show)

See Also:
vvd: maintainer-feedback+


Attachments
add vboxinit patch (8.15 KB, patch)
2024-06-30 14:02 UTC, Vladimir Druzenko
no flags Details | Diff
File emulators/virtualbox-ose/files/vboxinit.in (2.47 KB, application/x-shellscript)
2024-06-30 14:03 UTC, Vladimir Druzenko
no flags Details
File ${LOCALBASE}/etc/rc.d/vboxinit (2.48 KB, application/x-shellscript)
2024-06-30 14:03 UTC, Vladimir Druzenko
no flags Details
File emulators/virtualbox-ose/files/vboxinit.in (2.47 KB, text/plain)
2024-06-30 14:05 UTC, Vladimir Druzenko
no flags Details
File ${LOCALBASE}/etc/rc.d/vboxinit (2.48 KB, text/plain)
2024-06-30 14:05 UTC, Vladimir Druzenko
no flags Details
add vboxinit patch (7.70 KB, patch)
2024-06-30 14:17 UTC, Vladimir Druzenko
vvd: maintainer-approval?
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Druzenko freebsd_committer freebsd_triage 2024-06-30 14:02:29 UTC
Created attachment 251794 [details]
add vboxinit patch

I hope this description explains its meaning fully:
# Set the "Startup Mode" to "Automatic" for the virtual machine in
# phpvirtualbox to automatically start the virtual machine during OS boot.

phpvirtualbox uses the “Web Service” (WEBSERVICE) to configure and manage virtual machines, so we install the script only when the WEBSERVICE option is enabled.

I'm using this script for ages - maybe 10 years…
Comment 1 Vladimir Druzenko freebsd_committer freebsd_triage 2024-06-30 14:03:19 UTC
Created attachment 251795 [details]
File emulators/virtualbox-ose/files/vboxinit.in
Comment 2 Vladimir Druzenko freebsd_committer freebsd_triage 2024-06-30 14:03:59 UTC
Created attachment 251796 [details]
File ${LOCALBASE}/etc/rc.d/vboxinit
Comment 3 Vladimir Druzenko freebsd_committer freebsd_triage 2024-06-30 14:05:16 UTC
Created attachment 251797 [details]
File emulators/virtualbox-ose/files/vboxinit.in
Comment 4 Vladimir Druzenko freebsd_committer freebsd_triage 2024-06-30 14:05:55 UTC
Created attachment 251798 [details]
File ${LOCALBASE}/etc/rc.d/vboxinit
Comment 5 Vladimir Druzenko freebsd_committer freebsd_triage 2024-06-30 14:17:23 UTC
Created attachment 251799 [details]
add vboxinit patch
Comment 6 commit-hook freebsd_committer freebsd_triage 2024-07-09 21:32:03 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d0deb35b6952e0d73c111c6534462dcbd5d77774

commit d0deb35b6952e0d73c111c6534462dcbd5d77774
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2024-07-09 21:25:25 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2024-07-09 21:25:25 +0000

    emulators/virtualbox-ose{,-nox11}: add vboxinit start/stop script for VMs which is controlled from phpvirtualbox

    Set the "Startup Mode" to "Automatic" for the virtual machine in
    phpvirtualbox to automatically start the virtual machine during OS boot.

    This script also stops virtual machines during reboot even if
    vboxinit_enable="YES" is not present in /etc/rc.conf.

    phpvirtualbox uses the "Web Service" (WEBSERVICE) to configure and
    manage virtual machines, so we install the script only when the
    WEBSERVICE option is enabled.

    PR:     280062

 emulators/virtualbox-ose-nox11/Makefile          |  2 +-
 emulators/virtualbox-ose/Makefile                |  4 +-
 emulators/virtualbox-ose/files/vboxinit.in (new) | 91 ++++++++++++++++++++++++
 3 files changed, 94 insertions(+), 3 deletions(-)
Comment 7 commit-hook freebsd_committer freebsd_triage 2024-07-09 21:32:05 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b9b090f62a08fe648332bd20af02deab794d0e03

commit b9b090f62a08fe648332bd20af02deab794d0e03
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2024-07-09 21:30:58 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2024-07-09 21:30:58 +0000

    emulators/virtualbox-ose{,-nox11}-legacy: add vboxinit start/stop script for VMs which is controlled from phpvirtualbox

    Set the "Startup Mode" to "Automatic" for the virtual machine in
    phpvirtualbox to automatically start the virtual machine during OS boot.

    This script also stops virtual machines during reboot even if
    vboxinit_enable="YES" is not present in /etc/rc.conf.

    phpvirtualbox uses the "Web Service" (WEBSERVICE) to configure and
    manage virtual machines, so we install the script only when the
    WEBSERVICE option is enabled.

    PR:     280062

 emulators/virtualbox-ose-legacy/Makefile           |  4 +-
 .../virtualbox-ose-legacy/files/vboxinit.in (new)  | 91 ++++++++++++++++++++++
 emulators/virtualbox-ose-nox11-legacy/Makefile     |  2 +-
 3 files changed, 94 insertions(+), 3 deletions(-)
Comment 8 commit-hook freebsd_committer freebsd_triage 2024-07-20 09:39:25 UTC
A commit in branch 2024Q3 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d03209bbcdd1c0abcd01a737a49c0785ce714d2d

commit d03209bbcdd1c0abcd01a737a49c0785ce714d2d
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2024-07-09 21:30:58 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2024-07-20 09:38:04 +0000

    emulators/virtualbox-ose{,-nox11}-legacy: add vboxinit start/stop script for VMs which is controlled from phpvirtualbox

    Set the "Startup Mode" to "Automatic" for the virtual machine in
    phpvirtualbox to automatically start the virtual machine during OS boot.

    This script also stops virtual machines during reboot even if
    vboxinit_enable="YES" is not present in /etc/rc.conf.

    phpvirtualbox uses the "Web Service" (WEBSERVICE) to configure and
    manage virtual machines, so we install the script only when the
    WEBSERVICE option is enabled.

    PR:     280062
    (cherry picked from commit b9b090f62a08fe648332bd20af02deab794d0e03)

 emulators/virtualbox-ose-legacy/Makefile           |  4 +-
 .../virtualbox-ose-legacy/files/vboxinit.in (new)  | 91 ++++++++++++++++++++++
 emulators/virtualbox-ose-nox11-legacy/Makefile     |  2 +-
 3 files changed, 94 insertions(+), 3 deletions(-)
Comment 9 commit-hook freebsd_committer freebsd_triage 2024-07-20 09:39:26 UTC
A commit in branch 2024Q3 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a7ad8c6ed66dba46703feed4c1df0b47b0ed7482

commit a7ad8c6ed66dba46703feed4c1df0b47b0ed7482
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2024-07-09 21:25:25 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2024-07-20 09:38:08 +0000

    emulators/virtualbox-ose{,-nox11}: add vboxinit start/stop script for VMs which is controlled from phpvirtualbox

    Set the "Startup Mode" to "Automatic" for the virtual machine in
    phpvirtualbox to automatically start the virtual machine during OS boot.

    This script also stops virtual machines during reboot even if
    vboxinit_enable="YES" is not present in /etc/rc.conf.

    phpvirtualbox uses the "Web Service" (WEBSERVICE) to configure and
    manage virtual machines, so we install the script only when the
    WEBSERVICE option is enabled.

    PR:     280062
    (cherry picked from commit d0deb35b6952e0d73c111c6534462dcbd5d77774)

 emulators/virtualbox-ose-nox11/Makefile          |  2 +-
 emulators/virtualbox-ose/Makefile                |  4 +-
 emulators/virtualbox-ose/files/vboxinit.in (new) | 91 ++++++++++++++++++++++++
 3 files changed, 94 insertions(+), 3 deletions(-)