[one-users] sharing ubuntu contextualized VM ?

florian.feldhaus at tu-dortmund.de florian.feldhaus at tu-dortmund.de
Tue Apr 5 04:51:36 PDT 2011


Hi!

You should NEVER use a Virtual Machine from a person you do not really
know. You could never know how it is configured and if there are security
problems. We recently had a security incident in the Grid where someone
ran a virtual machine just for testing which he got from someone else.
Unfortunately the machine only had a really weak password and was used to
break into the local network...

Better use a kickstart or preseed file and create your own machine. To
create a kickstart file, you can use system-config-kickstart or adapt the
following kickstart to your needs. The password can be created with
openssl passwd -1 -salt "NaCl" "don't use this"

#Generated by Kickstart Configurator
#platform=AMD64 or Intel EM64T

#System language
lang en_US
#Language modules to install
langsupport en_US
#System keyboard
keyboard us
#System mouse
mouse
#System timezone
timezone --utc Europe/Berlin
#Root password
rootpw --disabled
#Initial user
user tuser --fullname "Test User" --iscrypted --password
$1$pmvWLZBe$2lGBaur943vP8p.QDYUte/

#Reboot after installation
reboot
#Use text mode install
text
#Install OS instead of upgrade
install
#Use Web installation
url --url http://de.archive.ubuntu.com/ubuntu
#System bootloader configuration
bootloader --location=mbr
#Clear the Master Boot Record
zerombr yes
#Partition clearing information
clearpart --all --initlabel
#System authorization infomation
auth  --useshadow  --enablemd5

#Disk partitioning information
autopart
#Network information
network --bootproto=dhcp --device=eth0
network --bootproto=dhcp --device=eth1
#Firewall configuration
firewall --disabled
#Do not configure the X Window System
skipx
#Power off system after installation
poweroff
#Package install information
%packages
ubuntu-minimal
ntpdate
%post --interpreter=/bin/bash
/usr/sbin/ntpdate pool.ntp.org
/usr/sbin/hwclock --systohc




More information about the Users mailing list