Changes between Version 23 and Version 24 of Xen_Lab4


Ignore:
Timestamp:
Oct 21, 2009, 10:03:35 PM (15 years ago)
Author:
rock
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Xen_Lab4

    v23 v24  
    6565$ sudo cp vm01.disk.img mpi03.disk.img
    6666}}}
    67  * 修改 (1)/etc/hosts (2)/etc/hostname
    68    * 先修改 mpi02.disk.img
     67 * 修改 '''(1)/etc/hosts (2)/etc/hostname (3)/etc/network/interfaces'''
     68   * 先修改 mpi01.disk.img
     69     * 先掛載 image 於 /mnt
     70{{{
     71$ sudo mount mpi01.disk.img /mnt -o loop
     72}}}
     73{{{
     74$ sudo vim /etc/hosts
     75}}}
     76{{{
     77#!sh
     78127.0.0.1  localhost
     79192.168.100.X  mpi01
     80192.168.100.Y  mpi02
     81192.168.100.Z  mpi03
     82}}}
     83{{{
     84$ sudo vim /etc/network/interfaces
     85}}}
     86{{{
     87#!sh
     88auto eth0
     89iface eth0 inet static
     90    address 192.168.100.X
     91    netmask 255.255.255.0
     92    gateway 192.168.100.254
     93}}}
     94{{{
     95$ sudo umount /mnt
     96}}}
     97   * 修改 mpi02.disk.img
    6998{{{
    7099$ sudo mount mpi02.disk.img /mnt -o loop
     
    81110#!sh
    82111127.0.0.1  localhost
    83 192.X.X.X  mpi01
    84 192.X.X.X  mpi02
    85 192.X.X.X  mpi03
     112192.168.100.X  mpi01
     113192.168.100.Y  mpi02
     114192.168.100.Z  mpi03
     115}}}
     116{{{
     117$ sudo vim /etc/network/interfaces
     118}}}
     119{{{
     120#!sh
     121auto eth0
     122iface eth0 inet static
     123    address 192.168.100.Y
     124    netmask 255.255.255.0
     125    gateway 192.168.100.254
    86126}}}
    87127{{{
     
    103143#!sh
    104144127.0.0.1  localhost
    105 192.X.X.X  mpi01
    106 192.X.X.X  mpi02
    107 192.X.X.X  mpi03
     145192.168.100.X  mpi01
     146192.168.100.Y  mpi02
     147192.168.100.Z  mpi03
     148}}}
     149{{{
     150$ sudo vim /etc/network/interfaces
     151}}}
     152{{{
     153#!sh
     154auto eth0
     155iface eth0 inet static
     156    address 192.168.100.Z
     157    netmask 255.255.255.0
     158    gateway 192.168.100.254
    108159}}}
    109160{{{