centos 安装 virtualBox 再安装 centos

1.
VBoxManage list ostypes
VBoxManage createvm --name centos7 --ostype Linux26_64 --register --basefolder /home/virtualbox/

2.
/home/virtualbox
VBoxManage createvdi --filename /home/virtualbox/centos7.vdi --size 40000

3.
VBoxManage storagectl centos7 --name storage_controller_1 --add ide

4.
VBoxManage storageattach centos7 --storagectl storage_controller_1 --type hdd --port 0 --device 0 --medium /home/virtualbox/centos7.vdi

5.
VBoxManage storageattach centos7 --storagectl storage_controller_1 --type dvddrive --port 1 --device 0 --medium /home/download/VirtualBox/CentOS-7-x86_64-Minimal-1804.iso

6.
VBoxManage modifyvm centos7 --boot1 dvd
VBoxManage modifyvm centos7 --boot2 disk

7.
VBoxManage modifyvm centos7 --nic1 bridged --cableconnected1 on --nictype1 82540EM --bridgeadapter1 p2p1 --intnet1 brigh1 --macaddress1 auto

8.
VBoxManage modifyvm centos7 --vrde on
off

9.
VBoxManage modifyvm centos7 --memory 8192
VBoxManage modifyvm centos7 --cpus 2

10.
VBoxHeadless -startvm centos7 &


ps: yum -y install kernel

猜你喜欢

转载自www.cnblogs.com/yako/p/9264912.html