| Last change
                  on this file since 2016 was
                  2015,
                  checked in by ezyang, 14 years ago | 
        
          | Create AFS cache partitions for new servers. | 
        | File size:
            948 bytes | 
      
      
        
  | Line |  | 
|---|
| 1 | Installing a Scripts guest on a Xen host | 
|---|
| 2 | ---------------------------------------- | 
|---|
| 3 |  | 
|---|
| 4 | You need to create the volumes to use: | 
|---|
| 5 |  | 
|---|
| 6 | lvcreate -n $MACHINE-root --size 50.00G $HOST | 
|---|
| 7 | lvcreate -n $MACHINE-swap --size 10.00G $HOST | 
|---|
| 8 | lvcreate -n $MACHINE-cache --size 11.00G $HOST | 
|---|
| 9 |  | 
|---|
| 10 | Make sure that the console has an entry for this host: | 
|---|
| 11 |  | 
|---|
| 12 | vim /etc/conserver/conserver.cf | 
|---|
| 13 |  | 
|---|
| 14 | If it doesn't, add: | 
|---|
| 15 |  | 
|---|
| 16 | console $MACHINE { | 
|---|
| 17 | master $HOST; | 
|---|
| 18 | include xen; | 
|---|
| 19 | } | 
|---|
| 20 |  | 
|---|
| 21 | We use Kickstart to to initial Fedora configuration.  Installing a new | 
|---|
| 22 | vanilla machine is as easy as: | 
|---|
| 23 |  | 
|---|
| 24 | xm create scripts-server machine_name=$MACHINE install=fXX && console $MACHINE | 
|---|
| 25 |  | 
|---|
| 26 | The only prompt (near the beginning of the install process) should be | 
|---|
| 27 | for the root password, and at the end, when it asks you to reboot. | 
|---|
| 28 | Say yes, and the machine will power down, and then restart without | 
|---|
| 29 | the install parameter: | 
|---|
| 30 |  | 
|---|
| 31 | xm create scripts-server machine_name=$MACHINE && console $MACHINE | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.