tune vm build

This commit is contained in:
j 2017-11-07 23:10:03 +01:00
parent 0018193ca1
commit 7cbb46458a
3 changed files with 13 additions and 3 deletions

View file

@ -5,7 +5,7 @@ Create virtual disk of pan.do/ra
Pan.do/ra VM are based on cloud images.
You also qemu to run the vm and virtualbox to convert the image
apt-get install vmdebootstrap virtualbox qemu qemu-utils
apt-get install virtualbox qemu qemu-utils
apt-get install kvm cloud-utils

View file

@ -7,8 +7,12 @@ TARGET=${BASE}/pandora-r${VERSION}.vdi
img=xenial-server-cloudimg-amd64-disk1.img
test -e $img || curl -O https://cloud-images.ubuntu.com/xenial/current/$img
cp --reflink=always $img ${TARGET}.img
if [ ! -e $img ]; then
echo downloading $img
curl -s -O https://cloud-images.ubuntu.com/xenial/current/$img
fi
echo preparing ${TARGET}.img
cp -a $img ${TARGET}.img
cloud-localds seed.img cloud-config
qemu-img resize ${TARGET}.img +998G

View file

@ -272,4 +272,10 @@ set showmode
set lcs=tab:→·,trail:·,nbsp:˽
set list
if has('mouse')
set mouse=
endif
EOF
if [ -e /usr/share/vim/vim80/defaults.vim ]; then
sed -i 's/ set mouse=a/" set mouse=a/g' /usr/share/vim/vim80/defaults.vim
fi