Operating System - HP-UX
1837655 Members
2754 Online
110117 Solutions
New Discussion

network not working on newly created hp-ux guest

 
SOLVED
Go to solution
Skeens
New Member

network not working on newly created hp-ux guest

I've only been working with HPVM for a short time, so please bear with me-- I am running 11iv3 on an rx2800 i2 with IVM 4.2.5 and have created an 11iv3 guest. I cannot reach the guest on the network. I created a virtual switch associated with the only lan port with an available connection on the box.

# hpvmnet
Name Number State Mode NamePPA MAC Address IPv4 Address
======== ====== ======= ========= ======== ============== ===============
localnet 1 Up Shared N/A N/A
vswitch0 3 Up Shared lan0 0x00237d447f28 10.200.10.39
# hpvmnet -S vswitch0 -v
Version B.04.20.05
Name Number State Mode NamePPA MAC Address IPv4 Address
======== ====== ======= ========= ======== ============== ===============
vswitch0 3 Up Shared lan0 0x00237d447f28 10.200.10.39

[Port Configuration Details]
Port Port Port Untagged Number of Active VM Tagged
Number State Adaptor VLANID Reserved VMs VLANIDs
======= ============ ======== ======== ============ ============ =============
1 Active lan none 1 hp-eval-01 none

[Configured Host IP Address(es)]
10.200.10.39
10.200.10.38

And I added that switch to my vm.

# hpvmstatus -P hp-eval-01
[Virtual Machine Details]
Virtual Machine Name VM # OS Type State
==================== ===== ======= ========
hp-eval-01 3 HPUX On (OS)

[Authorized Administrators]
Oper Groups :
Admin Groups :
Oper Users :
Admin Users :

[Virtual CPU Details]
#vCPUs Entitlement Maximum
====== =========== =======
1 10.0% 100.0%

[Memory Details]
Total Reserved
Memory Memory
======= ========
16 GB 64 MB

[Dynamic Memory Information]
NOTE: Dynamic data unavailable, configured values only
Minimum Target Memory Maximum
Memory Memory Entitlement Memory
=========== =========== =========== ===========
2048 MB 4096 MB - 16384 MB

[Storage Interface Details]
Guest Physical
Device Adaptor Bus Dev Ftn Tgt Lun Storage Device
======= ========== === === === === === ========= =========================
disk scsi 0 1 0 1 0 lv /dev/vg00/rguest
disk scsi 0 1 0 2 0 disk /dev/rdsk/c0t8d0

[Network Interface Details]
Interface Adaptor Name/Num PortNum Bus Dev Ftn Mac Address
========= ========== ========== ======= === === === =================
vswitch lan localnet 1 0 0 0 92-09-13-0a-b5-77
vswitch lan vswitch0 1 0 2 0 a2-93-19-16-11-2c

[Misc Interface Details]
Guest Physical
Device Adaptor Bus Dev Ftn Tgt Lun Storage Device
======= ========== === === === === === ========= =========================
serial com1 tty console

But I cannot get in or out of my vm...ping, ftp, telnet, ssh, etc. all time out.

What did I miss during the configuration of this guest?

Thanks in advance.
6 REPLIES 6
melvyn burnard
Honored Contributor

Re: network not working on newly created hp-ux guest

what is your network configuration on the Guest OS?
netstat -in
nwmgr
ifconfig lan0
ifconfig lan1
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Skeens
New Member

Re: network not working on newly created hp-ux guest

Thanks for your response, Melvyn. Here is the information you requested from the guest:

# netstat -in
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
lan1 1500 10.200.10.0 10.200.10.39 1236 0 1220 0 0
lo0 32808 127.0.0.0 127.0.0.1 592 0 592 0 0
# nwmgr

Name/ Interface Station Sub- Interface Related
ClassInstance State Address system Type Interface
============== ========= ============== ======== ============== =========
lan0 UP 0x9209130AB577 iether 1000Base-T
lan1 UP 0xA2931916112C iether 1000Base-T
lan900 DOWN 0x000000000000 hp_apa hp_apa
lan901 DOWN 0x000000000000 hp_apa hp_apa
lan902 DOWN 0x000000000000 hp_apa hp_apa
lan903 DOWN 0x000000000000 hp_apa hp_apa
lan904 DOWN 0x000000000000 hp_apa hp_apa
# ifconfig lan0
ifconfig: no such interface
# ifconfig lan1
lan1: flags=1843
inet 10.200.10.39 netmask ffffff00 broadcast 10.200.10.255

I originally configured the guest with lan0, but that was not working, so tried lan1 since it seemed the macid corresponded to lan1 (output from hpvmnetfor vmswitch0's mac address corresponds to lan1 on guest itself). Still doesn't work with lan1 though.

Thanks for your help.
Eric SAUBIGNAC
Honored Contributor

Re: network not working on newly created hp-ux guest

Bonsoir,

Are you sure that you have posted information from the GUEST as asked by melvyn ?

It seems that yes (did the check with mac adresses). So, you have the same IP in the Guest and in the VM host : 10.200.10.39.

It simply can't work. As with any physical box, IP addresses must be unique for each NIC or vNIC.

Eric
Skeens
New Member

Re: network not working on newly created hp-ux guest

Yes, I do not wish for the IP address to be the same on the host as the guest. The host is intended to have the .38 address and it does report this when I issue ifconfig lan0. The guest should have the .39 address, and it does report this when I issue ifconfig lan1 on the guest. netstat -in on the host says:

# netstat -in
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
lo0 32808 127.0.0.0 127.0.0.1 338 0 338 0 0
lan0:1* 1500 10.200.10.0 10.200.10.39 102 0 102 0 0
lan0 1500 10.200.10.0 10.200.10.38 498 0 342 0 0

Thank you for your response!
Eric SAUBIGNAC
Honored Contributor
Solution

Re: network not working on newly created hp-ux guest


lan0:1* 1500 10.200.10.0 10.200.10.39 102 0 102 0 0

--> Do you have MC/ServiceGuard running on the host ? Check with command 'cmviewcl'

If yes it probably means that a package has the same IP than the Guest..

If this package is there to start the VM in a 'VM as package' configuration, you don't need to specify the VM's IP in the package configuration. In this case stop the package, modify configuration to delete the IP, then restart the VM by starting the package.

If this package has nothing to do with the VM, but has its own utility, it simply means that you have an IP conflict : one of the 2 IP must be modified.

--> Now, if MC/ServiceGuard is not running at all, where is this IP coming from ? And what for ?

If you can safely state that it is useless at host level, you can delete it with :

ifconfig lan0:1 0

And probably edit /etc/rc.config.d/netconf

I am to leave for the moment.

HTH

Eric
Skeens
New Member

Re: network not working on newly created hp-ux guest

Eric, thank you! I do not have ServiceGuard installed, but I DID have Secure Resource Partitions configured at one time and I was using the same name/IP address for that compartment. I removed reference to the compartment in the netconf file and rebooted the host and now my network on my guest is working!

Again, many thanks. I was banging my head on my keyboard about this for 2 days. :(