MAIN : Oracle RAC 11g
Reference https://help.ubuntu.com/community/Xen
Install Xen
apt-get -y install xen-hypervisor-amd64
reboot
root@turaok:~# xl list
Name ID Mem VCPUs State Time(s)
Domain-0 0 7914 2 r----- 540.7
Install Additional Tools
apt-get -y install virtinst virt-viewer virt-manager
root@turaok:~# virsh net-list
Name State Autostart Persistent
----------------------------------------------------------
default active yes yes
root@turaok:~# virsh net-dumpxml default
<network>
<name>default</name>
<uuid>38ea4bf3-0f7e-4729-a01f-1aa1c016401d</uuid>
<forward mode='nat'>
<nat>
<port start='1024' end='65535'/>
</nat>
</forward>
<bridge name='virbr0' stp='on' delay='0'/>
<ip address='192.168.122.1' netmask='255.255.255.0'>
<dhcp>
<range start='192.168.122.2' end='192.168.122.254'/>
</dhcp>
</ip>
</network>
root@turaok:~# ifconfig virbr0
virbr0 Link encap:Ethernet HWaddr 52:e9:c1:c4:ec:01
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST MULTICAST root@turaok:~# virsh net-create /media/tots/D663-4A7F/rac_test_2014/rac_2_xen_network1.txt
MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Create the virtual network
# rac_2_xen_network1.txt
<network>
<name>private1</name>
<uuid>34edcdd6-85c2-1c1b-ff45-85d3aa20a850</uuid>
<bridge name='virbr2' stp='on' delay='0' />
<mac address='52:54:00:2B:8B:8F'/>
<ip address='192.168.101.1' netmask='255.255.255.0'>
<dhcp>
<range start='192.168.101.128' end='192.168.101.254' />
</dhcp>
</ip>
</network>
# rac_2_xen_network2.txt
<network>
<name>private2</name>
<uuid>c5b4a865-a36c-fcaa-862d-c425e057f749</uuid>
<bridge name='virbr3' stp='on' delay='0' />
<mac address='52:54:00:87:7E:8D'/>
<ip address='192.168.102.1' netmask='255.255.255.0'>
<dhcp>
<range start='192.168.102.128' end='192.168.102.254' />
</dhcp>
</ip>
</network>
root@turaok:~# virsh net-create /media/tots/D663-4A7F/rac_test_2014/rac_2_xen_network1.txt
root@turaok:~# virsh net-create /media/tots/D663-4A7F/rac_test_2014/rac_2_xen_network2.txt
root@turaok:~# virsh net-list
Name State Autostart Persistent
----------------------------------------------------------
default active yes yes
private1 active no no
private2 active no no
No comments:
Post a Comment