From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id CHPfDtvdBmX6wgAA9RJhRA:P1 (envelope-from ) for ; Sun, 17 Sep 2023 13:07:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id CHPfDtvdBmX6wgAA9RJhRA (envelope-from ) for ; Sun, 17 Sep 2023 13:07:07 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8B1BA3C480 for ; Sun, 17 Sep 2023 13:07:06 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=B4sq0Nrt; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694948826; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=eLA6xCEBPFbHFI9nW5WgrsxdkhXdGTsZ89gTb/2l6Ss=; b=tXnwGLp5bKVjMVyGY4MH2h1PqWA2yK0DNGe0Aq0T/VjTjv4OIr5ZSbGA441ewtxk5TWY0t liKfm/SEpnasVckSY7SKb6vYGLpP41LpERh8F0TCWfTSyrK8A2XHFL+iA8JyxVQ+S1h49H 993HedsIK8Zzy+gRUy8hk0rKLknTt26YGITYaqZSVweIWUaWwJ75Iie4B8c5KJJPQp8i7Y Id74jmXcyBrm5rxDek2/tmRmHz2TQ0POFUZha7MgIIWQog40hjRz/tUohKJu1WwaOdhrT/ u9H8ka7bO72S+t7sYhJzdCBclM+QXfJkHDYwOimpAvq5wCq8OZsx0kE5GijDEw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=B4sq0Nrt; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694948826; a=rsa-sha256; cv=none; b=pjIyHbG/cqB1H3/IImHTs4vsfPvlfxb5ejYT+tTC0RGrugYfjkb/rixQ4MawL2VANEMdYz BKm88vgYhCIMYrykh5TxgWUMJ3O87QCa5nwdGawGKDFwRoW5egQYXU58A/pq3oeWSSjwqe 5HOel9DSQQbImR9lssWvmt70AirzpYEju/3K0HvYRcM3ohk+yOzwPxAd15P5P53IiHrF6p 3+kfhQnrfRzI6BprQQShaK57XkSdYw5UTdlHJd3M90RK0OXcFVGAjlDNSbQRmjTFdRzRCC RYyY/VUozo+G2kDcNrYnt9J/NyBX7Rl+X+91me5bSNI+JeshE0UkFzeLbRpI0w== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qhpc9-0001Wg-AZ; Sun, 17 Sep 2023 07:06:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qhpc6-0001Vz-Rx for guix-patches@gnu.org; Sun, 17 Sep 2023 07:06:54 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qhpc6-0006Ut-K2 for guix-patches@gnu.org; Sun, 17 Sep 2023 07:06:54 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qhpcE-000281-5N for guix-patches@gnu.org; Sun, 17 Sep 2023 07:07:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66047] [PATCH 1/2] gnu: Add VMware open-vm-tools. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 17 Sep 2023 11:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66047 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66047@debbugs.gnu.org Cc: Sharlatan Hellseher Received: via spool by 66047-submit@debbugs.gnu.org id=B66047.16949488128157 (code B ref 66047); Sun, 17 Sep 2023 11:07:02 +0000 Received: (at 66047) by debbugs.gnu.org; 17 Sep 2023 11:06:52 +0000 Received: from localhost ([127.0.0.1]:49199 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhpc3-00027U-Bb for submit@debbugs.gnu.org; Sun, 17 Sep 2023 07:06:51 -0400 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]:60818) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhpc0-00027A-Tp for 66047@debbugs.gnu.org; Sun, 17 Sep 2023 07:06:49 -0400 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-3ff7d73a6feso40418885e9.1 for <66047@debbugs.gnu.org>; Sun, 17 Sep 2023 04:06:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1694948795; x=1695553595; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=eLA6xCEBPFbHFI9nW5WgrsxdkhXdGTsZ89gTb/2l6Ss=; b=B4sq0NrtrEWHZ4L66QE1fCvP2XIQ1zsfhq+R9UDoMpygkfMu1DprK73rJ8lJvbqDXy XUqzY6ikh98Pup0LwO9lhZEqkiTvOnMKLXj9rEdDrgvHpF9rRLNWQO+LGs4RiWAFpov5 qcJ4GuxMdVW0zlzUpXqQ0ntWmd4SLZI2FdfjulD+9MWU1znUxEduAgy5E5uUJT8AWLOY 86mCZc+cURWn3Z+W1LgJIOUzPqC2FMxfKh7pKzn401xwyDcWEQV409svyw6rbfTe6+4k fJkyyUdmixaRUAffRrMhKhMliF55Hvlc9aY/swI6PocDGoPfL4Y7X2eEUH81Da+V5JZB sQwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694948795; x=1695553595; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eLA6xCEBPFbHFI9nW5WgrsxdkhXdGTsZ89gTb/2l6Ss=; b=ubXCmkn7T8t9E1SzY9vmbthS11cBtmkxW43WsLMqmDfCRF2XSj6HyPgi5kCDrlp3ea rNnI7J2n6+RVLnUACOxE4BMwbBM3bSZL38JuMaefq/IJgkJTQHRM35W/tGf8DmlW2w0u h2oCJmyb50ZIxYqrkZhkNJzw/YKztDFUqCMwP0sFmXRc/0D6kMcom2mm7V8U7dgORxn2 x9QVB9SAPq4ptOxLiMVRZAzNBSjV4k5ZAeSd+lJ6RTIg7FqS4vBy+vQNEnrEfuttOyFW zcmhIpuvp2GicV20h0SkzSgm+KCpxWggFf3Ak4qr7z+Mzv5qB87EjMxRCTbCakWr6GLk CyuQ== X-Gm-Message-State: AOJu0YzLyl/TpH7nuiUwjdcpJKVz465Q/HBemao09TautCFrjejnbF0X R7HPjz/parkms2x1oqOwSiw1yEXTDQ1CQw== X-Google-Smtp-Source: AGHT+IG76QtOzSvJAlWbCKIo4Rd8j3BPl6pI77J2iizDDzSlfCjsfO6nUDKcXoDL77ZpSfMGKy/7eg== X-Received: by 2002:adf:cd05:0:b0:314:44c8:aa98 with SMTP id w5-20020adfcd05000000b0031444c8aa98mr5501091wrm.67.1694948795407; Sun, 17 Sep 2023 04:06:35 -0700 (PDT) Received: from guxtil.incerto.xyz (cpc100856-bagu15-2-0-cust368.1-3.cable.virginm.net. [82.25.93.113]) by smtp.gmail.com with ESMTPSA id m18-20020a5d4a12000000b0031f65cdd271sm9441914wrq.100.2023.09.17.04.06.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Sep 2023 04:06:34 -0700 (PDT) From: Sharlatan Hellseher Date: Sun, 17 Sep 2023 12:06:28 +0100 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: 0.69 X-Spam-Score: 0.69 X-Migadu-Queue-Id: 8B1BA3C480 X-TUID: v0hOhvMCxIWz * gnu/packages/virtualization.scm (vmware-open-vm-tools, vmware-open-vm-tools-gtk): New variables. --- gnu/packages/virtualization.scm | 154 ++++++++++++++++++++++++++++++++ 1 file changed, 154 insertions(+) diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm index f5bdedd45e..04ed253e8a 100644 --- a/gnu/packages/virtualization.scm +++ b/gnu/packages/virtualization.scm @@ -30,6 +30,7 @@ ;;; Copyright © 2022 Zhu Zihao ;;; Copyright © 2023 Juliana Sims ;;; Copyright © 2023 Ahmad Draidi +;;; Copyright © 2023 Sharlatan Hellseher ;;; ;;; This file is part of GNU Guix. ;;; @@ -65,6 +66,7 @@ (define-module (gnu packages virtualization) #:use-module (gnu packages compression) #:use-module (gnu packages containers) #:use-module (gnu packages cross-base) + #:use-module (gnu packages crypto) #:use-module (gnu packages cryptsetup) #:use-module (gnu packages curl) #:use-module (gnu packages cyrus-sasl) @@ -1722,6 +1724,158 @@ (define-public virt-manager domains, their live performance and resource utilization statistics.") (license license:gpl2+))) +(define-public vmware-open-vm-tools + (package + (name "vmware-open-vm-tools") + (version "12.3.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/vmware/open-vm-tools") + (commit (string-append "stable-" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1hbimhady0v1kd45azknl1lgzgldhgdjd7bj540rn3y4cai5cnk1")))) + (build-system gnu-build-system) + (arguments + (list + #:configure-flags + #~(list "--with-fuse=fuse3" + "--without-kernel-modules" + "--without-x" + (string-append + "--with-udev-rules-dir=" #$output "/lib/udev/rules.d")) + ;; TODO: Add iproute2 dbus which commands wrap. + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda _ + (chdir "open-vm-tools"))) + (replace 'bootstrap + (lambda _ + (system* "autoreconf" "-if"))) + (add-after 'bootstrap 'patch-paths + (lambda _ + (substitute* "Makefile.am" + (("/etc/vmware-tools/") + (string-append #$output "/etc/vmware-tools/"))) + (substitute* "scripts/Makefile.am" + (("/etc/vmware-tools") + (string-append #$output "/etc/vmware-tools")) + (("/usr/bin") + (string-append #$output "/bin"))) + (substitute* "services/vmtoolsd/Makefile.am" + (("/etc/vmware-tools") + (string-append #$output "/etc/vmware-tools")) + (("\\$\\(PAM_PREFIX\\)") + (string-append #$output "/$(PAM_PREFIX)"))) + (substitute* "vgauth/service/Makefile.am" + (("/etc/vmware-tools/vgauth/schemas") + (string-append #$output "/etc/vmware-tools/vgauth/schemas")) + (("etc/vmware-tools/vgauth.conf") + (string-append #$output "/etc/vmware-tools/vgauth.conf"))) + (substitute* "vmhgfs-fuse/config.c" + (("/bin/fusermount3") + (string-append + #$(this-package-input "fuse") "/bin/fusermount3"))) + ;; XXX: This part might need more testing with shutdown and halt + ;; commands provided by Shepherd. + (substitute* "lib/system/systemLinux.c" + (("/sbin/shutdown") + (string-append + #$(this-package-input "shepherd") "/sbin/shutdown")) + (("/bin/reboot") + (string-append + #$(this-package-input "shepherd") "/sbin/reboot"))) + (substitute* "services/plugins/vix/foundryToolsDaemon.c" + (("/bin/mount") + (string-append + #$(this-package-input "util-linux") "/bin/mount")) + (("/usr/bin/vmhgfs-fuse") + (string-append #$output "/bin/vmhgfs-fuse")))))))) + (native-inputs + (list `(,glib "bin") ; for glib-genmarshal + autoconf + automake + libltdl + libtool + pkg-config)) + (inputs + (list eudev + fuse + glib + xmlsec + libmspack + ;; libdnet ; Not packed + libtirpc + libxcrypt + libxml2 + linux-pam + openssl + procps + rpcsvc-proto + shepherd ;for 'halt' and 'reboot', invoked from VMWare host. + util-linux + xmlsec)) + (home-page "https://github.com/vmware/open-vm-tools") + (synopsis "Tools for VMWare guest VM to enhance host-guest integration") + (description + "@code{open-vm-tools} is a set of services and modules that enable several +features in VMware products for better management of, and seamless user +interactions with, guests. It includes kernel modules for enhancing the +performance of virtual machines running Linux or other VMware supported Unix +like guest operating systems. + +@code{open-vm-tools} enables the following features in VMware products: + +@itemize +@item The ability to perform virtual machine power operations gracefully. +@item Execution of VMware provided or user configured scripts in guests during +various power operations. +@item The ability to run programs, commands and file system operation in guests +to enhance guest automation. +@item Authentication for guest operations. +@item Periodic collection of network, disk, and memory usage information from +the guest. +@item Generation of heartbeat from guests to hosts so VMware's HA solution can +determine guests' availability. +@item Clock synchronization between guests and hosts or client desktops. +@item Quiescing guest file systems to allow hosts to capture +file-system-consistent guest snapshots. +@item Execution of pre-freeze and post-thaw scripts while quiescing guest file +systems. +@item The ability to customize guest operating systems immediately after +powering on virtual machines. +@item Enabling shared folders between host and guest file systems on VMware +Workstation and VMware Fusion. +@item Copying and pasting text, graphics, and files between guests and hosts or +client desktops. +@end itemize") + (license license:gpl2))) + +(define-public vmware-open-vm-tools-gtk + (package/inherit vmware-open-vm-tools + (name "vmware-open-vm-tools-gtk") + (inputs + (modify-inputs (package-inputs vmware-open-vm-tools) + (prepend gdk-pixbuf-xlib + gtk+ + gtkmm-3 + libdrm + libx11 + libxext + libxi + libxinerama + libxrandr + libxrender + libxtst))) + (arguments + (substitute-keyword-arguments (package-arguments vmware-open-vm-tools) + ((#:configure-flags flags) + #~(delete "--without-x" #$flags)))) + (description "This package provides a GTK+ support for @code{open-vm-tools}."))) + (define-public criu (package (name "criu") -- 2.41.0