- Установка VMware Tools на виртуальную машину Linux
- Способы установки
- Метод ISO
- Установка open-vm-tools из репозитория
- VMware
- Содержание
- DISCLAIMER
- Important kernel precaution
- Building steps
- Optional services
- VMware
- Содержание
- DISCLAIMER
- Important kernel precaution
- Building steps
- Optional services
- Manjaro 18 in VMware Workstation 15 Review
- Creating the Virtual Machine
- Vmware для linux manjaro
Установка VMware Tools на виртуальную машину Linux
В этой статье мы рассмотрим, как развернуть VMware Tools на виртуальных машинах Linux. Развертывание VMTools в гостевой операционной системе виртуальной машины повышает их производительность и управляемость. С VMTools некоторые из драйверов, включенных в ОС, заменяются на оптимизированный для виртуализации версии; одним из таких примеров является драйвер vmxnet3. Кроме того, VMTools обеспечивают фреймворки API, такие как VIX, позволяющие программное управление виртуальными машинами, а также раскрытие информации виртуальной машины, например, IP-адреса при использовании клиентов для vSphere.
VMware Tools поддерживается на 32-разрядных и 64-разрядных операционных системах, включая Microsoft,Apple, NetWare, Солярис, redhat и другие. Руководство по совместимости гостевой ОС предоставляет полный список поддерживаемых гостевых операционных систем вместе с поддерживаемыми функциями VMware Tools. Мы покажем, как развернуть VMware Tools на двух дистрибутивах Linux, а именно в CentOS и Debian.
Способы установки
В зависимости от дистрибутива Linux, существует несколько методов установки VMware Tools. Первый и наиболее часто используемый метод — установка с ISO. ISO-файл, содержащий двоичные файлы vmtools (установочные файлы, скрипты и т. д.) монтируется в виртуальный CD-ROM с гостевого меню виртуальной машины. После этого vmtools устанавливаются путем выполнения Perl-скрипта.
Другой популярный метод, который все больше набирает обороты, это Open-VM-Tools (OVT) от VMware. Это позволяет vmtools автоматически настраиваться во время установки ОС. В качестве альтернативы они могут быть установлены на более поздней с использованием ОС или из хранилища с помощью пакета инструментов управления, таких как YUM или APT.
На февраль 2016 дистрибутивы Linux, поддерживающие OVT, таковы;
- Fedora 19 и более поздние версии;
- Debian 7.x и более поздние версии;
- openSUSE 11.x и более поздние версии;
- Весрии Ubuntu (12.04 LTS, 13.10 и более поздние)
- Red Hat Enterprise Linux 7.0 и более поздние версии;
- CentOS 7.0 и более поздние версии;
- Oracle Linux 7.0 и более поздние версии;
- SUSE Linux Enterprise 12 и более поздние версии.
Метод ISO
Расскажем об обоих методах, начав с ISO. Чтобы проиллюстрировать процесс развертывания, сначала развернем vmtools на виртуальной машине Centos 6.x 32. Как видно на рисунке, изначально vmtools не развертывались на виртуальных машинах.
Рисунок 1 — CentOS ВМ без vmtools
Чтобы приступить к установке, щелкните правой кнопкой мыши на имени виртуальной машины, выберите «Guest» и нажмите «Install/Upgrade VMware Tools». Нажмите OK для подтверждения.
Рисунок 2 — Начало процесса установки vmtools
Что происходит: соответствующий образ ISO монтируется для дистрибутива Linux, на который вы хотите установить vmtools. Для этого убедитесь в том, что для виртуальной машины была выбрана правильная операционная система. Для этого проверьте тип операционной системы в свойствах ВМ (рис. 3). Вы должны выключить ВМ, если будете менять неправильный тип ОС.
Рисунок 3 — Проверка типа ОС
Как только это сделано, залогиньтесь как администратор и выполните последующие действия и запустите команды. В зависимости от дистрибутива, некоторые шаги могут несущественно отличаться.
Создайте папку и смонтируйте ISO-образ.
Рисунок 4 — Создание ISO-образа
Затем распакуйте архив vmtools и скопируйте папки в Temp.
Рисунок 5 — Извлечение папок vmtools
Как это иногда бывает, могут быть обнаружены отсутствующие зависимости, особенно на свежеустановленных виртуальных машинах. Например, нам сначала пришлось выполнить следующую команду, чтобы извлечь YUM и установить пакеты (рис. 6), необходимые для обеспечения успешной установки vmtools.
Рисунок 6 — Установка отсутствующих зависимостей
Теперь перейдите в папку /tmp и запустите скрипт установки Perl. Следует включить параметры по умолчанию, если вы не собираетесь настроить процесс установки вручную.
Рисунок 7 — Установка vmtools с использованием скрипта Perl
Рисунок 8 — Завершение процесса выполнения скрипта Perl
Проверить, завершился ли процесс установки, можно просмотрев статус VMware Tools в клиенте vSphere (Рисунок 9).
Рисунок 9 — vmtools установлены правильно
Иногда, в зависимости от выбранного дистрибутива Linux и его конфигурации, вы можете встретить ошибку компилятора во время выполнения скрипта установки Perl.
Следующий шаг является необязательным, но если у вас есть непреодолимая потребность держать все в строжайшем порядке, вы можете выполнить следующие команды, чтобы очистить лишние файлы установки:
» Видео показывает весь описанный здесь процесс: смотреть
Установка open-vm-tools из репозитория
В этом примере мы устанавливаем open-vm-tools на дистрибутив Debian 8 64-бит. Отличный пример есть на сайте VMware, поэтому мы не будем изобретать велосипед и покажем процесс установки в видео.
При установке OVT можно заметить, что статус vmtools показывается как «Running (Guest Managed)», как показано на рисунке 10. Для сторонних vmtools статус будет «Running (3rd-party/Independent)». Это нормально и ожидаемо от OSP (Operating System Specific Packages), использующих базовое ПО и механизмы установки на гостевых ОС для обновления vmtools.
Источник
VMware
Содержание
DISCLAIMER
VMware is a commercially developed application with a limited list of supported operating systems.
This guide is a courtesy to the forum don’t expect any support on VMware related issues.
As you can see from above reference — Archlinux and derivatives are unsupported platforms for running VMware products and as such it is unsupported on Manjaro.
So even when it is possible to install and run VMware on Manjaro — **do not expect support** on configuration of virtual machines or system issues arising from your VMware installation. You must have the required level of troubleshooting skills to solve these when they arise — and they will.
- If you need help configuring vmware virtual machines — your should look in the VMware documentation.
- If you need help troubleshooting installation issues — use the comment section for the AUR PKGBUILD
There is a lot of AUR helpers and they all mimic what you should do manually — the Arch way is usually the best way.
Important kernel precaution
The AUR PKGBUILD is created for Archlinux and therefore the kernel headers dependency must be solved manually on Manjaro. Archlinux only have two kernel versions — linux and linux-lts.
Archlinux kernels follow the release schedule on kernel.org and on Manjaro you will need to use the same kernel versions which — at the time of writing in March 2021 — is (check with https://kernel.org if in doubt)
Using other kernels — like 5.4LTS — will most likely fail.
Building steps
1. Update your system and install the necessary build tools
2. Then check your kernel version(s) — example — remember to use the same version as Arch
3. Then install the headers for your kernel(s) and dkms. Substitute $KERNELXYY with your currently running kernel
4. Clone the PKGBUILKD script
/vmware-workstation COPY TO CLIPBOARD
5. Familiarize yourself with the content — it is all text files and you should read them and verify what they are doing.
/vmware-workstation COPY TO CLIPBOARD
6. When you are satisfied — cd into the folder
/vmware-workstation COPY TO CLIPBOARD
7. Run makepkg to install dependencies, build and install the package.
The installer will write messages in the terminal on what to do next — follow the directions to load the kernel modules and enable vmware network service and usb service as needed.
Optional services
There are three services that can be optionally be enabled:
- vmware-networks.service: Provides network access inside VMs, most people will want this enabled
- vmware-usbarbitrator.service: Allows USB devices to be connected inside VMs
- vmware-hostd.service: Enables sharing of VMs on the network
To start and enable vmware network
To start and enable usb passthrough
To start and enable the sharing of a virtual machine
There are no special requirements to installing Manjaro on VMWare. open-vmware-tools is pre-installed. It should «just work»
Источник
VMware
Содержание
DISCLAIMER
VMware is a commercially developed application with a limited list of supported operating systems.
This guide is a courtesy to the forum don’t expect any support on VMware related issues.
As you can see from above reference — Archlinux and derivatives are unsupported platforms for running VMware products and as such it is unsupported on Manjaro.
So even when it is possible to install and run VMware on Manjaro — **do not expect support** on configuration of virtual machines or system issues arising from your VMware installation. You must have the required level of troubleshooting skills to solve these when they arise — and they will.
- If you need help configuring vmware virtual machines — your should look in the VMware documentation.
- If you need help troubleshooting installation issues — use the comment section for the AUR PKGBUILD
There is a lot of AUR helpers and they all mimic what you should do manually — the Arch way is usually the best way.
Important kernel precaution
The AUR PKGBUILD is created for Archlinux and therefore the kernel headers dependency must be solved manually on Manjaro. Archlinux only have two kernel versions — linux and linux-lts.
Archlinux kernels follow the release schedule on kernel.org and on Manjaro you will need to use the same kernel versions which — at the time of writing in March 2021 — is (check with https://kernel.org if in doubt)
Using other kernels — like 5.4LTS — will most likely fail.
Building steps
1. Update your system and install the necessary build tools
2. Then check your kernel version(s) — example — remember to use the same version as Arch
3. Then install the headers for your kernel(s) and dkms. Substitute $KERNELXYY with your currently running kernel
4. Clone the PKGBUILKD script
/vmware-workstation COPY TO CLIPBOARD
5. Familiarize yourself with the content — it is all text files and you should read them and verify what they are doing.
/vmware-workstation COPY TO CLIPBOARD
6. When you are satisfied — cd into the folder
/vmware-workstation COPY TO CLIPBOARD
7. Run makepkg to install dependencies, build and install the package.
The installer will write messages in the terminal on what to do next — follow the directions to load the kernel modules and enable vmware network service and usb service as needed.
Optional services
There are three services that can be optionally be enabled:
- vmware-networks.service: Provides network access inside VMs, most people will want this enabled
- vmware-usbarbitrator.service: Allows USB devices to be connected inside VMs
- vmware-hostd.service: Enables sharing of VMs on the network
To start and enable vmware network
To start and enable usb passthrough
To start and enable the sharing of a virtual machine
There are no special requirements to installing Manjaro on VMWare. open-vmware-tools is pre-installed. It should «just work»
Источник
Manjaro 18 in VMware Workstation 15 Review
Manjaro Linux is a surprisingly older Linux distribution based on the popular distro, Arch. However recently is has shot up in popularity with more recent attention an updates according to DistroWatch.com.
In this tutorial, I will show you how to setup a virtual machine in VMware Workstation 15 and get it up and running.
For this demo, I have downloaded a copy of the GNOME 3 version, however they provide ISO version for other Desktop Environments like KDE and XFCE.
Creating the Virtual Machine
In VMware Workstation, start by creating a new virtual machine. Select Typical and click Next.
Select Installer Disc Image File (iso).
VMware won’t be able to recognise the Linux Distro on the image and error will display. This is ok.
Click Next.
Select Linux from the Guest Operating System type.
Then from the drop down for Version, select “Other Linux 4.x or later Kernel 64-bit”
Click Next
Give the Virtual Machine a name and a location to store the virtual machine files.
Источник
Vmware для linux manjaro
The iso file name is: manjaro-cinnamon-0.8.6-x86_64.iso
Prior to install the VMware tools, I performed:
— sudo pacman -Syyu
— sudo pacman -S net-tools
— sudo pacman -S linux-headers (that installed the 3.9.9-1 headers)
— cd /lib/modules/$(uname -r)/build/include/linux
— sudo ln -sv ../generated/uapi/linux/version.h
— sudo for x in <0..6>; do mkdir -pv /etc/init.d/rc$x.d; done
Then I unpacked the vmware tools and started «sudo ./vmware-install.pl» from within the vm-ware-distrib-tools folder.
Now, «uname -r» returns: «3.9.9-1-MANJARO»
and «uname -a» returns: «Linux vm-manjaro-64 3.9.9-1-MANJARO #1 SMP PREEMPT Fri Jul 5 18:58:35 UTC 2013 x86_64 GNU/Linux»
So, I don’t understand why the install program is looking for linux-headers-0.8.9.8-1
TIA for any hint to fix this problem.
PS: If you want, I can redo an install without performing «sudo pacman -Syyu» but I doubt this would make any change. So, please let me know.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Okay thanks, I’m downloading the ISO Image and will get back to you later after I’ve tested some things.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
I just updated Manjaro with the new 3.10 kernel (sudo mhwd-kernel -i linux310) and installed the new linux-headers310 but this doesn’t fix the problem.
Please find below the screen log of the install of the VMware tools that ends with:
«Warning: This script could not find mkinitrd or update-initramfs and cannot
remake the initrd file!»
I made some investigations and found that initramfs is installed via the packet mkinitcpio
However, I couldn’t find any tools such as mkinitrd (using command «sudo yaourt -Ss mkinitrd».
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
It’s one thing to dump a few/several lines of output into the body of a reply to highlight an issue however to dump thousands of lines (2064 if I counted correctly!) is considered rude and unacceptable and makes it much more difficult to continue to navigate this thread! I’d suggest you edit you post, removing the 2064 lines of output and place them in a text file and attach the text file to the reply.
Note: Use the «Use advanced editor» link in the upper right corner of the normal reply window to bring up the Advanced Editor where you’ll be able to attach files via the Choose File button or Browse button (depending on the Browser) above the Post Message button!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Just modified the message and attached the log file (sorry but I didn’t know how to do it).
So, thanx for the hint since I don’t want to be rude with anyone.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Okay, here is what I did.
Downloaded the manjaro-cinnamon-0.8.6-x86_64.iso file and validated its sha1sum.
Installed using all the defaults.
The default kernel is 3.9.4.1 however the headers are not available for that kernel so without the kernel headers for the running kernel VMware Tools cannot be installed in this Distro.
The only matching kernel and headers that would show in the Package Manager was 3.10.0-1.
For whatever reasons packman would not install the matching 3.10.0-1 kernel and headers nor would it upudate/upgrade anything without fatal errors.
Bottom line is I just do not have time to mess around with distro that does not even provide kernel headers for the default installed kernel or only has matching kernel and headers for one kernel newer then the default kernel and cannot update/upgrade itself from a clean default install without an a sundry of fatal errors!
Anyway since you have the 3.10.0-1 kernel and headers installed the only suggestion I have is to see if there are any known patches for VMware Tools when using the 3.10.0-1 kernel and apply then as necessary. With that in mind you have nothing to loose by trying the vmtoolspatch that while originally was for issues with Ubuntu 13.04 it’s the only thing I can provide without spending additional time I do not have. Have a look at: Re: File sharing on Player betw host and guest doesn’t work on Ubuntu 13.04
Источник