#参考资料
###下载单个文件,默认将输出打印到标准输出中(STDOUT)中
curl http://www.centos.org
virt-install \ | |
--name=centos-compute-$i \ | |
--ram=32768 \ | |
--vcpus=16 \ | |
--cpu host-model-only \ | |
--os-type linux \ | |
--os-variant centos7.0 \ | |
--import \ | |
--disk path=/var/lib/libvirt/images/centos74-compute-$i.qcow2,bus=virtio,cache=none,format=qcow2,bus=virtio \ | |
--network type=direct,source=enp6s0f0,source_mode=bridge,model=virtio \ |
#参考资料
###下载单个文件,默认将输出打印到标准输出中(STDOUT)中
curl http://www.centos.org
echo "192.168.121.9 centos-master | |
192.168.121.65 centos-minion" >> /etc/hosts |
google镜像仓库
deb http://mirrors.aliyun.com/ubuntu bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu bionic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ bionic partner
Important: I'm writing this when the last version of macOS (and the one I have installed) is Mojave. There is already a script which installs Mojave in a virtual machine here https://github.com/img2tab/okiomov. But if you are curios how to do everything manually to install High Sierra, then this guide may be useful.
After reading a few articles I ended up with these steps:
Run powershell as administrator: | |
-posh-gvm installation: | |
Execute (new-object Net.WebClient).DownloadString('https://raw.githubusercontent.com/flofreud/posh-gvm/master/GetPoshGvm.ps1') | iex | |
Execute Import-Module posh-gvm | |
// if you have problems with execution policy (https://msdn.microsoft.com/powershell/reference/5.1/Microsoft.PowerShell.Core/about/about_Execution_Policies) | |
// Set-ExecutionPolicy RemoteSigned -Scope CurrentUser | |
// later return to old value | |
Execute gvm help to get started! | |
-sdkman installation: |