You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Rafael Weingartner <ra...@gmail.com> on 2015/02/06 22:10:37 UTC

Can System VMs be migrated?

Hi folks,

I was wondering, can we migrate systems vms from a host to another one in
the same cluster?


-- 
Rafael Weingärtner

Re: Can System VMs be migrated?

Posted by Rafael Weingartner <ra...@gmail.com>.
Somesh Naidu and others,
Now I understand the problem. But, that code does not make much sense to me.

As I said before, the “system.vm.use.local.storage” parameter was already
set to false. Therefore, the SQL command “select id,name,use_local_storage
from disk_offering where system_use=1” returns:

 id           name    use_local_storage

7             System Offering For Software Router   false

8             System Offering For Elastic LB VM          false

9             System Offering For Secondary Storage VM      false

10           System Offering For Console Proxy        false

30           System Offering For Internal LB VM       false


All as expected.

The problem happens because of the method
“com.cloud.hypervisor.xen.resource.XcpOssResource.createPatchVbd(Connection,
String, VM)” that was overwritten. Someone, for some odd reason changed the
behavior of the default implementation that is found on
“com.cloud.hypervisor.xen.resource.CitrixResourceBase”.

I tested the commands that are in
“com.cloud.hypervisor.xen.resource.CitrixResourceBase” and they work just
fine for XAPI (XCP). Those are the commands used in XS environments.

IMHO the
“com.cloud.hypervisor.xen.resource.XcpOssResource.createPatchVbd(Connection,
String, VM)”  method should be removed and the behavior of the parent class
should be kept, hence it works properly. Moreover, that overwritten method
does not respect the “system.vm.use.local.storage” parameter.

Thus, to the best of my knowledge (
http://pt.slideshare.net/xen_com_mgr/xpus13-pavlicek), at the end XAPI and
XS are almost the same, hence the XAPI in bundled into xenserver.

Should I open a bug report(is it really a bug or something intentional?)?

On Tue, Feb 10, 2015 at 6:54 PM, Somesh Naidu <So...@citrix.com>
wrote:

> Ok. I don't know what the expected behavior for XCP is (though I believe
> shared storage for system VMs should work on XCP as well).
>
> If you were using XenServer then the way it works is that depending on the
> value (true/false) set for global config system.vm.use.local.storage, CS
> will set the storage type in the system service offering during mgmt.
> bootstrap.
>
> When I say system offering I refer to the records returned by the query -
> select id,name,use_local_storage from disk_offering where system_use=1;
>
> Regards,
> Somesh
>
> -----Original Message-----
> From: Rafael Weingartner [mailto:rafaelweingartner@gmail.com]
> Sent: Tuesday, February 10, 2015 1:55 PM
> To: dev@cloudstack.apache.org
> Subject: Re: Can System VMs be migrated?
>
> Somesh Naidu,
>
> I am using the 4.3.0 version.
>
> I am using Xen hypervisor with XAPI (old XCP) packages over Debian 7.4
>
> I did not understand what you mean with “in the system offerings” .  The
> primary storage of the clusters are NFS servers.
>
> On Tue, Feb 10, 2015 at 1:25 PM, Somesh Naidu <So...@citrix.com>
> wrote:
>
> > Rafael,
> >
> > What version of CS are you using? I have a 4.3 and a 4.5 environment with
> > XS/VMware/KVM hypervisors and on all of them, the system VMs are being
> > created on shared primary storage.
> >
> > Can you check what storage type is set in the system offerings?
> >
> > Regards,
> > Somesh
> >
> >
> > -----Original Message-----
> > From: Rafael Weingartner [mailto:rafaelweingartner@gmail.com]
> > Sent: Tuesday, February 10, 2015 7:20 AM
> > To: dev@cloudstack.apache.org
> > Subject: Re: Can System VMs be migrated?
> >
> > Marcus, the parameter “system.vm.use.local.storage” was already set to
> > false. That parameter does not make any sense to me; it seems that it is
> > not used, at least for Xen.
> >
> > Abhinandan Prateek, I did not configure it erroneously. I configured NFS
> > storage to store users VMs (primary storage), I am not using local
> storage
> > for anything, but sadly I was forced to create a local SR into every
> host.
> > I had exchanged some emails about that in the users list a while ago:
> >
> >
> >
> http://mail-archives.apache.org/mod_mbox/cloudstack-users/201309.mbox/%3CCAG97radxdiUaim7-W5nw-BAcvTFV0MgD6RJzB64=ueRvM89V0g@mail.gmail.com%3E
> >
> > The problem seems to be here:
> >
> >
> com.cloud.hypervisor.xen.resource.XcpOssResource.createPatchVbd(Connection,
> > String, VM)
> >
> > That class do not use the parameter “system.vm.use.local.storage”, it
> > forced us to add a local SR in the host. Then it deploys the systemvm-vdi
> > into that “_host.localSRuuid”.
> >
> >
> >
> http://fossies.org/dox/apache-cloudstack-4.4.2-src/XcpOssResource_8java_source.html
> >
> > Is that behavior expected? I have lived with that since CS 4.1.1 (I am
> > using 4.3.0) and it seems to be the same in 4.4.
> >
> >
> > On Tue, Feb 10, 2015 at 3:09 AM, Marcus <sh...@gmail.com> wrote:
> >
> > > edit the global setting "system.vm.use.local.storage", restart mgmt
> > server.
> > >
> > > On Mon, Feb 9, 2015 at 8:20 PM, Abhinandan Prateek
> > > <ab...@shapeblue.com> wrote:
> > > > While creating a zone you can configure the use of local storage. It
> > > seems you configured it erroneously.
> > > > In 4.3 as per my knowledge live vm migration with local storage is
> > > broken. Use it in 4,5 it works I have tested it.
> > > > If you do not want to use local storage make sure you turn it off
> while
> > > creating the zone.
> > > >
> > > > -abhi
> > > >
> > > >
> > > >> On 10-Feb-2015, at 1:20 am, Rafael Weingartner <
> > > rafaelweingartner@gmail.com> wrote:
> > > >>
> > > >> Well,
> > > >> There is a button, take a look at the SS I took:
> > > >> http://postimg.org/image/5sr7yxyud/
> > > >>
> > > >> I am curious, why does the CS allocate system VMs’ VDI on local SR
> on
> > > Xen
> > > >> hypervisor? Why not use the primary storage of the cluster in which
> > the
> > > >> host is in?
> > > >> I looked at the code, and it is hard coded there, Xen hosts have to
> > > have a
> > > >> local SR, otherwise you cannot add them into CS (first time I saw
> > that I
> > > >> found it very weird, I even sent an email about it, but did not get
> > any
> > > >> reply).
> > > >>
> > > >> That does not seem to happen with other hypervisors.
> > > >>
> > > >> Now that you mentioned the maintenance mode, I noticed that system
> VMs
> > > are
> > > >> not being migrated when I put its host in maintenance, I thought
> that
> > > was a
> > > >> normal behavior (weird one but normal, given that those VMs are
> using
> > > the
> > > >> local SR of the Xen hypervisor).
> > > >>
> > > >> On Mon, Feb 9, 2015 at 5:10 PM, Yiping Zhang <yz...@marketo.com>
> > > wrote:
> > > >>
> > > >>> How do you migrate systemVM’s in UI?
> > > >>>
> > > >>> If you just put the host, where the systemVM’s are running, into
> > > >>> “maintenance” mode, then you may have hit this bug which was fixed
> in
> > > >>> 4.4.0: https://issues.apache.org/jira/browse/CLOUDSTACK-5660
> > > >>>
> > > >>>
> > > >>> Yiping
> > > >>>
> > > >>> On 2/9/15, 11:01 AM, "Rafael Weingartner" <
> > rafaelweingartner@gmail.com
> > > >
> > > >>> wrote:
> > > >>>
> > > >>>> Update:
> > > >>>> The UI may not be working because it uses the command
> > > "migrateSystemVm",
> > > >>>> instead of "migrateVirtualMachineWithVolume".
> > > >>>> Shoud I open a bug report?
> > > >>>>
> > > >>>> On Mon, Feb 9, 2015 at 3:21 PM, Rafael Weingartner <
> > > >>>> rafaelweingartner@gmail.com> wrote:
> > > >>>>
> > > >>>>> I also tried and it did not work. I am using CS 4.3.0.
> > > >>>>> I used the UI button. I got the error "VM_REQUIRES_SR".
> > > >>>>>
> > > >>>>> On Mon, Feb 9, 2015 at 2:52 PM, Prashant Kumar Mishra <
> > > >>>>> prashantkumar.mishra@citrix.com> wrote:
> > > >>>>>
> > > >>>>>> 1-Yes we can migrate system vm , I have done it many times
> > > >>>>>>
> > > >>>>>>
> > > >>>>>> 2-Even if vm is deployed with local storage you can migrate to
> > > another
> > > >>>>>> local storage . Check out this api
> migrateVirtualMachineWithVolume
> > > >>>>>>
> > > >>>>>>
> > > >>>>>>
> > > >>>>>>
> > > >>>>>>
> > > >>>
> > >
> http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/migrateVirt
> > > >>>>>> ual
> > > >>>>>> MachineWithVolume.html
> > > >>>>>>
> > > >>>>>> <
> > > >>>
> > >
> http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/migrateVir
> > > >>>>>> tualMachineWithVolume.html>
> > > >>>>>>
> > > >>>>>>
> > > >>>>>> ~prashant
> > > >>>>>>
> > > >>>>>>
> > > >>>>>>
> > > >>>>>>
> > > >>>>>> On 2/9/15, 5:08 PM, "Rafael Weingartner" <
> > > rafaelweingartner@gmail.com>
> > > >>>>>> wrote:
> > > >>>>>>
> > > >>>>>>> That is the answer I wanted to hear.  If we can migrate system
> > VMs,
> > > >>>>>> why
> > > >>>>>>> are
> > > >>>>>>> the systems VMs¹ VDI allocated in the local SR on Xen
> hypervisor?
> > > >>>>>>>
> > > >>>>>>> It is not possible to migrate those system VMs, hence they are
> > > using a
> > > >>>>>>> local SR.
> > > >>>>>>>
> > > >>>>>>> On Mon, Feb 9, 2015 at 3:01 AM, Sanjeev Neelarapu <
> > > >>>>>>> sanjeev.neelarapu@citrix.com> wrote:
> > > >>>>>>>
> > > >>>>>>>> Yes, we can.
> > > >>>>>>>>
> > > >>>>>>>> -----Original Message-----
> > > >>>>>>>> From: Rafael Weingartner [mailto:rafaelweingartner@gmail.com]
> > > >>>>>>>> Sent: Saturday, February 07, 2015 2:41 AM
> > > >>>>>>>> To: dev@cloudstack.apache.org
> > > >>>>>>>> Subject: Can System VMs be migrated?
> > > >>>>>>>>
> > > >>>>>>>> Hi folks,
> > > >>>>>>>>
> > > >>>>>>>> I was wondering, can we migrate systems vms from a host to
> > another
> > > >>>>>> one
> > > >>>>>>>> in
> > > >>>>>>>> the same cluster?
> > > >>>>>>>>
> > > >>>>>>>>
> > > >>>>>>>> --
> > > >>>>>>>> Rafael Weingärtner
> > > >>>>>>>>
> > > >>>>>>>
> > > >>>>>>>
> > > >>>>>>>
> > > >>>>>>> --
> > > >>>>>>> Rafael Weingärtner
> > > >>>>>>
> > > >>>>>>
> > > >>>>>
> > > >>>>>
> > > >>>>> --
> > > >>>>> Rafael Weingärtner
> > > >>>>>
> > > >>>>
> > > >>>>
> > > >>>>
> > > >>>> --
> > > >>>> Rafael Weingärtner
> > > >>>
> > > >>>
> > > >>
> > > >>
> > > >> --
> > > >> Rafael Weingärtner
> > > >
> > > > Find out more about ShapeBlue and our range of CloudStack related
> > > services
> > > >
> > > > IaaS Cloud Design & Build<
> > > http://shapeblue.com/iaas-cloud-design-and-build//>
> > > > CSForge – rapid IaaS deployment framework<
> > http://shapeblue.com/csforge/>
> > > > CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
> > > > CloudStack Software Engineering<
> > > http://shapeblue.com/cloudstack-software-engineering/>
> > > > CloudStack Infrastructure Support<
> > > http://shapeblue.com/cloudstack-infrastructure-support/>
> > > > CloudStack Bootcamp Training Courses<
> > > http://shapeblue.com/cloudstack-training/>
> > > >
> > > > This email and any attachments to it may be confidential and are
> > > intended solely for the use of the individual to whom it is addressed.
> > Any
> > > views or opinions expressed are solely those of the author and do not
> > > necessarily represent those of Shape Blue Ltd or related companies. If
> > you
> > > are not the intended recipient of this email, you must neither take any
> > > action based upon its contents, nor copy or show it to anyone. Please
> > > contact the sender if you believe you have received this email in
> error.
> > > Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue
> > > Services India LLP is a company incorporated in India and is operated
> > under
> > > license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a
> > > company incorporated in Brasil and is operated under license from Shape
> > > Blue Ltd. ShapeBlue SA Pty Ltd is a company registered by The Republic
> of
> > > South Africa and is traded under license from Shape Blue Ltd. ShapeBlue
> > is
> > > a registered trademark.
> > >
> >
> >
> >
> > --
> > Rafael Weingärtner
> >
>
>
>
> --
> Rafael Weingärtner
>



