cancel
Showing results for 
Search instead for 
Did you mean: 

re : how to create guest vm

SOLVED
Go to solution
Vincent_5
Super Advisor

re : how to create guest vm

Hi Guys,
Can anyone advice the steps how to create a guest VM on a hpux 11i version 3 vse operating system.

Regards
Vincent
nothing is better than to know more
4 REPLIES
Torsten.
Acclaimed Contributor
Solution

Re: re : how to create guest vm

This manual will guide you:

http://docs.hp.com/en/T2767-90141/index.html

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!   
VK2COT
Honored Contributor

Re: re : how to create guest vm

Hello Vincent,

It is really easy.

Here are some notes on one method for
two VMs:

a) Firstly, say, create a new volume group
and mount file system /hpvm.

Then, create two ISOs by copying data from
DVDs to files:

# dd if=/dev/rdsk/c9t2d0 of=/hpvm/ISO-images/hpux/HPUX11iv3Sep08-DCOE-D1.iso bs=2048k

# dd if=/dev/rdsk/c1t2d0 of=/hpvm/ISO-images/hpux/HPUX11iv3Sep08-DCOE-D2.iso bs=2048k

b) Likewise, create raw logical volumes
that will be used for backing store (virtual
disks), say /dev/vgvm/rlvvm[1-2].

c) Create a Shell script which defines two
vSwitches (one bound to real lan0 on the VM
host - called edunet, and one private -
called hbeat):

!/bin/sh
hpvmnet -c -S edunet -n 0
hpvmnet -b -S edunet
hpvmnet -c -S hbeat
hpvmnet -b -S hbeat

i=1
while [ "$i" -lt 3 ]
do
hpvmcreate -P vm${i} -c 1 -r 2G -B auto \
-l "HPVM Member vm${i}" \
-g group:admin \
-u user:admin -O HPUX \
-a disk:scsi::lv:/dev/vgvm/rlvvm${i} \
-a network:lan::vswitch:edunet \
-a network:lan::vswitch:hbeat \
-a dvd:scsi::file:/hpvm/HPUX11iv3Sep08-DCOE-D1.iso

if [ $? -eq 0 ]
then
echo "SUCCESS: VM vm${i} created"
i=`expr $i + 1`
else
echo "ERROR: VM vm${i} failed to be created"
exit 1
fi
done

d) If you want to share the virtual DVD
(so that you can build multiple VMs at the same time), run command:

# hpvmdevmgmt -m gdev:/hpvm/ISO-images/hpux/HPUX11iv3Sep08-DCOE-D1.iso:attr:SHARE=YES

e) Then, start the VMs:

# hpvmstart -P vm1

# hpvmstart -P vm2

f) Then, connect to VM consoles:

# hpvmconsole -P vm1

# hpvmconsole -P vm2

And so on.

I think you now get the idea.

There are several other methods to build
VMS (Ignite, VM replication, and so on).

Cheers,

VK2COT
VK2COT - Dusan Baljevic
VK2COT
Honored Contributor

Re: re : how to create guest vm

I forgot to add...

I left out AVIO device method for you as an
exercise.

Cheers,

VK2COT

VK2COT - Dusan Baljevic
VK2COT
Honored Contributor

Re: re : how to create guest vm

In fact, it is probably better to give you help.

Once you start reading the documentation, it will get clearer :)

Same script as above, but using AVIO devices and agile-view on HP-UX 11.31 host:

#!/bin/sh
hpvmnet -c -S edunet -n 0
hpvmnet -b -S edunet
hpvmnet -c -S hbeat
hpvmnet -b -S hbeat

i=1
while [ "$i" -lt 3 ]
do
hpvmcreate -P vm${i} -c 1 -r 2G -B auto \
-l "HPVM Member vm${i}" \
-g group:admin \
-u user:admin -O HPUX \
-a hba:aviostor::disk/dev/rdisk/disk${i} \
-a network:aviolan::vswitch:edunet \
-a network:aviolan::vswitch:hbeat \
-a dvd:scsi::file:/hpvm/HPUX11iv3Sep08-DCOE-D1.iso

if [ $? -eq 0 ]
then
echo "SUCCESS: VM vm${i} created"
i=`expr $i + 1`
else
echo "ERROR: VM vm${i} failed to be created"
exit 1
fi
done


VK2COT - Dusan Baljevic