>ssh admin@rails- ## open a config file and change the parameters for the vm name and space ram and IP ## change the 7's to 8's ## If using netapp make the format=raw, default is qcow2, sparse default is true ## we use centos58 for the os as it is free and does not need licensing in the cloud ##example:
cd to /home/admin/install-scripts
#!/bin/bash /usr/bin/virt-install \ --name=sgd-vm07 \ --virt-type=kvm \ --disk path=/vm07/sgd-vm07.qcow2,sparse,format=raw,size=40 \ --location=nfs:starter.stanford.edu:/data/kickstart/os/centos58 \ --nographics \ --vcpus=1 \ --ram=4096 \ --network bridge=br0,mac=ac:de:48:0:0:7 \ --os-type=linux \ -x "ks=nfs:starter:/data/kickstart/configs/centos58-vm.cfg ip=171.65.76.169 netmask=255.255.254.0 dns=171.64.7.55 gateway=171.65.76.1 console=ttyS0" exit 0 #notes: use gcow2 as default, use centos62-vm.cfg then when you run Yum it will upgrade to centos63.- If using the local disk crate a logical volume using lvcreate
- If using the netapp disk crate a volume using netapp