Operating System - HP-UX
1825659 Members
3500 Online
109686 Solutions
New Discussion

Integrity Virtual Machine - Network

 
SOLVED
Go to solution
Fernando Jose P de Souz
Regular Advisor

Integrity Virtual Machine - Network

Hi,

I have a problem in my virtual servers. The network traffic is very slow when i tranfer files between the virtual machines.
When i transfer file the virtual machine to physical machine or physical machine to virtual machine is quickly.

Server:
rx2660
Memory: 12 Gb
CPU: 2 CPUs (1 CPU dual core)
# lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
0/1/2/0 0x0017A4AB8079 0 UP lan0 snap0 1 ETHER Yes 119
0/1/2/1 0x0017A4AB8078 1 UP lan1 snap1 2 ETHER Yes 119
#netstat -in
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
lan0 1500 195.0.0.0 195.0.0.221 110446 0 113289 0 0
lo0 4136 127.0.0.0 127.0.0.1 8836 0 8836 0 0

# hpvmnet -v
Version A.02.00.00
Name Number State Mode PPA MAC Address IP Address
======== ====== ======= ========= ====== ============== ===============
localnet 1 Up Shared N/A N/A
clan1 2 Up Shared lan1 0x0017a4ab8078
clan0 3 Up Shared lan0 0x0017a4ab8079 195.0.0.221

# hpvmstatus -v
[Virtual Machines]
Virtual Machine Name VM # OS Type State #VCPUs #Devs #Nets Memory Runsysid
==================== ===== ======= ========= ====== ===== ===== ======= ========
svcorp2 1 HPUX On (OS) 1 5 2 4 GB 0
svcorp3 4 HPUX On (OS) 1 5 2 4 GB 0

/var/opt/hpvm/guests/guestname/vmm_config.current
Svcorp2:

# Virtual Network Devices
#
lan(0,0).0x1A8618C7516A = switch(clan0).1
lan(0,2).0xBEA7B567409F = switch(clan1).2
#
===========================
Svcorp3:

# Virtual Network Devices
#
lan(0,2).0x120FD78157C0 = switch(clan1).1
lan(0,4).0xC21BDC62B99D = switch(clan0).2
#


The Guest OS configuration in attach.


wait
14 REPLIES 14
Steven E. Protter
Exalted Contributor

Re: Integrity Virtual Machine - Network

Shalom,

Please post lanadmin output.

lanadmin -0

These systems generally use Gigabit cards that require auto negotiation for normal networking.

The switch too must be configured for auto negotiate.

A common complaint happens when these GB cards are connected to 100 BaseT network switches. Those issues you will need to negotiate with the networking people.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Pete Randall
Outstanding Contributor

Re: Integrity Virtual Machine - Network

lanadmin -x 0

might work better.

;^)


Pete

Pete
Hein van den Heuvel
Honored Contributor

Re: Integrity Virtual Machine - Network

Steven wrote:

"These systems generally use Gigabit cards that require auto negotiation for normal networking."

But hold on... these communincation are between virtual machines and should be memory only, hypervisor assisted no?!

I suspect the netowrks are configured such that you end up going 'off box'.
I would almost recommend to pull the physical cable, see it break, and then work to get the virtualized connections going!

Just a thought!
Hein.
Geoff Wild
Honored Contributor

Re: Integrity Virtual Machine - Network

Do the guests both go out clan0 as default?

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Torsten.
Acclaimed Contributor

Re: Integrity Virtual Machine - Network

You share both physical NICs to both HPVM, make sure to configure the same subnet to each NIC (HPVM point of view) - do not cross them.

Not sure if this is related, but I would reduce the entitlement for your vCPUs.

Why not assign 2 vCPUs to each HPVM and configure an entitlement ~25 or 30%?


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Geoff Wild
Honored Contributor

Re: Integrity Virtual Machine - Network

I did a test myself:

sftp gwild@pcvm0105
sftp> put test.100mb
Uploading test.100mb to /home/gwild/test.100mb
test.100mb 100% 98MB 14.0MB/s 00:07
sftp> quit


# sftp gwild@sha1
sftp> put test.100mb
Uploading test.100mb to /home/gwild/test.100mb
test.100mb 100% 98MB 9.8MB/s 00:10
sftp>


I was faster between 2 vm's (each using a shared nic on the vm host) then a dedicated server.


Name : vsw3
number : 10
PID : 1405
State : Up
Mode : Shared
NamePPA : lan3
Host MAC Address : 0x001a4b0655fb
Host IP Address :
Number of guests : 4
Guest's Name : pcvm0102
MAC Address : 0x1229985A08D4
IP Address : 192.168.162.122
Vswitch Port : 1
Guest's Name : pcvm0103
MAC Address : 0x66FBB33ACD5E
IP Address : Guest halted
Vswitch Port : 2
Guest's Name : pcvm0104
MAC Address : 0x0AFB97C0ECEE
IP Address : Guest halted
Vswitch Port : 3
Guest's Name : pcvm0105
MAC Address : 0xC6E3FBD9A4A3
IP Address : 192.168.162.169
Vswitch Port : 4


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Fernando Jose P de Souz
Regular Advisor

Re: Integrity Virtual Machine - Network

Geoff Wild

No, svcorp2 go out to lan0 and
svcorp3 go out to lan1
Torsten.
Acclaimed Contributor
Solution

Re: Integrity Virtual Machine - Network

"svcorp2 go out to lan0 and
svcorp3 go out to lan1"

Why? You should adjust this. The traffic should "loop" through the same vSwitch.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Geoff Wild
Honored Contributor

