Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tetsuyainfra/de1c55ca656f662b53a922cb52fe40d7 to your computer and use it in GitHub Desktop.
Save tetsuyainfra/de1c55ca656f662b53a922cb52fe40d7 to your computer and use it in GitHub Desktop.
virt-sysprep virt-cloneのメモ
### virt-sysprep
- ディスクイメージへの書き込み権限が必要
# リスト表示
virt-sysprep --list-operations
# 一部だけ
virt-sysprep --enable ssh-hostkeys,udev-persistent-net -d centos7core
# 全部
virt-sysprep -d centos7core
### virt-clone
virt-clone --original centos7core --name centos7worker0 --file /var/lib/libvirt/centos7worker0_hda.qcow2
virt-clone -o centos7core -n centos7worker0 --file /var/lib/libvirt/centos7worker0_hda.qcow2
virt-clone -o centos7mini -n work0 --file /ztank/libvirt/images/work0_hda.qcow2
### 起動前に編集する場合次のコマンドを使っても良い
- virt-edit
- virt-cp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment