Category Archives: Virtualization

Vmware ESXI vmdk Tanım Dosyasını Yeniden Oluşturma

Vmware ESXI Vmname-disk-1.vmdk Tanım Dosyasını Yeniden Oluşturma # cd /vmfs/volumes/myvmfsvolume/mydir # ls -l vmdisk0-flat.vmdk -rw——- 1 root root 4294967296 Oct 11 12:30 vmdisk0-flat.vmdk # vmkfstools -c 4294967296 -d thin temp.vmdk # vi temp.vmdk change line “temp.vmdk” to “vmname-flat.vmdk” Rename temp.vmdk to the name that is required to match the orphaned -flat file (or vmdisk0.vmdk , in this example): # mv… Read more »

Vmware CLI Value Commands

      Yorum yok Vmware CLI Value Commands

VM Power CLI Connect-VIServer -Server 10.200.115.15 Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false Set-PowerCLIConfiguration -Scope User -InvalidCertificateAction warn ESXI host Register VM find /vmfs/volumes/5e663972-baa48407-c77d-ac162d8cfb90 -name “*.vmx” -exec vim-cmd solo/registervm {} \; ESXi Register all VMs on a single datastore. ~ # find /vmfs/volumes/<datastorename>/ -maxdepth 2 -name ‘*.vmx’ -exec vim-cmd solo/registervm “{}” \; Register all VMs on all datastores. ~ # find /vmfs/volumes/ -maxdepth… Read more »

ESX Root Password Change

      Yorum yok ESX Root Password Change

ESX Root Password Change Fat16 (~150mb used /boot volume under) sudo -s mount /dev/sda5 /mnt cd /mnt ls cp state.tgz /tmp cd /tmp tar xzf state.tgz ls tar xzf local.tgz ls cd /tmp/etc vi shadow trim root line this value root::13358:0:99999:7::: cd .. tar czf local.tgz etc tar czf state.tgz local.tgz cp state.tgz /mnt/ umount /mnt

Hyper-V Value Commands

      Yorum yok Hyper-V Value Commands

Hyper-V Value Commands Get-VM –ComputerName (Get-ClusterNode –Cluster HYPERVCLUSTER) Get-ClusterNode | select Name Get-VM -ClusterObject (Get-ClusterResource | where ResourceType -eq “Virtual Machine”) Get-VM –ComputerName (Get-ClusterNode –Cluster HYPERVCLUSTER) Get-VM –computername ‘Contos-HyperV-1’ | EXPORT-CSV C:PowershellVMlist.csv Get-WmiObject -class MSFC_FCAdapterHBAAttributes -namespace “root\WMI” | ForEach-Object {(($_.NodeWWN) | ForEach-Object {“{0:x}” -f $_}) -join “:”} Get-VM * |sort-object| ft -auto Name,path,configurationlocation,snapshotfilelocation,@{L=”Disks”;E={$_.harddrives.path}} Get-VM –ComputerName (Get-ClusterNode –Cluster HYPERVCLUSTER) * |sort-object|… Read more »