B
BillW
Guest
Hello folks. Thanks for your input.
Importing/Restoring a configuration from another proxmox instance.
The import is of a VZDump via the GUI of Proxmox 2.2-24 cluster node to a NFS share named "data".
Restore completes without errors and a file called /mnt/pve/data/images/112/vm-112-disk-1.qcow2 is created.
In the configuration of the virtual image, the hard disk (sata0) is listed as lili:100/vm-100-disk-1.qcow2,size=40G.
So a few problems:
1. The disk location wasn't overwritten from lili to data, thus making the disk inaccessible, breaking the ability to import a VZDump.
2. The configuration utilities don't like editing disk references.
3. The configuration utilities don't like destroying broken configurations until you delete the offending "missing" disk. (a bug? but easy to work around)
4. There isn't an obvious way to add a disk from an existing file.
Process:
1) Move files to be imported to /mnt/pve/dump
2) Restore
The output of the GUI restore command:
extracting archive '/mnt/pve/data/dump/vzdump-qemu-100-2012_11_22-14_28_44.tar.lzo'
extracting 'qemu-server.conf' from archive
extracting 'vm-disk-sata0.qcow2' from archive
Formatting '/mnt/pve/data/images/112/vm-112-disk-1.qcow2', fmt=qcow2 size=32768 encryption=off cluster_size=65536 preallocation='metadata' lazy_refcounts=off
new volume ID is 'data:112/vm-112-disk-1.qcow2'
restore data to '/mnt/pve/data/images/112/vm-112-disk-1.qcow2' (3900375040 bytes)
1+3959650 records in
14878+1 records out
3900375040 bytes (3.9 GB) copied, 170.048 s, 22.9 MB/s
TASK OK
The output of a QM CONFIG 112:
root@c004:/mnt/pve/data/images/112# qm config 112
bootdisk: sata0
cores: 1
memory: 1024
name: systest
net0: rtl8139=E2:69:83:AF:14:BD,bridge=vmbr0
ostype: l26
sata0: lili:100/vm-100-disk-1.qcow2,size=40G
sockets: 1
root@c004:/mnt/pve/data/images/112# ls
vm-112-disk-1.qcow2
Also tried command line restore:
root@c004:/mnt/pve/data/dump# qmrestore /mnt/pve/data/dump/*100*.lzo 112 -force -storage data -pool CSGLab -unique
extracting archive '/mnt/pve/data/dump/vzdump-qemu-100-2012_11_22-14_28_44.tar.lzo'
extracting 'qemu-server.conf' from archive
extracting 'vm-disk-sata0.qcow2' from archive
Formatting '/mnt/pve/data/images/112/vm-112-disk-1.qcow2', fmt=qcow2 size=32768 encryption=off cluster_size=65536 preallocation='metad
ata' lazy_refcounts=off
new volume ID is 'data:112/vm-112-disk-1.qcow2'
restore data to '/mnt/pve/data/images/112/vm-112-disk-1.qcow2' (3900375040 bytes)
5+3589701 records in
14878+1 records out
3900375040 bytes (3.9 GB) copied, 211.397 s, 18.5 MB/s
As a side note, I also imported a second image from the same source that did not experience any issues.
Importing/Restoring a configuration from another proxmox instance.
The import is of a VZDump via the GUI of Proxmox 2.2-24 cluster node to a NFS share named "data".
Restore completes without errors and a file called /mnt/pve/data/images/112/vm-112-disk-1.qcow2 is created.
In the configuration of the virtual image, the hard disk (sata0) is listed as lili:100/vm-100-disk-1.qcow2,size=40G.
So a few problems:
1. The disk location wasn't overwritten from lili to data, thus making the disk inaccessible, breaking the ability to import a VZDump.
2. The configuration utilities don't like editing disk references.
3. The configuration utilities don't like destroying broken configurations until you delete the offending "missing" disk. (a bug? but easy to work around)
4. There isn't an obvious way to add a disk from an existing file.
Process:
1) Move files to be imported to /mnt/pve/dump
2) Restore
The output of the GUI restore command:
extracting archive '/mnt/pve/data/dump/vzdump-qemu-100-2012_11_22-14_28_44.tar.lzo'
extracting 'qemu-server.conf' from archive
extracting 'vm-disk-sata0.qcow2' from archive
Formatting '/mnt/pve/data/images/112/vm-112-disk-1.qcow2', fmt=qcow2 size=32768 encryption=off cluster_size=65536 preallocation='metadata' lazy_refcounts=off
new volume ID is 'data:112/vm-112-disk-1.qcow2'
restore data to '/mnt/pve/data/images/112/vm-112-disk-1.qcow2' (3900375040 bytes)
1+3959650 records in
14878+1 records out
3900375040 bytes (3.9 GB) copied, 170.048 s, 22.9 MB/s
TASK OK
The output of a QM CONFIG 112:
root@c004:/mnt/pve/data/images/112# qm config 112
bootdisk: sata0
cores: 1
memory: 1024
name: systest
net0: rtl8139=E2:69:83:AF:14:BD,bridge=vmbr0
ostype: l26
sata0: lili:100/vm-100-disk-1.qcow2,size=40G
sockets: 1
root@c004:/mnt/pve/data/images/112# ls
vm-112-disk-1.qcow2
Also tried command line restore:
root@c004:/mnt/pve/data/dump# qmrestore /mnt/pve/data/dump/*100*.lzo 112 -force -storage data -pool CSGLab -unique
extracting archive '/mnt/pve/data/dump/vzdump-qemu-100-2012_11_22-14_28_44.tar.lzo'
extracting 'qemu-server.conf' from archive
extracting 'vm-disk-sata0.qcow2' from archive
Formatting '/mnt/pve/data/images/112/vm-112-disk-1.qcow2', fmt=qcow2 size=32768 encryption=off cluster_size=65536 preallocation='metad
ata' lazy_refcounts=off
new volume ID is 'data:112/vm-112-disk-1.qcow2'
restore data to '/mnt/pve/data/images/112/vm-112-disk-1.qcow2' (3900375040 bytes)
5+3589701 records in
14878+1 records out
3900375040 bytes (3.9 GB) copied, 211.397 s, 18.5 MB/s
As a side note, I also imported a second image from the same source that did not experience any issues.