Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
Tags
- G-suite
- Kibana server is not ready yet
- miniconda
- pfsense
- PlayBook
- ssh key 배포
- elastic stack
- Windows
- endpoint security
- docker
- 한글가이드
- application security
- macos
- Proxy
- XCP-ng
- Kibana
- hardening
- centos 8
- xe guest utilities
- ansible
- 보안양파
- bash
- Elasticsearch
- freebsd
- x-pack
- GitLab
- 로그인불가
- proxycfg
- ELASTIC
Archives
- Today
- Total
선 밖에 선 자유인
VMware ESXi 간단한 VM Copy script 본문
#!/bin/sh
echo -e "OLD : \c"
read OLD
echo -e "NEW : \c"
read NEW
mkdir /vmfs/volumes/datastore1/${NEW}
vmkfstools -i "/vmfs/volumes/datastore1/${OLD}/${OLD}.vmdk" "/vmfs/volumes/datastore1/${NEW}/${NEW}.vmdk"
cp /vmfs/volumes/datastore1/${OLD}/${OLD}.vmx /vmfs/volumes/datastore1/${NEW}/${NEW}.vmx
cp /vmfs/volumes/datastore1/${OLD}/${OLD}.vmxf /vmfs/volumes/datastore1/${NEW}/${NEW}.vmxf
cp /vmfs/volumes/datastore1/${OLD}/${OLD}.vmsd /vmfs/volumes/datastore1/${NEW}/${NEW}.vmsd
sed -i "s/${OLD}/${NEW}/g" /vmfs/volumes/datastore1/${NEW}/${NEW}.vmx
vim-cmd solo/registervm /vmfs/volumes/datastore1/${NEW}/${NEW}.vmx
VMID=`vim-cmd vmsvc/getallvms | grep "${NEW}" | awk '{print $1}'`
Comments