2022-06-25 11:39:12 +02:00
|
|
|
---
|
|
|
|
title: VMware
|
2022-11-19 15:25:20 +01:00
|
|
|
visible: true
|
2022-06-25 11:39:12 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
[toc]
|
|
|
|
## Host
|
|
|
|
### Networking for nested VMs
|
|
|
|
To pass through the network connection to nested VMs, the first VM has to put the network adapter into promiscuous mode.
|
|
|
|
By default only root is allowed to do that, however the permissions can also be granted to others.
|
|
|
|
|
|
|
|
Grant permission to group:
|
|
|
|
```
|
|
|
|
# chgpr (group) /dev/vmnetX
|
|
|
|
# chmod g+rw /dev/vmnetX
|
|
|
|
```
|
|
|
|
|
|
|
|
Grant permission to everyone:
|
|
|
|
`# chmod a+rw /dev/vmnetX`
|
|
|
|
|
|
|
|
### Allow nested VMs
|
|
|
|
Enable the following two settings under "Processor" in the settings of the VM.
|
|
|
|
`Virtualize Intel VT-x/EPT or AMD-V/RVI`
|
|
|
|
`Virtualize CPU performance counters`
|
|
|
|
|
|
|
|
### Fix MSRS bug on Ryzen CPUs
|
|
|
|
Add `kvm.ignore_msrs=1` in `/etc/default/grub` to `GRUB_CMDLINE_LINUX_DEFAULT=`
|
|
|
|
Update the Grub configuration
|
|
|
|
`# grub-mkconfig -o /boot/grub/grub.cfg`
|
|
|
|
|
|
|
|
## Guest
|
|
|
|
### VMWare Tools
|
|
|
|
**Debian**
|
|
|
|
`# apt install open-vm-tools`
|
|
|
|
**Arch**
|
2022-11-19 15:25:20 +01:00
|
|
|
`# pacman -S open-vm-tools`
|