Page 2 of 6 FirstFirst 1234 ... LastLast
Results 11 to 20 of 60

Thread: VBox as a service in Lucid

  1. #11
    Join Date
    Jun 2011
    Beans
    151

    Re: VBox as a service in Lucid

    Did you make the service do stop as well? (As per your scripts)

  2. #12
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: VBox as a service in Lucid

    Quote Originally Posted by Entilza View Post
    Did you make the service do stop as well? (As per your scripts)
    The script is set to save the state of any running VMs on system shutdown/reboot.

    You can also do that manually like so:

    Code:
    sudo service vmboot stop
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  3. #13
    Join Date
    Jun 2011
    Beans
    151

    Re: VBox as a service in Lucid

    Ah cool, I was looking at the individual start / stop. You have the combined one as well listed, thanks.

    So is this the proper way to shutdown guest machines if the host system goes down? I would probably prefer to shut them down individually?

    ie: Host Ubuntu, guest: Win7 In order to shutdown win7 fully you would have to send a shutdown signal but I don't think this is possible through vbox? Atleast without some sort of program listening on the guests and waiting for a shutdown signal..

  4. #14
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: VBox as a service in Lucid

    You can send a shutdown signal via vbox. I have been using savestate so I can pick up where I left off instead of having to restart what I was doing on the VM.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  5. #15
    Join Date
    Dec 2007
    Location
    The last place I look
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: VBox as a service in Lucid

    well, I've tried it over a few days and I like it thus far. i am having a problem with the stop however. I added syslogging to the script so i could confirm that it was reacting to the events correctly, and that in itself appears to be working fine, but I am not getting any logs from the shutdown event unless I stop the service manually.

    I've attached my mutant version, in case you see a problem there.
    I'm going to try adding a flag file at shutdown to see if I can confirm the event is firing but perhaps after the logging service has stopped.

    Thanks!
    Last edited by doas777; September 25th, 2011 at 10:15 AM.
    Things are rarely just crazy enough to work, but they're frequently just crazy enough to fail hilariously.

  6. #16
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: VBox as a service in Lucid

    Have you tried adding $local_fs and $syslog to the requires areas?

    http://wiki.debian.org/LSBInitScripts

    I'm not even sure I wrote that part correctly, but it looks right.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  7. #17
    Join Date
    Dec 2007
    Location
    The last place I look
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: VBox as a service in Lucid

    interesting.

    ok,I've added those items start/stop dependency list, but I'm still not getting log messages on the stop, unless I stop the service manually from the shell. service start works as expected.

    per the LSB init specs, I added restart and force-reload clauses as well just in case. I've been removing and resetting the service with update-rc.d on each change before testing.

    my latest version is attached. see anything amiss?
    Last edited by doas777; September 25th, 2011 at 10:15 AM.
    Things are rarely just crazy enough to work, but they're frequently just crazy enough to fail hilariously.

  8. #18
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: VBox as a service in Lucid

    Looks fine to me.

    It sounds like the system logger is being stopped during shutdown before the commands are being run. or something. I'm not sure how to fix that.

    BTW: Nice mod with the functions.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  9. #19
    Join Date
    Dec 2007
    Location
    The last place I look
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: VBox as a service in Lucid

    Quote Originally Posted by CharlesA View Post
    It sounds like the system logger is being stopped during shutdown before the commands are being run. or something. I'm not sure how to fix that.
    looks like that is exactly the case. I had it touch a file in /var/log after it stops the vm without error, and that file does get created on reboot, so I guess all is in working order. as long as its working, I'm not so worried about the logging.

    Thanks for all your help with this. I've enjoyed working with you and learning about service configuration.
    cya 'round
    Things are rarely just crazy enough to work, but they're frequently just crazy enough to fail hilariously.

  10. #20
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: VBox as a service in Lucid

    No problem, glad you (sorta) got it figured out.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

Page 2 of 6 FirstFirst 1234 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •