WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

RE: [Xen-users] moving a VMWare image to Xen / conversion?

To: Martinx - ジェームズ <thiagocmartinsc@xxxxxxxxx>, FlorinPetrescu <fpetrescu@xxxxxxxxxxxxxxxx>
Subject: RE: [Xen-users] moving a VMWare image to Xen / conversion?
From: Boris Derzhavets <bderzhavets@xxxxxxxxx>
Date: Thu, 13 May 2010 01:22:34 -0700 (PDT)
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 13 May 2010 01:24:26 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1273738954; bh=Bel/HP/XLMSr3B+BrEX5LGBSrirsiL8IMASjPQKjwdg=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=A4qE7ae1IWpAzGZdfjNnZggFIekCUsDJ+cGTXJk9QjNmtsRrJWljIULm0e55lOmB4bKq/BkaZOzlTXYePPG7N9JdXv4URm6ElDu+at3vLnlVFV26cA8tI6D2fphx+tB2yxHTgnE8wmpyLRsEdXD2sHP73qRDhosQ8Od+lZRJGgw=
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=kHZe689I/20OfSTYWtUh9exVbwIpTdH9VTVP4g5Jh3RQMmCrFkyDY0F+SBos/Wj8yJ+hcAyWkDCwfyp0AWwChPkq7/rb5cZ7vETdpBhA715u7/SBQiUGRVWboCHBm1ukcBPm3fXENzDHuSWabiQGPLmg7ukMzepDtVxs8D6GUSQ=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <B569080ADFD52641B1E5AF38944954C760EF88@xxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
VMware image won't boot boot under Xen. You need conversion procedure
if one exists. Googling gives for instance.
 http://ian.blenke.com/vmware/vmdk/xen/hvm/qemu
It might not work for the recent VMWare Server , but at least explains what the problem is.

Boris.

--- On Wed, 5/12/10, Petrescu, Florin <fpetrescu@xxxxxxxxxxxxxxxx> wrote:

From: Petrescu, Florin <fpetrescu@xxxxxxxxxxxxxxxx>
Subject: RE: [Xen-users] moving a VMWare image to Xen / conversion?
To: "Boris Derzhavets" <bderzhavets@xxxxxxxxx>, "Martinx - ジェームズ" <thiagocmartinsc@xxxxxxxxx>
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Date: Wednesday, May 12, 2010, 5:07 PM

I am trying to follow-up your comments.

I did not create the image – it was provided and I just want to make it boot in a Xen server.

Would you elaborate with some details on your comments?

What would be the proper route to be taken to have a VMware vm containing Centos 5.4 to be ran on a Xen server?

 

FPT

 


From: Boris Derzhavets [mailto:bderzhavets@xxxxxxxxx]
Sent: Wednesday, May 12, 2010 3:38 PM
To: Petrescu, Florin; Martinx -
ジェームズ
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] moving a VMWare image to Xen / conversion?

 

> I have a CentOS VMware image with two vmdk files/disks which are flattened (34 and 21G)

Why you decided, that VMWare image contain xenified kernel and
and ramdisk with frontend xen drivers ?
You attempted to work via pygrub.
I would expect conversion to HVM at best.
A kind of VMware-> KVM -> HVM

Boris

--- On Wed, 5/12/10, Martinx - ジェームズ <thiagocmartinsc@xxxxxxxxx> wrote:


From: Martinx -
ジェームズ <thiagocmartinsc@xxxxxxxxx>
Subject: Re: [Xen-users] moving a VMWare image to Xen / conversion?
To: "Petrescu, Florin" <fpetrescu@xxxxxxxxxxxxxxxx>
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Date: Wednesday, May 12, 2010, 4:07 PM

Check if the kernel of your CentOS have the option "CONFIG_XEN=y"... Maybe that is the problem...

On 12 May 2010 17:01, Petrescu, Florin <fpetrescu@xxxxxxxxxxxxxxxx> wrote:

Greetings,

 

I have a CentOS VMware image with two vmdk files/disks which are flattened (34 and 21G)

I have checked the image by opening it in VMPlayer, and it opened just fine.

I have used qemu-img convert on both of them to and save them as *.img

(they were raw anyway, but I don’t believe that it did change anything)

Here is the XYZ_VM.vmx file content:

------------------------------------ XYZ_VM.vmx ---------------------------------------

#!/usr/bin/vmware

.encoding = "UTF-8"

config.version = "8"

virtualHW.version = "7"

pciBridge0.present = "TRUE"

pciBridge4.present = "TRUE"

pciBridge4.virtualDev = "pcieRootPort"

pciBridge4.functions = "8"

pciBridge5.present = "TRUE"

pciBridge5.virtualDev = "pcieRootPort"

pciBridge5.functions = "8"

pciBridge6.present = "TRUE"

pciBridge6.virtualDev = "pcieRootPort"

pciBridge6.functions = "8"

pciBridge7.present = "TRUE"

pciBridge7.virtualDev = "pcieRootPort"

pciBridge7.functions = "8"

vmci0.present = "TRUE"

nvram = "XYZ_VM.nvram"

