1751968 Members
4766 Online
108783 Solutions
New Discussion юеВ

hpvm

 
SOLVED
Go to solution
David Willams
Super Advisor

hpvm

how do I create a vm guest.. with 8 cpu's and 50GB ram...

How do I assign a IP address to this vm guest..
Will I have to use the physical port to use this...

could you please give me a command line example..
6 REPLIES 6
Lijeesh N G_1
Respected Contributor
Solution

Re: hpvm

Hi,

Which is your OS version?

Here is the link for all Integrity virtual machines versions documents.

http://docs.hp.com/en/vse.html#HP%20Integrity%20Virtual%20Machines

11.23 will support 3.0 and 3.50 versions
11.31 will support 4.0 and 4.1 also..

Regards,
LIJEESH N G
Lijeesh N G_1
Respected Contributor

Re: hpvm

Hi,

1)how do I create a vm guest.. with 8 cpu's and 50GB ram...????

===>Find below a generic procedure for creating a VM guest, I would suggest you to read above documents of IVM before procedding...

Creating Integrity Virtual machine
==============================

1) Collect all system Informations
==================================

>Processor/Memory
-----------------
#machinfo

>Storage
-----------------
#ioscan -fnC disk

>Network adapters -LAN
-----------------
#ioscan -fnC lan
#netstat -in

2) Install HPVM software
========================
#swinstall -s

Integrity VM is installed in the /var/opt/hpvm directory.
Data files are installed under the /var/opt/hpvm directory.
Commands are installed in the /opt/hpvm/bin directory.

3) Verify the installation
=========================
#hpvminfo

4) Create Virtual switch
========================
Note: Before creating VM guest we need to create Virtual Switch

i) Identify the Network adapters which can be used as shared virtual switch and create it
with the following command.

#hpvmnet -c -S -n

Eg.#hpvmnet -c -S vsw1 -n1

ii)Verify Virtual switch by following command.

#hpvmnet -v >>>>it will show virtual switch is down.

iii)Start Virtual switch and verify,

#hpvmnet -S -b

#hpvmnet -v >>>Now it will be up.


#hpvmnet -c -S vsw1 -n2 >>> Creating virtual switch with name vsw1 and with LAN card 2.

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

#hpvmnet -S vsw1 -b >>> Start Virtual swicth vsw1


#hpvmnet
Name Number State Mode PPA MAC Address IP Address
======== ====== ======= ========= ====== ============== ===============
localnet 1 Up Shared N/A N/A
vsw1 2 Up Shared lan2 0x00127943e5dc
====

5) Creating VM Guests
======================
#hpvmcreate -P guest1 -c1 -r4G -a network:lan::vswitch:vsw1
-a disk:scsi::disk:scsi::disk:/dev/rdsk/c2t0d0 -O HPUX -a dvd:scsi::file:/ISO_IMAGES/B.11.23.iso

where as,

Guest name ==> guest1
No.of processors assigned ==> 1
(Note:We can assign with respect % as well)
Memory ==> 4GB
Virtual swicth ==> vsw1
Storage/Disk ==> /dev/rdsk/c2t0d0
(Note: We can assign Logical volume also as a disk)
Removable Media ==> ISO file
(This we can use as a bootable DVD to install HP-UX)
Operating system ==> HP-UX
(Note: We can install WINDOWS and Linux as well)

6) Verify the VM guests
======================

#hpvmstatus
[Virtual Machines]
Virtual Machine Name VM # OS Type State # vCPUs # Devs # Nets Memory
==================== ===== ======= ======== ======= ====== ====== ===========
guest1 2 HPUX On 1 2 1 4 GB


#hpvmstatus -P guest1
[Virtual Machine Details]
Virtual Machine Name VM # OS Type State
==================== ===== ======= ========
guest1 2 HPUX On

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

[Virtual CPU Details]
Number Entitle
vCPUs Type Entitlement Maximum
====== ======= =========== =======
1 percent 5.0% 100.0%

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

[Storage Interface Details]
Guest Physical
Device Adaptor Bus Dev Ftn Tgt Lun Storage Device
====== ========== === === === === === ========= =========================
disk scsi 0 1 0 0 0 disk /dev/rdsk/c2t0d0
dvd scsi 0 1 0 1 0 file /ISO_IMAGES/B.11.23.iso

[Network Interface Details]
Interface Adaptor Name/Num Bus Dev Ftn Mac Address
========= ========== ========== === === === =================
vswitch lan vsw1 0 0 0 5a-7f-49-46-29-b8

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


7) Booting VM Guests
=====================
#hpvmstart -P guest1 >>>It will start guest1


8) Logging to the VM guest console
=================================

#hpvmconsole -P guest1


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

[guest1] vMP>

9) Installing Operating system on the guests
===========================================
There are three methods to install Operating system

a) From local DVD as Virtual DVD.
>>>For this we need to assign DVD drive to guest1 and insert DVD and boot from
DVD from EFI manager.

#hpvmmodify -P guest1 -a dvd:scsi::disk:/dev/rdsk/c0t0d0 >>>assigning DVD.

b) From local file as Virtual DVD.
>>>For this we should have a copy of OS ISO image copied to the VM host.
Assign the local ISO file as DVD to guest1, then boot from it.

#hpvmmodify -P guest1 -a dvd:scsi::file:/ISO_IMAGES/B.11.23.iso

c) From Ignite-UX server.

Refer following links for more informations,

http://docs.hp.com/en/T2767-90067/T2767-90067.pdf
http://docs.hp.com/en/T2767-90141/T2767-90141.pdf

Regards,
LIJEESH N G
Lijeesh N G_1
Respected Contributor

Re: hpvm

Hi,

How do I assign a IP address to this vm guest..??
Will I have to use the physical port to use this...??

==>you have to create a virtual switch for this and assign it to guest.

I mentioned above the procedure to create.

Regards,
LIJEESH N G
SoorajCleris
Honored Contributor

Re: hpvm

Hi ,

I can see the question - "with 8 CPU and 50 GB ram"

You mean to say you host machine is having 8 CPU? or you want to create an IVM with 8 CPU?

If you want to create an IVM with 8 CPU, you need 8 physical CPU in your host machine.

How ever the entitilement allocation is up to you ( 5% to 100% - ideal)

Then there is a change in tha command
Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
SoorajCleris
Honored Contributor

Re: hpvm

) Creating VM Guests
======================
#hpvmcreate -P guest1 -c1 -r4G -a network:lan::vswitch:vsw1
-a disk:scsi::disk:scsi::disk:/dev/rdsk/c2t0d0 -O HPUX -a dvd:scsi::file:/ISO_IMAGES/B.11.23.iso

The -c1 should be -c8

and then memory also you need to change

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
David Willams
Super Advisor

Re: hpvm

Thank you Lijeesh N G ...

I want to assign you 100 points... but thank you so much