-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvmware.txt
164 lines (112 loc) · 4.09 KB
/
vmware.txt
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
======
VMWare
======
Fix Segmentation fault on 5.8+ Kernel
-------------------------------------
VMWare v15.5.7 does not work with Linux Kernel 5.8+. To resolve issue, do following::
git clone https://github.com/mkubecek/vmware-host-modules.git
cd vmware-host-modules/
git checkout workstation-15.5.7
git pull
make
sudo make install
sudo /etc/init.d/vmware restart
sudo nano /usr/bin/vmware
# Replace this:
if "$BINDIR"/vmware-modconfig --appname="VMware Workstation" --icon="vmware-workstation" &&
vmware_module_exists $vmmon; then
exec "$libdir"/bin/"vmware" "$@"
fi
# With this:
if vmware_module_exists $vmmon; then
exec "$libdir"/bin/"vmware" "$@"
fi
Networking
----------
Permanent IP address/etc/vmware/vmnet8/dhcpd.conf::
host test {
hardware ethernet 0:50:56:21:49:12;
fixed-address 192.168.65.111;
}
Custom domain name networking_config::
...
VNET_8_DHCP_PARAM_DOMAIN_NAME "example.net"
...
## Migrate config
# vmware-networks --migrate-network-settings networking_config
VMWare VM configuration
-----------------------
VM config file::
# CD-ROM prefferences
sata0:1.present = "TRUE"
sata0:1.fileName = "/root/tmp/unlocker-master/tools/darwin.iso"
sata0:1.deviceType = "cdrom-image"
# disable VMWare tools time sync
tools.syncTime = "FALSE"
# disable gathering debugging information
vmx.buildType = "release"
# disable page sharing
sched.mem.pshare.enable = "FALSE"
# disable memory tremming
MemTrimRate = "0"
# disable isolation tools (drug and drop, etc)
isolation.tools.copy.disable = "TRUE"
isolation.tools.dnd.disable = "TRUE"
isolation.tools.paste.disable = "TRUE"
# enable pass CPU performance countes to guest
vpmc.enable = "TRUE"
# enable virtual machine execution mode to VT-x/EPT or AMD-RVI (run virtual machines virtual machine - allow nested virtualization)
vhv.enable = "TRUE"
# Virtualization engine mode
#
# Intel VT-x or AMD-V
monitor.virtual_mmu = "software"
monitor.virtual_exec = "hardware"
#
# Automatic
monitor.virtual_mmu = "automatic"
monitor.virtual_exec = "automatic"
#
# Intel VT-x/EPT or AMD-RVI
monitor.virtual_mmu = "hardware"
monitor.virtual_exec = "hardware"
Linux installation
------------------
https://pubs.vmware.com/workstation-12/index.jsp#com.vmware.ws.using.doc/GUID-1F5B1F14-A586-4A56-83FA-2E7D8333D5CA.html
::
sh VMware-Workstation.bundle --console --custom --eulas-agreed --set-setting=vmware-workstation serialNumber <SN>
--required # silent installation
# deafults:
# /var/lib/vmware/Shared VMs
# if linux without graphic
apt install xfonts-base libxinerama-dev libxcursor-dev libxtst-dev
# uninstall command
vmware-installer -u vmware-workstation
VMWare command line
-------------------
::
# increase virtual disk space (shut down VM, make sure that there are no snapshots)
vmware-vdiskmanager -x <VALUE>GB <path_to.vmdk>
# show running VM's
vmrun list
# start VM in background
# If "Error: The file is already in use vmrun" delete *.lck dir (may be happen if vm was moved)
vmrun start <path_to_vmx> [gui|nogui]
# stop VM
stop <path_to_vmx> [hard|soft]
# clonning VM
vmrun clone <path_to_vmx> <path_to_dest_vmx> full|linked [-snapshot=from_snapshot_name] [-cloneName=Name]
# open GUI net configuration
vmware-netcfg
# NAT config (port forwarding, etc.)
/etc/vmware/vmnet8/nat/nat.conf
# reload network (apply network config changes)
vmware-networks --stop && vmware-networks --start
# create cnapshot
vmrun snapshot <path_to.vmx> <snapshot_name>
# show snapshots
vmrun listSnapshots <path_to.vmx> [showTree]
# set VM state to a snapshot
vmrun revertToSnapshot <path_to.vmx> <snapshot_name>
# remove a snapshot from a VM
vmrun deleteSnapshot <path_to.vmx> <snapshot_name> [andDeleteChildren]