createwm.sh
#!/bin/bash
sudo vmbuilder kvm ubuntu \
--tmp /data/ \
--suite jaunty \
--flavour server \
--arch amd64 \
--part vmbuilder.partition \
--mem=2048 \
--hostname=hosting \
--user vlad \
--name vlad \
--pass rereca \
--addpkg unattended-upgrades \
--addpkg acpid \
--tmpfs - \
--firstboot boot.sh \
--firstlogin login.sh \
--libvirt qemu:///system
createwm_ubuntu.sh
#!/bin/bash
sudo ubuntu-vm-builder kvm jaunty \
--tmp /data/ \
--domain vpshosting \
--suite jaunty \
--flavour server \
--dest vpshosting \
--arch amd64 \
--part vmbuilder.partition \
--tmpfs - \
--hostname vpshosting \
--mem 2048 \
--user vlad \
--pass rereca \
--ip 192.168.122.2 \
--mask 255.255.255.0 \
--net 192.168.122.0 \
--bcast 192.168.122.255 \
--gw 192.168.122.1 \
--dns 192.168.122.1 \
--mirror http://ua.archive.ubuntu.com/ubuntu/ \
--components main,universe,restricted \
--addpkg vim openssh-server \
--libvirt qemu:///system ;
createwm_wofs.sh
#!/bin/bash
sudo vmbuilder kvm ubuntu --tmp /data/ --suite intrepid --flavour server --arch amd64 -o \
--dest=/data/shablon --mem=7168 --hostname=h1.mvm.sumy.ua --user vlad \
--name vlad --pass rereca --addpkg unattended-upgrades --addpkg acpid --ppa nijaba \
--tmpfs - --firstboot boot.sh --bridge=br0 \
--firstlogin login.sh --libvirt qemu:///system
boot.sh
# This script will run the first time the virtual machine boots
# It is ran as root.
apt-get update
apt-get install -qqy --force-yes openssh-server
login.sh
# This script is ran the first time a user logs in
echo "Your appliance is about to be finished to be set up."
echo "In order to do it, we'll need to ask you a few questions,"
echo "starting by changing your user password."
passwd
#give the opportunity to change the keyboard
sudo dpkg-reconfigure console-setup
#configure the mysql server root password
sudo dpkg-reconfigure mysql-server-5.0
#install limesurvey
sudo apt-get install -qqy --force-yes limesurvey
echo "Your appliance is now configured. To use it point your"
echo "browser to http://serverip/limesurvey/admin"
vmbuilder.partition
root 15360
swap 2048
---
/data 240640
/var/log 4096
Комментариев нет :
Отправить комментарий