From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Bareiro Subject: Re: Amount of virtual disks with KVM Date: Mon, 30 Nov 2009 11:23:47 -0300 Message-ID: <20091130142347.GB22263@defiant.freesoftware> References: <20091129175818.GF13891@defiant.freesoftware> <4B137FD7.5090300@redhat.com> Reply-To: dbareiro@gmx.net Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/WwmFnJnmDyWGHa4" To: KVM General Return-path: Received: from mail.gmx.net ([213.165.64.20]:53337 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1753308AbZK3OXp (ORCPT ); Mon, 30 Nov 2009 09:23:45 -0500 Received: from defiant (defiant.freesoftware [10.1.0.65]) by hermes.freesoftware (Postfix) with ESMTP id C6CA419D for ; Mon, 30 Nov 2009 11:25:32 -0300 (ART) Content-Disposition: inline In-Reply-To: <4B137FD7.5090300@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: --/WwmFnJnmDyWGHa4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, Avi. On Monday, 30 November 2009 10:18:31 +0200, Avi Kivity wrote: > >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=3D0,macaddr=3D00: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. Perfect! With -hdd and -cdrom, it exported the three disks and the ISO without problems. That would also explain why when not using -cdrom, the -hdc disk yes it is exported after to have installed with netinstall. Thanks for your reply. Regards, Daniel --=20 Fingerprint: BFB3 08D6 B4D1 31B2 72B9 29CE 6696 BF1B 14E6 1D37 Powered by Debian GNU/Linux Squeeze - Linux user #188.598 --/WwmFnJnmDyWGHa4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAksT1XMACgkQZpa/GxTmHTcslwCfRN07lf7ChV96LeJZA1XoFQHA bnMAnAqUOTUJ/FKBdLPRTk2XfEcYSUBN =IP+r -----END PGP SIGNATURE----- --/WwmFnJnmDyWGHa4--