Recreate config file

reetp

Renowned Member
Aug 19, 2013
56
11
73
I was messing about earlier today and managed to delete a config file for a KVM.

I have managed to manually recreate it and can run the machine. The one thing I wasn't sure about is the disk size that I originally used.

I know it was around 100Gb but it could been more or less than that.

Any ideas how I find the correct figure to add to the conf file ?

Hand built file : 102.conf

bootdisk: virtio0
cores: 1
memory: 512
name: Test
net0: virtio=B6:86:96:AA:FD:65,bridge=vmbr0
ostype: l26
sockets: 1
virtio0: local:102/vm-102-disk-1.qcow2,size=100G

Actual file size :

-rw-r--r-- 1 root root 104425127936 Sep 27 16:25 vm-102-disk-1.qcow2

I guessed at 100Gb but is there any way to be more accurate ?

B. Rgds
John
 
> qm rescan

for explanation, see 'man qm'
 

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!