Operating System - HP-UX
1833631 Members
3489 Online
110062 Solutions
New Discussion

Creating Guest Administrators and Operators

 
SOLVED
Go to solution
Grayh
Trusted Contributor

Creating Guest Administrators and Operators

I havent created Guest Administrators and Operators before creating the VM...

Is it possible to create them after the OS installation on the Guests...

and if so... may be with the following user account testme as given in the manual

# useradd -r no -g users -s /opt/hpvm/bin/hpvmconsole \
-c "Console access to guest 'testme'" \
-d /var/opt/hpvm/guests/testme \
testme1

and then

#hpvmmodify -P testme -u compass1:admin

and then what is Guest management Software

# pwd
/opt/hpvm/guest-images/hpux/11iv3
# ll -l
total 16608
-rw-r--r-- 1 bin bin 8499200 Oct 8 2007 hpvm_guest_depot.11iv3
.sd

what is hpvm_guest_depot.11iv3
.sd file
18 REPLIES 18
Grayh
Trusted Contributor

Re: Creating Guest Administrators and Operators

Can the above be created after inmplemetation of the guest system or before the guest system
Robert-Jan Goossens_1
Honored Contributor
Solution

Re: Creating Guest Administrators and Operators

Hi,

From HP Integrity Virtual Machines
Installation, Configuration, and Administration Guide

page 34

1. Using the useradd command, set up an /etc/passwd entry for each guest on the VM Host. The username of the account must be the same as the guest name and must have no more than eight characters.
For example:
# useradd -d /var/opt/hpvm/guests/compass1 -c 'compass1 console' \
> -s /opt/hpvm/bin/hpvmconsole guest1
In this example, the following options are used:
â ¢ -d specifies the home directory for the guest1 account.
â ¢ -c specifies a comment text string that describes the account.
â ¢ -s specifies the path for the shell of the new account.

Page 44

The Integrity VM product also contains guest software that you can install on a virtual machine after you have installed its HP-UX operating system. Installing this depot improves the performance of the guest's
operating system and provides the hpvminfo and hpvmcollect commands to guest administrators.

Regards,
Robert-Jan
Grayh
Trusted Contributor

Re: Creating Guest Administrators and Operators

thanks Robert.. I was able to create.. I have one more query

When I am using vdvd on VMGUEST01... VMGUEST02 dosent accept it.. So Do I have to remove the vdvd on VMGUEST01 and then use it on 02 or how it is....
Robert-Jan Goossens_1
Honored Contributor

Re: Creating Guest Administrators and Operators

What command did you use to add the iso to your VM?

# hpvmmodify -P Vguest1 -a dvd:scsi::null:/path_to_iso

Grayh
Trusted Contributor

Re: Creating Guest Administrators and Operators

Actually I havent done that yet..

the 1st VM Guest might take another 10 minutes for it to finish hpux

it is stii at the below point..

Building a new kernel for configuration 'import.config'...

And then on it I will ftp the below image

# cd /opt/ignite/data/scripts/examples/iso_directory/
# ll
total 608608
drwxrwxrwx 2 root sys 96 Oct 3 12:25 cfgs
-rw-rw-rw- 1 root sys 311605248 Oct 3 12:26 image.iso

* But to which directoty should I ftp it..

and then create a vguest 1 with the following command

#useradd -d /var/opt/hpvm/guests/hpvmsys \
-c 'hpvmsys console' -s /opt/hpvm/bin/hpvmconsole vguest1

# passwd vguest1

#hpvmmodify -P VM03A -u hpvmsys:admin

I have got hpvmsys from the below
# cd /var/opt/hpvm/guests
# ll
total 0
lrwxrwxrwx 1 root hpvmsys 56 Oct 1 13:44 VM03A -> /var/opt/hpv
/uuids/8ad310ce-8fe0-11dd-8403-001f29f280f2
lrwxrwxrwx 1 root hpvmsys 56 Oct 1 09:58 VM03B -> /var/opt/hpv
/uuids/020c74fc-8fc1-11dd-b303-001f29f280f2


And now to load the OS in the other VM Guests... What should I do



Robert-Jan Goossens_1
Honored Contributor

Re: Creating Guest Administrators and Operators

is this a follow up from your question on the DVD?

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1275121

vdvd = virtual dvd = iso

Ypu can not configure the dvd to two VM's at the same time.

Regards,
Robert-Jan
Robert-Jan Goossens_1
Honored Contributor

Re: Creating Guest Administrators and Operators

Forum is slow, forget my previous answer.

I created a filesystem for the iso on a non-root disk, just create a filesystem or use a large existing filesystem to store the iso on you VM host. As long as you have enough free space it should work.
Grayh
Trusted Contributor

Re: Creating Guest Administrators and Operators

Actually yes...

