Sei sulla pagina 1di 3

5/25/2017 HPUXtechnicaltipsforsystemadministrators:HPUXvirtualMachineCheatSheet

HPUXtechnicaltipsforsystemadministrators search

26thJune2012 HPUXvirtualMachineCheatSheet
HPVMCheatSheet

1)HowtoStartHPVM?

Onahost
a)

#vi/etc/rc.cong.d/hpvmconf
#Setto1(0)toenable(disable)IntegrityVMatbootme.
HPVM_ENABLE=1
#/sbin/init.d/hpvmstart

Note:Whenhostisrebooteditwillstartalltheguestbydefault


b) StarngHPVMontheguest



#hpvmstartPguestname

2)HowtoStopHPVM?

#shutdownhy0(gracefullyshutdown,fromguestOS)
#hpvmstopPguestname(forcedshutdownfromhostnotrecommended)


3)HowtoidenfyIdenfyHostorGuestusinghpvminfocommand?

Examples:Usinghpviminfoonahost

hpvminfo(v,V)(onhost)
#hpvminfo
hpvminfo:RunningonanHPVMhost.
#hpvminfov
VersionB.04.10.00
hpvminfo:RunningonanHPVMhost.
#hpvminfoV
hpvminfo:RunningonanHPVMhost.
#model
ia64hpserverXXXX

Example:UsinghpviminfoonaGuest
#model
ia64hpserverIntegrityVirtualMachine
#hpvminfo(OnguestOS)
hpvminfo:RunninginsideanHPVMguest.

#hpvminfov
VersionB.04.10.0
hpvminfo:RunninginsideanHPVMguest.
#hpvminfoV
hpvminfo:RunninginsideanHPVMguest.
conguredguestname:guest_hostname
Hostchassisinformaon
Hostmodelstring:ia64hpserverxxxxx
Hostserialnumber:xxxxxxxxxxxxxxxxxxxx
Hostparonident:xxxxxxxxxxxxxxxxxxxxxxx
Hostmachineident:bxxxxxxxxxxxx
Hostphysicalserialnumber:xxxxxxxxxxx
Hostphysicalident:xxxxxxxxxxxxxxxxx
HostInetinformaon
Hostname:hostname.x.x.x
NumberofhostIPv6Addresses:0
DynamicViewstheme.PoweredbyBlogger.

http://uttamdravidam.blogspot.com.au/2012/06/hpuxvirtualmachinecheatsheet.html 1/3
5/25/2017 HPUXtechnicaltipsforsystemadministrators:HPUXvirtualMachineCheatSheet
NumberofhostIPv4Addresses:2
IPAddress:X.X.X.X
IPAddress:X.X.X.X
HostSCSIinformaon
Timeout:4000

C
4)Howtoconnecttoguestconsole?

#hpvmconsolePguestname

vMPMAINMENU
CO:Console
CM:CommandMenu
CL:ConsoleLog
SL:ShowEventLogs
VM:VirtualMachineMenu
HE:MainHelpMenu
X:ExitConnecon
[XXXXX]vMP>co

5)HowtocheckstatusofVM's?

#hpvmstatus

6)HowtocreateaVM?

#hpvmcreateP(name)\
O(ostype)\
a(resource/device)\
e(CPUentlementin%)\
E(CPUentlementinclockcycles)\
r(memoryallocaoninMBorGB;default:2GB)\
c(#cpus;default:1)
7)Howtocheckthedevicemanagement
#hpvmdevmgmtlall(Listallentries)
#hpvmdevmgmtdrdev:/dev/vx/rdsk/rootdg/test1vol(todeleteRestricteddevice)
#hpvmdevmgmtlrdev(tocheckrestricteddevices)

8)HowtoaddmemorytoanHPVMguest?

ProcedurestoaddmemorytoanHPVMguest:
a.Displayandnotestatusofguests(onhost)
#hpvmstatus
b.Displayandnotecurrentavailableresources(onhost)
#hpvmstatuss
c.Changememoryofguest(usebelowcommandonhost)
#hpvmmodifyP<guest_name>r<total_amout_of_memory_in_GB>

Example:hpvmmodifyPguesthostnamer10G

Note:Thecommandabovewillgoinasdeferred(pending).
d.Displaydeferredmemoryassignment(onhost)
#hpvmstatusDP<guest_name>
e.Rebootsystem(onguest)
#shutdownry0
f.Displayandnotestatusofgueststoverifychange(onhost)
#hpvmstatus
g.Displayandnoteremainingresourcestoverifychange(onhost)
#hpvmstatuss

9)Howtoremoveaguest?
a)#shutdownry0(onguest)
b)#hpvmstatus(onhost,checkifallguestsare"o"state"
c)#hpvremovePguestname
hpvmremove:Removethevirtualmachine'guestname'?[n/y]:y

Confirmallretiredguestsaregone:

d)#hpvmstatus
hpvmstatus:Noguestscurrentlyconfigured.
hpvmstatus:Unabletocontinue.




HPVMCommands:

hpvmcreate:Createanewvirtualmachine
hpvmremove:Removeavirtualmachine
hpvmstart:Bootavirtualmachine
hpvmstop:Stopavirtualmachine
hpvmconsole:Connecttotheconsoleofavirtualmachine
hpvmstatus:Displayinformaonaboutoneormorevirtualmachines
hpvmmodify:Modifytheaributesofavirtualmachine
hpvmnet:CreateandcontrolanIntegrityVirtualMachinesvirtual
networkswitch(vswitch)
hpvmdevmgtm:ManagethedevicesthatareassociatedwiththeVMhostand
theguests
hpvmclone:CreateaVMthatiscopyofanexisngVM
DynamicViewstheme.PoweredbyBlogger.
hpvmmigrate(*):MigrateaVMtoadierenthost
http://uttamdravidam.blogspot.com.au/2012/06/hpuxvirtualmachinecheatsheet.html 2/3
5/25/2017 HPUXtechnicaltipsforsystemadministrators:HPUXvirtualMachineCheatSheet
hpvmmigrate(*):MigrateaVMtoadierenthost
hpvmcollect:Collectcrashdumps,logs,systemstatus,andconguraonon
theVMhostorguestsforanalysis
hpvminfo:DisplayinformaonaboutVMenvironment

Posted26thJune2012byHPUXandCloudComputingGeek

1 Viewcomments

SaugataGoswami June22,2016at11:43PM
thearticleishelpfulenough,butIamhavingdoubtattheendofthepagewhereHPVMcommandsarewrittenamongwhich
thecommandhpvmdevmgtmismisspelleditshouldbehpvmdevmgmt.
Reply

Enteryourcomment...

Commentas: Unknown(Google) Signout


Publish Preview Notifyme

DynamicViewstheme.PoweredbyBlogger.

http://uttamdravidam.blogspot.com.au/2012/06/hpuxvirtualmachinecheatsheet.html 3/3

Potrebbero piacerti anche