Add name to netdb
- Log in to netdb
- search for a similar vm like sgd-vm07
- click on template to copy for the next vm say sgd-vm07
- add the new name sgd-vm07
- Add the mac address, copied from the last config
## ie. ac:de:48:0:0:8
- make sure you pick the IP range
##add the range of 171-65-76-0/23
- Add the pxe info for a kickstart boot up
Add a VM
Log into either rails or sgd-virt
## 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
cd to /home/admin/install-scripts
--disk path=/vm07/sgd-vm07.qcow2,sparse,format=raw,size=40 \
--network bridge=br0,mac=ac:de:48:0:0:7 \
-x "ks=nfs:starter:/data/kickstart/configs/centos58-vm.cfg ip=188.8.131.52 netmask=255.255.254.0 dns=184.108.40.206 gateway=220.127.116.11 console=ttyS0"
#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
- make the directory name match the vm name ie sgd-vm07 = /vm07
- mount the volume onto the new vmdirectory
>mount sgd-netapp-1:/vol/vm_image08 /vm08 for netapp
>mount /dev/mapper/vg02/vm08 /vm08 for logical local volume
- Go back to the install directory and run the script
## this should run and have no problems completing
## problems could occur with not enough space to load the OS, or can't allocate as primary, or not enough room to create space on "/"
## all these are due to the vm being created with too little disk space. Make sure the volume is as big or bigger than the vm.
## my experience is that for our OS the vm needs at least a 30G vm to install error-free
## there is a chance that you can tweak the kickstart configs to make this work. but i was not successful