Skip to content

Instantly share code, notes, and snippets.

@mamemomonga
Last active July 1, 2021 02:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mamemomonga/354c2997e029fbd55310a129e150aa31 to your computer and use it in GitHub Desktop.
Save mamemomonga/354c2997e029fbd55310a129e150aa31 to your computer and use it in GitHub Desktop.
ESXiで仮想マシンをクローンする例

ESXiで仮想マシンをクローンする例

  • vmware ESXi 7.0
  • データストアはdatastore1
  • debian10からdebian10-1 にコピーする
  • ディスクは1つ、EFIによるインストール
  • thinプロビジョニングに変更

ESXiのSSHコンソールにログインして作業を行う

$ cd /vmfs/volumes/datastore1
$ mkdir debian10-1
$ cd debian10-1
$ cp ../debian10/debian10.vmx .
$ cp ../debian10/debian10.nvram .
$ vmkfstools -i ../debian10/debian10.vmdk -d thin debian10.vmdk
$ vi debian10.vmx
displayName = "debian10-1" に書き換え
sched.swap.derivedName を削除
$ vim-cmd solo/registervm $(pwd)/debian10.vmx

vim-cmd solo/registervm で仮想マシンを登録している

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment