Showing posts with label vmware. Show all posts
Showing posts with label vmware. Show all posts

03 January 2020

semak vmdk corrupt

Salah satu cara nak semak samada vmdk file corrupt atau tidak?

vmware-mount -p vmdk_file.vmdk


kalau ok, akan paparkan partition.
Nr      Start       Size Type Id Sytem
-- ---------- ---------- ---- -- ------------------------
 1       2048   10479616 BIOS  7 HPFS/NTFS


kalau masalah akan keluarkan paparan:
Failed to open disk: The specified file is not a virtual disk (16063)
Failed to get the list of partitions: The virtual disk specified is invalid.


On Windows:
c:\Program Files (x86)\VMware\VMware Workstation\vmware-vdiskmanager.exe" -e disk-4.vmdk
Disk chain is consistent.

>"c:\Program Files (x86)\VMware\VMware Workstation\vmware-vdiskmanager.exe" -e disk-3.vmdk
Failed to open the disk 'disk-3.vmdk' : The specified file is not a virtual disk (0x3ebf).

ref:

09 January 2019

kecilkan vmdk

utk guest linux
  - run vmImage tersebut
  - sudo vmware-toolbox-cmd disk list  # utk list senarai virtual disk
  - sudo vmware-toolbox-cmd shrink / # akan shrinkkan vmdk tersebut



utk bantuan
  - vmware-toolbox-cmd help disk

29 June 2018

mount LVM2 dalam vmdk


verified vmdk has lvm partition (8E)
# vmware-mount -p .vmdk
Nr      Start       Size Type Id Sytem
-- ---------- ---------- ---- -- ------------------------
 1         63     401562 BIOS 83 Linux
 2     401625   10072755 BIOS 8E Unknown


mount vmdk
# vmware-mount -f .vmdk 
# ls 
flat


Get offset of lv partition
# fdisk -lu /mnt/ROOT/flat

You can do this from the extra functions menu.

Disk /mnt/ROOT/flat: 0 MB, 0 bytes
255 heads, 63 sectors/track, 0 cylinders, total 0 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x0006a266

         Device Boot      Start         End      Blocks   Id  System
/mnt/ROOT/flat1   *          63      401624      200781   83  Linux
/mnt/ROOT/flat2          401625    10474379     5036377+  8e  Linux LVM


Calculate the offset
offset = 401625 * 512      #   >> 205632000   [1 sectors is 512 bytes]

mount to loop device
# losetup -o 205632000 /dev/loop0 /flat


display info
# pvdisplay /dev/loop0
  --- Physical volume ---
  PV Name               /dev/loop0
  VG Name               VolGroup00
  PV Size               4,80 GB / not usable 22,34 MB
  Allocatable           yes
  PE Size (KByte)       32768
  Total PE              153
  Free PE               1
  Allocated PE          152
  PV UUID               MUKx5v-ukpq-fJis-GjpB-Z7dE-nIsI-Xr4bYd


# lvscan
  ACTIVE            '/dev/vg1/isos' [111,79 GB] inherit
  ACTIVE            '/dev/vg0/root' [10,00 GB] inherit
  ACTIVE            '/dev/vg0/swap' [8,00 GB] inherit
  ACTIVE            '/dev/vg0/home' [50,00 GB] inherit
  ACTIVE            '/dev/vg0/data' [164,41 GB] inherit
  inactive          '/dev/VolGroup00/LogVol00' [4,00 GB] inherit
  inactive          '/dev/VolGroup00/LogVol01' [768,00 MB] inherit


incase not active, need to activate the lv
# lvchange -ay /dev/VolGroup00/LogVol00

then, can mount
# mount /dev/VolGroup00/LogVol00


to deactivate lv
# lvchange -an /dev/VolGroup00/LogVol00

to release loop device
# losetup -d /dev/loop0


unmount vmware disk
# vmware-mount -d 



ref: https://xliska.wordpress.com/2010/09/29/access-lvm2-partition-on-vmware-virtual-disk/

02 September 2014

install vmware workstation on 14.04 ubuntu

http://askubuntu.com/questions/449629/error-installing-vmware-workstation-on-ubuntu

20 August 2014

vCenter Server Web Service Restart

Kadang-kadang browser tak bleh buka https://vCenter.local/vsphere-client/

kena restart service berikut.

1) VMware VirtualCenter Server
2) VMware VirtualCenter Management Webservices (ini depend yg atas)

03 October 2013

vSphere, ESXi, vCenter

vSphere adalah suite(kombinasi pelbagai software). Macam Microsoft Suite, yg dalamnya ada word, excel, powerpoint etc.

ESX adalah server utk virtualization, boleh store vmImage

vSphere Client adalah console utk connect dan control ESX

vCenter server is similar to vSphere client but it’s a server with more power.
(contohnya nak cloning image)


ref:

18 January 2013

vSphere Client

isu permission:


setting ada 2 level,
1- Globally
2- pada Image tertentu sahaja.
Utk global, klik pada ip yg terdapat pada kolum kiri
Utk image tertentu, klik pada image tersebut.


Untuk set kan access, perlu 2 perkara(dalam tab):
1- Users & Group
2- Permission

Pertama, add user pada tab 'Users & Group'.
Kedua, add permission pada tab 'Permission'