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 ...
随机推荐
- kafka 命令行操作
1.创建主题(topic) bin/kafka-topics.sh --create --zookeeper m6:2181 --replication-factor 1 --partitions 1 ...
- chrome浏览器不允许记忆登录账户的方法
autocomplete方法 https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_ ...
- Android布局
android:gravity="center" android:orientation="vertical" android:orientation=&quo ...
- 全网扫描扫描10000端口后的优化脚本&域名列表指定端口的批量测试
方法一: #coding=utf-8 import urllib2 import threading from time import ctime,sleep print "Start-Ti ...
- 教你快速高效接入SDK——总体思路和架构
题记:很多做游戏开发的人,估计都或多或少地接过渠道SDK,什么UC,当乐,91,小米,360......据统计国内市场当前不下于100家渠道,还包括一些没有SDK的小渠道.每个渠道SDK接入的方法呢, ...
- html5,output标签应用举例
<form action="" id="myform" oninput="num.value=parseInt(num1.value)+pars ...
- 获取dll中根目录
AppDomain.CurrentDomain.BaseDirectory获取当前应用程序域的基目录 好像是万能的:form:可执行文件路径控制台:输出路径web:根目录
- XAF去掉View页面的编辑器
如图,去掉该编辑器功能. 1.detailView protected override void OnActivated() { base.OnActivat ...
- JS事件整理
onclick 鼠标点击事件 ondblclick 鼠标双击事件 onmouseover 鼠标移入事件 onmouseout 鼠标移出事件 onmousedown 鼠标按下事件 onmousemove ...
- Team Queue (uva540 队列模拟)
Team Queue Queues and Priority Queues are data structures which are known to most computer scientist ...