#!/bin/sh cd /Users/wangzhiwei/Documents/virtual VBoxManage createvm --name "k8s-master-1" --ostype Ubuntu_64 --register VBoxManage modifyvm "k8s-master-1" --memory 4096 --acpi on --boot1 dvd --nic1 bridged VBoxManage createhd --filename "k8s-master-1/CentOS.vdi" --size 20480 VBoxManage storagectl "k8s-master-1" --name "SATA" --add sata --controller IntelAHCI VBoxManage storageattach "k8s-master-1" --storagectl "SATA" --port 0 --device 0 --type dvddrive --medium CentOS-7-x86_64-DVD-2009.iso VBoxManage storageattach "k8s-master-1" --storagectl "SATA" --port 1 --device 0 --type hdd --medium k8s-master-1/CentOS.vdi VBoxManage modifyvm "k8s-master-1" --nic1 hostonly --hostonlyadapter1 vboxnet0 --macaddress1=08002786F756 VBoxManage modifyvm "k8s-master-1" --nic2 natnetwork --nat-network2 cluster --macaddress2=0800273E40E2 VBoxManage modifyvm "k8s-master-1" --graphicscontroller vmsvga
|