-- 
Rafael Weingärtner

RE: Can System VMs be migrated?

Posted by Somesh Naidu <So...@citrix.com>.
Ok. I don't know what the expected behavior for XCP is (though I believe shared storage for system VMs should work on XCP as well).

If you were using XenServer then the way it works is that depending on the value (true/false) set for global config system.vm.use.local.storage, CS will set the storage type in the system service offering during mgmt. bootstrap.

When I say system offering I refer to the records returned by the query - select id,name,use_local_storage from disk_offering where system_use=1;

Regards,
Somesh

-----Original Message-----
From: Rafael Weingartner [mailto:rafaelweingartner@gmail.com] 
Sent: Tuesday, February 10, 2015 1:55 PM
To: dev@cloudstack.apache.org
Subject: Re: Can System VMs be migrated?

Somesh Naidu,

I am using the 4.3.0 version.

I am using Xen hypervisor with XAPI (old XCP) packages over Debian 7.4

I did not understand what you mean with “in the system offerings” .  The
primary storage of the clusters are NFS servers.

On Tue, Feb 10, 2015 at 1:25 PM, Somesh Naidu <So...@citrix.com>
wrote:

> Rafael,
>
> What version of CS are you using? I have a 4.3 and a 4.5 environment with
> XS/VMware/KVM hypervisors and on all of them, the system VMs are being
> created on shared primary storage.
>
> Can you check what storage type is set in the system offerings?
>
> Regards,
> Somesh
>
>
> -----Original Message-----
> From: Rafael Weingartner [mailto:rafaelweingartner@gmail.com]
> Sent: Tuesday, February 10, 2015 7:20 AM
> To: dev@cloudstack.apache.org
> Subject: Re: Can System VMs be migrated?
>
> Marcus, the parameter “system.vm.use.local.storage” was already set to
> false. That parameter does not make any sense to me; it seems that it is
> not used, at least for Xen.
>
> Abhinandan Prateek, I did not configure it erroneously. I configured NFS
> storage to store users VMs (primary storage), I am not using local storage
> for anything, but sadly I was forced to create a local SR into every host.
> I had exchanged some emails about that in the users list a while ago:
>
>
> http://mail-archives.apache.org/mod_mbox/cloudstack-users/201309.mbox/%3CCAG97radxdiUaim7-W5nw-BAcvTFV0MgD6RJzB64=ueRvM89V0g@mail.gmail.com%3E
>
> The problem seems to be here:
>
> com.cloud.hypervisor.xen.resource.XcpOssResource.createPatchVbd(Connection,
> String, VM)
>
> That class do not use the parameter “system.vm.use.local.storage”, it
> forced us to add a local SR in the host. Then it deploys the systemvm-vdi
> into that “_host.localSRuuid”.
>
>
> http://fossies.org/dox/apache-cloudstack-4.4.2-src/XcpOssResource_8java_source.html
>
> Is that behavior expected? I have lived with that since CS 4.1.1 (I am
> using 4.3.0) and it seems to be the same in 4.4.
>
>
> On Tue, Feb 10, 2015 at 3:09 AM, Marcus <sh...@gmail.com> wrote:
>
> > edit the global setting "system.vm.use.local.storage", restart mgmt
> server.
> >
> > On Mon, Feb 9, 2015 at 8:20 PM, Abhinandan Prateek
> > <ab...@shapeblue.com> wrote:
> > > While creating a zone you can configure the use of local storage. It
> > seems you configured it erroneously.
> > > In 4.3 as per my knowledge live vm migration with local storage is
> > broken. Use it in 4,5 it works I have tested it.
> > > If you do not want to use local storage make sure you turn it off while
> > creating the zone.
> > >
> > > -abhi
> > >
> > >
> > >> On 10-Feb-2015, at 1:20 am, Rafael Weingartner <
> > rafaelweingartner@gmail.com> wrote:
> > >>
> > >> Well,
> > >> There is a button, take a look at the SS I took:
> > >> http://postimg.org/image/5sr7yxyud/
> > >>
> > >> I am curious, why does the CS allocate system VMs’ VDI on local SR on
> > Xen
> > >> hypervisor? Why not use the primary storage of the cluster in which
> the
> > >> host is in?
> > >> I looked at the code, and it is hard coded there, Xen hosts have to
> > have a
> > >> local SR, otherwise you cannot add them into CS (first time I saw
> that I
> > >> found it very weird, I even sent an email about it, but did not get
> any
> > >> reply).
> > >>
> > >> That does not seem to happen with other hypervisors.
> > >>
> > >> Now that you mentioned the maintenance mode, I noticed that system VMs
> > are
> > >> not being migrated when I put its host in maintenance, I thought that
> > was a
> > >> normal behavior (weird one but normal, given that those VMs are using
> > the
> > >> local SR of the Xen hypervisor).
> > >>
> > >> On Mon, Feb 9, 2015 at 5:10 PM, Yiping Zhang <yz...@marketo.com>
> > wrote:
> > >>
> > >>> How do you migrate systemVM’s in UI?
> > >>>
> > >>> If you just put the host, where the systemVM’s are running, into
> > >>> “maintenance” mode, then you may have hit this bug which was fixed in
> > >>> 4.4.0: https://issues.apache.org/jira/browse/CLOUDSTACK-5660
> > >>>
> > >>>
> > >>> Yiping
> > >>>
> > >>> On 2/9/15, 11:01 AM, "Rafael Weingartner" <
> rafaelweingartner@gmail.com
> > >
> > >>> wrote:
> > >>>
> > >>>> Update:
> > >>>> The UI may not be working because it uses the command
> > "migrateSystemVm",
> > >>>> instead of "migrateVirtualMachineWithVolume".
> > >>>> Shoud I open a bug report?
> > >>>>
> > >>>> On Mon, Feb 9, 2015 at 3:21 PM, Rafael Weingartner <
> > >>>> rafaelweingartner@gmail.com> wrote:
> > >>>>
> > >>>>> I also tried and it did not work. I am using CS 4.3.0.
> > >>>>> I used the UI button. I got the error "VM_REQUIRES_SR".
> > >>>>>
> > >>>>> On Mon, Feb 9, 2015 at 2:52 PM, Prashant Kumar Mishra <
> > >>>>> prashantkumar.mishra@citrix.com> wrote:
> > >>>>>
> > >>>>>> 1-Yes we can migrate system vm , I have done it many times
> > >>>>>>
> > >>>>>>
> > >>>>>> 2-Even if vm is deployed with local storage you can migrate to
> > another
> > >>>>>> local storage . Check out this api migrateVirtualMachineWithVolume
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>
> > http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/migrateVirt
> > >>>>>> ual
> > >>>>>> MachineWithVolume.html
> > >>>>>>
> > >>>>>> <
> > >>>
> > http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/migrateVir
> > >>>>>> tualMachineWithVolume.html>
> > >>>>>>
> > >>>>>>
> > >>>>>> ~prashant
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>> On 2/9/15, 5:08 PM, "Rafael Weingartner" <
> > rafaelweingartner@gmail.com>
> > >>>>>> wrote:
> > >>>>>>
> > >>>>>>> That is the answer I wanted to hear.  If we can migrate system
> VMs,
> > >>>>>> why
> > >>>>>>> are
> > >>>>>>> the systems VMs¹ VDI allocated in the local SR on Xen hypervisor?
> > >>>>>>>
> > >>>>>>> It is not possible to migrate those system VMs, hence they are
> > using a
> > >>>>>>> local SR.
> > >>>>>>>
> > >>>>>>> On Mon, Feb 9, 2015 at 3:01 AM, Sanjeev Neelarapu <
> > >>>>>>> sanjeev.neelarapu@citrix.com> wrote:
> > >>>>>>>
> > >>>>>>>> Yes, we can.
> > >>>>>>>>
> > >>>>>>>> -----Original Message-----
> > >>>>>>>> From: Rafael Weingartner [mailto:rafaelweingartner@gmail.com]
> > >>>>>>>> Sent: Saturday, February 07, 2015 2:41 AM
> > >>>>>>>> To: dev@cloudstack.apache.org
> > >>>>>>>> Subject: Can System VMs be migrated?
> > >>>>>>>>
> > >>>>>>>> Hi folks,
> > >>>>>>>>
> > >>>>>>>> I was wondering, can we migrate systems vms from a host to
> another
> > >>>>>> one
> > >>>>>>>> in
> > >>>>>>>> the same cluster?
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>> --
> > >>>>>>>> Rafael Weingärtner
> > >>>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>> --
> > >>>>>>> Rafael Weingärtner
> > >>>>>>
> > >>>>>>
> > >>>>>
> > >>>>>
> > >>>>> --
> > >>>>> Rafael Weingärtner
> > >>>>>
> > >>>>
> > >>>>
> > >>>>
> > >>>> --
> > >>>> Rafael Weingärtner
> > >>>
> > >>>
> > >>
> > >>
> > >> --
> > >> Rafael Weingärtner
> > >
> > > Find out more about ShapeBlue and our range of CloudStack related
> > services
> > >
> > > IaaS Cloud Design & Build<
> > http://shapeblue.com/iaas-cloud-design-and-build//>
> > > CSForge – rapid IaaS deployment framework<
> http://shapeblue.com/csforge/>
> > > CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
> > > CloudStack Software Engineering<
> > http://shapeblue.com/cloudstack-software-engineering/>
> > > CloudStack Infrastructure Support<
> > http://shapeblue.com/cloudstack-infrastructure-support/>
> > > CloudStack Bootcamp Training Courses<
> > http://shapeblue.com/cloudstack-training/>
> > >
> > > This email and any attachments to it may be confidential and are
> > intended solely for the use of the individual to whom it is addressed.
> Any
> > views or opinions expressed are solely those of the author and do not
> > necessarily represent those of Shape Blue Ltd or related companies. If
> you
> > are not the intended recipient of this email, you must neither take any
> > action based upon its contents, nor copy or show it to anyone. Please
> > contact the sender if you believe you have received this email in error.
> > Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue
> > Services India LLP is a company incorporated in India and is operated
> under
> > license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a
> > company incorporated in Brasil and is operated under license from Shape
> > Blue Ltd. ShapeBlue SA Pty Ltd is a company registered by The Republic of
> > South Africa and is traded under license from Shape Blue Ltd. ShapeBlue
> is
> > a registered trademark.
> >
>
>
>
> --
> Rafael Weingärtner
>



