[one-users] network problem with VMWare ESXi
Shi Jin
jinzishuai at gmail.com
Wed Sep 16 15:33:24 PDT 2009
Hi there,
I have finally been able to deploy VMs from Open Nebula to ESX 3.5.
One problem I had is on network setup. I am not sure what to put in
the template about NIC.
Do you have any suggestions?
I decided to go without network, just to see if the VM can be
deployed. So there is nothing about NIC in the template file at all.
Then I got the following error using open nebula by doing some manual debugging:
oneadmin at esx-one vmware $ ./one_vmm_vmware --username root --password <pass>
INIT
INIT SUCCESS
DEPLOY 6 node2.intranet.vrstorm.com /srv/cloud/one/var/6/deployment.0 -
java.lang.NullPointerException
at DeployVM.configureNetwork(DeployVM.java:256)
at DeployVM.shapeVM(DeployVM.java:220)
at OneVmmVmware.loop(OneVmmVmware.java:161)
at OneVmmVmware.main(OneVmmVmware.java:55)
DEPLOY FAILURE 6 Failed deploying VM in host node2.intranet.vrstorm.com.
I found the problem in DeployVM.java
String[][] nics = pXML.getNet();
Basically when there is nothing about NIC, the nics object is null and
the following statement would fail
if(nics.length==1 && nics[0].equals("")) return;
Therefore, I add a line ahead of it
if(nics==null) return;
With this fix, I was able to deploy my VMs.
How do you think of this bug fix? The code should work even without
the NIC line at all, right?
But I am more interested in learning how to set up the NIC in the
template for ESXi.
Thank you very much.
--
Shi Jin, Ph.D.
More information about the Users
mailing list