Dear everyone, We are currently we are doing some research about Virtual Machine Migration, and I was redirected here when asking the community manager for help. What we know is that a VM running on Xen can be stored as *.chk, and that's how VM migration is done by Xen. Also, IBM PowerVM has its way of storing a VM. Our goal is to convert the *.chk file into the IBM PowerVM format, so the same guest OS (e.g. Linux) can be migrated from x86 to Power servers. Could anyone please give us some advice about the data structure of *.chk file, or where to find more reference? Any suggestion would be highly appreciated. Thanks a lot. _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Fajar A. Nugraha
2012-Feb-29 06:02 UTC
Re: Need technical support on Xen migration development
2012/2/29 Sha <pichu@vip.sina.com>:> Dear everyone, > > We are currently we are doing some research about Virtual Machine Migration, > and I was redirected here when asking the community manager for help. > > What we know is that a VM running on Xen can be stored as *.chk, and that''s > how VM migration is done by Xen. Also, IBM PowerVM has its way of storing a > VM. Our goal is to convert the *.chk file into the IBM PowerVM format, so > the same guest OS (e.g. Linux) can be migrated from x86 to Power servers. > > Could anyone please give us some advice about the data structure of *.chk > file, or where to find more reference? Any suggestion would be highly > appreciated.Short version: You can''t. Long version: - xen runs on x86 (well, mostly on x86), while powerVM runs on Power CPU architecture - those two cpu architectures are binary incompatible - For migration purpose, you need to install the new OS with the correct arch, then migrate the config -- Fajar
Dear Fajar, Thank you for your reply. However, I know that the PowerVM Lx86 from IBM can run x86 applications on Power server, so is it technically possible for a VM migrating from Xen to PowerVM? Thanks again. Sha ----- Original Message ----- From: Fajar A. Nugraha <list@fajar.net> To: Sha <pichu@vip.sina.com> Subject: Re: [Xen-users] Need technical support on Xen migration development Date: 12-02-29 14:02:23 2012/2/29 Sha <pichu@vip.sina.com>:> Dear everyone,>> We are currently we are doing some research about Virtual Machine Migration,> and I was redirected here when asking the community manager for help.>> What we know is that a VM running on Xen can be stored as *.chk, and that's> how VM migration is done by Xen. Also, IBM PowerVM has its way of storing a> VM. Our goal is to convert the *.chk file into the IBM PowerVM format, so> the same guest OS (e.g. Linux) can be migrated from x86 to Power servers.>> Could anyone please give us some advice about the data structure of *.chk> file, or where to find more reference? Any suggestion would be highly> appreciated.Short version: You can't. Long version: - xen runs on x86 (well, mostly on x86), while powerVM runs on Power CPU architecture - those two cpu architectures are binary incompatible - For migration purpose, you need to install the new OS with the correct arch, then migrate the config -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Fajar A. Nugraha
2012-Feb-29 06:22 UTC
Re: Need technical support on Xen migration development
2012/2/29 Sha <pichu@vip.sina.com>:> Dear Fajar, > > Thank you for your reply. > > However, I know that the PowerVM Lx86 from IBM can run x86 applications on > Power server, so is it technically possible for a VM migrating from Xen to > PowerVM?I''d suggest against any form of emulation. Your performance will suffer. If you insist to do it anyway: - contact your IBM representative. You HAVE one, right? IMHO there''s no point in having a high-end systems like power or sparc without a good support contract. They might have some shiny P2V/V2V tool that you can use. - learn how Lx86 works. For most virtualization products, you usually only need the disk image (e.g. for xen, vmware, qemu/kvm, etc) or the files (e.g. solaris containers, lxc, openvz). To do offline migration, simply copy what''s needed, adjust the config, and you SHOULD be good. No need for vendor-specific migration tool For example, if you use new-enough linux distro (e.g. ubuntu oneiric), migrating from xen <-> vmware is as simple as booting a rescue environment (e.g. sysrescuecd) and using "dd" to copy the disk IMAGE. Migrating from xen <-> lxc on the other hand requires copying the FILES, adjusting some configs, and running some scripts. -- Fajar> > Thanks again. > > Sha > > > ----- Original Message ----- > From: Fajar A. Nugraha <list@fajar.net> > To: Sha <pichu@vip.sina.com> > Subject: Re: [Xen-users] Need technical support on Xen migration development > Date: 12-02-29 14:02:23 > > 2012/2/29 Sha <pichu@vip.sina.com>: >> Dear everyone, >> >> We are currently we are doing some research about Virtual Machine Migration, >> and I was redirected here when asking the community manager for help. >> >> What we know is that a VM running on Xen can be stored as *.chk, and that''s >> how VM migration is done by Xen. Also, IBM PowerVM has its way of storing a >> VM. Our goal is to convert the *.chk file into the IBM PowerVM format, so >> the same guest OS (e.g. Linux) can be migrated from x86 to Power servers. >> >> Could anyone please give us some advice about the data structure of *.chk >> file, or where to find more reference? Any suggestion would be highly >> appreciated. > > Short version: You can''t. > > Long version: > - xen runs on x86 (well, mostly on x86), while powerVM runs on Power > CPU architecture > - those two cpu architectures are binary incompatible > - For migration purpose, you need to install the new OS with the > correct arch, then migrate the config > > -- > Fajar
Fajar A. Nugraha
2012-Feb-29 08:07 UTC
Re: Need technical support on Xen migration development
On Wed, Feb 29, 2012 at 1:22 PM, Fajar A. Nugraha <list@fajar.net> wrote:> 2012/2/29 Sha <pichu@vip.sina.com>:>> However, I know that the PowerVM Lx86 from IBM can run x86 applications on >> Power server, so is it technically possible for a VM migrating from Xen to >> PowerVM?> For example, if you use new-enough linux distro (e.g. ubuntu oneiric), > migrating from xen <-> vmware is as simple as booting a rescue > environment (e.g. sysrescuecd) and using "dd" to copy the disk IMAGE. > Migrating from xen <-> lxc on the other hand requires copying the > FILES, adjusting some configs, and running some scripts.After reading the documentation, it looks very similar to what qemu-i386 would do. It allows you to run a single APPLICATION. Which means if your application depends on external programs that is normally part of the OS (e.g. cron) to run, I highly doubt it would work. -- Fajar
Thanks again for your comments. I have also been reading many docs, and it seems that PowerVM Lx86 is indeed a pratical way to run x86 app on Power server, but the main chanllenge might be how to resume the running state of a suspended app in migration. I'm looking into that. ----- Original Message ----- From: Fajar A. Nugraha <list@fajar.net> To: Sha <pichu@vip.sina.com> Subject: Re: [Xen-users] Need technical support on Xen migration development Date: 12-02-29 16:07:34 On Wed, Feb 29, 2012 at 1:22 PM, Fajar A. Nugraha <list@fajar.net> wrote:> 2012/2/29 Sha <pichu@vip.sina.com>:>> However, I know that the PowerVM Lx86 from IBM can run x86 applications on>> Power server, so is it technically possible for a VM migrating from Xen to>> PowerVM?> For example, if you use new-enough linux distro (e.g. ubuntu oneiric),> migrating from xen <-> vmware is as simple as booting a rescue> environment (e.g. sysrescuecd) and using "dd" to copy the disk IMAGE.> Migrating from xen <-> lxc on the other hand requires copying the> FILES, adjusting some configs, and running some scripts.After reading the documentation, it looks very similar to what qemu-i386 would do. It allows you to run a single APPLICATION. Which means if your application depends on external programs that is normally part of the OS (e.g. cron) to run, I highly doubt it would work. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Fajar A. Nugraha
2012-Feb-29 08:34 UTC
Re: Need technical support on Xen migration development
2012/2/29 Sha <pichu@vip.sina.com>:> Thanks again for your comments. I have also been reading many docs, and it > seems that PowerVM Lx86 is indeed a pratical way to run x86 app on Power > server, but the main chanllenge might be how to resume the running state of > a suspended app in migration. I''m looking into that.Do you REALLY need to suspend the application, instead of shutting it down? It will be impossible. Moving the machine state requires identical condition on both source and target. For example, when moving between two Xen dom0s, the CPUs need to be the same (or at least same-enough), that even live migrate between AMD <-> intel doesn''t always work. You want to live-migrate between a full-virtualization/PV setup (that can run full-blown OS, with their own kernel) to something that only supports binary translation for running a single application. It''s simply can''t work. -- Fajar
Yes. Live-migrating suspended apps would be the ultimate goal, but it won't be a bad idea to consider the shut-down plan as a preliminary target. In other words, we are just trying to figure out the probability. Please point it out in case I didn't express myself clearly. ----- Original Message ----- From: Fajar A. Nugraha <list@fajar.net> To: Sha <pichu@vip.sina.com> Subject: Re: [Xen-users] Need technical support on Xen migration development Date: 12-02-29 16:34:47 2012/2/29 Sha <pichu@vip.sina.com>:> Thanks again for your comments. I have also been reading many docs, and it> seems that PowerVM Lx86 is indeed a pratical way to run x86 app on Power> server, but the main chanllenge might be how to resume the running state of> a suspended app in migration. I'm looking into that.Do you REALLY need to suspend the application, instead of shutting it down? It will be impossible. Moving the machine state requires identical condition on both source and target. For example, when moving between two Xen dom0s, the CPUs need to be the same (or at least same-enough), that even live migrate between AMD <-> intel doesn't always work. You want to live-migrate between a full-virtualization/PV setup (that can run full-blown OS, with their own kernel) to something that only supports binary translation for running a single application. It's simply can't work. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users