-- 
Rafael Weingärtner

Re: Can System VMs be migrated?

Posted by Rafael Weingartner <ra...@gmail.com>.
Somesh Naidu,

I am using the 4.3.0 version.

I am using Xen hypervisor with XAPI (old XCP) packages over Debian 7.4

I did not understand what you mean with “in the system offerings” .  The
primary storage of the clusters are NFS servers.

On Tue, Feb 10, 2015 at 1:25 PM, Somesh Naidu <So...@citrix.com>
wrote:

> Rafael,
>
> What version of CS are you using? I have a 4.3 and a 4.5 environment with
> XS/VMware/KVM hypervisors and on all of them, the system VMs are being
> created on shared primary storage.
>
> Can you check what storage type is set in the system offerings?
>
> Regards,
> Somesh
>
>
> -----Original Message-----
> From: Rafael Weingartner [mailto:rafaelweingartner@gmail.com]
> Sent: Tuesday, February 10, 2015 7:20 AM
> To: dev@cloudstack.apache.org
> Subject: Re: Can System VMs be migrated?
>
> Marcus, the parameter “system.vm.use.local.storage” was already set to
> false. That parameter does not make any sense to me; it seems that it is
> not used, at least for Xen.
>
> Abhinandan Prateek, I did not configure it erroneously. I configured NFS
> storage to store users VMs (primary storage), I am not using local storage
> for anything, but sadly I was forced to create a local SR into every host.
> I had exchanged some emails about that in the users list a while ago:
>
>
> http://mail-archives.apache.org/mod_mbox/cloudstack-users/201309.mbox/%3CCAG97radxdiUaim7-W5nw-BAcvTFV0MgD6RJzB64=ueRvM89V0g@mail.gmail.com%3E
>
> The problem seems to be here:
>
> com.cloud.hypervisor.xen.resource.XcpOssResource.createPatchVbd(Connection,
> String, VM)
>
> That class do not use the parameter “system.vm.use.local.storage”, it
> forced us to add a local SR in the host. Then it deploys the systemvm-vdi
> into that “_host.localSRuuid”.
>
>
> http://fossies.org/dox/apache-cloudstack-4.4.2-src/XcpOssResource_8java_source.html
>
> Is that behavior expected? I have lived with that since CS 4.1.1 (I am
> using 4.3.0) and it seems to be the same in 4.4.
>
>
> On Tue, Feb 10, 2015 at 3:09 AM, Marcus <sh...@gmail.com> wrote:
>
> > edit the global setting "system.vm.use.local.storage", restart mgmt
> server.
> >
> > On Mon, Feb 9, 2015 at 8:20 PM, Abhinandan Prateek
> > <ab...@shapeblue.com> wrote:
> > > While creating a zone you can configure the use of local storage. It
> > seems you configured it erroneously.
> > > In 4.3 as per my knowledge live vm migration with local storage is
> > broken. Use it in 4,5 it works I have tested it.
> > > If you do not want to use local storage make sure you turn it off while
> > creating the zone.
> > >
> > > -abhi
> > >
> > >
> > >> On 10-Feb-2015, at 1:20 am, Rafael Weingartner <
> > rafaelweingartner@gmail.com> wrote:
> > >>
> > >> Well,
> > >> There is a button, take a look at the SS I took:
> > >> http://postimg.org/image/5sr7yxyud/
> > >>
> > >> I am curious, why does the CS allocate system VMs’ VDI on local SR on
> > Xen
> > >> hypervisor? Why not use the primary storage of the cluster in which
> the
> > >> host is in?
> > >> I looked at the code, and it is hard coded there, Xen hosts have to
> > have a
> > >> local SR, otherwise you cannot add them into CS (first time I saw
> that I
> > >> found it very weird, I even sent an email about it, but did not get
> any
> > >> reply).
> > >>
> > >> That does not seem to happen with other hypervisors.
> > >>
> > >> Now that you mentioned the maintenance mode, I noticed that system VMs
> > are
> > >> not being migrated when I put its host in maintenance, I thought that
> > was a
> > >> normal behavior (weird one but normal, given that those VMs are using
> > the
> > >> local SR of the Xen hypervisor).
> > >>
> > >> On Mon, Feb 9, 2015 at 5:10 PM, Yiping Zhang <yz...@marketo.com>
> > wrote:
> > >>
> > >>> How do you migrate systemVM’s in UI?
> > >>>
> > >>> If you just put the host, where the systemVM’s are running, into
> > >>> “maintenance” mode, then you may have hit this bug which was fixed in
> > >>> 4.4.0: https://issues.apache.org/jira/browse/CLOUDSTACK-5660
> > >>>
> > >>>
> > >>> Yiping
> > >>>
> > >>> On 2/9/15, 11:01 AM, "Rafael Weingartner" <
> rafaelweingartner@gmail.com
> > >
> > >>> wrote:
> > >>>
> > >>>> Update:
> > >>>> The UI may not be working because it uses the command
> > "migrateSystemVm",
> > >>>> instead of "migrateVirtualMachineWithVolume".
> > >>>> Shoud I open a bug report?
> > >>>>
> > >>>> On Mon, Feb 9, 2015 at 3:21 PM, Rafael Weingartner <
> > >>>> rafaelweingartner@gmail.com> wrote:
> > >>>>
> > >>>>> I also tried and it did not work. I am using CS 4.3.0.
> > >>>>> I used the UI button. I got the error "VM_REQUIRES_SR".
> > >>>>>
> > >>>>> On Mon, Feb 9, 2015 at 2:52 PM, Prashant Kumar Mishra <
> > >>>>> prashantkumar.mishra@citrix.com> wrote:
> > >>>>>
> > >>>>>> 1-Yes we can migrate system vm , I have done it many times
> > >>>>>>
> > >>>>>>
> > >>>>>> 2-Even if vm is deployed with local storage you can migrate to
> > another
> > >>>>>> local storage . Check out this api migrateVirtualMachineWithVolume
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>
> > http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/migrateVirt
> > >>>>>> ual
> > >>>>>> MachineWithVolume.html
> > >>>>>>
> > >>>>>> <
> > >>>
> > http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/migrateVir
> > >>>>>> tualMachineWithVolume.html>
> > >>>>>>
> > >>>>>>
> > >>>>>> ~prashant
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>> On 2/9/15, 5:08 PM, "Rafael Weingartner" <
> > rafaelweingartner@gmail.com>
> > >>>>>> wrote:
> > >>>>>>
> > >>>>>>> That is the answer I wanted to hear.  If we can migrate system
> VMs,
> > >>>>>> why
> > >>>>>>> are
> > >>>>>>> the systems VMs¹ VDI allocated in the local SR on Xen hypervisor?
> > >>>>>>>
> > >>>>>>> It is not possible to migrate those system VMs, hence they are
> > using a
> > >>>>>>> local SR.
> > >>>>>>>
> > >>>>>>> On Mon, Feb 9, 2015 at 3:01 AM, Sanjeev Neelarapu <
> > >>>>>>> sanjeev.neelarapu@citrix.com> wrote:
> > >>>>>>>
> > >>>>>>>> Yes, we can.
> > >>>>>>>>
> > >>>>>>>> -----Original Message-----
> > >>>>>>>> From: Rafael Weingartner [mailto:rafaelweingartner@gmail.com]
> > >>>>>>>> Sent: Saturday, February 07, 2015 2:41 AM
> > >>>>>>>> To: dev@cloudstack.apache.org
> > >>>>>>>> Subject: Can System VMs be migrated?
> > >>>>>>>>
> > >>>>>>>> Hi folks,
> > >>>>>>>>
> > >>>>>>>> I was wondering, can we migrate systems vms from a host to
> another
> > >>>>>> one
> > >>>>>>>> in
> > >>>>>>>> the same cluster?
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>> --
> > >>>>>>>> Rafael Weingärtner
> > >>>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>> --
> > >>>>>>> Rafael Weingärtner
> > >>>>>>
> > >>>>>>
> > >>>>>
> > >>>>>
> > >>>>> --
> > >>>>> Rafael Weingärtner
> > >>>>>
> > >>>>
> > >>>>
> > >>>>
> > >>>> --
> > >>>> Rafael Weingärtner
> > >>>
> > >>>
> > >>
> > >>
> > >> --
> > >> Rafael Weingärtner
> > >
> > > Find out more about ShapeBlue and our range of CloudStack related
> > services
> > >
> > > IaaS Cloud Design & Build<
> > http://shapeblue.com/iaas-cloud-design-and-build//>
> > > CSForge – rapid IaaS deployment framework<
> http://shapeblue.com/csforge/>
> > > CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
> > > CloudStack Software Engineering<
> > http://shapeblue.com/cloudstack-software-engineering/>
> > > CloudStack Infrastructure Support<
> > http://shapeblue.com/cloudstack-infrastructure-support/>
> > > CloudStack Bootcamp Training Courses<
> > http://shapeblue.com/cloudstack-training/>
> > >
> > > This email and any attachments to it may be confidential and are
> > intended solely for the use of the individual to whom it is addressed.
> Any
> > views or opinions expressed are solely those of the author and do not
> > necessarily represent those of Shape Blue Ltd or related companies. If
> you
> > are not the intended recipient of this email, you must neither take any
> > action based upon its contents, nor copy or show it to anyone. Please
> > contact the sender if you believe you have received this email in error.
> > Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue
> > Services India LLP is a company incorporated in India and is operated
> under
> > license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a
> > company incorporated in Brasil and is operated under license from Shape
> > Blue Ltd. ShapeBlue SA Pty Ltd is a company registered by The Republic of
> > South Africa and is traded under license from Shape Blue Ltd. ShapeBlue
> is
> > a registered trademark.
> >
>
>
>
> --
> Rafael Weingärtner
>



