Operating System - HP-UX
1834080 Members
2368 Online
110063 Solutions
New Discussion

Re: Integrity VM: Can't create vNIC

 
Dwane Ballard_1
Occasional Advisor

Integrity VM: Can't create vNIC

Hello,
First off, sorry for the lengthy post. I'm giving the trial version of Integrity VM a go and have run into the following problem creating a virtual NIC.

First, just using the default localnet. It's up and running.

#hpvmstatus
[Virtual Machines]
Virtual Machine Name VM # OS Type State #VCPUs #Devs #Nets Memory Runsysid
==================== ===== ======= ========= ====== ===== ===== ======= ========
test1 2 HPUX Off 1 0 0 2 GB 0

Attempt to just add a single NIC to the VM....
# hpvmmodify -P test1 -a network:lan::vswitch:localnet
hpvmmodify: WARNING (host): Failed after 3 attempts.
hpvmmodify: WARNING (host): Unable to create Ethernet MAC Address.
hpvmmodify: ERROR (test1): malloc() failed - Error 0.
hpvmmodify: ERROR (test1): Unable to load defaults for 'localnet'.
hpvmmodify: Unable to create device network:lan::vswitch:localnet.
hpvmmodify: Unable to modify the guest.

Does this with hpvmmodify or hpvmcreate....

If I try to get specific with the hardware address the error changes a bit:

# hpvmmodify -P test1 -a network:lan:0,0,00-01-02-03-04-05:vswitch:localnet
hpvmmodify: ERROR (host): Invalid format for Ethernet MAC Address '0x000102030405' - Local admin incorrectly set.
hpvmmodify: ERROR (test1): Unable to validate Ethernet MAC Address '0x000102030405'.
hpvmmodify: Unable to create device network:lan:0,0,0x000102030405:vswitch:localnet.
hpvmmodify: Unable to modify the guest.

or

# hpvmmodify -P test1 -a network:lan:0,0,0x000102030405:vswitch:localnet
hpvmmodify: ERROR (host): Invalid format for Ethernet MAC Address '0x000102030405' - Local admin incorrectly set.
hpvmmodify: ERROR (test1): Unable to validate Ethernet MAC Address '0x000102030405'.
hpvmmodify: Unable to create device network:lan:0,0,0x000102030405:vswitch:localnet.
hpvmmodify: Unable to modify the guest.

Obviously the malloc error and the "Local admin incorrectly set" are cause for concern, but I can't seem to resolve them.

Logged in as root. Fresh install of 11.23 and IVM. At my wits end.



Thanks in advance,

db





10 REPLIES 10
Isom
New Member

Re: Integrity VM: Can't create vNIC

Do you happen to know if a C class enclosure has recently been added on your network? If so, I have a solution. Otherwise, we'll have to dig a little deeper for the first problem. A networking device in the enclosure effectively responds to all MAC addresses.

Regarding the failure when you created a virtual MAC address, Integrity VM requires the multicast bit be turned off and the locally administered bit be turned on. So, in the uppermost byte, you need bit 0 off and bit 1 on. So, if you try the MAC address
0x020102030405, I think you'll get different results. You may still get a conflict for the bus, device numbers (0,0) as they cannot be used by another virtual device. to quickly check that, run
hpvmstatus -P test1 -d

Dwane Ballard_1
Occasional Advisor

Re: Integrity VM: Can't create vNIC

How about a P-class enclosure? The VM Host is a bl60p (1 of 4) each with 4 NICs. On this blade there are no other VM guests. I was hoping by keeping it to the internal network I would alleviate any pNIC related issues....

As far as changing bit 1 in the MAC, here's the response:

# hpvmmodify -P test1 -a network:lan:0,0,0x020102030405:vswitch:localnet
hpvmmodify: ERROR (host): Invalid format for Ethernet MAC Address '0x020102030405' - Linkloop failure.
hpvmmodify: ERROR (test1): Unable to validate Ethernet MAC Address '0x020102030405'.
hpvmmodify: Unable to create device network:lan:0,0,0x020102030405:vswitch:localnet.
hpvmmodify: Unable to modify the guest.

Here's the hpvmstatus:

# hpvmstatus -P test1 -d
[Virtual Machine Devices]

[Storage Interface Details]

[Network Interface Details]

[Misc Interface Details]
serial:com1::tty:console

