OpenStack:VM Build
From DocWiki
Install Ubuntu 12.04LTS on a node, include OpenSSH and Virtual Machine tools
Install python-vm-builder
Become root (sudo -H bash)
Create a bridge interface on your local machine (for some reason using virbr0 doesn't seem to make things happy, probably because that's expected to be used for KVM NAT):
Restart networking:
create a vmbuilder default file:
Create a partition model:
Now build a virtual machine
Once built, you can either run the vm from the cli:
apt-get install --no-install-recommends ubuntu-desktop -y
apt-get install gnome-session-fallback -y
apt-get install vnc4server -y
vncserver
vncserver -kill :1
cat > ~/.vnc/xstartup<<EOF
#!/bin/sh
- Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
#exec sh /etc/X11/xinit/xinitrc
gnome-session --session=gnome-classic &
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &
EOF
vncserver -geometry 1280x1024
apt-get install virt-manager -y