-- 
Rafael Weingärtner

RE: Can System VMs be migrated?

Posted by Somesh Naidu <So...@citrix.com>.
Rafael,

What version of CS are you using? I have a 4.3 and a 4.5 environment with XS/VMware/KVM hypervisors and on all of them, the system VMs are being created on shared primary storage.

Can you check what storage type is set in the system offerings?

Regards,
Somesh


-----Original Message-----
From: Rafael Weingartner [mailto:rafaelweingartner@gmail.com] 
Sent: Tuesday, February 10, 2015 7:20 AM
To: dev@cloudstack.apache.org
Subject: Re: Can System VMs be migrated?

Marcus, the parameter “system.vm.use.local.storage” was already set to
false. That parameter does not make any sense to me; it seems that it is
not used, at least for Xen.

Abhinandan Prateek, I did not configure it erroneously. I configured NFS
storage to store users VMs (primary storage), I am not using local storage
for anything, but sadly I was forced to create a local SR into every host.
I had exchanged some emails about that in the users list a while ago:

http://mail-archives.apache.org/mod_mbox/cloudstack-users/201309.mbox/%3CCAG97radxdiUaim7-W5nw-BAcvTFV0MgD6RJzB64=ueRvM89V0g@mail.gmail.com%3E

The problem seems to be here:

com.cloud.hypervisor.xen.resource.XcpOssResource.createPatchVbd(Connection,
String, VM)

That class do not use the parameter “system.vm.use.local.storage”, it
forced us to add a local SR in the host. Then it deploys the systemvm-vdi
into that “_host.localSRuuid”.

http://fossies.org/dox/apache-cloudstack-4.4.2-src/XcpOssResource_8java_source.html

Is that behavior expected? I have lived with that since CS 4.1.1 (I am
using 4.3.0) and it seems to be the same in 4.4.


On Tue, Feb 10, 2015 at 3:09 AM, Marcus <sh...@gmail.com> wrote:

