This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
oraclevm:ovmserver [2017/01/19 10:33] frank |
oraclevm:ovmserver [2017/01/19 10:37] (current) frank |
||
|---|---|---|---|
| Line 11: | Line 11: | ||
| 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> | + | </code> |
| == With kickstart == | == With kickstart == | ||
| <code> | <code> | ||
| Line 30: | Line 30: | ||
| === 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 72: | 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 105: | 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 197: | 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> |