On 04/25/2016 02:46 PM, Paul Lacatus (Personal) wrote:
> Am un serveras care ruleaza trei masini virtuale .  Sambata a cazut
> tensiunea mai mult de doua ore si alimentarea de rezerva a cazut. De
> atunci masinile virtuale pornesc dar nu au retea. Problema este ca ele
> se asteapta conform configurarilor la o interfata de bridge xenbr0 si
> mie mi se initializeaza xenbr1 dupa cum se vede mai jos
>
> [root@dms scripts]# ifconfig
> eth0      Link encap:Ethernet  HWaddr E4:1F:13:B8:CC:68
>             inet addr:192.168.100.6  Bcast:192.168.100.255 Mask:255.255.255.0
>             UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>             RX packets:870677 errors:0 dropped:0 overruns:0 frame:0
>             TX packets:1183754 errors:0 dropped:0 overruns:0 carrier:0
>             collisions:0 txqueuelen:1000
>             RX bytes:131410088 (125.3 MiB)  TX bytes:1410011447 (1.3 GiB)
>             Interrupt:16 Memory:92000000-92012800
>
> eth0:1    Link encap:Ethernet  HWaddr E4:1F:13:B8:CC:68
>             inet addr:192.168.110.254  Bcast:192.168.110.255
> Mask:255.255.255.0
>             UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>             Interrupt:16 Memory:92000000-92012800
>
> eth0:2    Link encap:Ethernet  HWaddr E4:1F:13:B8:CC:68
>             inet addr:192.168.210.1  Bcast:192.168.210.255 Mask:255.255.255.0
>             UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>             Interrupt:16 Memory:92000000-92012800
>
> eth0:3    Link encap:Ethernet  HWaddr E4:1F:13:B8:CC:68
>             inet addr:192.168.230.1  Bcast:192.168.230.255 Mask:255.255.255.0
>             UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>             Interrupt:16 Memory:92000000-92012800
>
> eth0:4    Link encap:Ethernet  HWaddr E4:1F:13:B8:CC:68
>             inet addr:192.168.200.5  Bcast:192.168.200.255 Mask:255.255.255.0
>             UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>             Interrupt:16 Memory:92000000-92012800
>
> eth1      Link encap:Ethernet  HWaddr 00:1B:21:B7:77:B2
>             inet addr:xxxxxxxxxxxxx  Bcast:xxxxxxxxxxxxx Mask:255.255.255.248
>             UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>             RX packets:1152767 errors:0 dropped:0 overruns:0 frame:0
>             TX packets:712658 errors:0 dropped:0 overruns:0 carrier:0
>             collisions:0 txqueuelen:0
>             RX bytes:1403258663 (1.3 GiB)  TX bytes:113131128 (107.8 MiB)
>
> lo        Link encap:Local Loopback
>             inet addr:127.0.0.1  Mask:255.0.0.0
>             UP LOOPBACK RUNNING  MTU:16436  Metric:1
>             RX packets:8 errors:0 dropped:0 overruns:0 frame:0
>             TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
>             collisions:0 txqueuelen:0
>             RX bytes:560 (560.0 b)  TX bytes:560 (560.0 b)
>
> peth1     Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
>             UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
>             RX packets:1156987 errors:0 dropped:0 overruns:0 frame:0
>             TX packets:712700 errors:0 dropped:0 overruns:0 carrier:0
>             collisions:0 txqueuelen:1000
>             RX bytes:1403511863 (1.3 GiB)  TX bytes:113134551 (107.8 MiB)
>             Interrupt:21 Memory:97a80000-97aa0000
>
> vif0.1    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
>             UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
>             RX packets:712658 errors:0 dropped:0 overruns:0 frame:0
>             TX packets:1152767 errors:0 dropped:0 overruns:0 carrier:0
>             collisions:0 txqueuelen:0
>             RX bytes:113131128 (107.8 MiB)  TX bytes:1403258663 (1.3 GiB)
>
> virbr0    Link encap:Ethernet  HWaddr 00:00:00:00:00:00
>             inet addr:192.168.122.122  Bcast:192.168.122.255
> Mask:255.255.255.0
>             UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>             RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>             TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
>             collisions:0 txqueuelen:0
>             RX bytes:0 (0.0 b)  TX bytes:3479 (3.3 KiB)
>
> xenbr1    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
>             UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
>             RX packets:3498 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:209912 (204.9 KiB)  TX bytes:0 (0.0 b)
>
>
> Pe masinile virtuale nu am decat interfata loop
>
> [root@domino ~]# ifconfig
> lo        Link encap:Local Loopback
>             inet addr:127.0.0.1  Mask:255.0.0.0
>             UP LOOPBACK RUNNING  MTU:16436  Metric:1
>             RX packets:35 errors:0 dropped:0 overruns:0 frame:0
>             TX packets:35 errors:0 dropped:0 overruns:0 carrier:0
>             collisions:0 txqueuelen:0
>             RX bytes:3910 (3.8 KiB)  TX bytes:3910 (3.8 KiB)
>
> la restart pe networking
>
> [root@domino ~]# service network restart
> Shutting down loopback interface:  [  OK  ]
> Disabling IPv4 packet forwarding:  net.ipv4.ip_forward = 0
> [  OK  ]
> Bringing up loopback interface:  [  OK  ]
> Bringing up interface eth0:  xennet device eth0 does not seem to be
> present, delaying initialization.
> [FAILED]
>
> configurarea unei masini virtuale
>
> name = "vm01"
> uuid = "007278bd-5011-2a90-fa7a-da59e2eb01b6"
> maxmem = 1000
> memory = 1000
> vcpus = 1
> bootloader = "/usr/bin/pygrub"
> on_poweroff = "destroy"
> on_reboot = "restart"
> on_crash = "restart"
> disk = [ "tap:aio:/vm/vm01.iso,xvda,w" ]
> vif = [ "mac=00:16:3e:16:93:70,bridge=xenbr0,script=vif-bridge" ]
> [root@dms xen]#
>
>
> Nu am mare experienta cu XEN si nu stiu cum sa o apuc
>
varianta ciobaneasca e sa pui bridge=xenbr1 in configurile masinilor 
virtuale.
daca vrei sa procedezi civilizat, depinde ce versiune de xen folosesti. 
la cele mai vechi exista /etc/xen/xend-config.sxp in care exista ceva de 
genul

# The bridge is named xenbr0, by default.  To rename the bridge, use
#
# (network-script 'network-bridge bridge=<name>')
#

La versiunile noi, bridge-ul trebuie creat manual, ca orice alta 
interfata de pe sistem. Probabil iti va folosi 
http://wiki.xen.org/wiki/Network_Configuration_Examples_%28Xen_4.1%2B%29
_______________________________________________
RLUG mailing list
RLUG@lists.lug.ro
http://lists.lug.ro/mailman/listinfo/rlug

Raspunde prin e-mail lui