From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: Amount of virtual disks with KVM Date: Mon, 30 Nov 2009 10:18:31 +0200 Message-ID: <4B137FD7.5090300@redhat.com> References: <20091129175818.GF13891@defiant.freesoftware> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit To: dbareiro@gmx.net, KVM General Return-path: Received: from mx1.redhat.com ([209.132.183.28]:31675 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753425AbZK3IS3 (ORCPT ); Mon, 30 Nov 2009 03:18:29 -0500 In-Reply-To: <20091129175818.GF13891@defiant.freesoftware> Sender: kvm-owner@vger.kernel.org List-ID: On 11/29/2009 07:58 PM, Daniel Bareiro wrote: > Hi all! > > I'm trying to make a migration of a Xen PV virtual machine to KVM. For > this I'm starting a VM with SystemRescueCD [1] of the following way: > > # /usr/local/kvm/bin/qemu-system-x86_64 -hda /dev/vm/hermes-disk -boot d \ > -cdrom /space/isos/systemrescuecd-x86-1.3.2.iso -m 512 -daemonize -vnc \ > :2 -k es -localtime -hdb hermes-raiz.raw -hdc hermes-var.raw -net \ > nic,vlan=0,macaddr=00:16:3e:00:00:34 -net tap > > Where hermes-disk is the disk that will use the VM in the destination > host, and hermes-raiz.raw and hermes-var.raw are the raw partitions that > was using the Xen PV virtual machine in source host. > > My idea is to create the partitions in hermes-disk, to mount the raw > partitions and to do "cp -a" to the partitions created in hermes-disk, > but after boot only hermes-disk and hermes-raiz.raw are exported (like > sda and sdb). Which can be the problem? > > -cdrom and -hdc occupy the same IDE slot (second bus, master drive). Try -hdd instead of -hdc. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic.