RE: VMware ESXi 4.1
Thanks John and Andy. Your suggestions worked perfectly! Mike Mike Waldron Systems Specialist ITS Research Computing University of North Carolina at Chapel Hill CB #3420, ITS Manning, Rm 2509 919-962-9778 From: John Ma [john...@marist.edu] Sent: Tuesday, May 24, 2011 5:13 PM To: vcl-user@incubator.apache.org Subject: Re: VMware ESXi 4.1 Mike, We have been using the following script to add 'public' interface. You will need to adjust the vSwitch number and IP address etc to meet your need. esxcfg-vswitch -a vSwitch1 esxcfg-vswitch -A 'Management Network Public' vSwitch1 esxcfg-vswitch -L vmnic1 vSwitch1 esxcfg-vmknic -a -i 10.10.4.50 -n 255.255.255.0 -p 'Management Network Public' esxcfg-route 10.10.4.1 esxcfg-vswitch -A Public vSwitch1 John Ma Server Administrator Marist College From:Andy Kurth To:vcl-user@incubator.apache.org Date:05/24/2011 04:50 PM Subject:Re: VMware ESXi 4.1 We're using ESXi 4.1 with separate virtual switches for the public and private networks. Our hosts come up with the public interface receiving its IP address via DHCP using vSwitch0. It sounds like this is how yours is configured. The networking configuration panel has the following: Virtual Switch: vSwitch0 * Virtual Machine Port Group ** Name: Public * VMkernel Port ** Name: Management Network ** vmk0: To configure the private network virtual switch: -Add Networking -Connection Types: VMkernel -Create a virtual switch - select the private interface (vmnicx) -Network Label: VMkernel -Use the following IP settings: enter your private IP address and subnet mask -Finish -Click Properties next to Virtual Switch: vSwitch1 -Click Add -Connection Types: Virtual Machine -Network Label: Private -Finish ESXi doesn't like multiple interfaces receiving their addresses via DHCP so we have to configure a static IP address for the private interface. I would include a screenshot of our networking configuration in the vSphere Client but I doubt it will go through. Here is the output of the esxcfg-* commands after SSH'ing in: ~ # esxcfg-vswitch -l Switch Name Num Ports Used Ports Configured Ports MTU Uplinks vSwitch0 128 3 128 1500vmnic1 PortGroup NameVLAN ID Used Ports Uplinks Public00 vmnic1 Management Network01 vmnic1 Switch Name Num Ports Used Ports Configured Ports MTU Uplinks vSwitch1 128 3 128 1500vmnic2 PortGroup NameVLAN ID Used Ports Uplinks Private 00 vmnic2 VMkernel 01 vmnic2 ~ # esxcfg-vmknic -l Interface Port Group/DVPort IP Family IP AddressNetmask Broadcast MAC Address MTU TSO MSS Enabled Type vmk0 Management Network IPv4 255.255.254.0 152.7.99.255 150065535 trueDHCP vmk1 VMkernelIPv4 255.255.240.0 10.10.15.255 150065535 trueSTATIC -Andy On Tue, May 24, 2011 at 10:07 AM, Waldron, Michael H wrote: > Has anyone used the free version of VMware ESXi 4.1? > > I started playing with it to possibly use with our VCL after it's been > upgraded to 2.2.1, however I can't figure out how to get both our public and > private networks defined on it. After initial install on a blade, it > configures the public interface and I'm able to connect to it via the > vSphere client. But everytime I try to add the private network to it, it > configures a virtual mac address rather than using the mac address of the > physical interface like it's doing for the public interface. > > The result is this interface is getting a 169.254.0.1 IP address, rather > than the IP it should get from the DHCP server. I also enabled SSH on the > security profile, however it's not answering SSH connection attempts. > > Just wondering if anyone has had some experience with setting this up. > > Mike Waldron > Systems Specialist > ITS Research Computing > University of North Carolina at Chapel Hill > CB #3420, ITS Manning, Rm 2509 > 919-962-9778
Re: VMware ESXi 4.1
Mike, We have been using the following script to add 'public' interface. You will need to adjust the vSwitch number and IP address etc to meet your need. esxcfg-vswitch -a vSwitch1 esxcfg-vswitch -A 'Management Network Public' vSwitch1 esxcfg-vswitch -L vmnic1 vSwitch1 esxcfg-vmknic -a -i 10.10.4.50 -n 255.255.255.0 -p 'Management Network Public' esxcfg-route 10.10.4.1 esxcfg-vswitch -A Public vSwitch1 John Ma Server Administrator Marist College From: Andy Kurth To: vcl-user@incubator.apache.org Date: 05/24/2011 04:50 PM Subject:Re: VMware ESXi 4.1 We're using ESXi 4.1 with separate virtual switches for the public and private networks. Our hosts come up with the public interface receiving its IP address via DHCP using vSwitch0. It sounds like this is how yours is configured. The networking configuration panel has the following: Virtual Switch: vSwitch0 * Virtual Machine Port Group ** Name: Public * VMkernel Port ** Name: Management Network ** vmk0: To configure the private network virtual switch: -Add Networking -Connection Types: VMkernel -Create a virtual switch - select the private interface (vmnicx) -Network Label: VMkernel -Use the following IP settings: enter your private IP address and subnet mask -Finish -Click Properties next to Virtual Switch: vSwitch1 -Click Add -Connection Types: Virtual Machine -Network Label: Private -Finish ESXi doesn't like multiple interfaces receiving their addresses via DHCP so we have to configure a static IP address for the private interface. I would include a screenshot of our networking configuration in the vSphere Client but I doubt it will go through. Here is the output of the esxcfg-* commands after SSH'ing in: ~ # esxcfg-vswitch -l Switch Name Num Ports Used Ports Configured Ports MTU Uplinks vSwitch0 128 3 128 1500vmnic1 PortGroup NameVLAN ID Used Ports Uplinks Public00 vmnic1 Management Network01 vmnic1 Switch Name Num Ports Used Ports Configured Ports MTU Uplinks vSwitch1 128 3 128 1500vmnic2 PortGroup NameVLAN ID Used Ports Uplinks Private 00 vmnic2 VMkernel 01 vmnic2 ~ # esxcfg-vmknic -l Interface Port Group/DVPort IP Family IP AddressNetmask Broadcast MAC Address MTU TSO MSS Enabled Type vmk0 Management Network IPv4 255.255.254.0 152.7.99.255 150065535 trueDHCP vmk1 VMkernelIPv4 255.255.240.0 10.10.15.255 150065535 trueSTATIC -Andy On Tue, May 24, 2011 at 10:07 AM, Waldron, Michael H wrote: > Has anyone used the free version of VMware ESXi 4.1? > > I started playing with it to possibly use with our VCL after it's been > upgraded to 2.2.1, however I can't figure out how to get both our public and > private networks defined on it. After initial install on a blade, it > configures the public interface and I'm able to connect to it via the > vSphere client. But everytime I try to add the private network to it, it > configures a virtual mac address rather than using the mac address of the > physical interface like it's doing for the public interface. > > The result is this interface is getting a 169.254.0.1 IP address, rather > than the IP it should get from the DHCP server. I also enabled SSH on the > security profile, however it's not answering SSH connection attempts. > > Just wondering if anyone has had some experience with setting this up. > > Mike Waldron > Systems Specialist > ITS Research Computing > University of North Carolina at Chapel Hill > CB #3420, ITS Manning, Rm 2509 > 919-962-9778
Re: VMware ESXi 4.1
We're using ESXi 4.1 with separate virtual switches for the public and private networks. Our hosts come up with the public interface receiving its IP address via DHCP using vSwitch0. It sounds like this is how yours is configured. The networking configuration panel has the following: Virtual Switch: vSwitch0 * Virtual Machine Port Group ** Name: Public * VMkernel Port ** Name: Management Network ** vmk0: To configure the private network virtual switch: -Add Networking -Connection Types: VMkernel -Create a virtual switch - select the private interface (vmnicx) -Network Label: VMkernel -Use the following IP settings: enter your private IP address and subnet mask -Finish -Click Properties next to Virtual Switch: vSwitch1 -Click Add -Connection Types: Virtual Machine -Network Label: Private -Finish ESXi doesn't like multiple interfaces receiving their addresses via DHCP so we have to configure a static IP address for the private interface. I would include a screenshot of our networking configuration in the vSphere Client but I doubt it will go through. Here is the output of the esxcfg-* commands after SSH'ing in: ~ # esxcfg-vswitch -l Switch Name Num Ports Used Ports Configured Ports MTU Uplinks vSwitch0 128 3 128 1500vmnic1 PortGroup NameVLAN ID Used Ports Uplinks Public00 vmnic1 Management Network01 vmnic1 Switch Name Num Ports Used Ports Configured Ports MTU Uplinks vSwitch1 128 3 128 1500vmnic2 PortGroup NameVLAN ID Used Ports Uplinks Private 00 vmnic2 VMkernel 01 vmnic2 ~ # esxcfg-vmknic -l Interface Port Group/DVPort IP Family IP AddressNetmask Broadcast MAC Address MTU TSO MSS Enabled Type vmk0 Management Network IPv4 255.255.254.0 152.7.99.255 150065535 trueDHCP vmk1 VMkernelIPv4 255.255.240.0 10.10.15.255 150065535 trueSTATIC -Andy On Tue, May 24, 2011 at 10:07 AM, Waldron, Michael H wrote: > Has anyone used the free version of VMware ESXi 4.1? > > I started playing with it to possibly use with our VCL after it's been > upgraded to 2.2.1, however I can't figure out how to get both our public and > private networks defined on it. After initial install on a blade, it > configures the public interface and I'm able to connect to it via the > vSphere client. But everytime I try to add the private network to it, it > configures a virtual mac address rather than using the mac address of the > physical interface like it's doing for the public interface. > > The result is this interface is getting a 169.254.0.1 IP address, rather > than the IP it should get from the DHCP server. I also enabled SSH on the > security profile, however it's not answering SSH connection attempts. > > Just wondering if anyone has had some experience with setting this up. > > Mike Waldron > Systems Specialist > ITS Research Computing > University of North Carolina at Chapel Hill > CB #3420, ITS Manning, Rm 2509 > 919-962-9778
RE: VMware ESXi 4.1
Thank you Daiyu. That fixed my ssh problem. Now I just need to get my private network added. Mike Waldron Systems Specialist ITS Research Computing University of North Carolina at Chapel Hill CB #3420, ITS Manning, Rm 2509 919-962-9778 From: Hayashi, Daiyu [dhaya...@exchange.fullerton.edu] Sent: Tuesday, May 24, 2011 10:38 AM To: 'vcl-user@incubator.apache.org' Subject: Re: VMware ESXi 4.1 Try this for your ssh issue, make sure your user has permission to use it. http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1017910 Sent from my blackberry From: Waldron, Michael H [mailto:mwald...@email.unc.edu] Sent: Tuesday, May 24, 2011 07:07 AM To: vcl-user@incubator.apache.org Subject: VMware ESXi 4.1 Has anyone used the free version of VMware ESXi 4.1? I started playing with it to possibly use with our VCL after it's been upgraded to 2.2.1, however I can't figure out how to get both our public and private networks defined on it. After initial install on a blade, it configures the public interface and I'm able to connect to it via the vSphere client. But everytime I try to add the private network to it, it configures a virtual mac address rather than using the mac address of the physical interface like it's doing for the public interface. The result is this interface is getting a 169.254.0.1 IP address, rather than the IP it should get from the DHCP server. I also enabled SSH on the security profile, however it's not answering SSH connection attempts. Just wondering if anyone has had some experience with setting this up. Mike Waldron Systems Specialist ITS Research Computing University of North Carolina at Chapel Hill CB #3420, ITS Manning, Rm 2509 919-962-9778
Re: VMware ESXi 4.1
Try this for your ssh issue, make sure your user has permission to use it. http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1017910 Sent from my blackberry From: Waldron, Michael H [mailto:mwald...@email.unc.edu] Sent: Tuesday, May 24, 2011 07:07 AM To: vcl-user@incubator.apache.org Subject: VMware ESXi 4.1 Has anyone used the free version of VMware ESXi 4.1? I started playing with it to possibly use with our VCL after it's been upgraded to 2.2.1, however I can't figure out how to get both our public and private networks defined on it. After initial install on a blade, it configures the public interface and I'm able to connect to it via the vSphere client. But everytime I try to add the private network to it, it configures a virtual mac address rather than using the mac address of the physical interface like it's doing for the public interface. The result is this interface is getting a 169.254.0.1 IP address, rather than the IP it should get from the DHCP server. I also enabled SSH on the security profile, however it's not answering SSH connection attempts. Just wondering if anyone has had some experience with setting this up. Mike Waldron Systems Specialist ITS Research Computing University of North Carolina at Chapel Hill CB #3420, ITS Manning, Rm 2509 919-962-9778
VMware ESXi 4.1
Has anyone used the free version of VMware ESXi 4.1? I started playing with it to possibly use with our VCL after it's been upgraded to 2.2.1, however I can't figure out how to get both our public and private networks defined on it. After initial install on a blade, it configures the public interface and I'm able to connect to it via the vSphere client. But everytime I try to add the private network to it, it configures a virtual mac address rather than using the mac address of the physical interface like it's doing for the public interface. The result is this interface is getting a 169.254.0.1 IP address, rather than the IP it should get from the DHCP server. I also enabled SSH on the security profile, however it's not answering SSH connection attempts. Just wondering if anyone has had some experience with setting this up. Mike Waldron Systems Specialist ITS Research Computing University of North Carolina at Chapel Hill CB #3420, ITS Manning, Rm 2509 919-962-9778
Re: persistent 'authorized_keys' on a VMware ESXi 4.1 system
Great tip. Thanks Jim. Aaron On 10/25/10 7:24 PM, James O'Dell wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Everyone, I'm using VMware ESXi 4.1 to host my vcl systems. There is a known issue, if the ESXi host reboots, it clears the '.ssh/authorized_keys' file. Which means you have to copy the authorized_keys from the management node again to make the vmware host accessible. Here's how to make it persistent. Step 1) tar -C / -czf "/bootbank/vcl.tgz" ".ssh" Step 2) vi /bootbank/boot.cfg append ' --- vcl.tgz' to 'modules' line i.e. kernel=b.z kernelopt= modules=k.z --- s.z --- c.z --- oem.tgz --- license.tgz --- m.z --- state.tgz --- vcl.tgz build=4.1.0-260247 updated=2 bootstate=0 If you want to see what's in the file 'tar tvzf /bootbank/vcl.tgz' Hope this helps, __Jim O'Dell - -- Jim O'Dell Network Analyst California State University Fullerton Email: jod...@fullerton.edu Phone: (657) 278-2256 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkzGEcYACgkQREVHAOnXPYTPQQCfaJzfAKj395QhxX2uHBMVn7WA 0WUAnAoxxtTiL7fMRpvaMIEHEMwdzo9M =MlPp -END PGP SIGNATURE- -- Aaron Peeler Program Manager Virtual Computing Lab NC State University aaron_pee...@ncsu.edu 919-513-4571
persistent 'authorized_keys' on a VMware ESXi 4.1 system
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Everyone, I'm using VMware ESXi 4.1 to host my vcl systems. There is a known issue, if the ESXi host reboots, it clears the '.ssh/authorized_keys' file. Which means you have to copy the authorized_keys from the management node again to make the vmware host accessible. Here's how to make it persistent. Step 1) tar -C / -czf "/bootbank/vcl.tgz" ".ssh" Step 2) vi /bootbank/boot.cfg append ' --- vcl.tgz' to 'modules' line i.e. > kernel=b.z > kernelopt= > modules=k.z --- s.z --- c.z --- oem.tgz --- license.tgz --- m.z --- state.tgz > --- vcl.tgz > build=4.1.0-260247 > updated=2 > bootstate=0 If you want to see what's in the file 'tar tvzf /bootbank/vcl.tgz' Hope this helps, __Jim O'Dell - -- Jim O'Dell Network Analyst California State University Fullerton Email: jod...@fullerton.edu Phone: (657) 278-2256 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkzGEcYACgkQREVHAOnXPYTPQQCfaJzfAKj395QhxX2uHBMVn7WA 0WUAnAoxxtTiL7fMRpvaMIEHEMwdzo9M =MlPp -END PGP SIGNATURE-