Created
March 12, 2017 11:42
-
-
Save tetsuyainfra/de1c55ca656f662b53a922cb52fe40d7 to your computer and use it in GitHub Desktop.
virt-sysprep virt-cloneのメモ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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