From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id B068D61570 for ; Sun, 29 Nov 2020 11:35:02 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 94CDDB305 for ; Sun, 29 Nov 2020 11:34:32 +0100 (CET) Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-am5eur03on0617.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe08::617]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 8AC54B2F0 for ; Sun, 29 Nov 2020 11:34:31 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DWv78kG1cNlOzSCujmcZiknS4GF+CAnbnoOpjbp6sdF4PrSdoxJFIunYPvGYeF2/44KNVNO078FlTCOTd2EyoCDFFhlkkTUbDa2NFAif8tBZjurPXpPylO1p+AFUO/ih2mrq2J7hKRhDfvOKDK3ZLIV49tK3h0iEv31/GGXUFZxxLqIhljg9YLAlYsXpL7HFOLtXva2RJV6g/+TxyCcK9p8R8kMy0DFSBLcrbvEGF9Hdq5abVMWhTvanY2UrBJijAk8jz/SVwvLUS/IIFcr6MdI3WxEzc7b48Xbt5dDveom4gut6BIdAgJ9Q/LhrWqKrCO+zklM0OJ+hO8oiCDrIwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sbpMrX8YDenEiOGdRhssOA5ZampV1I+Jskn2XguVZIo=; b=mnqz4MYgGqCbKkZqDud6xFMXhMyCHDvkyDUfq+NvG2A3yYBsbga3g11N5JmJKtFM+1E+TcK44FzsibGiX1TO5iLj/K/fupf5DkPY/VFGZn9rwgAxAop6z0iNwjOE3TxpD1z/CwpSUv85afBt2hiX8rLmWqReHv7/ecVtNckteZS4jMwtySzdaJJW056BJnFh/o0UgZ0q0nDuQd9M8ncmrZoo23OtRxCjh2APi7KQcwL+O2jbMGvc1brD9iT0q/5AgLk8rk7CDDQkIjhMZwATkK+st+xWgXAs4JZq+/t0f3cqOpQ7BYWGLcSj3TZ46pt+WS465hdDOiFdX8oNyk9++g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=logics.de; dmarc=pass action=none header.from=logics.de; dkim=pass header.d=logics.de; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=logics99.onmicrosoft.com; s=selector2-logics99-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sbpMrX8YDenEiOGdRhssOA5ZampV1I+Jskn2XguVZIo=; b=oXDLn81s0T2Fqge2QiqDoQYf684W/Emfw2j3Ig1CLgAeNo6RJDlf9Ysku7qclcjX7GkBEocSE54F5TC2Uvsa2P40y/b6lo0VzQm8Pz0NjMjLgU3pghlb7nkNYC1Sr2KlGz/34KvadA2cAT2KaUidpOvuZfzs8b7rNFbhTqH8qUc= Received: from AM0PR09MB2754.eurprd09.prod.outlook.com (2603:10a6:208:12e::18) by AM9PR09MB4820.eurprd09.prod.outlook.com (2603:10a6:20b:2db::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3611.24; Sun, 29 Nov 2020 10:20:14 +0000 Received: from AM0PR09MB2754.eurprd09.prod.outlook.com ([fe80::68c5:8966:920c:8d24]) by AM0PR09MB2754.eurprd09.prod.outlook.com ([fe80::68c5:8966:920c:8d24%3]) with mapi id 15.20.3589.037; Sun, 29 Nov 2020 10:20:13 +0000 From: Niko Fellner To: "pbs-devel@lists.proxmox.com" Thread-Topic: building proxmox-backup-qemu Thread-Index: AdbGOPiTFJZF/WsQThC4ygNCiDvXfw== Date: Sun, 29 Nov 2020 10:20:13 +0000 Message-ID: Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: lists.proxmox.com; dkim=none (message not signed) header.d=none;lists.proxmox.com; dmarc=none action=none header.from=logics.de; x-originating-ip: [93.104.29.163] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a62b636f-9ccd-41ac-1704-08d894505c4e x-ms-traffictypediagnostic: AM9PR09MB4820: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2089; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: lPVQY0Af0HkYOwjtjf/Rj/e4Winqtf2SqGDITVO2F85oarrRW33gAWJ5KiJeZ4hirpokLwvPFJyR2NkN/WMxbMsZIvszx2ikVo5SgjfphQfkx6m4TTRew1FHJHTh4C5Spx1nfDNL49yhnfFVhxozn5sPkt9/j6Y/IKiIicboQSjEo3WZkE0tBPinuQpkNnPUl/NynTiiFt29p8OlJpVdjQM+LFy96StsmH+uAQLnCLN9QRrr83iCW9DhMPh1nkPP+xUbM2M8DfMlE+X5oDvSt8XDG/pf4z9Z9PrTNzE+1ql/5Cc1YjJEoFcxgIAOLofxLF7/gk0RLL5NsxzNdpHOxXtIrvE2Ibjmdr8mwbq3aFLjYb4AlM5DVs+MEwV7emCBqthuh/ymZpKInFp4NQvaDTVzJvJk7P6aKA5C3I3CUpIgL/t+7S6SyTzl3vWptD9M38NmFxJDhmx7l0JkLaY4qA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR09MB2754.eurprd09.prod.outlook.com; PTR:; CAT:NONE; SFS:(346002)(39830400003)(136003)(376002)(366004)(396003)(9686003)(83380400001)(55016002)(8936002)(6506007)(966005)(7696005)(52536014)(66476007)(66946007)(478600001)(64756008)(5660300002)(66446008)(76116006)(66556008)(19627235002)(2906002)(8676002)(86362001)(6916009)(316002)(186003)(26005)(71200400001)(33656002)(19273905006)(3480700007)(563064011); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?/bHX6Uip5zN5rwhQmrbO+b1TCqs4K1TBqeNwriLA3OfGpsgoBwAt4TLtWYT1?= =?us-ascii?Q?afOjgmgMwr1eZ27sg5qz0gE8mVwbsNIzCjMKigjv6v0H9Enxv4nIMP28U9H0?= =?us-ascii?Q?EMTKtQRcuQbde9qSZSofpTURx+FuGoyKx1oQKu0+jV2blVHf5at6yHr2JcDu?= =?us-ascii?Q?uIJndagjIrA44K2vamGtJq5toTJP5Wv9gQx+qv7RwuS4Gh/dAqzmU7lujBAN?= =?us-ascii?Q?M+Fr+Qvq96O4Ox0x84EEMYrjTcW3PMtoLSWd36qj8HkC8AB/abwMBJ/sl+AX?= =?us-ascii?Q?fnHWmHIsy9niDEXzhtdP5u7MkdyJOLlsyJEdyIz1h0Tbw18+LiS9aYo0Ve2l?= =?us-ascii?Q?QDAv8XepOTbg4JRGA09viQDPjOEcbilSwamZDDlWDDhcxFpTEVszZIJn7Nuh?= =?us-ascii?Q?JMyE/kdD85BNqZ9fUOb5aqxhPkvPsXq7E2t4+maeHdL6TM40kyGblvoVKt1f?= =?us-ascii?Q?OGQDK87WBfkJsKzf9wU3tog9Tkq4d+W6lXGW6B1Tw6hMAtHQXJZK3Si36xjV?= =?us-ascii?Q?cZfpfkenXffCPzaZqU9sNCmc2SAgbVCfYDtMHEfpVxGKvMkof2cj7k326pIQ?= =?us-ascii?Q?GgENSLd3n5SExoe245Qyt1KJ0G/Txff0sa+RNjHLT+X7LYtCsdrHMhGKx5K9?= =?us-ascii?Q?RdaTLyJ36jq8/+5ieWuY9za5NrgiLraRmgfZznYPPs7yLCNNuGYmiuHi8Iyu?= =?us-ascii?Q?xqYtTOO5e0S1km2kfB8LmTFeP7DcCKZu3S3/LdYCBzQFCicQtsUpZF4Td/++?= =?us-ascii?Q?YSmgKRw7zrp32oCnZXAqEtLXI6k/Jpy/SFMsH/IwF+fVWh3vLgzTPhQGugkk?= =?us-ascii?Q?JgEg+N3hTBMsih6gY8ufpCbTPPUCRAOP3rfe8PtrolUeNieDrka3j2f++cXn?= =?us-ascii?Q?fvKZ0JRzNUFzZcakTH4tbAxsjGkze4oVsZOnX4nVJXbdoNGLBQFrprLb/LHD?= =?us-ascii?Q?Q3yyb0vWY7R7Uz7LWt7Nm12WgZoRaLDXx4kTdDlMzXc=3D?= x-ms-exchange-transport-forked: True Content-Type: multipart/alternative; boundary="_000_AM0PR09MB2754FB20BC915616FD63E80EF2F60AM0PR09MB2754eurp_" MIME-Version: 1.0 X-OriginatorOrg: logics.de X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM0PR09MB2754.eurprd09.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a62b636f-9ccd-41ac-1704-08d894505c4e X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Nov 2020 10:20:13.9271 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: fdfa9215-653f-430f-b8ab-a8728140f97a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Q9c0pXj2tFRmtrL/zLAX1ggHz1Q6TnUQp9EEtyDUvYSOO5MZySpG+uiQkruNrJyJLAIKsg4buyJaR1/6WEKzQAlHHt5imfVboj2HNlps3/0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR09MB4820 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.250 Adjusted score from AWL reputation of From: address DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature HTML_MESSAGE 0.001 HTML included in message SPF_HELO_PASS -0.001 SPF: HELO matches SPF record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [proxmox.com, logics99.onmicrosoft.com] X-Mailman-Approved-At: Mon, 30 Nov 2020 10:59:21 +0100 Subject: [pbs-devel] building proxmox-backup-qemu X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Nov 2020 10:35:02 -0000 --_000_AM0PR09MB2754FB20BC915616FD63E80EF2F60AM0PR09MB2754eurp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I originally posted this question in #3163#c9, but here my question is bett= er placed: > This is because for restore, the binary is actually created from our patc= hed > QEMU source code which just links against the Rust library, see > 'pbs-restore.c' in our QEMU sources (i.e. clone pve-qemu repo, then apply > the patches in 'debian/patches/series' to the 'qemu' submodule). > So if I want to build the "pbs-restore" binary, I need to make "pve-qemu": > cd ~ && git clone git://git.proxmox.com/git/pve-qemu.git && \ > cd pve-qemu && apt-get install libaio-dev libcap-ng-dev libfdt-dev \ > libglusterfs-dev libiscsi-dev libjemalloc-dev libjpeg-dev libnuma-dev \ > libpci-dev libpixman-1-dev librbd-dev libsdl1.2-dev libseccomp-dev \ > libspice-protocol-dev libspice-server-dev libusb-1.0-0-dev \ > libusbredirparser-dev texi2html texinfo xfslibs-dev && \ > mk-build-deps -ir && make Which results in the binaries "/pve-qemu-kvm-5.1.0/pbs-restore" and "pve-qe= mu-kvm-5.1.0/debian/pve-qemu-kvm/usr/bin/pbs-restore" (What's their differe= nce?) Making pve-qemu requires "libproxmox-backup-qemu0". "libproxmox-backup-qemu0" is either supplied by installing PVE... > echo 'deb http://download.proxmox.com/debian/pve buster pvetest' >> \ > /etc/apt/sources.list.d/proxmox-devel.list && \ > apt-get update && apt-get dist-upgrade -y && \ > apt-get install proxmox-ve ... or by building it from source. I am interested about building it myself= , of course. I guess this repository is what I need: https://git.proxmox.com/?p=3Dproxmox-backup-qemu.git;a=3Dsummary But when I do ... > cd ~ && git clone git://git.proxmox.com/git/proxmox-backup-qemu.git && \ > cd proxmox-backup-qemu && \ > # checkout a commit which seems to be compatible for v1.0.3, see #3173#c1= \ > git checkout 1e45883f00ca8b0dd04c84f4ae33752e69cfc5bb && \ > # need to install PVE too meet the dependencies for the next one: \ > mk-build-deps -ir && \ > # I can't meet all dependencies for the next one: \ > make ...with the "make" I get the following error message: > error: no matching package named `cbindgen` found > location searched: registry `https://github.com/rust-lang/crates.io-index= ` > perhaps you meant: bindgen > required by package `proxmox-backup-qemu v1.0.0 (/root/proxmox-backup-qem= u)` > make: *** [Makefile:22: all] Fehler 101 Where do I get "cbindgen" from? What's the correct way to build proxmox-bac= kup-qemu? --_000_AM0PR09MB2754FB20BC915616FD63E80EF2F60AM0PR09MB2754eurp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

I originally posted this question = in #3163#c9, but here my question is better placed:

 

> This is because for restore, = the binary is actually created from our patched

> QEMU source code which just l= inks against the Rust library, see

> 'pbs-restore.c' in our QEMU s= ources (i.e. clone pve-qemu repo, then apply

> the patches in 'debian/patche= s/series' to the 'qemu' submodule).

>

 

 

So if I want to build the "pb= s-restore" binary, I need to make "pve-qemu":

 

> cd ~ && git clone git= ://git.proxmox.com/git/pve-qemu.git && \

> cd pve-qemu && apt-ge= t install libaio-dev libcap-ng-dev libfdt-dev \

> libglusterfs-dev libiscsi-dev= libjemalloc-dev libjpeg-dev libnuma-dev \

> libpci-dev libpixman-1-dev li= brbd-dev libsdl1.2-dev libseccomp-dev \

> libspice-protocol-dev libspice-server-dev libus= b-1.0-0-dev \

> libusbredirparser-dev texi2html texinfo xfslibs= -dev && \

> mk-build-deps -ir && make

 

 

Which results in the binaries "/pve-qemu-kvm-5.= 1.0/pbs-restore" and "pve-qemu-kvm-5.1.0/debian/pve-qemu-kvm/usr/= bin/pbs-restore" (What's their difference?)

 

Making pve-qemu requires "libproxmox-backup-qem= u0".

"libproxmox-backup-qemu0" is either suppli= ed by installing PVE...

 

> echo 'deb http://download.proxmox.com/debian/pv= e buster pvetest' >> \

> /etc/apt/sources.list.d/proxmox-devel.list &= ;& \

> apt-get update && apt= -get dist-upgrade -y && \

> apt-get install proxmox-ve

 

 

... or by building it from source.= I am interested about building it myself, of course. I guess this reposito= ry is what I need:

https://git.proxmox.com/?p=3Dproxm= ox-backup-qemu.git;a=3Dsummary

But when I do ...

 

> cd ~ && git clone git= ://git.proxmox.com/git/proxmox-backup-qemu.git && \

> cd proxmox-backup-qemu &&= amp; \

> # checkout a commit which see= ms to be compatible for v1.0.3, see #3173#c1 \

> git checkout 1e45883f00ca8b0d= d04c84f4ae33752e69cfc5bb && \

> # need to install PVE too mee= t the dependencies for the next one: \

> mk-build-deps -ir && = \

> # I can't meet all dependenci= es for the next one: \

> make

 

 

...with the "make" I get= the following error message:

 

> error: no matching package na= med `cbindgen` found

> location searched: registry `= https://github.com/rust-lang/crates.io-index`

> perhaps you meant: bindgen

> required by package `proxmox-= backup-qemu v1.0.0 (/root/proxmox-backup-qemu)`

> make: *** [Makefile:22: all] = Fehler 101

 

 

Where do I get "cbindgen"= ; from? What's the correct way to build proxmox-backup-qemu?

--_000_AM0PR09MB2754FB20BC915616FD63E80EF2F60AM0PR09MB2754eurp_--