VirtualBox 4.1安装CentOS6 Server版 - 问题记录、Linux Mount点

1,CentOS系统下载页面[url]http://wiki.centos.org/Download[/url], 参考:[url=http://desert3.iteye.com/admin/blogs/1666404]x86,I386,i686, x86_64, x64,amd64、Windows Linux AIX下查看CPU位数和操作系统位数[/url]

2,64位Win7安装不了CentOS-6.3-x86_64-minimal.iso,提示错误This kernel requires an x86-64 CPU, but only detected an i686 CPU. Unable to boot - please use a kernel appropriate for your CPU. 参考:[url=http://desert3.iteye.com/admin/blogs/869301]VirtualBox相关[/url] [color=blue]解决:[/color]1,Virtualbox中启用VT-x/AMD-v属性配置后才能用(网路上找的,自己没有修改过) 2,或者换i386的iso文件来安装系统

3,64位Win7安装CentOS-6.3-i386-minimal.iso,做完test media操作后提示错误:the centos disc was not found in any of your drivers. please insert the centos disc and press ok to retry. [color=blue]解决:[/color]1,不进行test media,直接进行后续操作 2,或者执行完test media操作后,在虚拟机的工具栏Devices->CD/DVD Devices->下重新勾选上对应的iso文件

4,虚拟机安装完成后,发现外网无法访问:默认NAT方式访问网络,执行[color=blue]dhclient eth0[/color]命令使用dhcp方式访问网络;也可以修改/etc/sysconfig/network-scripts/ifcfg-eth0文件,配置成使用dhcp方式访问网络

CentOS安装完成后,系统启动时,显示的是进度条而不是具体的执行信息,编辑/boot/grub/grub.conf文件,找到下面的部分,将"rhgb"去掉,保存即可。其中[color=red]"rhgb"表示"redhat graphics boot"[/color],就是图形进度条模式。而[color=red]"quiet"表示在启动过程中只显示重要启动信息[/color],类似硬件自检之类的消息不会显示,可以有选择地选用。

kernel /vmlinuz-2.6.32-71.el6.i686 ro root=UUID=697cb0d9-19f6-414a-90a1-5ceb2f40b03d rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=zh_CN.UTF-8 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto rhgb quiet

5,安装客户端增强(Install Guest Additions),以使得工具栏下面的[color=blue]Shared Folders共享文件夹和增大客户端分辨率功能[/color]能正常使用,关于Guest Additions参考官网描述:[url=http://www.virtualbox.org/manual/ch04.html#idp11259744]Chapter 4. Guest Additions[/url]

6,yum执行时出错误:yum from base: [Errno 256] No more mirrors to try [color=blue]解决:[/color] 1,执行yum clean all 2,然后重新执行命令yum install gcc

7,yum执行时出错误:cannot find a valid baseurl for repo:base [color=blue]解决:[/color] 1,网络不可用导致的 2,yum.repos.d下的配置文件中baseurl前的注释符号去掉

8,[b]Linux系统Mount点:[/b]mount的时候,mount的目标文件夹/media/cdrom要[color=red]手动创建[/color]
[list]
[*]Devices->Shared Folders-> auto-mount 会被自动Mount到/media目录下,ls media可以查看到
[*]安装目录下的VBoxGuestAdditions.iso文件mount到Linux系统(Devices->Install Guest Additions) mount [color=red]/dev/scd0[/color] /media/vbox
[*]iso系统安装文件的mount(虚拟光驱mount),mount [color=red]/dev/cdrom[/color] /media/cdrom
[/list]
9,CentOS[color=red]命令行[/color]下安装Install Guest Additions步骤
[list]
[*] yum update -------第一次更新要下载很多东西,不是必须做的
[*] yum install gcc
[*] yum install gcc make
[*] yum install kernel --包含所有内核源代码
[*] yum install kernel-devel --只包含用于内核开发环境所需的内核头文件以及Makefile,安装kernel后,可能就不用安装kernel-devel了,我是先安装kernel-devel,然后还是有错误,反过来安装kernel
[*] reboot
[*] mount /dev/scd0 /media/vbox
[*] sh /media/vbox/VBoxLinuxAdditions.run
[/list]
安装VBoxLinuxAdditions时,发生下述错误:都是少安装相关组件导致的,按照上述整理的步骤安装后,问题解决。
building the main Guest Additions module FAILED
unable to find the sources of your current Linux kernel. Specify KERN_DIR-<directory> and run Make again

安装结果:
Building the VirtualBox Guest Additions kernel modules
Building the main Guest Additions module
Building the shared folder support module
Building the OpenGL support module
Doing non-kernel setup of the Guest Additions
You should restart your guest to make sure the new modules are actually used.
Could not find the X.org or XFree86 Window System.([color=red]因为是Server版本,因此不存在X Window System[/color])

[color=red]残留问题:[/color]Server版,由于没有安装桌面,虚拟机分辨率自动调整不起作用,又不能翻页回去看命令行的历史输出结果,难道非要用putty?
一个命令输出内容多于一屏时,使用more来分屏显示 如 fdisk -l | more
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值