Recreate config file

reetp

Renowned Member
Aug 19, 2013
68
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'