> edit the global setting "system.vm.use.local.storage", restart mgmt server.
>
> On Mon, Feb 9, 2015 at 8:20 PM, Abhinandan Prateek
> <ab...@shapeblue.com> wrote:
> > While creating a zone you can configure the use of local storage. It
> seems you configured it erroneously.
> > In 4.3 as per my knowledge live vm migration with local storage is
> broken. Use it in 4,5 it works I have tested it.
> > If you do not want to use local storage make sure you turn it off while
> creating the zone.
> >
> > -abhi
> >
> >
> >> On 10-Feb-2015, at 1:20 am, Rafael Weingartner <
> rafaelweingartner@gmail.com> wrote:
> >>
> >> Well,
> >> There is a button, take a look at the SS I took:
> >> http://postimg.org/image/5sr7yxyud/
> >>
> >> I am curious, why does the CS allocate system VMs’ VDI on local SR on
> Xen
> >> hypervisor? Why not use the primary storage of the cluster in which the
> >> host is in?
> >> I looked at the code, and it is hard coded there, Xen hosts have to
> have a
> >> local SR, otherwise you cannot add them into CS (first time I saw that I
> >> found it very weird, I even sent an email about it, but did not get any
> >> reply).
> >>
> >> That does not seem to happen with other hypervisors.
> >>
> >> Now that you mentioned the maintenance mode, I noticed that system VMs
> are
> >> not being migrated when I put its host in maintenance, I thought that
> was a
> >> normal behavior (weird one but normal, given that those VMs are using
> the
> >> local SR of the Xen hypervisor).
> >>
> >> On Mon, Feb 9, 2015 at 5:10 PM, Yiping Zhang <yz...@marketo.com>
> wrote:
> >>
> >>> How do you migrate systemVM’s in UI?
> >>>
> >>> If you just put the host, where the systemVM’s are running, into
> >>> “maintenance” mode, then you may have hit this bug which was fixed in
> >>> 4.4.0: https://issues.apache.org/jira/browse/CLOUDSTACK-5660
> >>>
> >>>
> >>> Yiping
> >>>
> >>> On 2/9/15, 11:01 AM, "Rafael Weingartner" <rafaelweingartner@gmail.com
> >
> >>> wrote:
> >>>
> >>>> Update:
> >>>> The UI may not be working because it uses the command
> "migrateSystemVm",
> >>>> instead of "migrateVirtualMachineWithVolume".
> >>>> Shoud I open a bug report?
> >>>>
> >>>> On Mon, Feb 9, 2015 at 3:21 PM, Rafael Weingartner <
> >>>> rafaelweingartner@gmail.com> wrote:
> >>>>
> >>>>> I also tried and it did not work. I am using CS 4.3.0.
> >>>>> I used the UI button. I got the error "VM_REQUIRES_SR".
> >>>>>
> >>>>> On Mon, Feb 9, 2015 at 2:52 PM, Prashant Kumar Mishra <
> >>>>> prashantkumar.mishra@citrix.com> wrote:
> >>>>>
> >>>>>> 1-Yes we can migrate system vm , I have done it many times
> >>>>>>
> >>>>>>
> >>>>>> 2-Even if vm is deployed with local storage you can migrate to
> another
> >>>>>> local storage . Check out this api migrateVirtualMachineWithVolume
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>
> http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/migrateVirt
> >>>>>> ual
> >>>>>> MachineWithVolume.html
> >>>>>>
> >>>>>> <
> >>>
> http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/migrateVir
> >>>>>> tualMachineWithVolume.html>
> >>>>>>
> >>>>>>
> >>>>>> ~prashant
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> On 2/9/15, 5:08 PM, "Rafael Weingartner" <
> rafaelweingartner@gmail.com>
> >>>>>> wrote:
> >>>>>>
> >>>>>>> That is the answer I wanted to hear.  If we can migrate system VMs,
> >>>>>> why
> >>>>>>> are
> >>>>>>> the systems VMs¹ VDI allocated in the local SR on Xen hypervisor?
> >>>>>>>
> >>>>>>> It is not possible to migrate those system VMs, hence they are
> using a
> >>>>>>> local SR.
> >>>>>>>
> >>>>>>> On Mon, Feb 9, 2015 at 3:01 AM, Sanjeev Neelarapu <
> >>>>>>> sanjeev.neelarapu@citrix.com> wrote:
> >>>>>>>
> >>>>>>>> Yes, we can.
> >>>>>>>>
> >>>>>>>> -----Original Message-----
> >>>>>>>> From: Rafael Weingartner [mailto:rafaelweingartner@gmail.com]
> >>>>>>>> Sent: Saturday, February 07, 2015 2:41 AM
> >>>>>>>> To: dev@cloudstack.apache.org
> >>>>>>>> Subject: Can System VMs be migrated?
> >>>>>>>>
> >>>>>>>> Hi folks,
> >>>>>>>>
> >>>>>>>> I was wondering, can we migrate systems vms from a host to another
> >>>>>> one
> >>>>>>>> in
> >>>>>>>> the same cluster?
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> --
> >>>>>>>> Rafael Weingärtner
> >>>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>> --
> >>>>>>> Rafael Weingärtner
> >>>>>>
> >>>>>>
> >>>>>
> >>>>>
> >>>>> --
> >>>>> Rafael Weingärtner
> >>>>>
> >>>>
> >>>>
> >>>>
> >>>> --
> >>>> Rafael Weingärtner
> >>>
> >>>
> >>
> >>
> >> --
> >> Rafael Weingärtner
> >
> > Find out more about ShapeBlue and our range of CloudStack related
> services
> >
> > IaaS Cloud Design & Build<
> http://shapeblue.com/iaas-cloud-design-and-build//>
> > CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/>
> > CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
> > CloudStack Software Engineering<
> http://shapeblue.com/cloudstack-software-engineering/>
> > CloudStack Infrastructure Support<
> http://shapeblue.com/cloudstack-infrastructure-support/>
> > CloudStack Bootcamp Training Courses<
> http://shapeblue.com/cloudstack-training/>
> >
> > This email and any attachments to it may be confidential and are
> intended solely for the use of the individual to whom it is addressed. Any
> views or opinions expressed are solely those of the author and do not
> necessarily represent those of Shape Blue Ltd or related companies. If you
> are not the intended recipient of this email, you must neither take any
> action based upon its contents, nor copy or show it to anyone. Please
> contact the sender if you believe you have received this email in error.
> Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue
> Services India LLP is a company incorporated in India and is operated under
> license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a
> company incorporated in Brasil and is operated under license from Shape
> Blue Ltd. ShapeBlue SA Pty Ltd is a company registered by The Republic of
> South Africa and is traded under license from Shape Blue Ltd. ShapeBlue is
> a registered trademark.
>



-- 
Rafael Weingärtner

Re: Can System VMs be migrated?

Posted by Rafael Weingartner <ra...@gmail.com>.
Marcus, the parameter “system.vm.use.local.storage” was already set to
false. That parameter does not make any sense to me; it seems that it is
not used, at least for Xen.

Abhinandan Prateek, I did not configure it erroneously. I configured NFS
storage to store users VMs (primary storage), I am not using local storage
for anything, but sadly I was forced to create a local SR into every host.
I had exchanged some emails about that in the users list a while ago:

http://mail-archives.apache.org/mod_mbox/cloudstack-users/201309.mbox/%3CCAG97radxdiUaim7-W5nw-BAcvTFV0MgD6RJzB64=ueRvM89V0g@mail.gmail.com%3E

The problem seems to be here:

com.cloud.hypervisor.xen.resource.XcpOssResource.createPatchVbd(Connection,
String, VM)

That class do not use the parameter “system.vm.use.local.storage”, it
forced us to add a local SR in the host. Then it deploys the systemvm-vdi
into that “_host.localSRuuid”.

http://fossies.org/dox/apache-cloudstack-4.4.2-src/XcpOssResource_8java_source.html

Is that behavior expected? I have lived with that since CS 4.1.1 (I am
using 4.3.0) and it seems to be the same in 4.4.


On Tue, Feb 10, 2015 at 3:09 AM, Marcus <sh...@gmail.com> wrote:

> edit the global setting "system.vm.use.local.storage", restart mgmt server.
>
> On Mon, Feb 9, 2015 at 8:20 PM, Abhinandan Prateek
> <ab...@shapeblue.com> wrote:
> > While creating a zone you can configure the use of local storage. It
> seems you configured it erroneously.
> > In 4.3 as per my knowledge live vm migration with local storage is
> broken. Use it in 4,5 it works I have tested it.
> > If you do not want to use local storage make sure you turn it off while
> creating the zone.
> >
> > -abhi
> >
> >
> >> On 10-Feb-2015, at 1:20 am, Rafael Weingartner <
> rafaelweingartner@gmail.com> wrote:
> >>
> >> Well,
> >> There is a button, take a look at the SS I took:
> >> http://postimg.org/image/5sr7yxyud/
> >>
> >> I am curious, why does the CS allocate system VMs’ VDI on local SR on
> Xen
> >> hypervisor? Why not use the primary storage of the cluster in which the
> >> host is in?
> >> I looked at the code, and it is hard coded there, Xen hosts have to
> have a
> >> local SR, otherwise you cannot add them into CS (first time I saw that I
> >> found it very weird, I even sent an email about it, but did not get any
> >> reply).
> >>
> >> That does not seem to happen with other hypervisors.
> >>
> >> Now that you mentioned the maintenance mode, I noticed that system VMs
> are
> >> not being migrated when I put its host in maintenance, I thought that
> was a
> >> normal behavior (weird one but normal, given that those VMs are using
> the
> >> local SR of the Xen hypervisor).
> >>
> >> On Mon, Feb 9, 2015 at 5:10 PM, Yiping Zhang <yz...@marketo.com>
> wrote:
> >>
> >>> How do you migrate systemVM’s in UI?
> >>>
> >>> If you just put the host, where the systemVM’s are running, into
> >>> “maintenance” mode, then you may have hit this bug which was fixed in
> >>> 4.4.0: https://issues.apache.org/jira/browse/CLOUDSTACK-5660
> >>>
> >>>
> >>> Yiping
> >>>
> >>> On 2/9/15, 11:01 AM, "Rafael Weingartner" <rafaelweingartner@gmail.com
> >
> >>> wrote:
> >>>
> >>>> Update:
> >>>> The UI may not be working because it uses the command
> "migrateSystemVm",
> >>>> instead of "migrateVirtualMachineWithVolume".
> >>>> Shoud I open a bug report?
> >>>>
> >>>> On Mon, Feb 9, 2015 at 3:21 PM, Rafael Weingartner <
> >>>> rafaelweingartner@gmail.com> wrote:
> >>>>
> >>>>> I also tried and it did not work. I am using CS 4.3.0.
> >>>>> I used the UI button. I got the error "VM_REQUIRES_SR".
> >>>>>
> >>>>> On Mon, Feb 9, 2015 at 2:52 PM, Prashant Kumar Mishra <
> >>>>> prashantkumar.mishra@citrix.com> wrote:
> >>>>>
> >>>>>> 1-Yes we can migrate system vm , I have done it many times
> >>>>>>
> >>>>>>
> >>>>>> 2-Even if vm is deployed with local storage you can migrate to
> another
> >>>>>> local storage . Check out this api migrateVirtualMachineWithVolume
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>
> http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/migrateVirt
> >>>>>> ual
> >>>>>> MachineWithVolume.html
> >>>>>>
> >>>>>> <
> >>>
> http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/migrateVir
> >>>>>> tualMachineWithVolume.html>
> >>>>>>
> >>>>>>
> >>>>>> ~prashant
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> On 2/9/15, 5:08 PM, "Rafael Weingartner" <
> rafaelweingartner@gmail.com>
> >>>>>> wrote:
> >>>>>>
> >>>>>>> That is the answer I wanted to hear.  If we can migrate system VMs,
> >>>>>> why
> >>>>>>> are
> >>>>>>> the systems VMs¹ VDI allocated in the local SR on Xen hypervisor?
> >>>>>>>
> >>>>>>> It is not possible to migrate those system VMs, hence they are
> using a
> >>>>>>> local SR.
> >>>>>>>
> >>>>>>> On Mon, Feb 9, 2015 at 3:01 AM, Sanjeev Neelarapu <
> >>>>>>> sanjeev.neelarapu@citrix.com> wrote:
> >>>>>>>
> >>>>>>>> Yes, we can.
> >>>>>>>>
> >>>>>>>> -----Original Message-----
> >>>>>>>> From: Rafael Weingartner [mailto:rafaelweingartner@gmail.com]
> >>>>>>>> Sent: Saturday, February 07, 2015 2:41 AM
> >>>>>>>> To: dev@cloudstack.apache.org
> >>>>>>>> Subject: Can System VMs be migrated?
> >>>>>>>>
> >>>>>>>> Hi folks,
> >>>>>>>>
> >>>>>>>> I was wondering, can we migrate systems vms from a host to another
> >>>>>> one
> >>>>>>>> in
> >>>>>>>> the same cluster?
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> --
> >>>>>>>> Rafael Weingärtner
> >>>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>> --
> >>>>>>> Rafael Weingärtner
> >>>>>>
> >>>>>>
> >>>>>
> >>>>>
> >>>>> --
> >>>>> Rafael Weingärtner
> >>>>>
> >>>>
> >>>>
> >>>>
> >>>> --
> >>>> Rafael Weingärtner
> >>>
> >>>
> >>
> >>
> >> --
> >> Rafael Weingärtner
> >
> > Find out more about ShapeBlue and our range of CloudStack related
> services
> >
> > IaaS Cloud Design & Build<
> http://shapeblue.com/iaas-cloud-design-and-build//>
> > CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/>
> > CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
> > CloudStack Software Engineering<
> http://shapeblue.com/cloudstack-software-engineering/>
> > CloudStack Infrastructure Support<
> http://shapeblue.com/cloudstack-infrastructure-support/>
> > CloudStack Bootcamp Training Courses<
> http://shapeblue.com/cloudstack-training/>
> >
> > This email and any attachments to it may be confidential and are
> intended solely for the use of the individual to whom it is addressed. Any
> views or opinions expressed are solely those of the author and do not
> necessarily represent those of Shape Blue Ltd or related companies. If you
> are not the intended recipient of this email, you must neither take any
> action based upon its contents, nor copy or show it to anyone. Please
> contact the sender if you believe you have received this email in error.
> Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue
> Services India LLP is a company incorporated in India and is operated under
> license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a
> company incorporated in Brasil and is operated under license from Shape
> Blue Ltd. ShapeBlue SA Pty Ltd is a company registered by The Republic of
> South Africa and is traded under license from Shape Blue Ltd. ShapeBlue is
> a registered trademark.
>



-- 
Rafael Weingärtner

Re: Can System VMs be migrated?

Posted by Marcus <sh...@gmail.com>.
edit the global setting "system.vm.use.local.storage", restart mgmt server.

On Mon, Feb 9, 2015 at 8:20 PM, Abhinandan Prateek
<ab...@shapeblue.com> wrote:
> While creating a zone you can configure the use of local storage. It seems you configured it erroneously.
> In 4.3 as per my knowledge live vm migration with local storage is broken. Use it in 4,5 it works I have tested it.
> If you do not want to use local storage make sure you turn it off while creating the zone.
>
> -abhi
>
>
>> On 10-Feb-2015, at 1:20 am, Rafael Weingartner <ra...@gmail.com> wrote:
>>
>> Well,
>> There is a button, take a look at the SS I took:
>> http://postimg.org/image/5sr7yxyud/
>>
>> I am curious, why does the CS allocate system VMs’ VDI on local SR on Xen
>> hypervisor? Why not use the primary storage of the cluster in which the
>> host is in?
>> I looked at the code, and it is hard coded there, Xen hosts have to have a
>> local SR, otherwise you cannot add them into CS (first time I saw that I
>> found it very weird, I even sent an email about it, but did not get any
>> reply).
>>
>> That does not seem to happen with other hypervisors.
>>
>> Now that you mentioned the maintenance mode, I noticed that system VMs are
>> not being migrated when I put its host in maintenance, I thought that was a
>> normal behavior (weird one but normal, given that those VMs are using the
>> local SR of the Xen hypervisor).
>>
>> On Mon, Feb 9, 2015 at 5:10 PM, Yiping Zhang <yz...@marketo.com> wrote:
>>
>>> How do you migrate systemVM’s in UI?
>>>
>>> If you just put the host, where the systemVM’s are running, into
>>> “maintenance” mode, then you may have hit this bug which was fixed in
>>> 4.4.0: https://issues.apache.org/jira/browse/CLOUDSTACK-5660
>>>
>>>
>>> Yiping
>>>
>>> On 2/9/15, 11:01 AM, "Rafael Weingartner" <ra...@gmail.com>
>>> wrote:
>>>
>>>> Update:
>>>> The UI may not be working because it uses the command "migrateSystemVm",
>>>> instead of "migrateVirtualMachineWithVolume".
>>>> Shoud I open a bug report?
>>>>
>>>> On Mon, Feb 9, 2015 at 3:21 PM, Rafael Weingartner <
>>>> rafaelweingartner@gmail.com> wrote:
>>>>
>>>>> I also tried and it did not work. I am using CS 4.3.0.
>>>>> I used the UI button. I got the error "VM_REQUIRES_SR".
>>>>>
>>>>> On Mon, Feb 9, 2015 at 2:52 PM, Prashant Kumar Mishra <
>>>>> prashantkumar.mishra@citrix.com> wrote:
>>>>>
>>>>>> 1-Yes we can migrate system vm , I have done it many times
>>>>>>
>>>>>>
>>>>>> 2-Even if vm is deployed with local storage you can migrate to another
>>>>>> local storage . Check out this api migrateVirtualMachineWithVolume
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>> http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/migrateVirt
>>>>>> ual
>>>>>> MachineWithVolume.html
>>>>>>
>>>>>> <
>>> http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/migrateVir
>>>>>> tualMachineWithVolume.html>
>>>>>>
>>>>>>
>>>>>> ~prashant
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On 2/9/15, 5:08 PM, "Rafael Weingartner" <ra...@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> That is the answer I wanted to hear.  If we can migrate system VMs,
>>>>>> why
>>>>>>> are
>>>>>>> the systems VMs¹ VDI allocated in the local SR on Xen hypervisor?
>>>>>>>
>>>>>>> It is not possible to migrate those system VMs, hence they are using a
>>>>>>> local SR.
>>>>>>>
>>>>>>> On Mon, Feb 9, 2015 at 3:01 AM, Sanjeev Neelarapu <
>>>>>>> sanjeev.neelarapu@citrix.com> wrote:
>>>>>>>
>>>>>>>> Yes, we can.
>>>>>>>>
>>>>>>>> -----Original Message-----
>>>>>>>> From: Rafael Weingartner [mailto:rafaelweingartner@gmail.com]
>>>>>>>> Sent: Saturday, February 07, 2015 2:41 AM
>>>>>>>> To: dev@cloudstack.apache.org
>>>>>>>> Subject: Can System VMs be migrated?
>>>>>>>>
>>>>>>>> Hi folks,
>>>>>>>>
>>>>>>>> I was wondering, can we migrate systems vms from a host to another
>>>>>> one
>>>>>>>> in
>>>>>>>> the same cluster?
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Rafael Weingärtner
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Rafael Weingärtner
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Rafael Weingärtner
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Rafael Weingärtner
>>>
>>>
>>
>>
>> --
>> Rafael Weingärtner
>
> Find out more about ShapeBlue and our range of CloudStack related services
>
> IaaS Cloud Design & Build<http://shapeblue.com/iaas-cloud-design-and-build//>
> CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/>
> CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
> CloudStack Software Engineering<http://shapeblue.com/cloudstack-software-engineering/>
> CloudStack Infrastructure Support<http://shapeblue.com/cloudstack-infrastructure-support/>
> CloudStack Bootcamp Training Courses<http://shapeblue.com/cloudstack-training/>
>
> This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is a company registered by The Republic of South Africa and is traded under license from Shape Blue Ltd. ShapeBlue is a registered trademark.

Re: Can System VMs be migrated?

Posted by Abhinandan Prateek <ab...@shapeblue.com>.
While creating a zone you can configure the use of local storage. It seems you configured it erroneously.
In 4.3 as per my knowledge live vm migration with local storage is broken. Use it in 4,5 it works I have tested it.
If you do not want to use local storage make sure you turn it off while creating the zone.

-abhi


