The reason I ask is because I created a vswitch and assigned it to one hpvm, and I was able to get it on the network. Then I created a second hpvm and used the same vswitch, and I am able to ssh/sftp TO the second hpvm, but I am unable to ping OUT of the second hpvm. I am unable to ping the default gateway or any other IP address (including the DNS server) and nslookup fails.
The two hpvms are on the same subnet as my host machine, all 10.25.112.x. I thought maybe I have to create a new vswitch, so I did this:
[root@hpit: /]# hpvmnet -c -S vmsw2 -n 0
[root@hpit: /]# hpvmnet
Name Number State Mode NamePPA MAC Address IPv4 Address
===================== ====== ======= ========= ======= ============== ===============
localnet 1 Up Shared N/A N/A
vmsw1 2 Up Shared lan0 0x001cc4fc74ff 10.25.112.122
vmsw2 4 Down Shared lan0 10.25.112.122
[root@hpit: /]# hpvmmodify -P vm-hpit02 -a network:avio_lan::vswitch:vmsw2
vPar/VM vm-hpit02 configuration problems:
Warning 1 on item vmsw2: Vswitch 'vmsw2' is not active.
These problems may prevent the vPar or VM vm-hpit02 from starting.
[root@hpit: /]# hpvmnet -b -S vmsw2
hpvmnet: WARNING (host): Unable to start vswitch 'vmsw2'. Lan in use.
hpvmnet: Unable to start the vswitch.
hpvmnet: Unable to continue.
It says Lan in use so I am assuming I cannot have the same lan0 device assigned to two separate vswitches?
You can use same vswitch for multiple virtual machines.
So, one physical interface (or multiple aggregated interfaces in one) -> one vswitch -> multiple VM's.
I suspect that the network is not configured properly on VM that is not working.
Check route table netstat -rn , and if also check if DNS is working properly (resolv.conf, nsswitch.conf)
Also for network presistence configure the /etc/rc.config.d/netconf with address and gateway on the VM in question or use sam / smh for the same.
Hope that helps, if not, i can offer some additional support when i come back from vacation in about 10 days.
I'm curious to see the solution here, as I have the exact same problem. I have four VM's, all on the same vSwitch. Two of them can reach the gateway, the other two cannot. The two that cannot can ping other machines on the same vSwitch, but nothing outside of the vSwitch.
I've compared netconf, netstat -rn, hosts, nsswitch.conf, ipf is disabled, no vlan tagging, no apa, no serviceguard. All are identical as far as I can see, except for hostname and IP address.
Oh my goodness thank you so much. I don't even know what IPfilter is but I must have accidentally enabled it during the network setup. After I disabled it I am now able to ping and ssh to other hosts from within my second VM.
Now it appears that I have but one small problem left: my nslookup commands seem to be failing, even though I can ping/ssh by hostname now:
# ping ibm7
PING ibm7.domain.lab: 64 byte packets
64 bytes from 10.25.112.120: icmp_seq=0. time=0. ms
64 bytes from 10.25.112.120: icmp_seq=1. time=0. ms
----ibm7.domain.lab PING Statistics----
2 packets transmitted, 2 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/0/0
# nslookup ibm7
Using /etc/hosts on: vm-hpit02
looking up FILES
*** No address information is available for "ibm7"
# nslookup
Using /etc/hosts on: vm-hpit02
> ibm7
Using /etc/hosts on: vm-hpit02
looking up FILES
*** No address information is available for "ibm7"
>
This also happens when I enter the FQDN. Some part of my DNS must be set up properly because I can ping/ssh by name, but I'm unsure what is causing my nslookup to fail.
Thank you Peasant. I noticed my first VM did not even have an nsswitch.conf file so I deleted it from my second VM and my nslookup commands are now working properly
So I ended up opening an HP support case. The problem turned out to be a product flaw. Nothing wrong at all with my config. I was running HP-VM version 4.20 which according to HP support, is buggy.
They recommended either upgrading to 4.30 and installing a bunch of patches on top of that, OR upgrading to the latest 6.x version.