Operating System - HP-UX
1834367 Members
1934 Online
110066 Solutions
New Discussion

Re: IVM:Adding boot entry in EFI for guest OS

 
amit mehta_2
Regular Advisor

IVM:Adding boot entry in EFI for guest OS

Hi,

After installing VM bundle T2767AC on one of my IA machine,i have created one guest(vguest1) and have installed os(11iv2) for vguest1 from DVD on SAN disk connected to same host(hpia7).
Now i guess i need to setup a boot entry in EFI for vguest1.How should i go about doing this ?

Some logs:

root@hpia7/ >vxdisk list
DEVICE TYPE DISK GROUP STATUS
c2t0d0s2 auto:LVM - - LVM <=== hpia7(host OS)
c2t1d0s2 auto:LVM - - LVM
c4t0d1 auto:cdsdisk c4t0d1 hostdg online
c4t0d2 auto:cdsdisk c4t0d2 hostdg online
c4t0d3 auto:cdsdisk - - online
c4t1d7 auto:cdsdisk - - online
c4t2d0s2 auto:LVM - - LVM <===(vguest OS installed on this disk)
c4t2d1 auto:cdsdisk - - online
c4t2d2 auto:cdsdisk - - online
c4t2d3 auto:cdsdisk c4t2d3 vguest1_dg online
c4t2d4 auto:cdsdisk c4t2d4 vguest1_dg online

root@hpia7/ >hpvmconsole -Pvguest1

vMP MAIN MENU

CO: Console
CM: Command Menu
CL: Console Log
SL: Show Event Logs
VM: Virtual Machine Menu
HE: Main Help Menu
X: Exit Connection

[vguest1] vMP> co

Please select a boot option

EFI Shell [Built-in]
Boot option maintenance menu


Use ^ and v to change option(s). Use Enter to select an option

Shell> map
Device mapping table
blk0 : Acpi(PNP0A03,0)/Pci(1|0)/Scsi(Pun0,Lun0)
blk1 : Acpi(PNP0A03,0)/Pci(1|0)/Scsi(Pun1,Lun0)

Shell> bcfg boot dump
The boot option list is:
01. VenHw(D65A6B8C-71E5-4DF0-A909-F0D2992B5AA9) "EFI Shell [Built-in]"

This is my first interaction with IVM,hence please excuse me if it is an stupid querry.

~amit
17 REPLIES 17
Hasan  Atasoy
Honored Contributor

Re: IVM:Adding boot entry in EFI for guest OS

hi amit;

boot option maintetnace menu -> add a boot option -> select your boot device -> ...


mathmad.
amit mehta_2
Regular Advisor

Re: IVM:Adding boot entry in EFI for guest OS

Thanks Mathmad,

I tried doing so but i think i am missing the mapping.

Please select a boot option

EFI Shell [Built-in]
Boot option maintenance menu <===


Use ^ and v to change option(s). Use Enter to select an option


Main Menu. Select an Operation


Boot from a File
Add a Boot Option <=====
Delete Boot Option(s)
Change Boot Order

Manage BootNext setting
Set Auto Boot TimeOut

Select Active Console Output Devices
Select Active Console Input Devices
Select Active Standard Error Devices

Cold Reset
Exit


Timeout-->[10] sec SystemGuid-->[8A85B13A-8866-11DC-A7C8-0016353EDD8E]
SerialNumber-->[VM00744002 ]


Add a Boot Option. Select a Volume


Removable Media Boot [Acpi(PNP0A03,0)/Pci(1|0)/Scsi(Pun1,Lun0)]
Load File [Acpi(PNP0A03,0)/Pci(0|0)/Mac(BA65A8568072)] <====
Load File [EFI Shell [Built-in]]
Legacy Boot
Exit


Device Path Acpi(PNP0A03,0)/Pci(0|0)/Mac(BA65A8568072)

Enter New Description: vguest1boot

New BootOption Data. ASCII/Unicode strings only, with max of 240 characters
Enter BootOption Data Type [A-Ascii U-Unicode N-No BootOption] : None


Save changes to NVRAM [Y-Yes N-No]:Y