IS this the command to create the vdvd on the vm guest

hpvmmodify -P Vguest1 -a dvd:scsi::null:/path_to_iso

can path_to_iso = /tmp/image.iso

after i have done this... what should i do on the other VM Guest so that it will start installing the OS
Robert-Jan Goossens_1
Honored Contributor

Re: Creating Guest Administrators and Operators

can path_to_iso = /tmp/image.iso?

Yes

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1258659

Have a look at Thorsten's answer in above thread.

Regards,
Robert-Jan
Grayh
Trusted Contributor

Re: Creating Guest Administrators and Operators

how to remove the folling DVD from the Vm Guest... looks like it is still using it... and so i am unable to start the other one... I want the other guest to used this dvd and this guest should also start


[Storage Interface Details]
Guest Physical
Device Adaptor Bus Dev Ftn Tgt Lun Storage Device
======= ========== === === === === === ========= ========================
disk scsi 0 0 0 0 0 lv /dev/vg00/rlvol9
dvd scsi 0 0 0 1 0 disk /dev/rdsk/c1t0d0
disk scsi 0 0 0 2 0 lv /dev/vg00/rlvol11
Robert-Jan Goossens_1
Honored Contributor

Re: Creating Guest Administrators and Operators

# hpvmmodify -P Vguest1 -d dvd:scsi::disk:/dev/rdsk/c1t0d0
Tim Nelson
Honored Contributor

Re: Creating Guest Administrators and Operators

Sooner or later you going to have to read a book.

hpdevmgmt -l gdev will list all of the devices.

e.g.(snippet)
/iux_iso/iux_image.iso:CONFIG=gdev,EXIST=YES,DEVTYPE=FILE,SHARE=YES:ux04f,ux04b,ux04d,ux04g,ux04h,ux04a,ux04c:HPVM_STATID_4_1073741834

to share
hpvmdevmgmt -m /iux_iso/iux_image:attr:SHARE=YES
Grayh
Trusted Contributor

Re: Creating Guest Administrators and Operators


[VM03A] vMP> in

Insertable Guest Devices
Num Hw-path (Bus,Slot,Tgt) Gdev
--------------------------------------------
[1] 0/0/0/0.1.0 (0,0,1) dvd

Enter menu item number or [Q] to Quit: 1
hpvmconsole: Could not find backing-store parameter "/tmp/image.iso" for this de
vice.

** Error: No files are available for the requested device. **

-> Command failed.


showuld i need to do

hpvmdevmgmt -m /iux_iso/iux_image:attr:SHARE=YES on the client
Grayh
Trusted Contributor

Re: Creating Guest Administrators and Operators

also how will I ask the other VM in the server to access this drive...

I have 2 Vm's on one server1 and two on server2

Now i have this vdvd with iso on a VM guest in server1 and now i need to install the os in VM1 & VM2 on server 2.

So what should I type on Vm1 & VM2 so that they will pick this up...

# hpvmmodify -P VM03A -a dvd:scsi::null:/tmp/image.iso

I have this on VM 1 on server1

#cd /tmp
#ll
-rwxrwxrwx 1 root sys 311605248 Oct 3 14:35 image.iso

Robert-Jan Goossens_1
Honored Contributor

Re: Creating Guest Administrators and Operators

Create a nfs share or copy the iso to the other VM host.
Grayh
Trusted Contributor

Re: Creating Guest Administrators and Operators

# chmod 777 image.iso
# hpvmmodify -P VM03A -d dvd:scsi::null:/tmp/image.iso
hpvmmodify: More than one device match dvd:scsi::null:/tmp/image.iso.
hpvmmodify: Unable to modify the guest.
#
How to delete both the null dvd's
Grayh
Trusted Contributor

Re: Creating Guest Administrators and Operators

well i have take care of that


# hpvmmodify -P VM03A -d dvd:scsi:0,0,1:null:/tmp/image.iso
# hpvmmodify -P VM03A -d dvd:scsi:0,0,3:null:/tmp/image.iso
# hpvmstatus
[Virtual Machines]
Virtual Machine Name VM # OS Type State #VCPUs #Devs #Nets Memory Runsysid
==================== ===== ======= ========= ====== ===== ===== ======= ========
VM03B 2 HPUX On (OS) 2 3 1 1 GB 0
VM03A 3 HPUX On (OS) 2 3 1 1 GB 0
# ls
image.iso
# pwd
/var/opt/hpvm/ISO-images/hpux
# ll
total 608624
-rwxrwxrwx 1 root hpvmsys 311605248 Oct 3 17:10 image.iso


now at MP>in

is giving the error givem above...

Robert I could not get you when you said share it to the other server... I have never done that.. Could you plz tell me
Grayh
Trusted Contributor

Re: Creating Guest Administrators and Operators

thanks all