centos 装VBOX
#cd /etc/yum.repos.d/
wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo
yum install kernel-devel dkms.noarch
yum install VirtualBox-4.1
service vboxdrv start #运行后,如果内核不支持会更新内核
download : Oracle_VM_VirtualBox_Extension_Pack-4.1.34-95024.vbox-extpack
#安装扩展,不然命令看不见安装的虚拟机
VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.1.34-95024.vbox-extpack
#查看当前已启动的虚拟机
VBoxManage list runningvms
#显示操作系统ID,下面用到
VBoxManage list ostypes
#删除虚拟机
VBoxManage unregistervm -delete win08
#安装WIN系统
#创建硬盘
VBoxManage createvdi --filename /var/vbox/win08/win08.vdi --size 20000
#创建虚拟机
VBoxManage createvm --name win08 --ostype Windows2008_64 --register --basefolder /var/vbox/win08/
#修改配置
VBoxManage modifyvm win08 --memory 1024 --accelerate3d off --nic1 bridged --bridgeadapter1 eth1
#加IDE
VBoxManage storagectl win08 --name IDE --add ide --controller PIIX4 --bootable on
#加硬盘
VBoxManage storageattach win08 --storagectl IDE --type hdd --port 0 --device 0 --medium /var/vbox/win08/win08.vdi
#加光驱
VBoxManage storageattach win08 --storagectl IDE --port 1 --device 0 --type dvddrive --medium /root/cdrom/win2008-64.iso
#硬件引导设置
VBoxManage modifyvm win08 --boot1 dvd
#系统搞定后设置从硬盘启动
#VBoxManage modifyvm win08 --boot1 disk
#启用远程桌面
vboxmanage modifyvm win08 --vrde on --vrdeport 9003
#系统搞定后可以关掉
#vboxmanage modifyvm win08 --vrde off
#后台运行
VBoxManage startvm win08 --type headless
#关闭电源
VBoxManage controlvm win08 poweroff
#安装CENTOS系统
#以下解释同上
VBoxManage createvdi --filename /var/vbox/cen/cen64.vdi --size 10000
VBoxManage createvm --name cen64 --ostype Linux26_64 --register --basefolder /var/vbox/cen/
VBoxManage modifyvm cen64 --memory 512 --accelerate3d off --nic1 bridged --bridgeadapter1 eth1
VBoxManage storagectl cen64 --name IDE --add ide --controller PIIX4 --bootable on
VBoxManage storageattach cen64 --storagectl IDE --port 0 --device 0 --type hdd --medium /var/vbox/cen/cen64.vdi
VBoxManage storageattach cen64 --storagectl IDE --port 1 --device 0 --type dvddrive --medium /root/cdrom/centos-64.iso
#硬件引导设置
VBoxManage modifyvm cen64 --boot1 dvd
#系统搞定后设置从硬盘启动
#VBoxManage modifyvm cen64 --boot1 disk
#启用远程桌面
vboxmanage modifyvm cen64 --vrde on --vrdeport 9002
#系统搞定后可以关掉
#vboxmanage modifyvm cen64 --vrde off
#后台运行
VBoxManage startvm cen64 --type headless
#关闭电源
VBoxManage controlvm cen64 poweroff
centos 装VBOX的更多相关文章
- centos 装iptraf查看网络流量
今天在测试服务器上准备看下网络流量 [root@localhost ~]# iptraf -d eth0-bash: iptraf: command not found 发现运维同事没有给安装 只能自 ...
- centos安装vbox addition
在centos下安装vbox addition需要下载当前内核的头文件 yum install kernel-devel 但是下载了头文件后,仍然失败,原来是下载的头文件与当前的内核版本不对应, 于是 ...
- Centos 装系统 配置网卡,校准时间
Vclient -控制台: 1.编辑网卡,第一块为外网,第二块为内网 #vi /etc/sysconfig/network-scripts/ifcfg-ens160 TYPE=Ethernet NAM ...
- centos 装 android studio (2)
这里,我打算安装 JDK 1.8. $ sudo add-apt-repository ppa:webupd8team/java $ sudoapt-get update $ sudoapt-get ...
- linux centos 装g++安装不了
今天需要编译一个项目的时候在装g++都装不上, [root@master hadoop]# yum install g++ Loaded plugins: fastestmirror, refresh ...
- centos装openoffice
一.安装openOffice1.使用tar -xzvf OOo_3.2.0_LinuxIntel_install_wJRE_en-US.tar.gz解压缩后,会得到OOO320_m12_native_ ...
- 给centos装图形界面 widowsx
检查Linux系统是否能够联网. 执行命令 yum -y groupinstall Desktop 等上面的命令执行完后,再执行这条命令 yum -y groupinstall "X ...
- CentOS装个NTP时间同步服务器
服务端: driftfile /var/lib/ntp/drift restrict default nomodify notrap nopeer noquery restrict 127.0.0.1 ...
- CentOS 装hadoop3.0.3 版本踩坑
1.but there is no HDFS_NAMENODE_USER defined. Aborting operation. [root@xcff sbin]# ./start-dfs.sh S ...
随机推荐
- LUA表克隆方法归纳
lua表克隆 将lua一个表, 克隆出一份为一个独立的另外一个表. 对于一个module, 如果在require之后,获得的表对象, 不能直接修改, 例如lua缓存此表, 但是多次逻辑执行, 都使用的 ...
- Java反射与动态代理
Java反射机制可以动态地获取类的结构,动态地调用对象的方法,是java语言一个动态化的机制.java动态代理可以在不改变被调用对象源码的前提下,在被调用方法前后增加自己的操作,极大地降低了模块之间的 ...
- Asp.Net alert 方法
public static void ExcuteAlert(Page page, string strAlerts) { ClientScriptManager ...
- Unity Tidy Tile Pack #1
https://www.assetstore.unity3d.com/cn/#!/content/3276 版本: 1.1 下载地址 密码:mt8a
- C++用递归方式实现在对不更改随机数组的情况下查找最大值
#include <iostream> #include <iomanip> #include <ctime> using namespace std; int M ...
- webApp 开发技术要点总结
如果你是一名前端er,又想在移动设备上开发出自己的应用,那怎么实现呢?幸好,webkit内核的浏览器能帮助我们完成这一切.接触 webkit webapp的开发已经有一段时间了,现把一些技巧分享给大家 ...
- window.event对象详尽解析
event代表事件的状态,例如触发event对象的元素.鼠标的位置及状态.按下的键等等. event对象只在事件发生的过程中才有效. event的某些属性只对特定的事件有意义.比如,fromEleme ...
- Windows Azure Table storage 之 动态Table类 DynamicTableEntity
在一般情况下,当我们在.net中使用Azure table storage的时候都会为该表建立一个TableEntity的派生类,如下所示. public class CustomerEntity : ...
- s3c2440 移值u-boot-2016.03 第1篇 新建单板
目前除RC版外,最新的就是 u-boot-2016.03.tar.bz2 ,大概看了几个年份的u-boot 发现,现在 更像是 linux kernel .有 menuconfig . 对比2012年 ...
- Mac下面的SecureCRT(附破解方案) 更新到最新的8.0.2
继续更新到8.0.2的破解,整体的破解方案都发生了的变化首先还是去 http://macabc.com/detail.htm?app_id=24 下载最新的8.0.2介于很多小白说替换之后说文件损坏, ...