Petrescu, Florin
2010-May-12  17:37 UTC
[Xen-users] moving a VMWare image to Xen / conversion?
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-3193663 b.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" on_poweroff = "destroy" on_reboot = "restart" on_crash = "restart" 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@lists.xensource.com http://lists.xensource.com/xen-users
Petrescu, Florin
2010-May-12  20:01 UTC
[Xen-users] moving a VMWare image to Xen / conversion?
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-3193663 b.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" on_poweroff = "destroy" on_reboot = "restart" on_crash = "restart" 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@lists.xensource.com http://lists.xensource.com/xen-users
Martinx - ジェームズ
2010-May-12  20:07 UTC
Re: [Xen-users] moving a VMWare image to Xen / conversion?
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@radonc.wustl.edu> 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" > > on_poweroff = "destroy" > > on_reboot = "restart" > > on_crash = "restart" > > 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@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Boris Derzhavets
2010-May-12  20:37 UTC
Re: [Xen-users] moving a VMWare image to Xen / conversion?
> I have a CentOS VMware image with two vmdk files/diskswhich 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@gmail.com> wrote: From: Martinx - ジェームズ <thiagocmartinsc@gmail.com> Subject: Re: [Xen-users] moving a VMWare image to Xen / conversion? To: "Petrescu, Florin" <fpetrescu@radonc.wustl.edu> Cc: xen-users@lists.xensource.com 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@radonc.wustl.edu> 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" on_poweroff = "destroy" on_reboot = "restart" on_crash = "restart" 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@lists.xensource.com http://lists.xensource.com/xen-users -----Inline Attachment Follows----- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Petrescu, Florin
2010-May-12  21:07 UTC
RE: [Xen-users] moving a VMWare image to Xen / conversion?
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@yahoo.com] Sent: Wednesday, May 12, 2010 3:38 PM To: Petrescu, Florin; Martinx - ジェА璽爛 Cc: xen-users@lists.xensource.com 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@gmail.com> wrote: From: Martinx - ジェА璽爛 <thiagocmartinsc@gmail.com> Subject: Re: [Xen-users] moving a VMWare image to Xen / conversion? To: "Petrescu, Florin" <fpetrescu@radonc.wustl.edu> Cc: xen-users@lists.xensource.com 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@radonc.wustl.edu> 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" on_poweroff = "destroy" on_reboot = "restart" on_crash = "restart" 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@lists.xensource.com http://lists.xensource.com/xen-users -----Inline Attachment Follows----- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com 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. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Boris Derzhavets
2010-May-13  08:22 UTC
RE: [Xen-users] moving a VMWare image to Xen / conversion?
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@radonc.wustl.edu> wrote:
From: Petrescu, Florin <fpetrescu@radonc.wustl.edu>
Subject: RE: [Xen-users] moving a VMWare image to Xen / conversion?
To: "Boris Derzhavets" <bderzhavets@yahoo.com>, "Martinx -
ジェームズ" <thiagocmartinsc@gmail.com>
Cc: xen-users@lists.xensource.com
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@yahoo.com] 
Sent: Wednesday, May 12, 2010 3:38
PM
To: Petrescu, Florin; Martinx - ジェームズ
Cc: xen-users@lists.xensource.com
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@gmail.com>
  wrote: 
  
  From: Martinx - ジェームズ <thiagocmartinsc@gmail.com>
  Subject: Re: [Xen-users] moving a VMWare image to Xen / conversion?
  To: "Petrescu, Florin" <fpetrescu@radonc.wustl.edu>
  Cc: xen-users@lists.xensource.com
  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@radonc.wustl.edu>
  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" 
  on_poweroff
  = "destroy" 
  on_reboot
  = "restart" 
  on_crash
  = "restart" 
  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@lists.xensource.com
  http://lists.xensource.com/xen-users 
  
     
  
  
  -----Inline Attachment Follows----- 
  
  _______________________________________________
  Xen-users mailing list
  Xen-users@lists.xensource.com
  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@lists.xensource.com
http://lists.xensource.com/xen-users
      
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users