Boot entry
- 3.2
label xen kernel mboot.c32 append xen.gz dom0_mem=max:128G --- vmlinuz --- initrd.img
- 3.3
label xen kernel mboot.c32 append xen.gz dom0_mem=max:128G dom0_max_vcpus=20 --- vmlinuz --- initrd.img
- With kickstart
mboot.c32 xen.gz dom0_mem=max:128G dom0_max_vcpus=20 --- vmlinuz ks=http://ca-sysinfra604.us.oracle.com/systest/public/installation/ks.cfg ksdevice=eth0 --- initrd.img
Kernel parameters
- Debugging
As always please boot Xen with extra debug options 'com1=115200,8n1 console=com1 loglvl=all guest_loglvl=all sync_console' And on the Linux line 'debug console=hvc0' mboot.c32 xen.gz dom0_mem=max:128G dom0_max_vcpus=1 com1=9600,8n1 cpufreq=verbose console=com1,vga loglvl=all guest_loglvl=all sync_console --- vmlinuz console=hvc0 console=tty0 initcall_debug debug --- initrd.img
Agent DB
- Server DB
# ll /etc/ovs-agent/db total 36 -rw------- 1 root root 12288 Sep 12 13:40 aproc -rw------- 1 root root 12288 Sep 12 13:40 exports -rw------- 1 root root 12288 Sep 12 13:54 repository -rw------- 1 root root 12288 Sep 12 14:17 server # ovs-agent-db dump_db server {'cluster_state': 'DLM_Ready', 'clustered': True, 'is_master': True, 'manager_event_url': 'https://192.168.0.10:7002/ovm/core/wsapi/rest/internal/Server/802D6A48-0705-9248-FA75-41B2ED1271C3/Event', 'manager_ip': '192.168.0.10', 'manager_statistic_url': 'https://192.168.0.10:7002/ovm/core/wsapi/rest/internal/Server/802D6A48-0705-9248-FA75-41B2ED1271C3/Statistic', 'manager_uuid': '0004fb0000010000e3abb9a99784b8e0', 'node_number': 1, 'pool_alias': 'VCA-lite Server Pool', 'pool_uuid': '0004fb000002000086f7ab23764f197d', 'pool_virtual_ip': '192.168.0.3', 'poolfs_nfsbase_uuid': '82235ece-ed36-4789-855e-c44ebe388dda', 'poolfs_target': '10.196.248.11:/export/vca-lite/poolfs1', 'poolfs_type': 'nfs', 'poolfs_uuid': '0004fb0000050000f1cf04cdc2a4a79c', 'registered_hostname': 'ovs193.us.oracle.com', 'registered_ip': '192.168.0.2', 'roles': set(['utility', 'xen'])} # ovs-agent-db dump_db repository {'0004fb000003000040f485577f678d25': {'alias': u'VCA-lite Repository', 'filesystem': 'nfs', 'fs_location': '10.196.248.11:/export/vca-lite/repo1', 'manager_uuid': u'0004fb0000010000e3abb9a99784b8e0', 'mount_point': '/OVS/Repositories/0004fb000003000040f485577f678d25', 'version': u'3.0'}} # ovs-agent-db dump_db aproc {} # ovs-agent-db dump_db exports {}
- Cluster DB
# ll /poolfsmnt/0004fb0000050000f1cf04cdc2a4a79c/db total 36 -rw------- 1 root root 12288 Sep 12 13:59 monitored_vms -rw------- 1 root root 12288 Sep 12 14:11 server_pool -rw------- 1 root root 12288 Sep 12 13:54 server_pool_servers # ovs-agent-db -d /poolfsmnt/0004fb0000050000f1cf04cdc2a4a79c/db dump_db monitored_vms {'0004fb00-0006-0000-8d80-f107e4ed63c8': {'repo_id': '0004fb000003000040f485577f678d25', 'vm_id': '0004fb00000600008d80f107e4ed63c8'}} # ovs-agent-db -d /poolfsmnt/0004fb0000050000f1cf04cdc2a4a79c/db dump_db server_pool {'auto_remaster': True, 'pool_alias': 'VCA-lite Server Pool', 'pool_master_hostname': 'ovs193.us.oracle.com', 'pool_member_ip_list': ['192.168.0.1', '192.168.0.2'], 'pool_uuid': '0004fb000002000086f7ab23764f197d', 'pool_virtual_ip': '192.168.0.3'} # ovs-agent-db -d /poolfsmnt/0004fb0000050000f1cf04cdc2a4a79c/db dump_db server_pool_servers {'ovs192.us.oracle.com': {'is_master': True, 'node_number': 0, 'registered_ip': '192.168.0.1', 'roles': set(['utility', 'xen'])}, 'ovs193.us.oracle.com': {'is_master': False, 'node_number': 1, 'registered_ip': '192.168.0.2', 'roles': set(['utility', 'xen'])}}
Agent RPC calls
- bond port
# add eth port to bond port ovs-agent-rpc ovs_bond_op "'add'" "'bond0'" "eth'" # create bond port ovs-agent-rpc ovs_bond_config "'start'" "'bond0'" "1" "'eth0'" "'eth1'"
- vLAN
# Add vlan interface ovs-agent-rpc ovs_vlan_config "'add'" "'bond0'" "621"
- IP
# delete IP address ovs-agent-rpc ovs_ip_config "'bond0'" "'flush'" "''" "''" # configure static IP ovs-agent-rpc ovs_ip_config "'bond0'" "'static'" "'10.0.0.1'" "'255.255.252.0'"
- MTU
# change MTU ovs-agent-rpc ovs_change_mtu "'bond0'" "'9000'"
- Bridge
ovs-agent-rpc ovs_async_bridge "'start'" "'br0'" "'bond0'"
- Server role
ovs-agent-rpc update_server_roles "'utility,xen'
- VM
# create vm ovs-agent-rpc create_vm \ "'$REPO_ID'" \ "'$VM_ID'" \ "{'vif': ['mac=$mac0,bridge=$public_br', 'mac=$mac1,bridge=$br'], 'OVM_simple_name': '$VM_NAME', 'guest_os_type': 'linux', 'disk': ['file:$BASE/ovmm3.3.1/System.img,xvda,w', 'file:$BASE/ovmm3.3.1/ovmm3.3.1.img,xvdb,w', 'file:$OVMM_ISO,xvdc:cdrom,r'], 'bootargs': '', 'on_reboot': 'restart', 'cpu_weight': 27500, 'memory': 8192, 'cpu_cap': 0, 'maxvcpus': 2, 'OVM_high_availability': False, 'OVM_description': '', 'on_poweroff': 'destroy', 'on_crash': 'restart', 'bootloader': '/usr/bin/pygrub', 'name': '$VM_ID', 'uuid': '$VM_UUID', 'usbdevice': 'tablet', 'vfb': ['type=vnc,vncunused=1,vnclisten=0.0.0.0,keymap=en-us'], 'vcpus': 2, 'OVM_os_type': 'Oracle Linux 6', 'OVM_cpu_compat_group': '', 'OVM_domain_type': 'xen_pvm'}" # enable HA ovs-agent-rpc configure_vm_ha "'$repo_id'" "'$new_manager_vm_uuid'" "'True'" # start vm ovs-agent-rpc start_vm "'$REPO_ID'" "'$VM_ID'" # send vm messages # manager network config - public mgmt - on eth0 ovs-agent-rpc send_to_guest "'$TEMP_REPO_ID'" "'$TEMP_OVMM_VM_ID'" \ "{'com.oracle.linux.network.device.0':'eth0'}" ovs-agent-rpc send_to_guest "'$TEMP_REPO_ID'" "'$TEMP_OVMM_VM_ID'" \ "{'com.oracle.linux.network.onboot.0':'yes'}" ovs-agent-rpc send_to_guest "'$TEMP_REPO_ID'" "'$TEMP_OVMM_VM_ID'" \ "{'com.oracle.linux.network.bootproto.0':'static'}" ovs-agent-rpc send_to_guest "'$TEMP_REPO_ID'" "'$TEMP_OVMM_VM_ID'" \ "{'com.oracle.linux.network.ipaddr.0':'$ovmm_public_ip'}" ovs-agent-rpc send_to_guest "'$TEMP_REPO_ID'" "'$TEMP_OVMM_VM_ID'" \ "{'com.oracle.linux.network.netmask.0':'$public_netmask'}" # network - gateway on public ovs-agent-rpc send_to_guest "'$TEMP_REPO_ID'" "'$TEMP_OVMM_VM_ID'" \ "{'com.oracle.linux.network.gateway.0':'$gateway'}" # last one the root passwd ovs-agent-rpc send_to_guest "'$TEMP_REPO_ID'" "'$TEMP_OVMM_VM_ID'" \ "{'com.oracle.linux.root-password':'$root_passwd'}" # stop vm ovs-agent-rpc stop_vm "'$TEMP_REPO_ID'" "'$TEMP_OVMM_VM_ID'"