Re: Integrity Virtual Machine - Network

Run this script on your vm host:

# cat /usr/local/bin/lancards
#!/usr/bin/sh
# script to check speed and settings of lan cards
PATH=/usr/sbin:/usr/bin
ppas=`lanscan | awk '$3~/^[0-9]$/{print $3}' | xargs`
for i in $ppas
do
printf "Card at PPA %s - " $i
ipa=`ifconfig lan${i} 2>/dev/null | awk '{ip=$2}END{if(ip==""){printf("Not assigned")}else{printf("%s ",ip)}}'`
printf "IP Address: %15s- " "$ipa"
lanadmin -x $i 2>/dev/null | awk '{$1="";printf("%s",$0)}'
echo ""
done


Are lan0 and lan1 configured the same?

If I sftp to a vm guest that has an exclusive lan - I get about the same.

It does sound like a mis-configured lan setting somewhere - is it fast to both machines from a dedicated server or just one of them?

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Fernando Jose P de Souz
Regular Advisor

Re: Integrity Virtual Machine - Network

the output commands:

svrx2660/# lanadmin -x 0
Speed = 1000 Full-Duplex.
Autonegotiation = On.

svrx2660/# lanadmin -x 1
Speed = 1000 Full-Duplex.
Autonegotiation = On.


Card at PPA 0 - IP Address: 195.0.0.221 - = 1000 Full-Duplex. = On.
Card at PPA 1 - IP Address: Not assigned- = 1000 Full-Duplex. = On.
Hein van den Heuvel
Honored Contributor

Re: Integrity Virtual Machine - Network

Forget about the physical card(s) already!
They should not be used in this cased.
They are used, and that's you problem.
So check the (soft) lan config.
Focus on the virtual network offered by the IVM
Focus on Geoff's earlier reply.

Good luck,
Hein.
rick jones
Honored Contributor

Re: Integrity Virtual Machine - Network

I'm far from an HPVM expert, but then I've never let that stop me from making guesstimations. Can you provide us with the full set of IP addresses and routing tables from both the guests and the host? If each guest is going to a separate physical interface in the host, it could very well be that the traffic is going out onto the physical network and back into the system.

I'm _pretty_ sure that at the level networking taps-in in the host that the host having the physical interfaces in the same or different IP subnet won't matter, what will matter is whether or not the two guests are connected to the same vswitch in the host.
there is no rest for the wicked yet the virtuous have no pillows
Fernando Jose P de Souz
Regular Advisor

Re: Integrity Virtual Machine - Network

ok,
But how could i put the 2 NICs for the same vswitch and sharing to VMs?

Wait.
mangesh_2
Occasional Advisor

Re: Integrity Virtual Machine - Network

I have some problem to create a virtual switch

[/]$ /opt/hpvm/bin/hpvmnet

Name Number State Mode NamePPA MAC Address IP Address

======== ====== ======= ========= ======== ============== ===============

localnet 1 Up Shared N/A N/A

vsfqa3 8 Down Shared lan0 10.216.188.55

[/]$ /opt/hpvm/bin/hpvmnet -S vsfqa3 -b

hpvmnetd: Unable to open /dev/hpvmdvr - vswitch vsfqa3 exiting: (errno=19) No such devicehpvmnet: ERROR (host): Unable to start hpvmnetd 'vsfqa3'.

hpvmnet: Unable to start the vswitch.

hpvmnet: Unable to continue.


[root@hpslia35][/]$ /opt/hpvm/bin/hpvmst

hpvmstart hpvmstatus hpvmstop

[/]$ /opt/hpvm/bin/hpvmstatus

[Virtual Machines]

Virtual Machine Name VM # OS Type State #VCPUs #Devs #Nets Memory Runsysid

==================== ===== ======= ========= ====== ===== ===== ======= ========

CGuest9 2 HPUX Off 1 7 1 1 GB 0


[/]$ /opt/hpvm/bin/hpvmnet -V

Name : localnet

number : 1

PID : 5454

State : Up

Mode : Shared

NamePPA : n/a

Host MAC Address : N/A

Host IP Address : N/A

Number of guests : 0



Name : vsfqa3

number : 8

PID : -1

State : Down

Mode : Shared

NamePPA : lan0

Host MAC Address :

Host IP Address : 10.216.188.55

Number of guests : 0



[/]$ /opt/hpvm/bin/hpvmstatus -V

[Virtual Machines]

Virtual Machine Name : CGuest9

Virtual Machine UUID : 917176a2-99c1-11dc-9401-00306ef3bd85

Virtual Machine ID : 2

Virtual Machine Label :

VM's Model Name : server Integrity Virtual Machine

VM's Serial Number : VM00747001

VM's Config Version : 3.0.0

VM's Config Label : HPVM A.03.00.00 clearcase opt Mon Apr 16 2007 05h53m59s PDT

Operating System : HPUX

OS Version Number :

State : Off

Start type : Manual

Console type : vt100-plus

Number of virtual CPUs : 1

Number of devices : 7

Number of networks : 1

Memory : 1 GB

Guest revision : 1

Running on serverid : 0

Running on pid : 0

Application controllers : NONE

Distributed : 0


[/]$ hpvmnet -S switch35 -b

hpvmnetd: Unable to open /dev/hpvmdvr - vswitch switch35 exiting: (errno=19) No such devicehpvmnet: ERROR (host): Unable to start hpvmnetd 'switch35'.

hpvmnet: Unable to start the vswitch.

hpvmnet: Unable to continue.