> On 10-Feb-2015, at 1:20 am, Rafael Weingartner <ra...@gmail.com> wrote:
>
> Well,
> There is a button, take a look at the SS I took:
> http://postimg.org/image/5sr7yxyud/
>
> I am curious, why does the CS allocate system VMs’ VDI on local SR on Xen
> hypervisor? Why not use the primary storage of the cluster in which the
> host is in?
> I looked at the code, and it is hard coded there, Xen hosts have to have a
> local SR, otherwise you cannot add them into CS (first time I saw that I
> found it very weird, I even sent an email about it, but did not get any
> reply).
>
> That does not seem to happen with other hypervisors.
>
> Now that you mentioned the maintenance mode, I noticed that system VMs are
> not being migrated when I put its host in maintenance, I thought that was a
> normal behavior (weird one but normal, given that those VMs are using the
> local SR of the Xen hypervisor).
>
> On Mon, Feb 9, 2015 at 5:10 PM, Yiping Zhang <yz...@marketo.com> wrote:
>
>> How do you migrate systemVM’s in UI?
>>
>> If you just put the host, where the systemVM’s are running, into
>> “maintenance” mode, then you may have hit this bug which was fixed in
>> 4.4.0: https://issues.apache.org/jira/browse/CLOUDSTACK-5660
>>
>>
>> Yiping
>>
>> On 2/9/15, 11:01 AM, "Rafael Weingartner" <ra...@gmail.com>
>> wrote:
>>
>>> Update:
>>> The UI may not be working because it uses the command "migrateSystemVm",
>>> instead of "migrateVirtualMachineWithVolume".
>>> Shoud I open a bug report?
>>>
>>> On Mon, Feb 9, 2015 at 3:21 PM, Rafael Weingartner <
>>> rafaelweingartner@gmail.com> wrote:
>>>
>>>> I also tried and it did not work. I am using CS 4.3.0.
>>>> I used the UI button. I got the error "VM_REQUIRES_SR".
>>>>
>>>> On Mon, Feb 9, 2015 at 2:52 PM, Prashant Kumar Mishra <
>>>> prashantkumar.mishra@citrix.com> wrote:
>>>>
>>>>> 1-Yes we can migrate system vm , I have done it many times
>>>>>
>>>>>
>>>>> 2-Even if vm is deployed with local storage you can migrate to another
>>>>> local storage . Check out this api migrateVirtualMachineWithVolume
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>> http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/migrateVirt
>>>>> ual
>>>>> MachineWithVolume.html
>>>>>
>>>>> <
>> http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/migrateVir
>>>>> tualMachineWithVolume.html>
>>>>>
>>>>>
>>>>> ~prashant
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On 2/9/15, 5:08 PM, "Rafael Weingartner" <ra...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> That is the answer I wanted to hear.  If we can migrate system VMs,
>>>>> why
>>>>>> are
>>>>>> the systems VMs¹ VDI allocated in the local SR on Xen hypervisor?
>>>>>>
>>>>>> It is not possible to migrate those system VMs, hence they are using a
>>>>>> local SR.
>>>>>>
>>>>>> On Mon, Feb 9, 2015 at 3:01 AM, Sanjeev Neelarapu <
>>>>>> sanjeev.neelarapu@citrix.com> wrote:
>>>>>>
>>>>>>> Yes, we can.
>>>>>>>
>>>>>>> -----Original Message-----
>>>>>>> From: Rafael Weingartner [mailto:rafaelweingartner@gmail.com]
>>>>>>> Sent: Saturday, February 07, 2015 2:41 AM
>>>>>>> To: dev@cloudstack.apache.org
>>>>>>> Subject: Can System VMs be migrated?
>>>>>>>
>>>>>>> Hi folks,
>>>>>>>
>>>>>>> I was wondering, can we migrate systems vms from a host to another
>>>>> one
>>>>>>> in
>>>>>>> the same cluster?
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Rafael Weingärtner
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Rafael Weingärtner
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Rafael Weingärtner
>>>>
>>>
>>>
>>>
>>> --
>>> Rafael Weingärtner
>>
>>
>
>
> --
> Rafael Weingärtner

Find out more about ShapeBlue and our range of CloudStack related services

IaaS Cloud Design & Build<http://shapeblue.com/iaas-cloud-design-and-build//>
CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/>
CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
CloudStack Software Engineering<http://shapeblue.com/cloudstack-software-engineering/>
CloudStack Infrastructure Support<http://shapeblue.com/cloudstack-infrastructure-support/>
CloudStack Bootcamp Training Courses<http://shapeblue.com/cloudstack-training/>

This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is a company registered by The Republic of South Africa and is traded under license from Shape Blue Ltd. ShapeBlue is a registered trademark.

Re: Can System VMs be migrated?

Posted by Rafael Weingartner <ra...@gmail.com>.
Well,
There is a button, take a look at the SS I took:
http://postimg.org/image/5sr7yxyud/

I am curious, why does the CS allocate system VMs’ VDI on local SR on Xen
hypervisor? Why not use the primary storage of the cluster in which the
host is in?
I looked at the code, and it is hard coded there, Xen hosts have to have a
local SR, otherwise you cannot add them into CS (first time I saw that I
found it very weird, I even sent an email about it, but did not get any
reply).

That does not seem to happen with other hypervisors.

Now that you mentioned the maintenance mode, I noticed that system VMs are
not being migrated when I put its host in maintenance, I thought that was a
normal behavior (weird one but normal, given that those VMs are using the
local SR of the Xen hypervisor).

On Mon, Feb 9, 2015 at 5:10 PM, Yiping Zhang <yz...@marketo.com> wrote:

> How do you migrate systemVM’s in UI?
>
> If you just put the host, where the systemVM’s are running, into
> “maintenance” mode, then you may have hit this bug which was fixed in
> 4.4.0: https://issues.apache.org/jira/browse/CLOUDSTACK-5660
>
>
> Yiping
>
> On 2/9/15, 11:01 AM, "Rafael Weingartner" <ra...@gmail.com>
> wrote:
>
> >Update:
> >The UI may not be working because it uses the command "migrateSystemVm",
> >instead of "migrateVirtualMachineWithVolume".
> >Shoud I open a bug report?
> >
> >On Mon, Feb 9, 2015 at 3:21 PM, Rafael Weingartner <
> >rafaelweingartner@gmail.com> wrote:
> >
> >> I also tried and it did not work. I am using CS 4.3.0.
> >> I used the UI button. I got the error "VM_REQUIRES_SR".
> >>
> >> On Mon, Feb 9, 2015 at 2:52 PM, Prashant Kumar Mishra <
> >> prashantkumar.mishra@citrix.com> wrote:
> >>
> >>> 1-Yes we can migrate system vm , I have done it many times
> >>>
> >>>
> >>> 2-Even if vm is deployed with local storage you can migrate to another
> >>> local storage . Check out this api migrateVirtualMachineWithVolume
> >>>
> >>>
> >>>
> >>>
> >>>
> http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/migrateVirt
> >>>ual
> >>> MachineWithVolume.html
> >>>
> >>><
> http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/migrateVir
> >>>tualMachineWithVolume.html>
> >>>
> >>>
> >>> ~prashant
> >>>
> >>>
> >>>
> >>>
> >>> On 2/9/15, 5:08 PM, "Rafael Weingartner" <ra...@gmail.com>
> >>> wrote:
> >>>
> >>> >That is the answer I wanted to hear.  If we can migrate system VMs,
> >>>why
> >>> >are
> >>> >the systems VMs¹ VDI allocated in the local SR on Xen hypervisor?
> >>> >
> >>> >It is not possible to migrate those system VMs, hence they are using a
> >>> >local SR.
> >>> >
> >>> >On Mon, Feb 9, 2015 at 3:01 AM, Sanjeev Neelarapu <
> >>> >sanjeev.neelarapu@citrix.com> wrote:
> >>> >
> >>> >> Yes, we can.
> >>> >>
> >>> >> -----Original Message-----
> >>> >> From: Rafael Weingartner [mailto:rafaelweingartner@gmail.com]
> >>> >> Sent: Saturday, February 07, 2015 2:41 AM
> >>> >> To: dev@cloudstack.apache.org
> >>> >> Subject: Can System VMs be migrated?
> >>> >>
> >>> >> Hi folks,
> >>> >>
> >>> >> I was wondering, can we migrate systems vms from a host to another
> >>>one
> >>> >>in
> >>> >> the same cluster?
> >>> >>
> >>> >>
> >>> >> --
> >>> >> Rafael Weingärtner
> >>> >>
> >>> >
> >>> >
> >>> >
> >>> >--
> >>> >Rafael Weingärtner
> >>>
> >>>
> >>
> >>
> >> --
> >> Rafael Weingärtner
> >>
> >
> >
> >
> >--
> >Rafael Weingärtner
>
>


-- 
Rafael Weingärtner

Re: Can System VMs be migrated?

Posted by Yiping Zhang <yz...@marketo.com>.
How do you migrate systemVM’s in UI?

If you just put the host, where the systemVM’s are running, into
“maintenance” mode, then you may have hit this bug which was fixed in
4.4.0: https://issues.apache.org/jira/browse/CLOUDSTACK-5660


Yiping

On 2/9/15, 11:01 AM, "Rafael Weingartner" <ra...@gmail.com>
wrote:

