migrating kvm from Solusvm to proxmox

mojiz

Member
May 5, 2011
6
0
21
Hi
I'm trying to migrate a live KVM VPS from Solusvm to proxmox. The source VPS is in a logical volume and the destination is preferably a raw image file .
Any Idea how to do this?

Regards
 
another question is how can I make the new VPS with the same config as the old one so the guest OS (CentOS 5) has the same hardware/config.
the SolusVM's database is in XML format:
<domain type='kvm'>
<name>kvm120</name>
<memory>524288</memory>
<currentMemory>524288</currentMemory>
<memtune>
<hard_limit>524288</hard_limit>
</memtune>
<vcpu>1</vcpu>
<os>
<type machine='pc'>hvm</type>
<boot dev='hd'/>
<boot dev='cdrom'/>
</os>
<clock sync='localtime'/>
<devices>
<emulator>/usr/libexec/qemu-kvm</emulator>
<disk type='file' device='disk'>
<source file='/dev/vgscsi/kvm120_img'/>
<target dev='hda' bus='ide'/>
</disk>
<disk type='file' device='cdrom'>
<source file='/home/solusvm/kvm/iso/windows_2003_sp2_another_cd.iso'/>
<target dev='hdc'/>
<readonly/>
</disk>
<interface type='bridge'>
<source bridge='br0'/>
<target dev='kvm120.0'/>
<mac address='00:16:3c:09:e9:49'/>
</interface>
<graphics type='vnc' port='5916' passwd='xxxxxxx' listen='0.0.0.0'/>
<input type='tablet'/>
<input type='mouse'/>
</devices>
<features>
<acpi/>
<apic/>
</features>
</domain>
 
Hi,
this should be no problem.
Create an new VM on pve - and copy the hd-image to the right place (depends on your selected storage - cp to filesystem or dd for lvm-storage).
For the config take a look at /etc/pve/qemu-server/VMID.conf

Something like this because of mac-address:
Code:
bootdisk: ide0
cores: 1
ide2: none,media=cdrom
memory: 512
name: kvm120
net0: e1000=00:16:3c:09:e9:49,bridge=vmbr0
ostype: wxp
sockets: 1
ide0: local:120/vm-120-disk-1.raw,cache=writethrough
don't know if e1000 is the right network adapter inside your VM?!

Udo
 

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!