Are you allowed to use the same vswitch for 2 separate HPVMs?


 
Thread Tools Search this Thread
Operating Systems HP-UX Are you allowed to use the same vswitch for 2 separate HPVMs?
# 1  
Old 08-01-2013
Are you allowed to use the same vswitch for 2 separate HPVMs?

Can you use the same vswitch for multiple HPVMs?

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:
Code:
[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? Smilie
# 2  
Old 08-02-2013
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 Smilie in about 10 days.
# 3  
Old 08-06-2013
Quote:
Originally Posted by Peasant
You can use same vswitch for multiple virtual machines.
So, one physical interface (or multiple aggregated interfaces in one) -> one vswitch -> multiple VM's.
Ahh okay, thank you.
Quote:
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.
I checked recolv.conf and it seems to be correct, however I noticed that while my non-working VM has a nsswitch.conf file, my working VM does not.
Code:
[root@vm-hpit01: /etc]# ls ns*
nsswitch.compat       nsswitch.hp_defaults  nsswitch.nis
nsswitch.files        nsswitch.ldap

I compared the two /etc/rc.config.d/netconf files and they seem to be the same (aside from hostname/IP) except my non-working VM has
Code:
DEFAULT_INTERFACE_MODULES="pfil "

while my working VM does not have a value for DEFAULT_INTERFACE_MODULES.
My netstat -rn returns similar tables for both VMs.
Working VM:
Code:
[root@vm-hpit01: /etc]# netstat -rn
Routing tables
Destination           Gateway            Flags Refs Interface  Pmtu
127.0.0.1             127.0.0.1          UH    0    lo0       32808
10.25.112.16          10.25.112.16       UH    0    lan0      32808
10.25.112.0           10.25.112.16       U     2    lan0       1500
127.0.0.0             127.0.0.1          U     0    lo0       32808
default               10.25.112.1        UG    0    lan0       1500

Non-working VM:
Code:
# netstat -rn
Routing tables
Destination           Gateway            Flags Refs Interface  Pmtu
127.0.0.1             127.0.0.1          UH    0    lo0       32808
10.25.112.17          10.25.112.17       UH    0    lan0      32808
10.25.112.0           10.25.112.17       U     2    lan0       1500
127.0.0.0             127.0.0.1          U     0    lo0       32808
default               10.25.112.1        UG    0    lan0       1500

Non working:
Code:
# ping 10.25.112.1 <-default gateway
PING 10.25.112.1: 64 byte packets

----10.25.112.1 PING Statistics----
2 packets transmitted, 0 packets received, 100% packet loss
# ping 10.6.254.4 <- dns server
PING 10.6.254.4: 64 byte packets

----10.6.254.4 PING Statistics----
3 packets transmitted, 0 packets received, 100% packet loss
#

I guess I just set up the network incorrectly, I just have to figure out where...
# 4  
Old 08-07-2013
Are you running IPfiler perhaps ?
Output of ipf -V and cat /etc/opt/ipf/ipf.conf non working VM host should tell you that.

If you get output that it's on and blocking, that could be your issue, then you need to disable your firewall or configure it per your needs.

Hope that helps.
Regards
Peasant.
This User Gave Thanks to Peasant For This Post:
# 5  
Old 08-07-2013
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.

I'm stumped. Smilie

Last edited by lupin..the..3rd; 08-07-2013 at 03:15 PM..
# 6  
Old 08-08-2013
Quote:
Originally Posted by Peasant
Are you running IPfiler perhaps ?
Output of ipf -V and cat /etc/opt/ipf/ipf.conf non working VM host should tell you that.

If you get output that it's on and blocking, that could be your issue, then you need to disable your firewall or configure it per your needs.

Hope that helps.
Regards
Peasant.
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:
Code:
# 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.
# 7  
Old 08-08-2013
Check /etc/resolv.conf for proper DNS server(s) and /etc/nsswitch.conf entry hosts if you want to also resolve using files (/etc/hosts) and dns.

Hope that helps
Regards
Peasant.
This User Gave Thanks to Peasant For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

VSwitch not showing up on VIO Server

Want to run this by you all before opening a PMR with IBM Support. It's been a few weeks since I have done this so I can't be 100% sure of how I think it worked in the previous version. We upgraded our HMC's yesterday to 7.7.9 SP2 in hopes of fixing some issues we were having. Today I needed... (4 Replies)
Discussion started by: juredd1
4 Replies

2. Post Here to Contact Site Administrators and Moderators

Not allowed to post URLs

Hi, I tried to post some perl code for discussion (wrapped in swaddling . However, a regex has an escaped backslash so the forum parser sees it as an URL? Had the same experience with the sample data that I tried to provide for the same discussion. It contains emails addresses,... (1 Reply)
Discussion started by: msutfin
1 Replies

3. HP-UX

Hpvmmodify: ERROR (host): The vswitch 'vmsw4' does not exist.

Hello Experts, I want to modify the CPU of my VM but when i am going to modify it , it showing the below error : hpvmmodify: ERROR (host): The vswitch 'vmsw4' does not exist. HPVM guest testhost configuration problems: Warning 1 on item vmsw4: Vswitch 'vmsw4' does not exist. These... (0 Replies)
Discussion started by: purushottamaher
0 Replies

4. Programming

Why is subclassing not allowed for many of the SWT Controls?

hi guys, Why is subclassing not allowed for many of the SWT Controls? But Eclipse itself creates our Shell classes in this way (inheriting from Shell) and then overriding checkSubclass() with empty body. So is it good(safe) that we do this way? I have two shells (Shell_1, Shell_2). Shell_1 is... (0 Replies)
Discussion started by: majid.merkava
0 Replies

5. Shell Programming and Scripting

space not allowed in input

I have this script. (options is an array) It works fine. It responds fine to all items that are stored in the array. But when I press spacebar when I am asked for input. It will not give an error only run the function again. While I put : || ] in the script to capture the space. What am I missing... (6 Replies)
Discussion started by: Alex400
6 Replies

6. UNIX for Advanced & Expert Users

how to check if I'm allowed to ssh several hosts.

Hi guys! I'm working on a little script. I have a txtfile with several hosts, Unix team has copied my keys into several of those servers, but not all of them, I need to figure out which ones I don't have access to, (I want a list of servers I don't have access to, so I can request for it). This... (1 Reply)
Discussion started by: erick_tuk
1 Replies

7. AIX

rlogin always allowed ?

Hello, Could someone explain why rlogin is allways allowed in my AIX 6.1 boxes, whatever user I use ? According to documentation it should work only when .rhosts (or hosts.equiv) is properly set. But even these files do not exist - access is allowed. If I use rsh(with specified command) it... (2 Replies)
Discussion started by: vilius
2 Replies

8. Solaris

Vswitch in Ldoms on VLAN tagged interface

I 've a T5220 running solaris 10u6 with Ldoms 1.1. following is o/p of my dladm e1000g0 type: non-vlan mtu: 1500 device: e1000g0 e1000g1 type: non-vlan mtu: 1500 device: e1000g1 e1000g531001 type: vlan 531 mtu: 1500 device: e1000g1 e1000g2 ... (0 Replies)
Discussion started by: fugitive
0 Replies

9. Web Development

access to my server is always allowed

Hi, I can't deny the access to my server. if I visit http://localhost I can always see all the files. Why ? <Directory /> Options FollowSymLinks AllowOverride None Order allow,deny Deny from All </Directory> <Directory "/Users/aneuryzma/Sites"> (4 Replies)
Discussion started by: aneuryzma
4 Replies

10. UNIX for Dummies Questions & Answers

Ldap dn chars allowed

Hi Is it possible to add the following to an ldif entry: dn=estmmartín i.e Note the charchter 'í' Thanks in advance (3 Replies)
Discussion started by: tom123
3 Replies
Login or Register to Ask a Question