>Update:
>The UI may not be working because it uses the command "migrateSystemVm",
>instead of "migrateVirtualMachineWithVolume".
>Shoud I open a bug report?
>
>On Mon, Feb 9, 2015 at 3:21 PM, Rafael Weingartner <
>rafaelweingartner@gmail.com> wrote:
>
>> I also tried and it did not work. I am using CS 4.3.0.
>> I used the UI button. I got the error "VM_REQUIRES_SR".
>>
>> On Mon, Feb 9, 2015 at 2:52 PM, Prashant Kumar Mishra <
>> prashantkumar.mishra@citrix.com> wrote:
>>
>>> 1-Yes we can migrate system vm , I have done it many times
>>>
>>>
>>> 2-Even if vm is deployed with local storage you can migrate to another
>>> local storage . Check out this api migrateVirtualMachineWithVolume
>>>
>>>
>>>
>>> 
>>>http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/migrateVirt
>>>ual
>>> MachineWithVolume.html
>>> 
>>><http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/migrateVir
>>>tualMachineWithVolume.html>
>>>
>>>
>>> ~prashant
>>>
>>>
>>>
>>>
>>> On 2/9/15, 5:08 PM, "Rafael Weingartner" <ra...@gmail.com>
>>> wrote:
>>>
>>> >That is the answer I wanted to hear.  If we can migrate system VMs,
>>>why
>>> >are
>>> >the systems VMs¹ VDI allocated in the local SR on Xen hypervisor?
>>> >
>>> >It is not possible to migrate those system VMs, hence they are using a
>>> >local SR.
>>> >
>>> >On Mon, Feb 9, 2015 at 3:01 AM, Sanjeev Neelarapu <
>>> >sanjeev.neelarapu@citrix.com> wrote:
>>> >
>>> >> Yes, we can.
>>> >>
>>> >> -----Original Message-----
>>> >> From: Rafael Weingartner [mailto:rafaelweingartner@gmail.com]
>>> >> Sent: Saturday, February 07, 2015 2:41 AM
>>> >> To: dev@cloudstack.apache.org
>>> >> Subject: Can System VMs be migrated?
>>> >>
>>> >> Hi folks,
>>> >>
>>> >> I was wondering, can we migrate systems vms from a host to another
>>>one
>>> >>in
>>> >> the same cluster?
>>> >>
>>> >>
>>> >> --
>>> >> Rafael Weingärtner
>>> >>
>>> >
>>> >
>>> >
>>> >--
>>> >Rafael Weingärtner
>>>
>>>
>>
>>
>> --
>> Rafael Weingärtner
>>
>
>
>
>-- 
>Rafael Weingärtner


Re: Can System VMs be migrated?

Posted by Rafael Weingartner <ra...@gmail.com>.
Update:
The UI may not be working because it uses the command "migrateSystemVm",
instead of "migrateVirtualMachineWithVolume".
Shoud I open a bug report?

On Mon, Feb 9, 2015 at 3:21 PM, Rafael Weingartner <
rafaelweingartner@gmail.com> wrote:

> I also tried and it did not work. I am using CS 4.3.0.
> I used the UI button. I got the error "VM_REQUIRES_SR".
>
> On Mon, Feb 9, 2015 at 2:52 PM, Prashant Kumar Mishra <
> prashantkumar.mishra@citrix.com> wrote:
>
>> 1-Yes we can migrate system vm , I have done it many times
>>
>>
>> 2-Even if vm is deployed with local storage you can migrate to another
>> local storage . Check out this api migrateVirtualMachineWithVolume
>>
>>
>>
>> http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/migrateVirtual
>> MachineWithVolume.html
>> <http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/migrateVirtualMachineWithVolume.html>
>>
>>
>> ~prashant
>>
>>
>>
>>
>> On 2/9/15, 5:08 PM, "Rafael Weingartner" <ra...@gmail.com>
>> wrote:
>>
>> >That is the answer I wanted to hear.  If we can migrate system VMs, why
>> >are
>> >the systems VMs¹ VDI allocated in the local SR on Xen hypervisor?
>> >
>> >It is not possible to migrate those system VMs, hence they are using a
>> >local SR.
>> >
>> >On Mon, Feb 9, 2015 at 3:01 AM, Sanjeev Neelarapu <
>> >sanjeev.neelarapu@citrix.com> wrote:
>> >
>> >> Yes, we can.
>> >>
>> >> -----Original Message-----
>> >> From: Rafael Weingartner [mailto:rafaelweingartner@gmail.com]
>> >> Sent: Saturday, February 07, 2015 2:41 AM
>> >> To: dev@cloudstack.apache.org
>> >> Subject: Can System VMs be migrated?
>> >>
>> >> Hi folks,
>> >>
>> >> I was wondering, can we migrate systems vms from a host to another one
>> >>in
>> >> the same cluster?
>> >>
>> >>
>> >> --
>> >> Rafael Weingärtner
>> >>
>> >
>> >
>> >
>> >--
>> >Rafael Weingärtner
>>
>>
>
>
> --
> Rafael Weingärtner
>



-- 
Rafael Weingärtner

Re: Can System VMs be migrated?

Posted by Rafael Weingartner <ra...@gmail.com>.
I also tried and it did not work. I am using CS 4.3.0.
I used the UI button. I got the error "VM_REQUIRES_SR".

On Mon, Feb 9, 2015 at 2:52 PM, Prashant Kumar Mishra <
prashantkumar.mishra@citrix.com> wrote:

> 1-Yes we can migrate system vm , I have done it many times
>
>
> 2-Even if vm is deployed with local storage you can migrate to another
> local storage . Check out this api migrateVirtualMachineWithVolume
>
>
> http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/migrateVirtual
> MachineWithVolume.html
>
>
> ~prashant
>
>
>
>
> On 2/9/15, 5:08 PM, "Rafael Weingartner" <ra...@gmail.com>
> wrote:
>
> >That is the answer I wanted to hear.  If we can migrate system VMs, why
> >are
> >the systems VMs¹ VDI allocated in the local SR on Xen hypervisor?
> >
> >It is not possible to migrate those system VMs, hence they are using a
> >local SR.
> >
> >On Mon, Feb 9, 2015 at 3:01 AM, Sanjeev Neelarapu <
> >sanjeev.neelarapu@citrix.com> wrote:
> >
> >> Yes, we can.
> >>
> >> -----Original Message-----
> >> From: Rafael Weingartner [mailto:rafaelweingartner@gmail.com]
> >> Sent: Saturday, February 07, 2015 2:41 AM
> >> To: dev@cloudstack.apache.org
> >> Subject: Can System VMs be migrated?
> >>
> >> Hi folks,
> >>
> >> I was wondering, can we migrate systems vms from a host to another one
> >>in
> >> the same cluster?
> >>
> >>
> >> --
> >> Rafael Weingärtner
> >>
> >
> >
> >
> >--
> >Rafael Weingärtner
>
>


-- 
Rafael Weingärtner

Re: Can System VMs be migrated?

Posted by Prashant Kumar Mishra <pr...@citrix.com>.
1-Yes we can migrate system vm , I have done it many times


2-Even if vm is deployed with local storage you can migrate to another
local storage . Check out this api migrateVirtualMachineWithVolume


http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/migrateVirtual
MachineWithVolume.html


~prashant




On 2/9/15, 5:08 PM, "Rafael Weingartner" <ra...@gmail.com>
wrote:

>That is the answer I wanted to hear.  If we can migrate system VMs, why
>are
>the systems VMs¹ VDI allocated in the local SR on Xen hypervisor?
>
>It is not possible to migrate those system VMs, hence they are using a
>local SR.
>
>On Mon, Feb 9, 2015 at 3:01 AM, Sanjeev Neelarapu <
>sanjeev.neelarapu@citrix.com> wrote:
>
>> Yes, we can.
>>
>> -----Original Message-----
>> From: Rafael Weingartner [mailto:rafaelweingartner@gmail.com]
>> Sent: Saturday, February 07, 2015 2:41 AM
>> To: dev@cloudstack.apache.org
>> Subject: Can System VMs be migrated?
>>
>> Hi folks,
>>
>> I was wondering, can we migrate systems vms from a host to another one
>>in
>> the same cluster?
>>
>>
>> --
>> Rafael Weingärtner
>>
>
>
>
>-- 
>Rafael Weingärtner


Re: Can System VMs be migrated?

Posted by Rafael Weingartner <ra...@gmail.com>.
That is the answer I wanted to hear.  If we can migrate system VMs, why are
the systems VMs’ VDI allocated in the local SR on Xen hypervisor?

It is not possible to migrate those system VMs, hence they are using a
local SR.

On Mon, Feb 9, 2015 at 3:01 AM, Sanjeev Neelarapu <
sanjeev.neelarapu@citrix.com> wrote:

> Yes, we can.
>
> -----Original Message-----
> From: Rafael Weingartner [mailto:rafaelweingartner@gmail.com]
> Sent: Saturday, February 07, 2015 2:41 AM
> To: dev@cloudstack.apache.org
> Subject: Can System VMs be migrated?
>
> Hi folks,
>
> I was wondering, can we migrate systems vms from a host to another one in
> the same cluster?
>
>
> --
> Rafael Weingärtner
>



-- 
Rafael Weingärtner

RE: Can System VMs be migrated?

Posted by Sanjeev Neelarapu <sa...@citrix.com>.
Yes, we can.

-----Original Message-----
From: Rafael Weingartner [mailto:rafaelweingartner@gmail.com] 
Sent: Saturday, February 07, 2015 2:41 AM
To: dev@cloudstack.apache.org
Subject: Can System VMs be migrated?

Hi folks,

I was wondering, can we migrate systems vms from a host to another one in the same cluster?


--
Rafael Weingärtner