From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <f.ebner@proxmox.com>
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 E7F4E79671
 for <pve-user@lists.proxmox.com>; Wed, 27 Oct 2021 09:21:34 +0200 (CEST)
Received: from firstgate.proxmox.com (localhost [127.0.0.1])
 by firstgate.proxmox.com (Proxmox) with ESMTP id D5A33E84A
 for <pve-user@lists.proxmox.com>; Wed, 27 Oct 2021 09:21:04 +0200 (CEST)
Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com
 [94.136.29.106])
 (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 firstgate.proxmox.com (Proxmox) with ESMTPS id 08073E838
 for <pve-user@lists.proxmox.com>; Wed, 27 Oct 2021 09:21:03 +0200 (CEST)
Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1])
 by proxmox-new.maurer-it.com (Proxmox) with ESMTP id CC0B445F13
 for <pve-user@lists.proxmox.com>; Wed, 27 Oct 2021 09:21:02 +0200 (CEST)
To: pve-user@lists.proxmox.com
References: <8gol4i-t141.ln1@hermione.lilliput.linux.it>
From: Fabian Ebner <f.ebner@proxmox.com>
Message-ID: <20397418-36a4-4361-9f2a-8cbc71c7684c@proxmox.com>
Date: Wed, 27 Oct 2021 09:21:02 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
 Thunderbird/78.14.0
MIME-Version: 1.0
In-Reply-To: <8gol4i-t141.ln1@hermione.lilliput.linux.it>
Content-Type: text/plain; charset=iso-8859-15; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-SPAM-LEVEL: Spam detection results:  0
 AWL 0.367 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment
 NICE_REPLY_A           -0.215 Looks like a legit reply (A)
 SPF_HELO_NONE           0.001 SPF: HELO does not publish an SPF Record
 SPF_PASS               -0.001 SPF: sender matches SPF record
Subject: Re: [PVE-User] Conversion LXC -> VM, mountpoint to volume?
X-BeenThere: pve-user@lists.proxmox.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Proxmox VE user list <pve-user.lists.proxmox.com>
List-Unsubscribe: <https://lists.proxmox.com/cgi-bin/mailman/options/pve-user>, 
 <mailto:pve-user-request@lists.proxmox.com?subject=unsubscribe>
List-Archive: <http://lists.proxmox.com/pipermail/pve-user/>
List-Post: <mailto:pve-user@lists.proxmox.com>
List-Help: <mailto:pve-user-request@lists.proxmox.com?subject=help>
List-Subscribe: <https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-user>, 
 <mailto:pve-user-request@lists.proxmox.com?subject=subscribe>
X-List-Received-Date: Wed, 27 Oct 2021 07:21:35 -0000

Hi,
I don't think that's possible without moving the data. The LXC 
mountpoint is a ZFS file system, but for a VM you need a ZFS volume, 
which is a virtual block device, so renaming won't work.

Am 26.10.21 um 18:55 schrieb Marco Gaiarin:
> 
> In my home server i've an LXC container with an additional mountpoint, that
> contain a lot of data (1.5TB).
> 
> I need to convert the LXC to a VM; there's no trouble to reinstall the base
> machine, but if possible i don't want to 'move' 1.5TB of data...
> 
> 
> Can i simply (a rename suffices? I'm using ZFS as storage) convert an LXC
> mountpoint to an VM (additional) volume?
> 
> 
> Thanks.
>