Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 29

Thread: "Headless" VMs on Startup

  1. #11
    Join Date
    Mar 2012
    Location
    /home/ubun2to
    Beans
    356
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: "Headless" VMs on Startup

    Quote Originally Posted by CharlesA View Post
    It goes off the name of the virtual machine.

    After starting it from the GUI, are you able to run it with VirtualBox --startvm Windows-XP from a terminal?
    Do you mean launch it from the VirtualBox VM list and then launch it from terminal? Or do you mean can I launch it using this command?:
    Code:
    VirtualBox --startvm Windows-XP
    If so, yes, but I get an error:
    Code:
    Error opening file for reading: Permission denied
    And, if I close terminal, it kills the VM.
    Last edited by Ubun2to; June 26th, 2012 at 03:06 AM.
    Backups are amazing. 99% of data loss can be prevented by spending less than $100 on an external drive.
    If you have seen an error, there is a good chance someone else has, too. Google is your friend.

  2. #12
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: "Headless" VMs on Startup

    Close virtualbox and then run it from the terminal like this:

    Code:
    VirtualBox --startvm Windows-XP &
    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
    Mar 2012
    Location
    /home/ubun2to
    Beans
    356
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: "Headless" VMs on Startup

    Quote Originally Posted by CharlesA View Post
    Close virtualbox and then run it from the terminal like this:

    Code:
    VirtualBox --startvm Windows-XP &
    It works, but I get this:
    Code:
    me@ubuntu:~$ VirtualBox --startvm Windows-XP &
    [1] 5339
    me@ubuntu:~$ Error opening file for reading: Permission denied
    Is it not fast enough to display the Error before the next command entry line comes up?
    Backups are amazing. 99% of data loss can be prevented by spending less than $100 on an external drive.
    If you have seen an error, there is a good chance someone else has, too. Google is your friend.

  4. #14
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: "Headless" VMs on Startup

    Huh.

    Reboot and try it again.
    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
    Mar 2012
    Location
    /home/ubun2to
    Beans
    356
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: "Headless" VMs on Startup

    Quote Originally Posted by CharlesA View Post
    Huh.

    Reboot and try it again.
    Same thing happened.
    Maybe it's an error with using VirtualBox at the beginning of the command rather than VBoxManage (lol-I typed VBoxMange by accident at first).
    Last edited by Ubun2to; June 26th, 2012 at 03:28 AM.
    Backups are amazing. 99% of data loss can be prevented by spending less than $100 on an external drive.
    If you have seen an error, there is a good chance someone else has, too. Google is your friend.

  6. #16
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: "Headless" VMs on Startup

    Quote Originally Posted by Ubun2to View Post
    Same thing happened.
    Maybe it's an error with using VirtualBox at the beginning of the command rather than VBoxManage (lol-I typed VBoxMange by accident at first).
    Shouldn't matter. I tested it and it worked fine.

    Does the VM launch?
    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
    Mar 2012
    Location
    /home/ubun2to
    Beans
    356
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: "Headless" VMs on Startup

    Quote Originally Posted by CharlesA View Post
    Shouldn't matter. I tested it and it worked fine.

    Does the VM launch?
    Yes, but terminal also gives me this:
    Code:
    me@ubuntu:~$ VirtualBox --startvm Windows-XP &
    [1] 5339
    me@ubuntu:~$ Error opening file for reading: Permission denied
    Edit: So, are we just testing out various commands in terminal to see which ones would work for a startup command, or should I be testing these for the startup commands?
    Also, if I log out and log back in to test each command, it runs without a hitch. But, a restart is what seems to make it launch "headless."
    Edit 2: I decided to try this command again:
    Code:
    VirtualBox --startvm Windows-XP
    It works when I logout and login, but when I reboot, I get this error message:
    Failed to start the virtual machine .
    I think I'm getting closer to solving this mystery.
    Also, these commands also generate this same error message, but they generate it both when I reboot and logoff/logon:
    Code:
    VirtualBox --startvm Windows-XP
    VirtualBox --startvm Windows-XP &
    So, it seems that I can get it to work when I relogin, but rebooting makes it fail. I can reboot and login to another account first, and it will work, but not if I reboot and log straight into my account.
    Last edited by Ubun2to; June 26th, 2012 at 04:46 AM.
    Backups are amazing. 99% of data loss can be prevented by spending less than $100 on an external drive.
    If you have seen an error, there is a good chance someone else has, too. Google is your friend.

  8. #18
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: "Headless" VMs on Startup

    It must be a bug or something in Vbox. I just tried it on my vmhost and got this:

    Code:
    vmuser@Thor:~$ VirtualBox --startvm Orion
    Qt WARNING: Unable to load library icui18n "Cannot load library icui18n: (libicui18n.so.48: cannot open shared object file: No such file or directory)" 
    Error opening file for reading: Permission denied
    The Qt warning is cuz I am forwarding X over SSH, as that box is headless.

    The VM is running fine tho.

    Bug report is here:
    https://bugs.launchpad.net/ubuntu/+s...x/+bug/1014487
    Last edited by CharlesA; June 26th, 2012 at 04:51 AM.
    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
    Mar 2012
    Location
    /home/ubun2to
    Beans
    356
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: "Headless" VMs on Startup

    Quote Originally Posted by CharlesA View Post
    It must be a bug or something in Vbox. I just tried it on my vmhost and got this:

    Code:
    vmuser@Thor:~$ VirtualBox --startvm Orion
    Qt WARNING: Unable to load library icui18n "Cannot load library icui18n: (libicui18n.so.48: cannot open shared object file: No such file or directory)" 
    Error opening file for reading: Permission denied
    The Qt warning is cuz I am forwarding X over SSH, as that box is headless.

    The VM is running fine tho.
    I'm not sure it's a bug with VBox, as logging out and in will execute most of the commands just fine, but rebooting and logging in fails for all of them. I can login on a different account first and then it will work just fine. Seems like a Ubuntu bug, but VBox might not be able to be automatically executed on the first login session on a computer. I don't know why.
    Last edited by Ubun2to; June 26th, 2012 at 04:53 AM.
    Backups are amazing. 99% of data loss can be prevented by spending less than $100 on an external drive.
    If you have seen an error, there is a good chance someone else has, too. Google is your friend.

  10. #20
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: "Headless" VMs on Startup

    Quote Originally Posted by Ubun2to View Post
    I'm not sure it's a bug with VBox, as logging out and in will execute most of the commands just fine, but rebooting and logging in fails for all of them. I can login on a different account first and then it will work just fine. Seems like a Ubuntu bug, but VBox might not be able to be automatically executed on the first login session on a computer. I don't know why.
    *shrugs*

    If it is working fine, I'd just leave it for now. Add a comment to the bug report and see what happens.
    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 3 FirstFirst 123 LastLast

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
  •