I'd like a little bit of help migrating from Proxmox 1.9 to 4.4.
A disclaimer, I inherited this setup/environment, and have no linux knowledge or training. Everything, and the moment I am at here, is all from just poking around and reading about it.
So our environment is 4 proxmox 1.9 servers in a Cluster I guess you could say. They were set up long ago before they were my responsibility. Each server is hosting only 1 VM that we need anymore. They are old, and I want to replace them with one single server, which I have already and it has proxmox 4.4, installed by me. I want to migrate these 4 VMs to the new server. My idea is to back them up to external hard drives, and then add that external hard drive as a 'storage location' on the new server, tell it that it is a location for "backups" and then begin restoring by choosing the VM and clicking restore from the backup menu.
Well for one reason or another, this does not work. The VMs do not show up in the list of things on the drive within the GUI, nothing does, but it does recognize that the hard drive has space taken up on it.
So, I go digging some more. If I list the contents of the drive (which, to give you another hammering home that I do not know anything about linux, I had to google that simple command to list files), for some reason the .tgz shows up. After yet another escapade through Google, I find the command to restore the VM is: qmrestore --storage local-lvm backups2/vzdump-qemu-106-2017_05_02-13_16_02.tgz 101
Well as my luck would have it, it failed. How could that be? Well, here is what happens:
Device Start End Sectors Size Type
/dev/sdb1 2048 1953456127 1953454080 931.5G Microsoft basic data
root@vmhost6:~# mkdir backups
root@vmhost6:~# mount /dev/sdb1 backups
root@vmhost6:~#
root@vmhost6:~#
root@vmhost6:~# qmrestore --storage local-lvm backups/vzdump-qemu-106-2017_05_02-13_16_02.tgz 101
extracting archive '/root/backups/vzdump-qemu-106-2017_05_02-13_16_02.tgz'
extracting 'qemu-server.conf' from archive
extracting 'vm-disk-virtio0.qcow2' from archive
unable to restore 'vm-disk-virtio0.qcow2' to storage 'local-lvm'
storage type 'lvmthin' does not support format 'qcow2
tar: vm-disk-virtio0.qcow2: Cannot write: Broken pipe
So I went and looked further, and discovered that apparently this new "LVM-Thin" storage is some whole nother type of storage system and doesn't work quite as seamlessly as the prior versions of Proxmox. I discovered this thread here:
https://forum.proxmox.com/threads/local-lvm-storage-and-vm-format.27209/page-2
Specifically the post by "kinetica". I followed his instructions almost EXACTLY (i had to change a little of his formatting of the commands for it to function) but it didn't work. When I added the storage directory that i want to place my VMs in from the GUI of proxmox, it just showed the same amount of free space as "local" (100gb) and not 2tb which it should be.
I have been working at this off and on, researching and trying numerous solutions from reading the wiki (please for the love of god don't just link me wiki articles blindly without pointing SPECIFIC things within the article. Please dont just say "read the qmrestore article on the wiki" or "please read the lvm storage article". I have. They don't help me.) to googling error messages and command string options and all that. I've been at this for nearly 16-20 hours for what should, to me, be a simple hour or 2 hour ordeal. I've even went through the hassle of wiping 4.4 and installing 3.4, and after an extremely arduous time of jumping error message hurdles, and I got the VM to run on that. It does not have this 'new' 'better' LVM-thin storage.
My ultimate goal, and it really is simple here, is to just get these 4 VMs onto promxox 4.4 from 1.9. If anyone could simply just give me some exact, simple, step by step instructions that would be VERY greatly appreciated.
A disclaimer, I inherited this setup/environment, and have no linux knowledge or training. Everything, and the moment I am at here, is all from just poking around and reading about it.
So our environment is 4 proxmox 1.9 servers in a Cluster I guess you could say. They were set up long ago before they were my responsibility. Each server is hosting only 1 VM that we need anymore. They are old, and I want to replace them with one single server, which I have already and it has proxmox 4.4, installed by me. I want to migrate these 4 VMs to the new server. My idea is to back them up to external hard drives, and then add that external hard drive as a 'storage location' on the new server, tell it that it is a location for "backups" and then begin restoring by choosing the VM and clicking restore from the backup menu.
Well for one reason or another, this does not work. The VMs do not show up in the list of things on the drive within the GUI, nothing does, but it does recognize that the hard drive has space taken up on it.
So, I go digging some more. If I list the contents of the drive (which, to give you another hammering home that I do not know anything about linux, I had to google that simple command to list files), for some reason the .tgz shows up. After yet another escapade through Google, I find the command to restore the VM is: qmrestore --storage local-lvm backups2/vzdump-qemu-106-2017_05_02-13_16_02.tgz 101
Well as my luck would have it, it failed. How could that be? Well, here is what happens:
Device Start End Sectors Size Type
/dev/sdb1 2048 1953456127 1953454080 931.5G Microsoft basic data
root@vmhost6:~# mkdir backups
root@vmhost6:~# mount /dev/sdb1 backups
root@vmhost6:~#
root@vmhost6:~#
root@vmhost6:~# qmrestore --storage local-lvm backups/vzdump-qemu-106-2017_05_02-13_16_02.tgz 101
extracting archive '/root/backups/vzdump-qemu-106-2017_05_02-13_16_02.tgz'
extracting 'qemu-server.conf' from archive
extracting 'vm-disk-virtio0.qcow2' from archive
unable to restore 'vm-disk-virtio0.qcow2' to storage 'local-lvm'
storage type 'lvmthin' does not support format 'qcow2
tar: vm-disk-virtio0.qcow2: Cannot write: Broken pipe
So I went and looked further, and discovered that apparently this new "LVM-Thin" storage is some whole nother type of storage system and doesn't work quite as seamlessly as the prior versions of Proxmox. I discovered this thread here:
https://forum.proxmox.com/threads/local-lvm-storage-and-vm-format.27209/page-2
Specifically the post by "kinetica". I followed his instructions almost EXACTLY (i had to change a little of his formatting of the commands for it to function) but it didn't work. When I added the storage directory that i want to place my VMs in from the GUI of proxmox, it just showed the same amount of free space as "local" (100gb) and not 2tb which it should be.
I have been working at this off and on, researching and trying numerous solutions from reading the wiki (please for the love of god don't just link me wiki articles blindly without pointing SPECIFIC things within the article. Please dont just say "read the qmrestore article on the wiki" or "please read the lvm storage article". I have. They don't help me.) to googling error messages and command string options and all that. I've been at this for nearly 16-20 hours for what should, to me, be a simple hour or 2 hour ordeal. I've even went through the hassle of wiping 4.4 and installing 3.4, and after an extremely arduous time of jumping error message hurdles, and I got the VM to run on that. It does not have this 'new' 'better' LVM-thin storage.
My ultimate goal, and it really is simple here, is to just get these 4 VMs onto promxox 4.4 from 1.9. If anyone could simply just give me some exact, simple, step by step instructions that would be VERY greatly appreciated.