Hi, I am very new to XCP , and I have couple of questions to make things clear. After creating a resource pool:Do I have to create a SR for each VM, if I needed to assign 100GB HDD for this VM??Do I have to assign a pif for each VM to distribute the traffic over my hosts NICs or the master will handle this?? Thanks so much for any help _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Not sure if I understood your question but you should think virtual machines are like "real" computers. If you don''t add any virtual interfaces, it''s same as if you had computer with no interfaces on it. Pif is the physical interface, what you propably should add to your vm''s, is virtual interface (vif). I quess there''s nothing wrong about adding a pif to your vm, you could even do some sort of pass throught to dedicate the physical adapter to that particular quest, but generally I think people add vif''s. Idea on vif is, that it''s bound to physical interface and dom0 routes the traffic to vif''s. About the SR, you obviously need at least one SR to install os for the virtual machine. Well actually you could boot from network and propably could manage with out any storage but I''m quessing this isn''t your situation. You can change settings for the storage and networking when you''re creating the virtual machine. Hope any of my ramblings help you. -Henrik Andersson On 3 January 2011 08:54, inas mohamed <inas_2003@yahoo.com> wrote:> Hi, > > I am very new to XCP , and I have couple of questions to make things clear. > > After creating a resource pool: > Do I have to create a SR for each VM, if I needed to assign 100GB HDD for > this VM?? > Do I have to assign a pif for each VM to distribute the traffic over my > hosts NICs or the master will handle this?? > > Thanks so much for any help > > > > > _______________________________________________ > 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
No, you can create on SR and store all of your VMs on that SR. For example, if you use an NFS target for your VHD files, all of your VMs could share that SR. You don''t need to assign a separate PIF for each VM. In fact, most people won''t. You will assign a separate VIF for each VM and then XCP can route the VIFs through a shared PIF. -----Original Message----- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of inas mohamed Sent: Monday, January 03, 2011 12:55 AM To: xen-users@lists.xensource.com Subject: [Xen-users] XCP resource pool Hi, I am very new to XCP , and I have couple of questions to make things clear. After creating a resource pool: Do I have to create a SR for each VM, if I needed to assign 100GB HDD for this VM?? Do I have to assign a pif for each VM to distribute the traffic over my hosts NICs or the master will handle this?? Thanks so much for any help _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thanks soo much, but as I said before I am very new and by the time I am finding that my question is tooo .......:( I read many forums and guides on XCP and VMs and I found that many VDIs can be created on the same storage repository for our VMs.But regarding vifs, now as a said before I installed XCP on 5 servers and created a resource pool and all my servers joined that pool and when I try:# xe network-list bridge=xenbr0 params=uuid --minimal I am getting one network uuid but if I said: # xe pif-listI got 5 NICs all are eth0, each have a different uuid but all have the same network uuidSo, I am asking why when we are creating a vif we are using the network uuid not the pif uuid to say the traffic of this VM has to go through this NIC?? may be it is another .... question.but it is my question :) Thanks for every one. --- On Mon, 1/3/11, admin@xenhive.com <admin@xenhive.com> wrote: From: admin@xenhive.com <admin@xenhive.com> Subject: RE: [Xen-users] XCP resource pool To: xen-users@lists.xensource.com Date: Monday, January 3, 2011, 9:58 PM No, you can create on SR and store all of your VMs on that SR. For example, if you use an NFS target for your VHD files, all of your VMs could share that SR. You don’t need to assign a separate PIF for each VM. In fact, most people won’t. You will assign a separate VIF for each VM and then XCP can route the VIFs through a shared PIF. -----Original Message----- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of inas mohamed Sent: Monday, January 03, 2011 12:55 AM To: xen-users@lists.xensource.com Subject: [Xen-users] XCP resource pool Hi, I am very new to XCP , and I have couple of questions to make things clear. After creating a resource pool: Do I have to create a SR for each VM, if I needed to assign 100GB HDD for this VM?? Do I have to assign a pif for each VM to distribute the traffic over my hosts NICs or the master will handle this?? Thanks so much for any help -----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
Thanks so much for your great reply. I understood. --- On Mon, 1/3/11, Henrik Andersson <henrik.j.andersson@gmail.com> wrote: From: Henrik Andersson <henrik.j.andersson@gmail.com> Subject: Re: [Xen-users] XCP resource pool To: "inas mohamed" <inas_2003@yahoo.com>, "xenList" <xen-users@lists.xensource.com> Date: Monday, January 3, 2011, 7:27 PM Not sure if I understood your question but you should think virtual machines are like "real" computers. If you don''t add any virtual interfaces, it''s same as if you had computer with no interfaces on it. Pif is the physical interface, what you propably should add to your vm''s, is virtual interface (vif). I quess there''s nothing wrong about adding a pif to your vm, you could even do some sort of pass throught to dedicate the physical adapter to that particular quest, but generally I think people add vif''s. Idea on vif is, that it''s bound to physical interface and dom0 routes the traffic to vif''s. About the SR, you obviously need at least one SR to install os for the virtual machine. Well actually you could boot from network and propably could manage with out any storage but I''m quessing this isn''t your situation. You can change settings for the storage and networking when you''re creating the virtual machine. Hope any of my ramblings help you. -Henrik Andersson On 3 January 2011 08:54, inas mohamed <inas_2003@yahoo.com> wrote: Hi, I am very new to XCP , and I have couple of questions to make things clear. After creating a resource pool:Do I have to create a SR for each VM, if I needed to assign 100GB HDD for this VM??Do I have to assign a pif for each VM to distribute the traffic over my hosts NICs or the master will handle this?? Thanks so much for any help _______________________________________________ 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
Each physical node gets a PIF. Each VM gets a VIF. When a VM is migrated from one physical node to another, XCP will automatically route the network traffic from the VM''s VIF through the correct PIF using the virtual network switching. After the initial configuration, you can pretty much just ignore the PIF information and let XCP do its magic. You don''t need to manually connect a VM to a PIF. Connect the VM using a VIF. -----Original Message----- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of inas mohamed Sent: Monday, January 03, 2011 11:46 PM To: xen-users@lists.xensource.com; admin@xenhive.com Subject: RE: [Xen-users] XCP resource pool Thanks soo much, but as I said before I am very new and by the time I am finding that my question is tooo .......:( I read many forums and guides on XCP and VMs and I found that many VDIs can be created on the same storage repository for our VMs. But regarding vifs, now as a said before I installed XCP on 5 servers and created a resource pool and all my servers joined that pool and when I try: # xe network-list bridge=xenbr0 params=uuid --minimal I am getting one network uuid but if I said: # xe pif-list I got 5 NICs all are eth0, each have a different uuid but all have the same network uuid So, I am asking why when we are creating a vif we are using the network uuid not the pif uuid to say the traffic of this VM has to go through this NIC?? may be it is another .... question.but it is my question :) Thanks for every one. --- On Mon, 1/3/11, admin@xenhive.com <admin@xenhive.com> wrote: From: admin@xenhive.com <admin@xenhive.com> Subject: RE: [Xen-users] XCP resource pool To: xen-users@lists.xensource.com Date: Monday, January 3, 2011, 9:58 PM No, you can create on SR and store all of your VMs on that SR. For example, if you use an NFS target for your VHD files, all of your VMs could share that SR. You don''t need to assign a separate PIF for each VM. In fact, most people won''t. You will assign a separate VIF for each VM and then XCP can route the VIFs through a shared PIF. -----Original Message----- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of inas mohamed Sent: Monday, January 03, 2011 12:55 AM To: xen-users@lists.xensource.com Subject: [Xen-users] XCP resource pool Hi, I am very new to XCP , and I have couple of questions to make things clear. After creating a resource pool: Do I have to create a SR for each VM, if I needed to assign 100GB HDD for this VM?? Do I have to assign a pif for each VM to distribute the traffic over my hosts NICs or the master will handle this?? Thanks so much for any help -----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
Hi Inas, A PIF represents a physical NIC inside a host, while a “Network” is a pool-wide thing. XCP automatically creates PIFs for all physical NICs, and creates one Network for all of those with the same device name across all hosts in the pool (e.g. all eth0 PIFs are on the same network). Suppose you have a VM running on host A, which has a VIF on the Network associated with the eth0 PIFs. All communication between this VM and nodes outside host A will then go through the eth0 interface on host A. The nice thing about this is that if you migrate your VM from host A to host B, the VM will automatically use B’s eth0 interface without any need to change the configuration. Hope that helps. Rob From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of inas mohamed Sent: 04 January 2011 05:46 To: xen-users@lists.xensource.com; admin@xenhive.com Subject: RE: [Xen-users] XCP resource pool Thanks soo much, but as I said before I am very new and by the time I am finding that my question is tooo .......:( I read many forums and guides on XCP and VMs and I found that many VDIs can be created on the same storage repository for our VMs. But regarding vifs, now as a said before I installed XCP on 5 servers and created a resource pool and all my servers joined that pool and when I try: # xe network-list bridge=xenbr0 params=uuid --minimal I am getting one network uuid but if I said: # xe pif-list I got 5 NICs all are eth0, each have a different uuid but all have the same network uuid So, I am asking why when we are creating a vif we are using the network uuid not the pif uuid to say the traffic of this VM has to go through this NIC?? may be it is another .... question.but it is my question :) Thanks for every one. --- On Mon, 1/3/11, admin@xenhive.com <admin@xenhive.com> wrote: From: admin@xenhive.com <admin@xenhive.com> Subject: RE: [Xen-users] XCP resource pool To: xen-users@lists.xensource.com Date: Monday, January 3, 2011, 9:58 PM No, you can create on SR and store all of your VMs on that SR. For example, if you use an NFS target for your VHD files, all of your VMs could share that SR. You don’t need to assign a separate PIF for each VM. In fact, most people won’t. You will assign a separate VIF for each VM and then XCP can route the VIFs through a shared PIF. -----Original Message----- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of inas mohamed Sent: Monday, January 03, 2011 12:55 AM To: xen-users@lists.xensource.com Subject: [Xen-users] XCP resource pool Hi, I am very new to XCP , and I have couple of questions to make things clear. After creating a resource pool: Do I have to create a SR for each VM, if I needed to assign 100GB HDD for this VM?? Do I have to assign a pif for each VM to distribute the traffic over my hosts NICs or the master will handle this?? Thanks so much for any help -----Inline Attachment Follows----- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com</mc/compose?to=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
Thanks to you Rob & admin for your very good explanation. Now every thing is clear.Thanks so much. Inas --- On Tue, 1/4/11, Rob Hoes <Rob.Hoes@citrix.com> wrote: From: Rob Hoes <Rob.Hoes@citrix.com> Subject: RE: [Xen-users] XCP resource pool To: "''inas mohamed''" <inas_2003@yahoo.com>, "xen-users@lists.xensource.com" <xen-users@lists.xensource.com> Date: Tuesday, January 4, 2011, 3:21 PM Hi Inas, A PIF represents a physical NIC inside a host, while a “Network” is a pool-wide thing. XCP automatically creates PIFs for all physical NICs, and creates one Network for all of those with the same device name across all hosts in the pool (e.g. all eth0 PIFs are on the same network). Suppose you have a VM running on host A, which has a VIF on the Network associated with the eth0 PIFs. All communication between this VM and nodes outside host A will then go through the eth0 interface on host A. The nice thing about this is that if you migrate your VM from host A to host B, the VM will automatically use B’s eth0 interface without any need to change the configuration. Hope that helps. Rob From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of inas mohamed Sent: 04 January 2011 05:46 To: xen-users@lists.xensource.com; admin@xenhive.com Subject: RE: [Xen-users] XCP resource pool Thanks soo much, but as I said before I am very new and by the time I am finding that my question is tooo .......:( I read many forums and guides on XCP and VMs and I found that many VDIs can be created on the same storage repository for our VMs.But regarding vifs, now as a said before I installed XCP on 5 servers and created a resource pool and all my servers joined that pool and when I try:# xe network-list bridge=xenbr0 params=uuid --minimal I am getting one network uuid but if I said: # xe pif-listI got 5 NICs all are eth0, each have a different uuid but all have the same network uuidSo, I am asking why when we are creating a vif we are using the network uuid not the pif uuid to say the traffic of this VM has to go through this NIC?? may be it is another .... question.but it is my question :) Thanks for every one. --- On Mon, 1/3/11, admin@xenhive.com <admin@xenhive.com> wrote: From: admin@xenhive.com <admin@xenhive.com> Subject: RE: [Xen-users] XCP resource pool To: xen-users@lists.xensource.com Date: Monday, January 3, 2011, 9:58 PMNo, you can create on SR and store all of your VMs on that SR. For example, if you use an NFS target for your VHD files, all of your VMs could share that SR. You don’t need to assign a separate PIF for each VM. In fact, most people won’t. You will assign a separate VIF for each VM and then XCP can route the VIFs through a shared PIF. -----Original Message----- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of inas mohamed Sent: Monday, January 03, 2011 12:55 AM To: xen-users@lists.xensource.com Subject: [Xen-users] XCP resource pool Hi, I am very new to XCP , and I have couple of questions to make things clear. After creating a resource pool:Do I have to create a SR for each VM, if I needed to assign 100GB HDD for this VM??Do I have to assign a pif for each VM to distribute the traffic over my hosts NICs or the master will handle this?? Thanks so much for any help -----Inline Attachment Follows-----_______________________________________________ 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