如果您想了解virtualbox安装ubuntu的相关知识,那么本文是一篇不可错过的文章,我们将对virtualbox安装ubuntu虚拟机进行全面详尽的解释,并且为您提供关于(OK)Ubuntu15
如果您想了解virtualbox 安装 ubuntu的相关知识,那么本文是一篇不可错过的文章,我们将对virtualbox安装ubuntu虚拟机进行全面详尽的解释,并且为您提供关于(OK) Ubuntu 15.10: KVM vs. Xen vs. VirtualBox Virtualization Performance、-unknown filesystem type vboxsf virtualbox 共享文件设置 ubuntu+windows、5.VirtualBox 下安装 ubuntu--2013-05-17、CentOS7 在 VirtualBox 上的安装配置(2) -- VirtualBox 增强包安装篇的有价值的信息。
本文目录一览:- virtualbox 安装 ubuntu(virtualbox安装ubuntu虚拟机)
- (OK) Ubuntu 15.10: KVM vs. Xen vs. VirtualBox Virtualization Performance
- -unknown filesystem type vboxsf virtualbox 共享文件设置 ubuntu+windows
- 5.VirtualBox 下安装 ubuntu--2013-05-17
- CentOS7 在 VirtualBox 上的安装配置(2) -- VirtualBox 增强包安装篇
virtualbox 安装 ubuntu(virtualbox安装ubuntu虚拟机)
==========================
cd C:/Program Files
Oracle/VirtualBox/VBoxManage.exe internalcommands setvdiuuid E:/VirtualBox/HardDisks/UbuntuServer10x64_WS51.vdi
Ubuntu 修改计算机名
sudo vi /etc/hosts
sudo vi /etc/hostname
#修改网卡
sudo vi /etc/network/interfaces
#配置 DNS
#sudo vi /etc/resolv.conf
#启动网卡,终端会断掉
#sudo /etc/init.d/networking restart
#强制加载,这个更好点,终端不会断掉
#sudo /etc/init.d/networking force-reload
#改 nginx 配置文件 (第一台机器要配置)
#sudo vi /etc/nginx/sites-available/default
VirtualBox 虚拟机 Ubuntu 找不到网卡的解决方法
VirtualBox 安装完 Ubuntu server 9.10 虚拟机。然后就 copy 了几个,想构建一个网络环境。
可是在新的虚拟机环境下,总是提示找不到 eth0.
很是郁闷,搞了好久,终于找到一个解决方案。
启动虚拟机,执行下面的操作
cd /etc/udev/rules.d
sudo mkdir backup
sudo mv * backup
sudo reboot
sudo cd /etc/udev/rules.d;sudo mkdir backup;sudo mv * backup;sudo reboot;
原文链接: http://blog.csdn.net/kimsoft/article/details/5869567
(OK) Ubuntu 15.10: KVM vs. Xen vs. VirtualBox Virtualization Performance
www.phoronix.com/scan.php?page=article&item=ubuntu-1510-virt&num=1
Our latest benchmarks of Ubuntu 15.10 are looking at the performance of this latest Linux distribution release when comparing the performance of guests using KVM, Xen, and VirtualBox virtualization from the same system.
The tests were all done from an Intel Xeon E5-2687W v3 + MSI X99S SLI PLUS system with 16GB of DDR4 system memory, 80GB Intel M.2 SSD, and AMD FirePro V7900 graphics. Once running our disk and processor focused benchmarks on this Ubuntu 15.10 host system, the "bare metal" results were then compared to a KVM guest setup via virt-manager using the Ubuntu Wily packages, then using the Xen 4.5 packages present on Ubuntu 15.10 with again testing the same Ubuntu 15.10 guest with virt-manager, and then lastly testing the Ubuntu 15.10 guest under VirtualBox 5.0.4 as available via the package archive.
The host system and all guests were using Ubuntu 15.10 64-bit with the Linux 4.2.0-16-generic kernel, Unity desktop, X.Org Server 1.17.2, an EXT4 file-system, and GCC 5.2.1 as the code compiler. All system settings remained the same during the testing process.
When creating the KVM/Xen/VirtualBox guests, 38GB of virtual storage on the Intel SSD, 8GB of RAM and all 20 CPU threads (ten core CPU + HT) were made available to the virtual machine under test. As each platform has near endless tunable possibilities, the testing was done with the default settings. If there''s enough interest and premium support from Phoronix readers, I can look at putting out some "tuned" VM comparisons.
All of the benchmarks for this article were carried out via the open-source Phoronix Test Suite benchmarking software.
+++++++++++++++++++++++++++++++++++++++++++
http://www.phoronix.com/scan.php?page=article&item=ubuntu-1510-virt&num=2
First up are some of the disk benchmarks for the host system and then the KVM/Xen/VirtualBox guests
With VirtualBox''s reported result outperforming the bare metal system, it looks like VirtualBox in its default configuration for this SQLite database benchmark isn''t fully honoring fsyncs to the disk compared to KVM and Xen with the performance being too good. While KVM was the slowest, if you''re doing a lot of write-intensive work in your VMs, you are better off letting the VM access a raw partition rather than just setting up a virtual disk.
With the random and sequential writes, VirtualBox was reported to be faster than KVM and Xen but again may be a matter of its different behavior.
When it comes to sequential reads, VirtualBox was slower than the competition.
Dbench is another disk benchmark showing VirtualBox''s different behavior of apparently not writing everything out to the disk during testing with the reported performance being too good.
+++++++++++++++++++++++++++++++++++++++++++
http://www.phoronix.com/scan.php?page=article&item=ubuntu-1510-virt&num=3
KVM was edging past Xen and VirtualBox for the CompileBench test.
With the Parboil OpenMP CPU test, the performance of KVM and Xen effectively matched that of the host system with minimal overhead in having access to all 20 CPU threads and having no other tasks active on the host system during testing. While VirtualBox was configured with the same hardware access, it was much slower than KVM and Xen.
The Rodinia OpenMP test was also showing VirtualBox at a similar disadvantage.
+++++++++++++++++++++++++++++++++++++++++++
http://www.phoronix.com/scan.php?page=article&item=ubuntu-1510-virt&num=4
KVM was faster than Xen at the MAFFT scientific test while VirtualBox 5.0 was nearly twice as slow.
On this Haswell Xeon system, KVM was faster than Xen and VirtualBox.
Xen scored a win past KVM when it came to the GraphicsMagick image resizing test.
There wasn''t a huge performance difference in the largely single-threaded Himeno pressure solver.
+++++++++++++++++++++++++++++++++++++++++++
http://www.phoronix.com/scan.php?page=article&item=ubuntu-1510-virt&num=5
KVM and Xen did fine on the timed kernel compilation benchmark while VirtualBox was much slower.
It seems nearly across the board that VirtualBox 5.0 performs poorly with the multi-threaded tests even though it too had access to all of the Intel Xeon v3''s threads.
There''s only small performance differences in the multimedia encoding tests.
Overall, Xen and KVM were performing well compared to the host''s performance. Xen tended to have the most wins while KVM generally came in right behind and the two were very competitive with one another, either are great solutions for Linux virtualization depending upon your specific needs. The VirtualBox results, however, were a bit concerning at least for its stock configuration with it performing poorly near universally in the multi-threaded benchmarks and the behavior in the disk benchmark also being potentially problematic.
If you would like to support our continued Linux benchmarking work at Phoronix, please consider subscribing to Phoronix Premium.
-unknown filesystem type vboxsf virtualbox 共享文件设置 ubuntu+windows
win7
上装了virtualbox
虚拟机
设置共享目录的时候,我要执行如下命令:
mount -t vboxsf osshare /home/tb/winshare/
意思是把我E盘下的文件夹设置共享到我ubuntu中的/home/tb/winshare下
在win上设置共享目录如下图:
但是在ubuntu上执行时候却显示:
-unknown filesystem type vboxsf
搜索之后说执行:apt-get install virtualbox-ose-guest-utils
,
但是根本没有成功。
再搜索:发现需要宿主机(win)和虚拟机(linux)中都需要安装Guest Additions
这个东西。
开始以为要下载,找到了virtualbox官方镜像,然后下载了VBoxGuestAdditions_4.3.12.iso
这个东东。然后在虚拟机运行窗口点击-设备-安装增强功能
(应把刚刚下载的iso文件放在 virtualbox安装目录/Program Files\Oracle\VirtualBox 下,安装目录下其实默认其实是有这个iso的!)。
好吧,win上这部其实可以省略。。
我们说在虚拟机上,需要把需要的iso挂载一下先。win下设置如下
然后我们在虚拟机内部(ubuntu
里root
权限)
root@tb:/dev# mount /dev/cdrom /home/tb/winshare/
mount: block device /dev/sr0 is write-protected, mounting read-only
然后看已经挂载上了。
root@tb:/dev# cd /home/tb/winshare/
root@tb:/home/tb/winshare# ls
32Bit AUTORUN.INF cert runasroot.sh VBoxSolarisAdditions.pkg VBoxWindowsAdditions.exe
64Bit autorun.sh OS2 VBoxLinuxAdditions.run VBoxWindowsAdditions-amd64.exe VBoxWindowsAdditions-x86.exe
剩下的就是执行一哈了~
root@tb:/home/tb/winshare# sh ./VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.0.10 Guest Additions for Linux............
VirtualBox Guest Additions installer
Copying additional installer modules ...
Installing additional modules ...
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules
...
You should restart your guest to make sure the new modules are actually used
看最后一句,需要restart
你的virtualbox
。
重启之后,我们再回过头去结合看看本文第一张图:
然后再执行
mount -t vboxsf osshare /home/tb/winshare/
osshare是你在win上设置的名字, 后面的就是`ubunut`需要挂载到的目录。
这时候就不会有-unknown filesystem type vboxsf
这个错误了。
我们在宿主机和虚拟机之间就可以实现文件共享了。
5.VirtualBox 下安装 ubuntu--2013-05-17
昨天折腾了下 centos, 今天是纯玩玩的心态搞下 ubuntu。ubuntu 安装比较简单就不说了,具体可以参考他人写过好多图文教程,详细的很,除了分区注意些其他也不麻烦。我顺利安装了 ubuntu1204LTS,但是手痒痒,老想看看到底他的图形界面什么样得,又 sudo apt-get install ubuntu-desktop,装了个图形界面。有说这样装的东西太多,不推荐,我等菜鸟用,方便。当然也可以自定义安装。
自定义安装
1. 安装 x-windows 的基础(必须):
sudo apt-get install x-window-system-core
2. 安装 gnome 基础(必须):
sudo apt-get install gnome-core
3. 安装中文显示 (建议安装):
sudo apt-get install language-pack-gnome-zh #让 gnome 面板、菜单显示中文
sudo apt-get install language-pack-gnome-zh-base
sudo apt-get install language-pack-zh #中文语言包
sudo apt-get install language-pack-zh-base
sudo apt-get install language-support-zh #中文语言支持
sudo apt-get install scim #scim 中文输入法平台
4. 安装登录管理器(一般不选):
sudo apt-get install gdm
说明:
gdm(gnome display manager)即 gnome 图形界面显示管理器,还有 kdm/xdm 等,它将使您可以在启动时直接进入 GUI 桌面环境,而勿需通过 startx 来启动 GUI。
5. 安装新利得软件管理器(可选):
sudo apt-get install synaptic
6. 卸载 gnome 桌面环境:
sudo apt-get –purge remove liborbit2
7. 进入图形界面:startx
8. 退出图形桌面:ctrl + alt + backspace

