forked from os-autoinst/os-autoinst
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
69 lines (47 loc) · 2.29 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
== Notes ==
- to test 64-bit guests, you need a 64-bit host kernel
- for hardware-accelleration (you really want that) you need a modern CPU. check with
grep --color=auto -e vmx -e svm /proc/cpuinfo
- it is possible to test two isos at the same time by using two different working directories with different env.sh config files. especially the QEMUPORT and VNC values must be unique
== Debian/lenny setup ==
as root:
echo "deb http://ftp.de.debian.org/debian/ squeeze main" > /etc/apt/sources.list.d/squeeze.list
cat >>/etc/apt/preferences <<EOF
Package: *
Pin: release o=Debian,a=testing
Pin-Priority: 40
EOF
aptitude update
aptitude install git-core kvm/testing ffmpeg2theora/testing gocr/testing multimon sox
echo kvm-intel >> /etc/modules
== openSUSE setup ==
# not essential; for audio
OneClickInstallUI http://multiymp.zq1.de/multimon?base=http://download.opensuse.org/repositories/hamradio/
# ffmpeg2theora is from Packman
zypper ar http://packman.inode.at/suse/$(. /etc/os-release; echo $VERSION_ID)/ packman
# Data::Dump
zypper ar http://download.opensuse.org/repositories/devel:/languages:/perl/$(. /etc/os-release; echo ${NAME}_${VERSION_ID})/ perl
zypper install git-core kvm gocr ffmpeg2theora perl-JSON v4l-tools perl-Net-SNMP perl-Data-Dump perl-Inline make gcc gcc-c++ opencv-devel swig
usermod -G kvm -a $USERNAME || usermod -A kvm $USERNAME
== more Linux setup ==
modprobe kvm-intel || modprobe kvm-amd
chgrp kvm /dev/kvm ; chmod g+rw /dev/kvm # maybe redundant
# optionally use a new user; just to keep things separate
useradd -m USERNAME -G kvm
passwd USERNAME # and/or add ~USERNAME/.ssh/authorized_keys
== user setup ==
git clone http://www3.zq1.de/bernhard/git/autoinst.git/ autoinst
cp -a env.sh.sample env.sh
edit env.sh # see comments there ; adjust or drop HTTPPROXY and SUSEMIRROR lines
==VirtualBox Setup==
Install VirtualBox either from your distribution's DVD or
From http://software.opensuse.org/package/virtualbox
After installation of VirtualBox do this
insmod vboxdrv
usermod -G vboxusers -a $USERNAME || usermod -A vboxusers $USERNAME
Log out and in and you are done
===Setting up OS-autoinst for VirtualBox===
add to env.sh:
export BACKEND=vbox
and create a Virtual Machine named "osautoinst" with at least 8GB of HDD
for usage see README