OpenStack:VM Build

From DocWiki

Revision as of 09:01, 27 October 2012 by Starmer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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 -kill :1

cat > ~/.vnc/xstartup<<EOF

  1. Uncomment the following two lines for normal desktop:
#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 &

vncserver -geometry 1280x1024

apt-get install virt-manager -y

Rating: 2.5/5 (2 votes cast)

Personal tools