7.7 Installation d'une VM

De UnixWiki
Aller à : navigation, rechercher

Récupération de l'ID de la partion

 # lssyscfg -r lpar -m $CECS --filter "lpar_names=$PART_NAME" -F lpar_id

Ajout d'une carte réseau virtuelle

Lister les insterfaces

 # lsmap -all -net -fmt :

Lister les IP

 # lstcpip -fmt :

Récupération des slot ethernet

 # lshwres -r virtualio --rsubtype eth -m $CECS --level lpar --filter \"\"lpar_names=$VIO1\"\" -F \"slot_num,port_vlan_id,addl_vlan_ids,ieee_virtual_eth\"

Enfin l'ajout:

 # chsyscfg -r prof -m $CECS -i \"name=normal,lpar_name=${PART},\\\"virtual_eth_adapters+=$allslots1

Création slot scsi

 # chsyscfg -r prof -m $CECS -i \"name=$prof,lpar_name=$PART,\\\"virtual_scsi_adapters=$allslots\\\"\"

Ressources dispo sur le chassis

CPU

 # lshwres -r proc -m $CECS --level sys -F installed_sys_proc_units,min_proc_units_per_virtual_proc"

Mémoire

 # lshwres -r mem -m $CECS --level sys -F configurable_sys_mem"

Création d'une micro-partition

Si P5

 # mksyscfg -r lpar -m $CECS -i \"${LPARID:+"lpar_id=$LPARID,"}name=$PART,profile_name=normal,lpar_env=aixlinux,min_mem=512,desired_mem=$MEMALLOUE,max_

mem=$MEMMAX,proc_mode=shared,${CAPARGS},min_procs=1,desired_procs=$VIRCPU,max_procs=${MAXNBCPU},min_proc_units=${MINPROCUNIT},desired_proc_units=${DESPROCUNIT},max_proc _units=${MAXPROCUNIT},auto_start=1,shared_proc_pool_util_auth=1,boot_mode=norm,max_virtual_slots=500,\\\"io_slots=$allslots\\\"\" _units=${MAXPROCUNIT},auto_start=1,shared_proc_pool_util_auth=1,boot_mode=norm,max_virtual_slots=500,\\\"io_slots=$allslots\\\"\

Sinon

 # mksyscfg -r lpar -m $CECS -i \"${LPARID:+"lpar_id=$LPARID,"}name=$PART,profile_name=normal,lpar_env=aixlinux,min_mem=512,desired_mem=$MEMALLOUE,max_

mem=$MEMMAX,proc_mode=shared,${CAPARGS},min_procs=1,desired_procs=$VIRCPU,max_procs=${MAXNBCPU},min_proc_units=${MINPROCUNIT},desired_proc_units=${DESPROCUNIT},max_proc _units=${MAXPROCUNIT},auto_start=1,shared_proc_pool_util_auth=1,boot_mode=norm,lpar_proc_compat_mode=$mode_proc,max_virtual_slots=500,\\\"io_slots=$allslots\\\"\"

Création de la micro-partition sans slot physique

 # mksyscfg -r lpar -m $CECS -i \"${LPARID:+"lpar_id=$LPARID,"}name=$PART,profile_name=normal,lpar_env=aixlinux,min_mem=512,desired_mem=$MEMALLOUE,max_mem

=$MEMMAX,proc_mode=shared,${CAPARGS},min_procs=1,desired_procs=$VIRCPU,max_procs=${MAXNBCPU},min_proc_units=${MINPROCUNIT},desired_proc_units=${DESPROCUNIT},max_proc_un its=${MAXPROCUNIT},auto_start=0,lpar_proc_compat_mode=$mode_proc,shared_proc_pool_util_auth=1,boot_mode=norm,max_virtual_slots=500\"