How to Transfer .raw files to restore VM on other server?

altomarketing

Active Member
Dec 26, 2012
32
0
26
Hi ! i have a server with some problems and all my 10 VM are stopped, and i dont have .conf files of those VMs

How can i transfer the .raw files to other proxmox and rebuild VM again ? - I can not do a backup in the old server.
 
Good !!

but up to the wiki : Once this completes you can assign this disk file to your VM on the Proxmox interface.

What do you mean by assign the disk file ? as template ?

by restore the the raw file i can not do it.

0700c15e1b.png
 
you need to create a new VM with a raw disk the same size as the one you used and then scp the file from the other server "over" this file.
 
scp the file from the other server "over" this file.

Perfect !!, but i can not find where is the new .raw file , im on pve 4.3

lvdisplay
Code:
 --- Logical volume ---
  LV Path                /dev/pve/vm-100-disk-1
  LV Name                vm-100-disk-1
  VG Name                pve
  LV UUID                i1gast-eRVj-engA-sJ3F-S9hu-kZVK-gNIQie
  LV Write Access        read/write
  LV Creation host, time hastinapura, 2016-08-26 14:14:48 -0300
  LV Pool name           data
  LV Status              available
  # open                 1
  LV Size                100.00 GiB
  Mapped size            2.11%
  Current LE             25600
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           251:6

ls -lh /dev/pve/
Code:
total 0
lrwxrwxrwx 1 root root 7 Aug 19 13:33 root -> ../dm-0
lrwxrwxrwx 1 root root 7 Aug 19 13:33 swap -> ../dm-1
lrwxrwxrwx 1 root root 7 Aug 26 14:14 vm-100-disk-1 -> ../dm-6

inside /etc/pve/lxc/100.conf
Code:
arch: amd64
cpulimit: 2
cpuunits: 1024
hostname: testing
memory: 1500
net0: bridge=vmbr0,gw=190.7.18.1,hwaddr=36:62:66:30:32:31,ip=190.7.18.xx/27,ip6=auto,name=$
ostype: centos
rootfs: local-lvm:vm-100-disk-1,size=100G
swap: 512

  1. what is dm-6 ?
  2. where should be find the vm-100-disk-1 file to replace ?
  3. what about hwaddr ? what should i modify it ?
Thanks in advance.
 
I also have the problem that when I do a scp inside the new server , i pull into /dev/pve , but i get udev fulled..

Code:
Filesystem     1K-blocks    Used Available Use% Mounted on
udev               10240   10240         0 100% /dev

so my newby questions are:
  1. what is dm-6 ?
  2. where should i pull with scp the raw file ?
  3. where should be find the vm-100-disk-1 file to replace ?
  4. what about hwaddr ? what should i modify it ?
 
I also have the problem that when I do a scp inside the new server , i pull into /dev/pve , but i get udev fulled..

Code:
Filesystem     1K-blocks    Used Available Use% Mounted on
udev               10240   10240         0 100% /dev

so my newby questions are:
  1. what is dm-6 ?
  2. where should i pull with scp the raw file ?
  3. where should be find the vm-100-disk-1 file to replace ?
  4. what about hwaddr ? what should i modify it ?

1) dm stands for device mapper and the name does not matter now.
2) To e.g. /tmp and then dd to your lvm volume (because you created a volume for that. Seams that you do not have considered my previous answer in #2).
3) It's stated in your output: /dev/pve/vm-100-disk-1 - this is a block file, not a regular one, so you need to dd as mentioned in 2
4) If you do not run both machines at the same time, no.

I strongly suggest never to use RAW files and do backups regularly.
 

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!