Good! I like that! :) Masoud On Tue, Jul 31, 2012 at 1:16 PM, Mani Shafa'atDoost <[email protected]>wrote:
> Hi Dmitri, > > This seems interesting to me. I am planing to do a contribution on VCL > project which allow you to make a network topology of VMs and load this > topology instead of one VM. For this reason I need to add more NIC on some > images and also I need to make a mechanism for this communication. > I have read a lot about this and I think the best option is using Open > Vswitch on VCL which has a strong support on networking part and allow you > to do many things on network side. Currently I am making some documents and > I will post it here. I would be happy to see some other people from this > group to work on networking part. > > > On Tue, Jul 31, 2012 at 12:55 PM, Dmitri Chebotarov <[email protected] > >wrote: > > > Hi > > > > Looks like VMware.pm already has a code to add custom networking based on > > project name: > > > > # Add additional Ethernet interfaces if the image project name is > > not vcl > > if ($image_project !~ /^vcl$/i && > > $self->api->can('get_network_names')) { > > notify($ERRORS{'DEBUG'}, 0, "image project is: > > $image_project, checking if additional network adapters should be > > configured"); > > > > # Get a list of all the network names configured on the > > VMware host > > my @network_names = $self->api->get_network_names(); > > notify($ERRORS{'DEBUG'}, 0, "retrieved network names > > configured on the VM host: " . join(", ", @network_names)); > > > > # Check each network name > > # Begin the index at 2 for additional interfaces added > > because ethernet0 and ethernet1 have already been added > > for my $network_name (@network_names) { > > if ($network_name =~ /$image_project/i || > > $image_project =~ /$network_name/i) { > > notify($ERRORS{'DEBUG'}, 0, "network name > > ($network_name) and image project name ($image_project) intersect, adding > > network interface to VM for network $network_name"); > > %vmx_parameters = (%vmx_parameters, > > %{$self->get_generated_ethernet_vmx_definition($interface_index, > > $network_name)}); > > $interface_index++; > > } > > else { > > notify($ERRORS{'DEBUG'}, 0, "network name > > ($network_name) and image project name ($image_project) do not intersect, > > network interface will not be added to VM for network $network_name"); > > } > > } > > > > } > > else { > > notify($ERRORS{'DEBUG'}, 0, "image project is: > > $image_project, additional network adapters will not be configured"); > > } > > > > By default all image has project as 'vcl'. > > Currently project name can only be in ('vcl','hpc','vclhpc'). > > Will it be OK to remove ENUM on project column, create corresponding > > additional networks on ESXi servers and use this option to add custom > > networks? > > > > I've also tested how additional VM networks in Virtual Host profile work. > > Once I configured profile with additional networks, these networks are > > added to each reservation which starts on corresponding VM host. > > This may not be what I'm looking for, as I don't need all these networks > > on each image. > > > > Thank you. > > > > On Jul 31, 2012, at 11:39 , Dmitri Chebotarov <[email protected]> wrote: > > > > > Hi > > > > > > VCL 2.3 has added two more VM Networks in Virtual Host profile. > > > Can I use these networks (all at once or selectively) in images? > > > > > > I'm looking to add custom network interface to a Linux image (in > > addition to default Private/Public). > > > > > > -- > > > Thank you, > > > > > > Dmitri Chebotarov > > > Virtual Computing Lab Systems Engineer, TSD - Ent Servers & Messaging > > > 223 Aquia Building, Ffx, MSN: 1B5 > > > Phone: (703) 993-6175 > > > Fax: (703) 993-3404 > > > > > > > > > > > > > > > > > > > > -- > > Thank you, > > > > Dmitri Chebotarov > > Virtual Computing Lab Systems Engineer, TSD - Ent Servers & Messaging > > 223 Aquia Building, Ffx, MSN: 1B5 > > Phone: (703) 993-6175 > > Fax: (703) 993-3404 > > > > > > > > > > > > > -- > Best Regards > Mani > -- ----------------------------------------------------------------- Masoud Sadjadi, PhD Associate Professor Director of NSF CI-PIRE Center School of Computing and Information Sciences Florida International University University Park, ECS 212 C 11200 SW 8th St., Miami, FL 33199 tel: 305-348-1835 fax: 305-348-2336 email: [email protected] web: www.cs.fiu.edu/~sadjadi <http://www.cs.fiu.edu/%7Esadjadi> -----------------------------------------------------------------