deploymentPlatform = "windows"

virtualHW.productCompatibility = "hosted"

unity.customColor = "|23c0c0c0"

tools.upgrade.policy = "useGlobal"

powerType.powerOff = "hard"

powerType.powerOn = "hard"

powerType.suspend = "hard"

powerType.reset = "hard"

 

displayName = "XYZ_VM"

extendedConfigFile = "XYZ_VM.vmxf"

 

scsi0.present = "TRUE"

scsi0.sharedBus = "none"

scsi0.virtualDev = "lsilogic"

memsize = "1024"

scsi0:0.present = "TRUE"

scsi0:0.fileName = "XYZ_VM.vmdk"

scsi0:0.deviceType = "disk"

scsi0:1.present = "TRUE"

scsi0:1.fileName = "XYZ_VM_1.vmdk"

scsi0:1.deviceType = "disk"

ide0:0.present = "TRUE"

ide0:0.clientDevice = "TRUE"

ide0:0.deviceType = "cdrom-raw"

ide0:0.startConnected = "FALSE"

ethernet0.present = "TRUE"

ethernet0.wakeOnPcktRcv = "FALSE"

ethernet0.networkName = "VM Network"

ethernet0.addressType = "vpx"

guestOS = "other26xlinux"

uuid.location = "56 4d b0 75 2a 96 ff 08-91 ad 69 63 37 58 88 84"

uuid.bios = "56 4d b0 75 2a 96 ff 08-91 ad 69 63 37 58 88 84"

vc.uuid = "52 70 33 58 04 2e 49 01-85 68 26 9b e7 4a ea ab"

 

 

ethernet0.generatedAddress = "00:50:56:ba:61:cb"

tools.syncTime = "FALSE"

cleanShutdown = "TRUE"

replay.supported = "FALSE"

sched.swap.derivedName = "/vmfs/volumes/4a6f5302-2d18ac2b-4b9b-002219502c60/XYZ_VM/XYZ_VM-3193663b.vswp"

scsi0:0.redo = ""

scsi0:1.redo = ""

vmotion.checkpointFBSize = "16777216"

pciBridge0.pciSlotNumber = "17"

pciBridge4.pciSlotNumber = "21"

pciBridge5.pciSlotNumber = "22"

pciBridge6.pciSlotNumber = "23"

pciBridge7.pciSlotNumber = "24"

scsi0.pciSlotNumber = "16"

ethernet0.pciSlotNumber = "32"

vmci0.pciSlotNumber = "33"

ethernet0.generatedAddressOffset = "0"

vmci0.id = "-1137182814"

hostCPUID.0 = "0000000a756e65476c65746e49656e69"

guestCPUID.0 = "0000000a756e65476c65746e49656e69"

userCPUID.0 = "0000000a756e65476c65746e49656e69"

hostCPUID.1 = "0001067600040800000ce3bdbfebfbff"

guestCPUID.1 = "0001067600010800800822010febfbff"

userCPUID.1 = "0001067600040800000822010febfbff"

hostCPUID.80000001 = "00000000000000000000000120100800"

guestCPUID.80000001 = "00000000000000000000000120100800"

userCPUID.80000001 = "00000000000000000000000120100800"

evcCompatibilityMode = "FALSE"

 

ethernet0.startConnected = "TRUE"

 

tools.remindInstall = "TRUE"

floppy0.present = "FALSE"

replay.filename = ""

---------------------------------------------------------------------------------------

 

I have created a config file called XYZ_XENVM which looks like this:

 

------------------------------------ XYZ_XENVM ----------------------------------------

name = "XYZ_XENVM"

# uuid = "f2030423-963f-e7d5-4bef-6bb47f1d0c99"

uuid =   "52703358-042e-4901-8568-269be74aeaab"

maxmem = 4096

memory = 4096

vcpus = 2

bootloader = "/usr/bin/pygrub"

vfb = [ "type=vnc,vncunused=0,vncdisplay=53126,keymap=en-us" ]

disk = [ 'file:/wa2/ATC5/XYZ_VM-flat.img,xvda,w',\

'file:/wa2/ATC5/XYZ_VM_1-flat.img,xvdb,w' ]

root="/dev/xvda1"

vif = [ "mac=00:50:56:ba:61:cb,bridge=xenbr0,script=vif-bridge" ]

---------------------------------------------------------------------------------------

 

I am using "xm create XYZ_XENVM" but getting the following error:

 

[root@TServerA xen]# xm create XYZ_XENVM

Using config file "./XYZ_XENVM".

Error: (2, 'Invalid kernel', 'xc_dom_parse_elf_kernel: ELF image has no shstrtab\n')

[root@TServerA xen]#

 

ANY help would be highly appreciated!

 

Thanks much,

 

FPT

 

 

 

 

The materials in this message are private and may contain Protected Healthcare Information. If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error, please immediately notify the sender via telephone or return mail.


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


-----Inline Attachment Follows-----

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 

 
The materials in this message are private and may contain Protected Healthcare Information. If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error, please immediately notify the sender via telephone or return mail.

-----Inline Attachment Follows-----

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>