ubuntu

如何在Ubuntu中启动VirtualBox

小樊
46
2025-02-25 12:39:48
栏目: 智能运维
Ubuntu服务器限时活动,0元免费领! 查看>>

在Ubuntu中启动VirtualBox的步骤如下:

  1. 安装VirtualBox
sudo apt update
sudo apt install virtualbox
  1. 启动VirtualBox
  1. 通过命令行启动VirtualBox
virtualbox
  1. 设置VirtualBox开机自动启动(可选):
# VBOXAUTOSTART_DB=/etc/vbox
# VBOXAUTOSTART_CONFIG=/etc/vbox/autostart.conf
sudo chgrp vboxusers /etc/vbox
sudo chmod 1775 /etc/vbox
sudo usermod -aG vboxusers $USER
# Default policy is to deny starting a VM, the other option is "allow".
# default_policy  deny
# user vbox is allowed to start virtual machines but starting them
# will be delayed for 10 seconds

# Example: Allow user vbox to start a VM named "XP" with a startup delay of 10 seconds.

# Example: Allow user vbox to start a VM named "XP" without a startup delay.

# Example: Deny starting any VMs.

# Example: Allow user vbox to start a VM named "XP" with a startup delay of 10 seconds.
allow
startup_delay 10

# Example: Allow user vbox to start a VM named "XP" without a startup delay.
# allow
# startup_delay 0
VBoxManage setproperty autostartdbpath /etc/vbox
VBoxManage modifyvm win2003 --autostart-enabled on

完成以上步骤后,您就可以在Ubuntu中启动并使用VirtualBox了。如果遇到任何问题,可以参考VirtualBox的官方文档或搜索相关教程。

亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>

相关推荐:如何在Ubuntu VirtualBox中设置启动顺序

0
看了该问题的人还看了