Re: [ovirt-users] Assign external IP to VM

2017-12-27 Thread Alex Bartonek
geez.. I was super far off. LOL.  That did it!!!   This is so awesome.  Thanks 
for the assist!

Sent with [ProtonMail](https://protonmail.com) Secure Email.

>  Original Message 
> Subject: Re: [ovirt-users] Assign external IP to VM
> Local Time: December 27, 2017 1:20 AM
> UTC Time: December 27, 2017 7:20 AM
> From: eh...@redhat.com
> To: Alex Bartonek <a...@unix1337.com>
> users@ovirt.org <users@ovirt.org>
>
> It is not clear what you did exactly, but, if I try to summarize, this setup 
> should work for you:
> - Create a network (network->networks) and mark it as a VM network.
> - Create a vNIC profile (network->networks->[network]->Vnic Profiles.
> - Attach the network on the relevant NIC on your host 
> (compute->hosts->[host]->Network Interface->Setup Hos Networks).
> (No need to set an IP on these networks, unless you need the host stack 
> itself and not only the vms to access these networks)
> - Create or edit your VM, create a vnic (or edit one) and point it to the 
> relevant vnic profile you created earlier.
>
> Do this for each nic you mentioned, and it should work for you.
>
> The use of SRIOV or pci-passthrough is taking this a step further, mainly 
> when you need high throughput.
> For SRIOV you need special NIC hardware and the pci-passthrough is limiting 
> one vnic per nic, which is wasteful if you do not really need it.
> Thanks,
> Edy.
>
> On Wed, Dec 27, 2017 at 12:38 AM, Alex Bartonek <a...@unix1337.com> wrote:
>
>> Need some guidance on this one.
>>
>> Config:
>> 1U with 2 NICs.
>> NIC 1 plugged to local switch - gets local IP
>> NIC 2 plugged direct to cable modem - need to set IP inside VM to public 
>> static IP
>> VM will be CentOS, already know how to configure NIC once I can get the 2nd 
>> NIC assigned to it.
>>
>> Do I use PCI passthru?  Or where do I start to get this configured?  I did 
>> setup NIC 2 under Network --> Networks.   Created a NIC called 
>> "external_NIC".  External NIC has description and then I configured 2 DNS 
>> servers which are given to me by the ISP.
>>
>> Under Compute --> Hosts -->  --> Network Interfaces (I have both 
>> NICs showing as up) --> Setup Host Networks ---> NIC 2 is the interface --> 
>> Assignment of Logical networks is "external_NIC".
>>
>> I was assuming I was done, so I go to my VM add NIC 2, click run and I see:
>>
>> Cannot run VM. There is no host that satisfies current scheduling 
>> constraints. See below for details:
>>
>> - The host  did not satisfy internal filter Network because there 
>> are no free virtual functions which are suitable for virtual nic(s) nic2. A 
>> virtual function is considered as suitable if the VF's configuration of its 
>> physical function contains the virtual nic's network/network label.
>>
>> Need guidance on what to read to get this working.
>>
>> Thanks!
>>
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Assign external IP to VM

2017-12-26 Thread Edward Haas
It is not clear what you did exactly, but, if I try to summarize, this
setup should work for you:

- Create a network (network->networks) and mark it as a VM network.
- Create a vNIC profile (network->networks->[network]->Vnic Profiles.
- Attach the network on the relevant NIC on your host
(compute->hosts->[host]->Network Interface->Setup Hos Networks).
(No need to set an IP on these networks, unless you need the host stack
itself and not only the vms to access these networks)
- Create or edit your VM, create a vnic (or edit one) and point it to the
relevant vnic profile you created earlier.

Do this for each nic you mentioned, and it should work for you.

The use of SRIOV or pci-passthrough is taking this a step further, mainly
when you need high throughput.
For SRIOV you need special NIC hardware and the pci-passthrough is limiting
one vnic per nic, which is wasteful if you do not really need it.

Thanks,
Edy.

On Wed, Dec 27, 2017 at 12:38 AM, Alex Bartonek  wrote:

> Need some guidance on this one.
>
> Config:
> 1U with 2 NICs.
> NIC 1 plugged to local switch - gets local IP
> NIC 2 plugged direct to cable modem - need to set IP inside VM to public
> static IP
> VM will be CentOS, already know how to configure NIC once I can get the
> 2nd NIC assigned to it.
>
> Do I use PCI passthru?  Or where do I start to get this configured?  I did
> setup NIC 2 under Network --> Networks.   Created a NIC called
> "external_NIC".  External NIC has description and then I configured 2 DNS
> servers which are given to me by the ISP.
>
> Under Compute --> Hosts -->  --> Network Interfaces (I have both
> NICs showing as up) --> Setup Host Networks ---> NIC 2 is the interface -->
> Assignment of Logical networks is "external_NIC".
>
> I was assuming I was done, so I go to my VM add NIC 2, click run and I see:
>
> Cannot run VM. There is no host that satisfies current scheduling
> constraints. See below for details:
>
>- The host  did not satisfy internal filter Network because
>there are no free virtual functions which are suitable for virtual nic(s)
>nic2. A virtual function is considered as suitable if the VF's
>configuration of its physical function contains the virtual nic's
>network/network label.
>
> Need guidance on what to read to get this working.
>
> Thanks!
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Assign external IP to VM

2017-12-26 Thread Blaster
You're over thinking this.  Just create an ifcfg script just enough so 
the interface plumbs, with no IP, then add it do your datacenter, with 
something like dmz or internet as it's name.  Then add the NIC to the VM 
and plumb it up.


Since there's no IP plumbed in the hypervisor, there's no way it can be 
access from the network.



On 12/26/2017 4:38 PM, Alex Bartonek wrote:

Need some guidance on this one.

Config:
1U with 2 NICs.
NIC 1 plugged to local switch - gets local IP
NIC 2 plugged direct to cable modem - need to set IP inside VM to 
public static IP
VM will be CentOS, already know how to configure NIC once I can get 
the 2nd NIC assigned to it.


Do I use PCI passthru?  Or where do I start to get this configured?  I 
did setup NIC 2 under Network --> Networks. Created a NIC called 
"external_NIC".  External NIC has description and then I configured 2 
DNS servers which are given to me by the ISP.


Under Compute --> Hosts -->  --> Network Interfaces (I have 
both NICs showing as up) --> Setup Host Networks ---> NIC 2 is the 
interface --> Assignment of Logical networks is "external_NIC".


I was assuming I was done, so I go to my VM add NIC 2, click run and I 
see:


Cannot run VM. There is no host that satisfies current scheduling 
constraints. See below for details:


  * The host  did not satisfy internal filter Network because
there are no free virtual functions which are suitable for virtual
nic(s) nic2. A virtual function is considered as suitable if the
VF's configuration of its physical function contains the virtual
nic's network/network label.

Need guidance on what to read to get this working.

Thanks!


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users



___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Assign external IP to VM

2017-12-26 Thread Alex Bartonek
basically, NIC 1 is internal network access to the VM via shell or whatever 
protocol, vnc etc.
NIC 2 is the public facing IP. My webserver will access/will be accessed via 
NIC 2.

Sent with [ProtonMail](https://protonmail.com) Secure Email.

>  Original Message 
> Subject: Re: [ovirt-users] Assign external IP to VM
> Local Time: December 26, 2017 8:17 PM
> UTC Time: December 27, 2017 2:17 AM
> From: do...@fortnebula.com
> To: Alex Bartonek <a...@unix1337.com>
> users@ovirt.org <users@ovirt.org>
>
> Are you using built in nics on your hypervisor? If so, then pci passthrough 
> will likely pass both as they as possibly on the same pci device. At least 
> that is how my dells work. Honestly you should just be able to put nic two on 
> its own network untagged and then assign that network to the hypervisor with 
> the connection. Without SR-IOV support those nics will be dedicated to that 
> VM.
>
> Just depends on your use case. What is the big picture?
>
> On Tue, Dec 26, 2017 at 9:12 PM Alex Bartonek <a...@unix1337.com> wrote:
>
>> Yes, enabled io-mmu.   I'm not sure if what I'm doing is right though.  So 
>> if there is a better way of accomplishing what I'm trying to do, send me to 
>> some reading material so I dont take up too much of everyone's time.  I'll 
>> read up on it.  If its a simple do-this-and-that, then I'll try it.
>>
>> Thanks!
>>
>> Sent with [ProtonMail](https://protonmail.com) Secure Email.
>>
>>>  Original Message 
>>> Subject: Re: [ovirt-users] Assign external IP to VM
>>> Local Time: December 26, 2017 7:17 PM
>>> UTC Time: December 27, 2017 1:17 AM
>>> From: do...@fortnebula.com
>>> To: Alex Bartonek <a...@unix1337.com>
>>> users@ovirt.org <users@ovirt.org>
>>>
>>> Looks like you are trying to use SR-IOV. Did you enable iommu on the 
>>> hypervisors? Do your hypervisors support SR-IOV.
>>>
>>> On Tue, Dec 26, 2017 at 5:38 PM, Alex Bartonek <a...@unix1337.com> wrote:
>>>
>>>> Need some guidance on this one.
>>>>
>>>> Config:
>>>> 1U with 2 NICs.
>>>> NIC 1 plugged to local switch - gets local IP
>>>> NIC 2 plugged direct to cable modem - need to set IP inside VM to public 
>>>> static IP
>>>> VM will be CentOS, already know how to configure NIC once I can get the 
>>>> 2nd NIC assigned to it.
>>>>
>>>> Do I use PCI passthru?  Or where do I start to get this configured?  I did 
>>>> setup NIC 2 under Network --> Networks.   Created a NIC called 
>>>> "external_NIC".  External NIC has description and then I configured 2 DNS 
>>>> servers which are given to me by the ISP.
>>>>
>>>> Under Compute --> Hosts -->  --> Network Interfaces (I have both 
>>>> NICs showing as up) --> Setup Host Networks ---> NIC 2 is the interface 
>>>> --> Assignment of Logical networks is "external_NIC".
>>>>
>>>> I was assuming I was done, so I go to my VM add NIC 2, click run and I see:
>>>>
>>>> Cannot run VM. There is no host that satisfies current scheduling 
>>>> constraints. See below for details:
>>>>
>>>> - The host  did not satisfy internal filter Network because there 
>>>> are no free virtual functions which are suitable for virtual nic(s) nic2. 
>>>> A virtual function is considered as suitable if the VF's configuration of 
>>>> its physical function contains the virtual nic's network/network label.
>>>>
>>>> Need guidance on what to read to get this working.
>>>>
>>>> Thanks!
>>>>
>>>> ___
>>>> Users mailing list
>>>> Users@ovirt.org
>>>> http://lists.ovirt.org/mailman/listinfo/users___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Assign external IP to VM

2017-12-26 Thread Donny Davis
Are you using built in nics on your hypervisor? If so, then pci passthrough
will likely pass both as they as possibly on the same pci device. At least
that is how my dells work. Honestly you should just be able to put nic two
on its own network untagged and then assign that network to the hypervisor
with the connection. Without SR-IOV support those nics will be dedicated to
that VM.

Just depends on your use case. What is the big picture?

On Tue, Dec 26, 2017 at 9:12 PM Alex Bartonek <a...@unix1337.com> wrote:

> Yes, enabled io-mmu.   I'm not sure if what I'm doing is right though.  So
> if there is a better way of accomplishing what I'm trying to do, send me to
> some reading material so I dont take up too much of everyone's time.  I'll
> read up on it.  If its a simple do-this-and-that, then I'll try it.
>
> Thanks!
>
>
> Sent with ProtonMail <https://protonmail.com> Secure Email.
>
> ---- Original Message 
> Subject: Re: [ovirt-users] Assign external IP to VM
> Local Time: December 26, 2017 7:17 PM
> UTC Time: December 27, 2017 1:17 AM
> From: do...@fortnebula.com
> To: Alex Bartonek <a...@unix1337.com>
> users@ovirt.org <users@ovirt.org>
>
> Looks like you are trying to use SR-IOV. Did you enable iommu on the
> hypervisors? Do your hypervisors support SR-IOV.
>
> On Tue, Dec 26, 2017 at 5:38 PM, Alex Bartonek <a...@unix1337.com> wrote:
>
>> Need some guidance on this one.
>>
>> Config:
>> 1U with 2 NICs.
>> NIC 1 plugged to local switch - gets local IP
>> NIC 2 plugged direct to cable modem - need to set IP inside VM to public
>> static IP
>> VM will be CentOS, already know how to configure NIC once I can get the
>> 2nd NIC assigned to it.
>>
>> Do I use PCI passthru?  Or where do I start to get this configured?  I
>> did setup NIC 2 under Network --> Networks.   Created a NIC called
>> "external_NIC".  External NIC has description and then I configured 2 DNS
>> servers which are given to me by the ISP.
>>
>> Under Compute --> Hosts -->  --> Network Interfaces (I have both
>> NICs showing as up) --> Setup Host Networks ---> NIC 2 is the interface -->
>> Assignment of Logical networks is "external_NIC".
>>
>> I was assuming I was done, so I go to my VM add NIC 2, click run and I
>> see:
>>
>> Cannot run VM. There is no host that satisfies current scheduling
>> constraints. See below for details:
>>
>>- The host  did not satisfy internal filter Network because
>>there are no free virtual functions which are suitable for virtual nic(s)
>>nic2. A virtual function is considered as suitable if the VF's
>>configuration of its physical function contains the virtual nic's
>>network/network label.
>>
>> Need guidance on what to read to get this working.
>>
>> Thanks!
>>
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>>
>>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Assign external IP to VM

2017-12-26 Thread Alex Bartonek
Yes, enabled io-mmu.   I'm not sure if what I'm doing is right though.  So if 
there is a better way of accomplishing what I'm trying to do, send me to some 
reading material so I dont take up too much of everyone's time.  I'll read up 
on it.  If its a simple do-this-and-that, then I'll try it.

Thanks!

Sent with [ProtonMail](https://protonmail.com) Secure Email.

>  Original Message 
> Subject: Re: [ovirt-users] Assign external IP to VM
> Local Time: December 26, 2017 7:17 PM
> UTC Time: December 27, 2017 1:17 AM
> From: do...@fortnebula.com
> To: Alex Bartonek <a...@unix1337.com>
> users@ovirt.org <users@ovirt.org>
>
> Looks like you are trying to use SR-IOV. Did you enable iommu on the 
> hypervisors? Do your hypervisors support SR-IOV.
>
> On Tue, Dec 26, 2017 at 5:38 PM, Alex Bartonek <a...@unix1337.com> wrote:
>
>> Need some guidance on this one.
>>
>> Config:
>> 1U with 2 NICs.
>> NIC 1 plugged to local switch - gets local IP
>> NIC 2 plugged direct to cable modem - need to set IP inside VM to public 
>> static IP
>> VM will be CentOS, already know how to configure NIC once I can get the 2nd 
>> NIC assigned to it.
>>
>> Do I use PCI passthru?  Or where do I start to get this configured?  I did 
>> setup NIC 2 under Network --> Networks.   Created a NIC called 
>> "external_NIC".  External NIC has description and then I configured 2 DNS 
>> servers which are given to me by the ISP.
>>
>> Under Compute --> Hosts -->  --> Network Interfaces (I have both 
>> NICs showing as up) --> Setup Host Networks ---> NIC 2 is the interface --> 
>> Assignment of Logical networks is "external_NIC".
>>
>> I was assuming I was done, so I go to my VM add NIC 2, click run and I see:
>>
>> Cannot run VM. There is no host that satisfies current scheduling 
>> constraints. See below for details:
>>
>> - The host  did not satisfy internal filter Network because there 
>> are no free virtual functions which are suitable for virtual nic(s) nic2. A 
>> virtual function is considered as suitable if the VF's configuration of its 
>> physical function contains the virtual nic's network/network label.
>>
>> Need guidance on what to read to get this working.
>>
>> Thanks!
>>
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Assign external IP to VM

2017-12-26 Thread Donny Davis
Looks like you are trying to use SR-IOV. Did you enable iommu on the
hypervisors? Do your hypervisors support SR-IOV.

On Tue, Dec 26, 2017 at 5:38 PM, Alex Bartonek  wrote:

> Need some guidance on this one.
>
> Config:
> 1U with 2 NICs.
> NIC 1 plugged to local switch - gets local IP
> NIC 2 plugged direct to cable modem - need to set IP inside VM to public
> static IP
> VM will be CentOS, already know how to configure NIC once I can get the
> 2nd NIC assigned to it.
>
> Do I use PCI passthru?  Or where do I start to get this configured?  I did
> setup NIC 2 under Network --> Networks.   Created a NIC called
> "external_NIC".  External NIC has description and then I configured 2 DNS
> servers which are given to me by the ISP.
>
> Under Compute --> Hosts -->  --> Network Interfaces (I have both
> NICs showing as up) --> Setup Host Networks ---> NIC 2 is the interface -->
> Assignment of Logical networks is "external_NIC".
>
> I was assuming I was done, so I go to my VM add NIC 2, click run and I see:
>
> Cannot run VM. There is no host that satisfies current scheduling
> constraints. See below for details:
>
>- The host  did not satisfy internal filter Network because
>there are no free virtual functions which are suitable for virtual nic(s)
>nic2. A virtual function is considered as suitable if the VF's
>configuration of its physical function contains the virtual nic's
>network/network label.
>
> Need guidance on what to read to get this working.
>
> Thanks!
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Assign external IP to VM

2017-12-26 Thread Alex Bartonek
Need some guidance on this one.

Config:
1U with 2 NICs.
NIC 1 plugged to local switch - gets local IP
NIC 2 plugged direct to cable modem - need to set IP inside VM to public static 
IP
VM will be CentOS, already know how to configure NIC once I can get the 2nd NIC 
assigned to it.

Do I use PCI passthru?  Or where do I start to get this configured?  I did 
setup NIC 2 under Network --> Networks.   Created a NIC called "external_NIC".  
External NIC has description and then I configured 2 DNS servers which are 
given to me by the ISP.

Under Compute --> Hosts -->  --> Network Interfaces (I have both NICs 
showing as up) --> Setup Host Networks ---> NIC 2 is the interface --> 
Assignment of Logical networks is "external_NIC".

I was assuming I was done, so I go to my VM add NIC 2, click run and I see:

Cannot run VM. There is no host that satisfies current scheduling constraints. 
See below for details:

- The host  did not satisfy internal filter Network because there are 
no free virtual functions which are suitable for virtual nic(s) nic2. A virtual 
function is considered as suitable if the VF's configuration of its physical 
function contains the virtual nic's network/network label.

Need guidance on what to read to get this working.

Thanks!___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users