Posts tagged with “proxmox”

Transferring VM's from one server to another in Proxmox


I recently got a new server (PowerEdge R710) and so I need to transfer the VM's that I have on my existing server over to the new one. There are a couple ways to do this but I chose to go with the backup to an external hard drive and then restore onto the new system.


Though some trial and error I determined how to get it done:

  1. First I erased every partition on the new hard drive using fdisk first I found the new drive's ID using fdisk -l
  2. Then I used fdisk /dev/sdc/ to go into the drive and delete every partition on the drive.
  3. I created a new partition and then changed the type to a linux LVM using the hex code 31
  4. After that I wrote those changes to disk
  5. I then created the file system for the disk with mkfs.ext4 /dev/sdbc1
  6. Then all that's left to do is create a new directory to mount it in with mkdir /external/usb-drive and then mount it with mount /dev/sdc1 /external/usb-drive
  7. Now you sould be able to go into Proxmox and add the new drive as a direcotry with the path to the drive as /deb/sdc1 in the web GUI

Now that we have a bunch of backups we now need to get them over to the new server. So I unmounted my usb drive with umout /external/usb-drive, plug it into the new server and mount it.

To restore the VM's to the new server, simply go to the disk, select the backup you just made, and then press the restore button in the web GUI. Let that run all the way through and you should be good to go!

Proxmox Error When Updating


On my Proxmox box there is a daily apt-get update task run. However it has been erring out every time it has run since I installed Proxmox. So hopefully this will fix it.

Work Part

There are various package repositories for Proxmox and those are listed in File /etc/apt/sources.list

The listings in that file influence what is checked for during the update process.

My concern is that I have this listing when I run "apt-get update"

Err:8 stretch/pve-enterprise amd64 Packages 401 Unauthorized W: The repository ' stretch Release' does not have a Release file. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. E: Failed to fetch 401 Unauthorized E: Some index files failed to download. They have been ignored, or old ones used instead.

Now this most likely have an issue with my /etc/apt/sources.list

I am currently running Proxmox 5.4-3 so ideally I should have the following in my sources.list:

deb stretch main contrib # PVE pve-no-subscription repository provided by, # NOT recommended for production use deb stretch pve-no-subscription # security updates deb stretch/updates main contrib

However this is the case already so after some checking it looks like there is another file that is in another directory. This file is located at "/etc/apt/aources.list.d/pve-enterprise.list" This is an enterprise only sources list with a single entry deb stretch pve-enterprise So I commented that out and saved the file.

I reran the command "apt-get update" and encountered no errors. So hopefully it should all be working correctly now.

Quick Links

Proxmox Package Repositoires