ubuntu下面安装虚拟机xp

转载于:http://www.2cto.com/os/201104/88201.html

首先下载虚拟机,下载地址:http://download.virtualbox.org/virtualbox/3.1.0/virtualbox-3.1_3.1.0-55467_Ubuntu_karmic_i386.deb今天说的虚拟机是SUN公司出品的免费虚拟机:sunvirtualbox    这款虚拟机大小之后41.8M,功能却很强大!下载完成后直接双击就可以安装了。下载完成得到这个文件:


\


双击打开开始安装,也可以使用命令安装(

sudo dpkg -i package_file.deb 安装,

要卸载一个 .deb 文件,

在您的软件包管理器中取消选中它。或者在终端中,

输入:sudo dpkg -r package_name ):

也可以这样下载:

Debian-based Linux distributions

Note: VirtualBox has been moved from non-free to contrib with 4.0, so please adjust your repository settings.

Add one of the following lines according to your distribution to your /etc/apt/sources.list:

deb http://download.virtualbox.org/virtualbox/debian precise contrib
deb http://download.virtualbox.org/virtualbox/debian oneiric contrib
deb http://download.virtualbox.org/virtualbox/debian natty contrib
deb http://download.virtualbox.org/virtualbox/debian maverick contrib non-free
deb http://download.virtualbox.org/virtualbox/debian lucid contrib non-free
deb http://download.virtualbox.org/virtualbox/debian karmic contrib non-free
deb http://download.virtualbox.org/virtualbox/debian hardy contrib non-free
deb http://download.virtualbox.org/virtualbox/debian wheezy contrib
deb http://download.virtualbox.org/virtualbox/debian squeeze contrib non-free
deb http://download.virtualbox.org/virtualbox/debian lenny contrib non-free

(Up to version 3.2 the packages were located in the non-free section. Starting with version 4.0 they are located in the contrib section.)

The Oracle public key for apt-secure can be downloaded  here. You can add this key with

sudo apt-key add oracle_vbox.asc

or combine downloading and registering:

wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -

The key fingerprint is

7B0F AB3A 13B9 0743 5925  D9C9 5442 2A4B 98AB 5139
Oracle Corporation (VirtualBox archive signing key) <info@virtualbox.org>

(As of VirtualBox 3.2, the signing key was changed. The old Sun public key for apt-secure can be downloaded here.)

To install VirtualBox, do

sudo apt-get update
sudo apt-get install virtualbox-4.2

Replace virtualbox-4.2 by

  • virtualbox-4.1 to install VirtualBox 4.1.24
  • virtualbox-4.0 to install VirtualBox 4.0.18
  • virtualbox-3.2 to install VirtualBox 3.2.16


\


状态:所有依赖关系都已满足,这样就说明可以安装了!电建装软件包,需要输入密码的。接下来弹出的窗口直接点击前进,再点击前进!第二个前进点击以后可能会无反应一段时间,不要担心,等他自己处理好就行了:

\


至此安装虚拟机就完成了,接下来就是配置了。应用程序——系统工具——SunVirtualBox   打开以后会弹出一个窗口,如图:

\


这时候我同意是灰色的,一定要把左边的那个滚动轴拉到最下面才能点动我同意!  点击我同意继续,弹出一个这样的窗口:

\

这个就是一个登陆界面,当然我想一般都没有Sun的账号吧?没的话也没关系,我们现在注册一个,很简单!点击I would……  就可以注册了,信息随便填就可以了!下面是我的信息,请对照自己更改:

\

其中E-mail和password要记住,以后就不用注册了,可以拿来这个登陆了!填写完成了点击Register进行注册!   



注册成功会有提示:

\                           

我们点击确定继续。                                      

打开虚拟机的窗口,点击新建,弹出的窗口点击下一步:
\


这个也不用多说了吧?操作系统和版本根据自己喜欢,今天我教程是安装XP,那就这样选择,名称尽量简单的鸟文,我这里就用:XP。 填好后点击下一步:

\


一句话,根据需要,不建议设置太大,毕竟是虚拟机,占资源。     设置好了点击下一步:

\


选中创建新的虚拟硬盘(除非你以前用过这个虚拟机,并且创建了),点击两次下一步:

\


建议选择动态拓展,节约/绿色/环保~~~点击下一步:


\

   大小自定义,根据需要多大就分出来多大,不用太大,以后不够了还可以自己增加虚拟磁盘;位置可以选择Windows分区,因为这样不会占用Ubuntu分区的空间,缺点是每次启动虚拟机前需要手动挂在一次你放虚拟机的位置(很简单:位置——你放虚拟机的分区)。设置完沉点击下一步,点击完成,这样我们的第一个虚拟机就新建完了!如图:

\


开始之前还有一件事要做,虚拟机里点击设置切换到网络选项卡,设置成这样,否则不能上网:

\


接着切换到光驱选项卡,点击虚拟光盘,然后点击后面的文件浏览图标,打开如图界面:

\


点击注册,定位到你电脑里面的光盘镜像,定位后点击右下角的选择,再确定就可以了!如果你是使用光驱和光盘安装的话就选中物理光驱,选中你的光驱点击确定就可以了!     一切就绪,点击虚拟机主界面的开始开启虚拟机!如图:   

\

其实这接下来就是安装WIndows一样了,我就不鏊述了,要说的就是想要把鼠标键盘从虚拟机里“解放出来,只要按住:Ctrl+Alt+Del就可以了!十来分钟的样子系统安装好了,现在设备管理器里看看是不是驱动没有装齐,没装齐也无所谓额的,这时候点击虚拟机上的:设备——安装增强功能:

\


一步一步按下去,到这一步的时候自己选择:

\

    是否开启3D加速,玩游戏的话建议选中,不玩的话完全没必要了~~安装完成后再看设备管理器驱动应该都装上了,装不上的话再回去检测步骤~~下面说下安装后增强软件的好处:鼠标可以在虚拟机和宿主机之间自由转换;驱动安装完全;可以共享宿主机文件,并且是以


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值