vitualbox

http://tecadmin.net/install-oracle-virtualbox-on-ubuntu/
Step 1: Setup Apt Repository


Firstly edit /etc/apt/sources.list file and add one of following line according to your distribution to your system. You can find your system distribution codename using “lsb_release -c” command from terminal.


For Ubuntu 16.04 ("Xenial")
deb http://download.virtualbox.org/virtualbox/debian xenial contrib


For Ubuntu 15.10 ("Wily")
deb http://download.virtualbox.org/virtualbox/debian wily contrib


For Ubuntu 14.04 ("Trusty")
deb http://download.virtualbox.org/virtualbox/debian trusty contrib


For Ubuntu 12.04 LTS ("Precise Pangolin")
deb http://download.virtualbox.org/virtualbox/debian precise contrib


For Debian 8 ("Jessie") 
deb http://download.virtualbox.org/virtualbox/debian jessie contrib


For Debian 7 ("Wheezy")
deb http://download.virtualbox.org/virtualbox/debian wheezy contrib


Step 2: Setup Oracle public key


After adding required apt repository in your system, download and import the Oracle public key for apt-secure using following commands.


$ wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
$ wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -


Step 3: Install Oracle VirtualBox


After completing above steps, lets install VirtualBox using following commands. If you have already installed any older version of VirtualBox, Below command will update it automatically.


$ sudo apt-get update
$ sudo apt-get install virtualbox-5.1


Step 4: Start VirtualBox


We can use dashboard shortcuts to start VirtualBox or simply run following command from terminal.


$ virtualbox
### VirtualBox 的简介与使用 VirtualBox 是一款由 Oracle 提供的开源虚拟化软件,允许用户在同一台计算机上运行多个操作系统实例。它支持多种平台作为主机和客户机环境[^1]。 #### 下载 VirtualBox 可以从官方网站下载最新版本的 VirtualBox 及其扩展包。官方地址如下: https://www.virtualbox.org/wiki/Downloads 确保根据操作系统的不同选择合适的安装程序文件。例如,在 Windows 上应选择 `.exe` 文件;而在 Linux 发行版上则可能需要 `.deb` 或 `.rpm` 安装包[^2]。 #### 安装过程概述 执行所下载的安装程序后按照提示完成安装即可。对于大多数主流操作系统而言,默认选项通常已足够满足基本需求。如果计划使用 USB 设备或其他高级功能,则建议同时安装 **Oracle VM VirtualBox Extension Pack** 来增强兼容性和功能性[^3]。 #### 配置新虚拟机 创建新的虚拟机时需指定以下几个主要参数: - 名称与类型:定义新建虚拟机的名字及其对应的 OS 类型。 - 内存大小:分配给该虚拟机使用的 RAM 数量。 - 硬盘设置:可以选择现有磁盘镜像或者创建一个新的虚拟硬盘来存储数据。 以下是通过命令行方式快速建立 Ubuntu 虚拟机的一个简单例子: ```bash VBoxManage createvm --name "Ubuntu_64" --register VBoxManage modifyvm "Ubuntu_64" --memory 2048 --acpi on --boot1 dvd --nic1 bridged VBoxManage storagectl "Ubuntu_64" --name "SATA Controller" --add sata --controller IntelAhci VBoxManage storageattach "Ubuntu_64" --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium path_to_your_iso_file.iso ``` 上述脚本中的 `path_to_your_iso_file.iso` 应替换为你实际存放 ISO 映像的位置路径[^4]。 #### 常见问题解决办法 当遇到网络连接失败的情况时可以尝试调整网卡模式为 NAT 或 Bridged Adapter 。另外还需要注意宿主系统防火墙规则是否会干扰到虚拟机之间的通信行为[^5]。 相关问题
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值