Category Archives: VMware
Hot adding memory in Linux
Hotplug enable olan bir Linux VM’de memory artırımını yaptıktan sonra bu artırım işleminin VM içinde aktif olması için aşağıdaki işlemleri yapmanız yeterlidir. Aşağıdaki komut ile state durumu offline olan kısımları buluyoruz.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
root@noroot:~# grep line /sys/devices/system/memory/*/state /sys/devices/system/memory/memory0/state:online /sys/devices/system/memory/memory100/state:online /sys/devices/system/memory/memory101/state:online /sys/devices/system/memory/memory102/state:online /sys/devices/system/memory/memory103/state:online /sys/devices/system/memory/memory104/state:online /sys/devices/system/memory/memory105/state:online /sys/devices/system/memory/memory106/state:offline /sys/devices/system/memory/memory107/state:online /sys/devices/system/memory/memory108/state:online /sys/devices/system/memory/memory109/state:online /sys/devices/system/memory/memory10/state:online /sys/devices/system/memory/memory110/state:online /sys/devices/system/memory/memory111/state:online /sys/devices/system/memory/memory112/state:online /sys/devices/system/memory/memory113/state:online |
Offline olan memory bölümlerini aşağıdaki komut ile online duruma getiriyoruz.
1 |
root@noroot:~# echo online >/sys/devices/system/memory/memory106/state |
Kontrolü için free -m
Use PowerCLI to find (and disconnect) all CD Drives on VMs
Move a Virtual Machine to a Different Datastore Using VMware vSphere Storage vMotion
Could not open /dev/vmmon: No such file or directory.Please make sure that the kernel module `vmmon’ is loaded.
Vmware-workstation içinde bulunan VM’i çalıştırdığınız zaman başlıkta belirtmiş olduğum hatayı aldığınız zaman aşağıdaki adımları izleyebilirsiniz. İlk aşamada root yetkisi ile aşağıdaki komutu çalıştırıyoruz. (vmware ile ilgili tüm process’lerin kapalı olması gerekiyor.)
1 |
sudo vmware-modconfig --console --install-all |
Komutu çalıştırdıktan sonra aşağıdaki çıktıyı görüyor olmanız gerekiyor.
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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
Stopping VMware services: VMware Authentication Daemon done VM communication interface socket family done Virtual machine communication interface done Virtual machine monitor done Blocking file system done make: Entering directory '/tmp/modconfig-Z7GyWv/vmmon-only' Using kernel build system. /usr/bin/make -C /lib/modules/4.8.0-45-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \ MODULEBUILDDIR= modules make[1]: Entering directory '/usr/src/linux-headers-4.8.0-45-generic' CC [M] /tmp/modconfig-Z7GyWv/vmmon-only/linux/driver.o CC [M] /tmp/modconfig-Z7GyWv/vmmon-only/linux/hostif.o CC [M] /tmp/modconfig-Z7GyWv/vmmon-only/linux/driverLog.o CC [M] /tmp/modconfig-Z7GyWv/vmmon-only/common/memtrack.o CC [M] /tmp/modconfig-Z7GyWv/vmmon-only/common/apic.o CC [M] /tmp/modconfig-Z7GyWv/vmmon-only/common/vmx86.o CC [M] /tmp/modconfig-Z7GyWv/vmmon-only/common/cpuid.o /tmp/modconfig-Z7GyWv/vmmon-only/linux/driver.c:1283:1: warning: always_inline function might not be inlinable [-Wattributes] LinuxDriverSyncReadTSCs(uint64 *delta) // OUT: TSC max - TSC min ^ CC [M] /tmp/modconfig-Z7GyWv/vmmon-only/common/task.o /tmp/modconfig-Z7GyWv/vmmon-only/linux/driver.c: In function ‘LinuxDriver_Ioctl’: /tmp/modconfig-Z7GyWv/vmmon-only/linux/driver.c:1981:1: warning: the frame size of 1168 bytes is larger than 1024 bytes [-Wframe-larger-than=] } ^ CC [M] /tmp/modconfig-Z7GyWv/vmmon-only/common/hashFunc.o CC [M] /tmp/modconfig-Z7GyWv/vmmon-only/common/comport.o CC [M] /tmp/modconfig-Z7GyWv/vmmon-only/common/phystrack.o CC [M] /tmp/modconfig-Z7GyWv/vmmon-only/vmcore/moduleloop.o LD [M] /tmp/modconfig-Z7GyWv/vmmon-only/vmmon.o Building modules, stage 2. MODPOST 1 modules CC /tmp/modconfig-Z7GyWv/vmmon-only/vmmon.mod.o LD [M] /tmp/modconfig-Z7GyWv/vmmon-only/vmmon.ko make[1]: Leaving directory '/usr/src/linux-headers-4.8.0-45-generic' /usr/bin/make -C $PWD SRCROOT=$PWD/. \ MODULEBUILDDIR= postbuild make[1]: Entering directory '/tmp/modconfig-Z7GyWv/vmmon-only' make[1]: 'postbuild' is up to date. make[1]: Leaving directory '/tmp/modconfig-Z7GyWv/vmmon-only' cp -f vmmon.ko ./../vmmon.o make: Leaving directory '/tmp/modconfig-Z7GyWv/vmmon-only' make: Entering directory '/tmp/modconfig-Z7GyWv/vmnet-only' Using kernel build system. /usr/bin/make -C /lib/modules/4.8.0-45-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \ MODULEBUILDDIR= modules make[1]: Entering directory '/usr/src/linux-headers-4.8.0-45-generic' CC [M] /tmp/modconfig-Z7GyWv/vmnet-only/driver.o CC [M] /tmp/modconfig-Z7GyWv/vmnet-only/hub.o CC [M] /tmp/modconfig-Z7GyWv/vmnet-only/netif.o CC [M] /tmp/modconfig-Z7GyWv/vmnet-only/userif.o In file included from ./include/linux/pci.h:35:0, from /tmp/modconfig-Z7GyWv/vmnet-only/compat_netdevice.h:27, from /tmp/modconfig-Z7GyWv/vmnet-only/netif.c:43: ./include/linux/pci_ids.h:2253:0: warning: "PCI_VENDOR_ID_VMWARE" redefined #define PCI_VENDOR_ID_VMWARE 0x15ad ^ In file included from /tmp/modconfig-Z7GyWv/vmnet-only/net.h:38:0, from /tmp/modconfig-Z7GyWv/vmnet-only/vnetInt.h:26, from /tmp/modconfig-Z7GyWv/vmnet-only/netif.c:42: /tmp/modconfig-Z7GyWv/vmnet-only/vm_device_version.h:56:0: note: this is the location of the previous definition #define PCI_VENDOR_ID_VMWARE 0x15AD ^ CC [M] /tmp/modconfig-Z7GyWv/vmnet-only/bridge.o CC [M] /tmp/modconfig-Z7GyWv/vmnet-only/procfs.o CC [M] /tmp/modconfig-Z7GyWv/vmnet-only/smac_compat.o CC [M] /tmp/modconfig-Z7GyWv/vmnet-only/smac.o In file included from /tmp/modconfig-Z7GyWv/vmnet-only/net.h:38:0, from /tmp/modconfig-Z7GyWv/vmnet-only/vnetInt.h:26, from /tmp/modconfig-Z7GyWv/vmnet-only/bridge.c:52: /tmp/modconfig-Z7GyWv/vmnet-only/vm_device_version.h:56:0: warning: "PCI_VENDOR_ID_VMWARE" redefined #define PCI_VENDOR_ID_VMWARE 0x15AD ^ In file included from ./include/linux/pci.h:35:0, from /tmp/modconfig-Z7GyWv/vmnet-only/compat_netdevice.h:27, from /tmp/modconfig-Z7GyWv/vmnet-only/bridge.c:51: ./include/linux/pci_ids.h:2253:0: note: this is the location of the previous definition #define PCI_VENDOR_ID_VMWARE 0x15ad ^ CC [M] /tmp/modconfig-Z7GyWv/vmnet-only/vnetEvent.o CC [M] /tmp/modconfig-Z7GyWv/vmnet-only/vnetUserListener.o LD [M] /tmp/modconfig-Z7GyWv/vmnet-only/vmnet.o Building modules, stage 2. MODPOST 1 modules CC /tmp/modconfig-Z7GyWv/vmnet-only/vmnet.mod.o LD [M] /tmp/modconfig-Z7GyWv/vmnet-only/vmnet.ko make[1]: Leaving directory '/usr/src/linux-headers-4.8.0-45-generic' /usr/bin/make -C $PWD SRCROOT=$PWD/. \ MODULEBUILDDIR= postbuild make[1]: Entering directory '/tmp/modconfig-Z7GyWv/vmnet-only' make[1]: 'postbuild' is up to date. make[1]: Leaving directory '/tmp/modconfig-Z7GyWv/vmnet-only' cp -f vmnet.ko ./../vmnet.o make: Leaving directory '/tmp/modconfig-Z7GyWv/vmnet-only' Starting VMware services: Virtual machine monitor done Virtual machine communication interface done VM communication interface socket family done Blocking file system done Virtual ethernet done VMware Authentication Daemon done Shared Memory Available done |
Bu işlemi yaptıktan sonra vmware-workstation’ı tekrar çalıştırıp kullanmaya devam edebilirsiniz.