还是很花哨的哈。
1. 调出 Terminal
快捷键 ctrl+alt+t,然后右键,锁定到任务栏,以后点击就能用了
2. 修改默认 shell
ubuntu 默认的 shell 为 DASH,还是喜欢 BASH,改到 BASH
把 /bin/sh 的软链接改到 bash 中,sudo ln -sf /bin/bash/bin/sh
再次检查一下, ls /bin/sh -al 发现软链接已经指向 /bin/bash 了。
CentOS7 在 VirtualBox 上的安装配置(2) -- VirtualBox 增强包安装篇
上一篇讲了 CentOS7 操作系统的傻瓜化安装,下面讲讲如何安装 VirtualBox 来提升效率。
CentOS7 安装 VirtualBox 辅助工具包
如果你想主机和虚拟机之间能自由切换,共享剪切板,共享文件和文件夹,那就安装这个包吧。
不知道为什么,我通过 virtualbox 的 devices 菜单的 insert Guest Additions CD image… 选项就是无法完成装载。
错误如下:
我也没有去深入研究,只好通过下面手工加载工具包镜像的方式来安装了。
手工加载 VBoxGuestAdditions 光盘镜像
在 virtualbox 包里面,有个 VBoxGuestAdditions.iso
文件,本来上一步骤的 devices 菜单里面点击 insert 就是装载这个镜像,但是不知道为什么失败,所以,我就准备手工装载他。
首先,在 Finder
- 应用程序
中找到 virtualbox
,右键点击,选择显示包内容
。进入 Contents/MacOS/
,找到 VBoxGuestAdditions.iso
,将其复制到桌面.
你也可以在终端下,通过下面命令拷贝到桌面。
将这个镜像装载到 virtualbox 的虚拟光驱,如果你已经启动系统,可以通过如下方式装载。
也许你会出现下面的错误,点击 Details ,可以看到 mount 不成功。那就点击 Force Unmount
忽视他咯。
当然,我们还是要点击那个光盘,确认已经把 iso 已经放入了虚拟驱动设备。
此时,我想到为什么用 virtualbox 默认的菜单安装会出现失败了,因为,在 virtualbox 的设置里,我们是将光驱放在 IDE 控制器下的,如下图
IDE 设备在 linux 系统,默认应该是 hd 带头的设备,如 hda,hdb…… ,但 CentOS7 面向的大部分都是服务器设备,服务器一般不采用 IDE 控制器,而是采用更先进的 SCSI 作为硬盘等外设接口。因为是虚拟机,CentOS 就 IDE 设备也识别为 SCSI 设备了,所以,在系统里面显示为 sr0.我们可以用 lsscsi 命令查看,就可以看到我们连接的虚拟设备。
因为我们把光驱挂在 IDE 控制器下,则 virtualbox 默认的 mount 命令应该是 mount /dev/hda /media/cdrom
这种类型的,结果找不到 hda 设备,mount 就失败了。下面,我们将 mount 命令修改如下(需要 root 权限):
mkdir /media/cdrom
mount /dev/sr0 /media/cdrom
出现下面提示,表示 mount 成功。进入 /media/cdrom 目录,即可查看到相关文件。
执行下面命令,安装 VBoxGuestAdditions 增强包
./VBoxLinuxAdditions.run
运行成功后,截图如下:
也许,你可能会出现运行不成功的情况,尤其如果你默认安装的是 CentOS 7 mini 版本。
那么执行 ./VBoxLinuxAdditions.run
之前,你需要先进行下面的操作。
VBoxGuestAdditions 依赖包安装
因为 VBoxGuestAdditions 编译会有很多包依赖,所以,需要先安装那些包依赖。
尤其是辅助包需要 linux 内核提供一些功能,这就需要内核的C header 来编译程序,也就是需要安装 linux-devel 这个工具。当然,kernel-devel 不光是 C Header 文件,它还有内核的配置文件,以及其他的开发用的资料。
if you have installed new setup of centos minimal or you haven’t installed yet, you need make, gcc, kernel-devel in order to Install VirtualBox Guest Additions installation script.
On CentOS/Red Hat (RHEL) 6/5, EPEL repo is needed
## CentOS 6 and Red Hat (RHEL) 6 ##
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
## CentOS 5 and Red Hat (RHEL) 5 ##
rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
CentOS7 可以直接升级安装下列包
yum update
yum install gcc kernel-devel kernel-headers dkms make bzip2
reboot
接下来就和上面的步骤一样,挂着 cdrom ,执行安装程序(run 安装命令需要 root 权限):
cd media
mkdir cdrom
mount /dev/sr0 /media/cdrom
cd /media/cdrom
./VBoxLinuxAdditions.run
如果不想出现 xrog 警告提醒,可以添加参数--nox11
./VBoxLinuxAdditions.run --nox11
如果还有其他错误,看命令执行后的报错信息. 如果你只想运行在 centos minimal 下, 因为没有图形组件,Xorg 是可以被接受的。?
接着,重启设备,增强包就安装成功了。
reboot
如果你不满足于字符界面,那么请再移步CentOS7 图形界面安装篇。
关于virtualbox 安装 ubuntu和virtualbox安装ubuntu虚拟机的问题就给大家分享到这里,感谢你花时间阅读本站内容,更多关于(OK) Ubuntu 15.10: KVM vs. Xen vs. VirtualBox Virtualization Performance、-unknown filesystem type vboxsf virtualbox 共享文件设置 ubuntu+windows、5.VirtualBox 下安装 ubuntu--2013-05-17、CentOS7 在 VirtualBox 上的安装配置(2) -- VirtualBox 增强包安装篇等相关知识的信息别忘了在本站进行查找喔。
本文标签: