[SOLVED] Restore VM on Ceph

PaoloVIP

Active Member
Oct 8, 2015
27
0
41
Hello to all. I have some trouble to restore VM to a ceph. I can't understand the right parameters.

This is the VM profile

Code:
arch: amd64
cores: 2
features: nesting=1
hostname: fs
memory: 4096
net0: name=eth0,bridge=vmbr0,firewall=1,gw=192.168.1.254,hwaddr=E2:02:2A:AF:57:D2,ip=192.168.1.12/24,type=veth
onboot: 1
ostype: debian
rootfs: pool.1:vm-102-disk-0,size=3500G
startup: order=3,up=120,down=30
swap: 4096
unprivileged: 1

I also need to resize volume from 3,5TB to 1,2TB

I used this command line, but something was wrong (insufficient disk space, and this is not possible, so I think I was trying to restore on a small local disk):

pct restore 102 /mnt/pve/NFS_IMG/dump/vzdump-lxc-102-2021_09_21-22_50_36.tar.zst --pool pool.1 --rootfs volume 102 size 1200G

I read the doc but still not understand which option I need. Can someone help me, please ?

EDIT:
Finally I found the right options (more simple than I was thinking):

Code:
pct restore 102 /mnt/pve/NFS_IMG/dump/vzdump-lxc-102-2021_09_21-22_50_36.tar.zst --rootfs pool.1:1200
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!