This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
oraclevm:ovmserver [2017/01/19 10:32] frank created |
oraclevm:ovmserver [2017/01/19 10:37] (current) frank |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| === Boot entry === | === Boot entry === | ||
| == 3.2 == | == 3.2 == | ||
| - | {{{ | + | <code> |
| label xen | label xen | ||
| kernel mboot.c32 | kernel mboot.c32 | ||
| append xen.gz dom0_mem=max:128G --- vmlinuz --- initrd.img | append xen.gz dom0_mem=max:128G --- vmlinuz --- initrd.img | ||
| - | }}} | + | </code> |
| == 3.3 == | == 3.3 == | ||
| - | + | <code> | |
| - | {{{ | + | |
| label xen | label xen | ||
| kernel mboot.c32 | kernel mboot.c32 | ||
| append xen.gz dom0_mem=max:128G dom0_max_vcpus=20 --- vmlinuz --- initrd.img | append xen.gz dom0_mem=max:128G dom0_max_vcpus=20 --- vmlinuz --- initrd.img | ||
| - | }}} | + | </code> |
| - | * With kickstart | + | == With kickstart == |
| - | {{{ | + | <code> |
| 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 | 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 | ||
| - | }}} | + | /code> |
| === Kernel parameters === | === Kernel parameters === | ||
| == Debugging == | == Debugging == | ||
| - | {{{ | + | <code> |
| 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' | 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' | ||
| Line 27: | Line 26: | ||
| --- vmlinuz console=hvc0 console=tty0 initcall_debug debug | --- vmlinuz console=hvc0 console=tty0 initcall_debug debug | ||
| --- initrd.img | --- initrd.img | ||
| - | }}} | + | </code> |
| === Agent DB === | === Agent DB === | ||
| == Server DB == | == Server DB == | ||
| - | + | <code Bash> | |
| - | {{{ | + | |
| # ll /etc/ovs-agent/db | # ll /etc/ovs-agent/db | ||
| total 36 | total 36 | ||
| Line 73: | Line 71: | ||
| # ovs-agent-db dump_db exports | # ovs-agent-db dump_db exports | ||
| {} | {} | ||
| - | + | </code> | |
| - | }}} | + | |
| == Cluster DB == | == Cluster DB == | ||
| - | {{{ | + | <code Bash> |
| # ll /poolfsmnt/0004fb0000050000f1cf04cdc2a4a79c/db | # ll /poolfsmnt/0004fb0000050000f1cf04cdc2a4a79c/db | ||
| total 36 | total 36 | ||
| Line 106: | Line 103: | ||
| 'registered_ip': '192.168.0.2', | 'registered_ip': '192.168.0.2', | ||
| 'roles': set(['utility', 'xen'])}} | 'roles': set(['utility', 'xen'])}} | ||
| - | }}} | + | </code> |
| === Agent RPC calls === | === Agent RPC calls === | ||
| == bond port == | == bond port == | ||
| - | + | <code Bash> | |
| - | {{{ | + | |
| # add eth port to bond port | # add eth port to bond port | ||
| ovs-agent-rpc ovs_bond_op "'add'" "'bond0'" "eth'" | ovs-agent-rpc ovs_bond_op "'add'" "'bond0'" "eth'" | ||
| # create bond port | # create bond port | ||
| ovs-agent-rpc ovs_bond_config "'start'" "'bond0'" "1" "'eth0'" "'eth1'" | ovs-agent-rpc ovs_bond_config "'start'" "'bond0'" "1" "'eth0'" "'eth1'" | ||
| - | }}} | + | </code> |
| == vLAN == | == vLAN == | ||
| - | {{{ | + | <code Bash> |
| # Add vlan interface | # Add vlan interface | ||
| ovs-agent-rpc ovs_vlan_config "'add'" "'bond0'" "621" | ovs-agent-rpc ovs_vlan_config "'add'" "'bond0'" "621" | ||
| - | }}} | + | </code> |
| == IP == | == IP == | ||
| - | {{{ | + | <code Bash> |
| # delete IP address | # delete IP address | ||
| ovs-agent-rpc ovs_ip_config "'bond0'" "'flush'" "''" "''" | ovs-agent-rpc ovs_ip_config "'bond0'" "'flush'" "''" "''" | ||
| # configure static IP | # configure static IP | ||
| ovs-agent-rpc ovs_ip_config "'bond0'" "'static'" "'10.0.0.1'" "'255.255.252.0'" | ovs-agent-rpc ovs_ip_config "'bond0'" "'static'" "'10.0.0.1'" "'255.255.252.0'" | ||
| - | }}} | + | </code> |
| == MTU == | == MTU == | ||
| - | {{{ | + | <code Bash> |
| # change MTU | # change MTU | ||
| ovs-agent-rpc ovs_change_mtu "'bond0'" "'9000'" | ovs-agent-rpc ovs_change_mtu "'bond0'" "'9000'" | ||
| - | }}} | + | </code> |
| == Bridge == | == Bridge == | ||
| - | + | <code Bash> | |
| - | {{{ | + | # ovs-agent-rpc ovs_async_bridge "'start'" "'br0'" "'bond0'" |
| - | ovs-agent-rpc ovs_async_bridge "'start'" "'br0'" "'bond0'" | + | </code> |
| - | }}} | + | |
| == Server role == | == Server role == | ||
| + | ovs-agent-rpc update_server_roles "'utility,xen' | ||
| - | {{{ | ||
| - | ovs-agent-rpc update_server_roles "'utility,xen' | ||
| - | }}} | ||
| == VM == | == VM == | ||
| - | + | ||
| - | {{{ | + | <code Bash> |
| # create vm | # create vm | ||
| ovs-agent-rpc create_vm \ | ovs-agent-rpc create_vm \ | ||
| Line 198: | Line 191: | ||
| ovs-agent-rpc stop_vm "'$TEMP_REPO_ID'" "'$TEMP_OVMM_VM_ID'" | ovs-agent-rpc stop_vm "'$TEMP_REPO_ID'" "'$TEMP_OVMM_VM_ID'" | ||
| - | }}} | + | </code> |