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
- application security
- endpoint security
- Kibana
- 로그인불가
- Windows
- pfsense
- XCP-ng
- centos 8
- ELASTIC
- bash
- GitLab
- Elasticsearch
- Proxy
- ansible
- Kibana server is not ready yet
- 보안양파
- hardening
- xe guest utilities
- docker
- PlayBook
- elastic stack
- G-suite
- 한글가이드
- macos
- freebsd
- proxycfg
- ssh key 배포
- x-pack
- miniconda
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