zoukankan      html  css  js  c++  java
  • VirtualBox Linux服务vboxservicetemplate

    vbox-service-template is an init.d script template for running a VirtualBox machine as a service.

    Sending a stop command to the service will either save the state of the VM (hibernate) or send the ACPI Power Button signal to the VM and wait for it to self-terminate (powerbutton).

    Some more context and howto information can be found here: http://www.glump.net/howto/

    virtualbox_as_a_service下载

    Installation
    Make a copy of the script as /etc/init.d/vbox-NAME and follow the instructions in the comments in the script. Make sure you set the x bit on the file to make it executable.

    To mark the service for automatic start at boot time:

    Ubuntu: update-rc.d vbox-NAME defaults 90 (The '90' is to make sure it starts after the VirtualBox core services.
    Fedora: chkconfig vbox-NAME on
    To remove the service from the boot process:

    Ubuntu: update-rc.d -f vbox-NAME remove
    Fedora: chkconfig vbox-NAME off
    Additionally, if you are going to shut down your computer while a VM is running you should tell VirtualBox how to handle shutdown. Create or edit /etc/default/virtualbox:

    SHUTDOWN_USERS="user1 user2" # space-delimited list of users who might have runnings vms
    SHUTDOWN=savestate # if any are found, suspend them to disk
    Usage
    Start
    service vbox-NAME start

    Start and wait for the VM to be reachable on the network
    service vbox-NAME start-wait

    Stop (hibernate or power button -- see config lines in script)
    service vbox-NAME stop

    Restart
    service vbox-NAME restart

    Restart and wait for the VM to be reachable on the network
    service vbox-NAME restart-wait

    Display status
    service vbox-NAME status

  • 相关阅读:
    [css] BFC规则以及解决方法
    [css] 利用border制作三角型
    初学java注解编程 记录错误及解决办法
    springmvc 注解 配置文件解释
    log4net详解(转载)
    数据库的隔离级别
    Arcgis 几何网络分析
    Spring配置文件详解 – applicationContext.xml文件路径
    wpf 线程
    wpf 保存控件中的内容为图片格式
  • 原文地址:https://www.cnblogs.com/top5/p/2764538.html
Copyright © 2011-2022 走看看