Please select a boot option

EFI Shell [Built-in]
vguest1boot
Boot option maintenance menu


Use ^ and v to change option(s). Use Enter to select an option
Loading.: vguest1boot
EFI Shell version 1.10 [14.62]
Device mapping table
blk0 : Acpi(PNP0A03,0)/Pci(1|0)/Scsi(Pun0,Lun0)
blk1 : Acpi(PNP0A03,0)/Pci(1|0)/Scsi(Pun1,Lun0)

still could not boot :(


~amit
melvyn burnard
Honored Contributor

Re: IVM:Adding boot entry in EFI for guest OS

Please clarify what you are after.
You do NOT set a boot entry in the EFI of the HOST server. This is done in the Virtual EFI of teh guest machine, at the time of installation.
Please read the manuals fo rIntegrity Virtual Machines at:
http://docs.hp.com/en/vse.html#HP%20Integrity%20Virtual%20Machines
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
amit mehta_2
Regular Advisor

Re: IVM:Adding boot entry in EFI for guest OS

Hi Melvyn,

Thanks a ton for jumping here.


root@sfqaia7/ >hpvmstatus
[Virtual Machines]
Virtual Machine Name VM # OS Type State #VCPUs #Devs #Nets Memory Runsysid
==================== ===== ======= ========= ====== ===== ===== ======= ========
vguest1 3 HPUX On (EFI) 1 2 1 512 MB 0


Now,to access the guest console,i have added users as:

root@hpia7/ >useradd -d /var/opt/hpvm/guests/vguest1 -c 'vguest1 console' -s /opt/hpvm/bin/hpvmconsole guest1

root@hpia7/ >passwd guest1
Changing password for guest1
New password:
Re-enter new password:
Passwd successfully changed

Now while trying to access the guest(vguest1) console through telnet,i get the following error message:

root@hpia7/ >telnet vguest1
vguest1: Unknown host


~amit
Torsten.
Acclaimed Contributor

Re: IVM:Adding boot entry in EFI for guest OS

root@hpia7/ >telnet vguest1
vguest1: Unknown host


You probably doesn't have an entry in the /etc/hosts file of the VMHost.

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!   
amit mehta_2
Regular Advisor

Re: IVM:Adding boot entry in EFI for guest OS

Oops,my mistake,

Thanks Tosten,i did that and now i am able to ping the guest(vgeust1)

Now while trying to log on the guest(vguest1)
with the username guest1(as created previously) i am getting authentication error.Though i am providing the correct password.

root@hpia7/ >telnet vguest1
Trying...
Connected to vguest1.vxindia.veritas.com.
Escape character is '^]'.
Local flow control off

Username: guest1
Password:

% Authentication failed.


User Access Verification

~amit
Torsten.
Acclaimed Contributor

Re: IVM:Adding boot entry in EFI for guest OS

The account guest1 you created earlier is for **console** access, this user can access the virtual MP for this HPVM.

This is not a valid user for use with telnet.

"A captive virtual console account is a special-purpose user account created on the VM Host for each guest administrator or operator. These types of user accounts use /opt/hpvm/bin/hpvmconsole for a shell, and the desired guest's per-guest directory for a
home directory. For virtual console access, the account also requires a password, and access to its associated guest."


See chapter "9.2 Creating Guest Administrators and Operators" in the manual.


Telnet to the HPVM, logon with root account and create user accounts.

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!   
Torsten.
Acclaimed Contributor

Re: IVM:Adding boot entry in EFI for guest OS

From the manual:

The following is an example session of remote access to the compass1 virtual console on the
VM Host myhost:

# telnet compass1
-------


IMHO this must be

# telnet myhost
(this is the VMHost)

Login with the guest1 account (configured as a user on the VMHost) and the hpvmconsole will start as the login shell.

Try this, I can't.

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!   
melvyn burnard
Honored Contributor

Re: IVM:Adding boot entry in EFI for guest OS

Again I suggest, Read the Manual
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
amit mehta_2
Regular Advisor

Re: IVM:Adding boot entry in EFI for guest OS

1: status of the guest(vguest1)
---------------------------------
root@hpia7/ >hpvmstatus
[Virtual Machines]
Virtual Machine Name VM # OS Type State #VCPUs #Devs #Nets Memory Runsysid
==================== ===== ======= ========= ====== ===== ===== ======= ========
vguest1 3 HPUX Off 1 2 1 512 MB 0

2: started the guest(vgues1)
---------------------------
root@hpia7/ >hpvmstart -Pvguest1
(C) Copyright 2000 - 2007 Hewlett-Packard Development Company, L.P.
Opening minor device and creating guest machine container
Creation of VM, minor device 1
Allocating guest memory: 512MB
allocating low RAM (0-20000000, 512MB)
/opt/hpvm/lbin/hpvmapp (/var/opt/hpvm/uuids/8a85b13a-8866-11dc-a7c8-0016353edd8e/vmm_config.current): Allocated 536870912 bytes at 0x6000000100000000
allocating firmware RAM (ffaa0000-ffab5000, 84KB)
/opt/hpvm/lbin/hpvmapp (/var/opt/hpvm/uuids/8a85b13a-8866-11dc-a7c8-0016353edd8e/vmm_config.current): Allocated 86016 bytes at 0x6000000120000000
Loading boot image
Image initial IP=102000 GP=62E000
Initialize guest memory mapping tables
Starting event polling thread
Starting thread initialization
Daemonizing....
hpvmstart: Successful start initiation of guest 'vguest1' <===

3: Verified the status.
------------------------------------
root@hpia7/ >hpvmstatus
[Virtual Machines]
Virtual Machine Name VM # OS Type State #VCPUs #Devs #Nets Memory Runsysid
==================== ===== ======= ========= ====== ===== ===== ======= ========
vguest1 3 HPUX On (EFI) 1 2 1 512 MB 0


4: Booting the guest(vguest1) by getting to its console.
-------------------------------------
root@hpia7/ >hpvmconsole -Pvguest1


vMP MAIN MENU

CO: Console
CM: Command Menu
CL: Console Log
SL: Show Event Logs
VM: Virtual Machine Menu
HE: Main Help Menu
X: Exit Connection


[vguest1] vMP> co

Please select a boot option

EFI Shell [Built-in]
Boot option maintenance menu


Use ^ and v to change option(s). Use Enter to select an option
Loading.: EFI Shell [Built-in]
EFI Shell version 1.10 [14.62]
Device mapping table
fs0 : Acpi(PNP0A03,0)/Pci(1|0)/Scsi(Pun1,Lun0)/CDROM(Entry0)
blk0 : Acpi(PNP0A03,0)/Pci(1|0)/Scsi(Pun0,Lun0)
blk1 : Acpi(PNP0A03,0)/Pci(1|0)/Scsi(Pun1,Lun0)
blk2 : Acpi(PNP0A03,0)/Pci(1|0)/Scsi(Pun1,Lun0)/CDROM(Entry0)
blk3 : Acpi(PNP0A03,0)/Pci(1|0)/Scsi(Pun1,Lun0)/CDROM(Entry1)
startup.nsh> echo -off

Welcome to HP-UX Install Media


(C) Copyright 1999-2006 Hewlett-Packard Development Company, L.P.
All rights reserved

HP-UX Boot Loader for IPF -- Revision 2.029

Press Any Key to interrupt Autoboot
\AUTO ==> boot :IINSTALL
Seconds left till autoboot - 9
Type 'help' for help




5: Interrupted the boot sequence.
---------------------------------------
HPUX> ls
AUTO CONFIG HPUX IINSTALL IINSTALLFS
INDEX INSTCMDS INSTCMDSIA ISL RECCMDS
RECCMDSIA SCRIPTS SYSCMDS SYSCMDSIA VERSION
WINSTALL WINSTALLFS

HPUX> exit
Exiting bootloader.

Shell> map
Device mapping table
fs0 : Acpi(PNP0A03,0)/Pci(1|0)/Scsi(Pun1,Lun0)/CDROM(Entry0)
blk0 : Acpi(PNP0A03,0)/Pci(1|0)/Scsi(Pun0,Lun0)
blk1 : Acpi(PNP0A03,0)/Pci(1|0)/Scsi(Pun1,Lun0)
blk2 : Acpi(PNP0A03,0)/Pci(1|0)/Scsi(Pun1,Lun0)/CDROM(Entry0)
blk3 : Acpi(PNP0A03,0)/Pci(1|0)/Scsi(Pun1,Lun0)/CDROM(Entry1)


It is trying to boot from the Disk Media.
As mentioned before i have installed os(11iv2) for guest (vguest1) on SAN disk(external disk ),
so how can i ask the guest(vguest1) to boot from it ?





Torsten.
Acclaimed Contributor

Re: IVM:Adding boot entry in EFI for guest OS

Did you install from the vMP console interface?

Your only valid filesystem is the install CD-ROM:

fs0 : Acpi(PNP0A03,0)/Pci(1|0)/Scsi(Pun1,Lun0)/CDROM(Entry0)


I'm not sure what you did so far...

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!   
amit mehta_2
Regular Advisor

Re: IVM:Adding boot entry in EFI for guest OS

Hi Torsten,

After carefully reading the manuals,though
there is so much yet to read and understand,i tried setting up the virtual machines from scratch.

After creating the VM(Virtual Machine),i went to its console(hpvmconsole -Pvguest1) and tried installing the VM for the first time from lanboot.(Before this i had to set the PC to ON)



Now during the installation i get the message saying,
"There were no disks found during the IO scan. You will need to
correct any hardware problems and either use the "Scan Again" button,
or reboot and try again. "

How can i add some disks to this VM(vguest1)
I tried with 'hpvmmodify' but seems that i am not providing the correct HW path.

Logs:
root@hpia7/ >hpvmcreate -Pvguest1 -c1 -r1G -a network:lan::vswitch:vswitch1 -a network:lan:0,1:vswitch:localnet


root@hpia7/ >hpvmmodify -A -Pvguest1 -m disk:scsi:0/4/1/0.9.11.0.0.2.0:disk:/dev/rdsk/c4t2d0
hpvmmodify: Invalid PCI_bus argument '0/4/1/0.9.11.0.0.2.0'.
hpvmmodify: Invalid value specified with the -m option (disk:scsi:0/4/1/0.9.11.0.0.2.0:disk:/dev/rdsk/c4t2d0).

snip from ioscan -funC disk:

root@hpia7/ >ioscan -funC disk
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================

disk 18 0/4/1/0.9.11.0.0.2.0 sdisk CLAIMED DEVICE HP HSV200
/dev/dsk/c4t2d0 /dev/rdsk/c4t2d0


~amit
Torsten.
Acclaimed Contributor

Re: IVM:Adding boot entry in EFI for guest OS

If you really want to assign the disk, try

root@hpia7/ >hpvmmodify -A -Pvguest1 -m disk:scsi::disk:/dev/rdsk/c4t2d0

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!   
amit mehta_2
Regular Advisor

Re: IVM:Adding boot entry in EFI for guest OS

Hi Torsten,

while trying to do so,i am getting the following error message:

root@hpia7/ >hpvmmodify -A -Pvguest1 -m disk:scsi::disk:/dev/rdsk/c4t2d1
hpvmmodify: Unable to find device disk:scsi::disk:/dev/rdsk/c4t2d1.
hpvmmodify: Unable to modify the guest.
root@hpia7/ >echo $?
1

root@hpia7/ >vxdisk list
DEVICE TYPE DISK GROUP STATUS
c2t0d0s2 auto:LVM - - LVM
c2t1d0s2 auto:LVM - - LVM
c4t0d1 auto:cdsdisk c4t0d1 hostdg online
c4t0d2 auto:cdsdisk c4t0d2 hostdg online
c4t0d3 auto:cdsdisk - - online
c4t0d4 auto:cdsdisk - - online
c4t2d0s2 auto - - LVM
c4t2d1 auto:cdsdisk - - online <====
c4t2d2 auto:cdsdisk - - online
c4t2d3 auto:cdsdisk c4t2d3 vguest1_dg online
c4t2d4 auto:cdsdisk c4t2d4 vguest1_dg online

i am trying to install OS for guest machine and as i have plenty of san disks,therefore i plan to do so on SAN disk.

~amit
Torsten.
Acclaimed Contributor

Re: IVM:Adding boot entry in EFI for guest OS

Please read the chapter

"7.2.2.3.2 Virtual LvDisks"

in the manual. On a SAN without using a multipath software solution you should consider to use "LvDisks" (logical volumes under LVM or VxVM control) as backing store for the guests.

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!   
amit mehta_2
Regular Advisor

Re: IVM:Adding boot entry in EFI for guest OS

Hi Torsten,

While trying to export disk to the guest VM(vguest1) i get the following warning message:

root@hpia7/ > hpvmmodify -P vguest1 -a disk:scsi:1,1,3:disk:/dev/rdsk/c4t1d6
hpvmmodify: WARNING (host): Mismatch of device config 2 to 4.
HPVM guest vguest1 configuration problems:
Warning 1 on item /dev/vx/rdmp/c4t2d1: Device file '/dev/vx/rdmp/c4t2d1' in use by server.
These problems may prevent HPVM guest vguest1 from starting.
hpvmmodify: The modification process is continuing.
hpvmmodify: WARNING (host): Mismatch of device config 2 to 4.

root@hpia7/ >hpvmstatus -P vguest1
[Virtual Machine Details]
Virtual Machine Name VM # OS Type State
==================== ===== ======= ========
vguest1 7 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
======= ========
916 MB 64 MB

[Storage Interface Details]
Guest Physical
Device Adaptor Bus Dev Ftn Tgt Lun Storage Device
======= ========== === === === === === ========= =========================
disk scsi 1 1 0 1 0 disk /dev/vx/rdmp/c4t2d1
disk scsi 1 1 0 2 0 disk /dev/rdsk/c4t1d7
disk scsi 1 1 0 3 0 disk /dev/rdsk/c4t1d6
<====

[Network Interface Details]
Interface Adaptor Name/Num PortNum Bus Dev Ftn Mac Address
========= ========== ========== ======= === === === =================
vswitch lan vswitch1 1 0 0 0 ca-fa-e4-39-fb-64
vswitch lan localnet 1 0 1 0 36-8a-78-22-e9-26

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

root@hpia7/ >hpvmstop -P vguest1
hpvmstop: Stop the virtual machine 'vguest1'? [n/y]: y

root@hpia7/ >hpvmstatus -v
Version A.03.00.00
[Virtual Machines]
Virtual Machine Name VM # OS Type State #VCPUs #Devs #Nets Memory Runsysid
==================== ===== ======= ========= ====== ===== ===== ======= ========
vguest1 7 HPUX Off 1 3 2 916 MB 0

root@hpia7/ >hpvmstart -P vguest1
HPVM guest vguest1 configuration problems:
Warning 1 on item /dev/vx/rdmp/c4t2d1: Device file '/dev/vx/rdmp/c4t2d1' in use by server.
These problems may prevent HPVM guest vguest1 from starting.
hpvmstart: Unable to continue.


root@hpia7/ >hpvmstatus -v
Version A.03.00.00
[Virtual Machines]
Virtual Machine Name VM # OS Type State #VCPUs #Devs #Nets Memory Runsysid
==================== ===== ======= ========= ====== ===== ===== ======= ========
vguest1 7 HPUX Off 1 3 2 916 MB 0

Though i was able to start this guest(vguest1) by skipping the resource check by using -F switch in 'hpvmstart'


The warning message seems to be due to some configuration problem.

~amit
Torsten.
Acclaimed Contributor

Re: IVM:Adding boot entry in EFI for guest OS

Looks like the disk is already under VxVM control from the VMHost point of view and now you are using the same disk for the HPVM.

As mentioned before, consider to use a logical volume instead of the whole disk.

Without a multipath extension, you have only a single path to the disk for the guest.

If this path fails, your guest will fail too.

To workaround this, use the multipath cabability provided by the volume manager and use a logical volume instead.

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!