pra não esquecer…

junho 30th, 2011

repositório de scripts esx

Posted by Felipe Olivaes in xalassa

http://communities.vmware.com/community/vmtn/server/vi?view=documents#/?per_page=50

junho 30th, 2011

vmktree

Posted by Felipe Olivaes in xalassa

monitoramento esx
http://vmktree.org/

junho 30th, 2011

clone

Posted by Felipe Olivaes in xalassa

Friday, May 20, 2011
Cloning virtual machine on vmware esx using vmware-cmd

Below are the steps:

1. List down all the virtual machines that you have

# /usr/bin/vmware-cmd -l
/vmfs/volumes/47971de9-34657d96-8ac4-001d09068c0c/server-1/server-1.vmx
/vmfs/volumes/47971de9-34657d96-8ac4-001d09068c0c/server-2/server-2.vmx
/vmfs/volumes/47971de9-34657d96-8ac4-001d09068c0c/server-3/server-3.vmx

2. Shutdown the machine that you are going to clone. Let say the machine is server-1

# /usr/bin/vmware-cmd /vmfs/volumes/47971de9-34657d96-8ac4-001d09068c0c/server-1/server-1.vmx stop

3. Use hard stop if you cannot stop it using above command

# /usr/bin/vmware-cmd /vmfs/volumes/47971de9-34657d96-8ac4-001d09068c0c/server-1/server-1.vmx stop hard

4. Make sure the vm is shutdown by viewing the state

# /usr/bin/vmware-cmd /vmfs/volumes/47971de9-34657d96-8ac4-001d09068c0c/server-1/server-1.vmx getstate

5. Copy the whole directory

# cp /vmfs/volumes/47971de9-34657d96-8ac4-001d09068c0c/server-1/ /vmfs/volumes/47971de9-34657d96-8ac4-001d09068c0c/newserver/

6. Once done, rename all the files to new name

# rename server-1 newserver /vmfs/volumes/47971de9-34657d96-8ac4-001d09068c0c/newserver/*

7. Change all occurrence of “server-1” to “newserver” in .vmx, .vmdk and .vmxf

# cd /vmfs/volumes/47971de9-34657d96-8ac4-001d09068c0c/newserver/
# sed -i ‘s/server-1/newserver/g’ {newserver.vmdk,newserver.vmx,newserver.vmxf}

8. Edit newserver.vmx file and remove below lines

ethernet0.generatedAddress = “…..”
ethernet0.generatedAddressOffset = “…..”
uuid.location = “…..”
uuid.bios = “…..”

9. Add below line to newserver.vmx

uuid.action = “keep”

10. Register your newly cloned virtual machine. Please use the full path to register as below

# vmware-cmd -s register /vmfs/volumes/47971de9-34657d96-8ac4-001d09068c0c/newserver/newserver.vmx

11. Start your new vm after registration.

# /usr/bin/vmware-cmd /vmfs/volumes/47971de9-34657d96-8ac4-001d09068c0c/newserver/newserver.vmx start

junho 27th, 2011

segurança

Posted by Felipe Olivaes in lighttpd, Linux, Windows

“The Suricata Engine is an Open Source Next Generation Intrusion Detection and Prevention Engine”

http://www.openinfosecfoundation.org/index.php/download-suricata

PArece interessante a ferramenta:

http://www.ossec.net/main/getting-started-with-ossec

Pelo que vi faz coisas como detecção de rootkit, bloqueio de webscanners, bloqueio contra tentativas de intrusao repetitivas, logs de alterações de arquivos, etc.

http://blog.alexos.com.br/?p=2650&lang=pt-br
http://blog.alexos.com.br/?p=2625&lang=pt-br

junho 22nd, 2011

linux, informações sobre falhas em disco

Posted by Felipe Olivaes in Linux

hdparm
smartctl –all /dev/sda

junho 17th, 2011

random em shell script

Posted by Felipe Olivaes in shell

echo “$((RANDOM % 60))”

dica do #cifali

junho 7th, 2011

expressões regulares

Posted by Felipe Olivaes in xalassa

http://www.spaweditor.com/scripts/regex/index.php

dica do braz




nuvem de tags:

24 horas acentuação Apache bash benchmark bios boot celular centos charset comando console Download esxi Firebird firefox http importação intel ipod kinghost legenda Linux lost mod_deflate msn mssql MySQL owner Padel PHP placa mãe portabilidade Postgre SQL recovery root password rewrite shell sinuca sql server svn temporada completa veronica mars vmware Windows ícones