In this instance, I have not added the storage yet (I've tried adding the vNIC several times, with storage and without, all with the same results).

Thank you for your help.

Dwane
Torsten.
Acclaimed Contributor

Re: Integrity VM: Can't create vNIC

Hi,

the software is testing, if the the virtual MAC just created is already existing.
This test fails, because the network switch is answering yes.
Check for a firmware update of the switch.
Cisco has released something to particular models to prevent this.
As a workaround grep the virtual machines software release notes for "HPVMMACADDRFRAMES". Here you can specify the number of tests.
No test = no error = possible risk of duplicated MACs, but the error will be gone.

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!   
Dwane Ballard_1
Occasional Advisor

Re: Integrity VM: Can't create vNIC

I Changed the HPVMMACADDFRAMES to 0 and rebooted. The hpvmmodify command without the mac address (-a network:lan::vswitch:localnet) still fails with the malloc() error as before.

Specifying a MAC on the command line doesn't return an error any more, but it doesn't do anything either:

# hpvmmodify -P test1 -a network:lan:0,0,0x020102030405:vswitch:localnet
# hpvmstatus -P test1 -d
[Virtual Machine Devices]

[Storage Interface Details]

[Network Interface Details]

[Misc Interface Details]
serial:com1::tty:console
Torsten.
Acclaimed Contributor

Re: Integrity VM: Can't create vNIC

see my last post in this thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1101587

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!   
Dwane Ballard_1
Occasional Advisor

Re: Integrity VM: Can't create vNIC

No joy... Here's the sordid details. Just like before:

# hpvmnet
Name Number State Mode PPA MAC Address IP Address
======== ====== ======= ========= ====== ============== ===============
localnet 1 Up Shared N/A N/A

# lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
0/3/3/0 0x001635C66164 2 UP lan2 snap2 1 ETHER Yes 119
0/3/3/1 0x001635C66163 3 UP lan3 snap3 2 ETHER Yes 119
0/3/1/0 0x001635C66174 0 UP lan0 snap0 3 ETHER Yes 119
0/3/1/1 0x001635C66173 1 UP lan1 snap1 4 ETHER Yes 119

# ifconfig lan0
lan0: flags=1843
inet 192.168.201.104 netmask ffffff00 broadcast 192.168.201.255

# hpvmdevmgmt -S 10G /vm/testnet/bootdisk
hpvmdevmgmt: Creating 10240 MB disk file '/vm/testnet/bootdisk'...

Allocating file space. Please be patient

# hpvmnet -c -S switch01 -n 0

# hpvmnet -b -S switch01

# hpvmnet
Name Number State Mode PPA MAC Address IP Address
======== ====== ======= ========= ====== ============== ===============
localnet 1 Up Shared N/A N/A
switch01 4 Up Shared lan0 0x001635c66174 192.168.201.104

# hpvmcreate -P testnet -O HPUX -c 1 -r 2G -a disk:scsi::file:/vm/testnet/bootdisk

# hpvmmodify -P testnet -a network:lan::vswitch:switch01
hpvmmodify: WARNING (host): Failed after 3 attempts.
hpvmmodify: WARNING (host): Unable to create Ethernet MAC Address.
hpvmmodify: ERROR (testnet): malloc() failed - Error 0.
hpvmmodify: ERROR (testnet): Unable to load defaults for 'switch01'.
hpvmmodify: Unable to create device network:lan::vswitch:switch01.
hpvmmodify: Unable to modify the guest.

# hpvmstatus -P testnet -d
[Virtual Machine Devices]

[Storage Interface Details]
disk:scsi:0,0,0:file:/vm/testnet/bootdisk

[Network Interface Details]

[Misc Interface Details]
serial:com1::tty:console
Torsten.
Acclaimed Contributor

Re: Integrity VM: Can't create vNIC

Just to be sure, did you add
HPVMMACADDRFRAMES=0
to /etc/rc.config.d/hpvmconf ?
No need to reboot.

I assume you didn't, because there shouldn't be "3 attempts" (3 is the default number of tests).

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!   
Dwane Ballard_1
Occasional Advisor

Re: Integrity VM: Can't create vNIC

I did add it and did reboot.
Torsten.
Acclaimed Contributor

Re: Integrity VM: Can't create vNIC

You wrote "HPVMMACADDFRAMES", but it must be "HPVMMACADDRFRAMES" - please double check!
("R" is missing)

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!   
Dwane Ballard_1
Occasional Advisor

Re: Integrity VM: Can't create vNIC

Good catch. Still didn't help. I don't get any errors, but it doesn't do anything either.

# hpvmmodify -P testnet -a network:lan::vswitch:switch01
# hpvmstatus -P testnet -d
[Virtual Machine Devices]

[Storage Interface Details]
disk:scsi:0,0,0:file:/vm/testnet/bootdisk

[Network Interface Details]

[Misc Interface Details]
serial:com1::tty:console

# grep FRAMES /etc/rc.config.d/hpvmconf
HPVMMACADDRFRAMES=0