Diff for "Running/LXC"

Not logged in - Log In / Register

Differences between revisions 1 and 2
Revision 1 as of 2010-05-24 23:55:17
Size: 1063
Editor: lifeless
Comment: create
Revision 2 as of 2010-05-25 04:13:52
Size: 1396
Editor: kfogel
Comment: Link to threads.
Deletions are marked like this. Additions are marked like this.
Line 33: Line 33:

= References =

See also this email thread about [[https://lists.launchpad.net/launchpad-dev/msg03456.html|running Launchpad in a virtual machine]], and this [[https://lists.launchpad.net/launchpad-dev/msg03454.html|discussion of the differences]] between running in a [[[[Running/Schroot|chroot]] environment and running a VM.

This page explains how to set up and run Launchpad (for development) inside a VM.

Why?

Launchpad development setup makes numerous changes to your machine; its nice to be unaffected by those except when you are actually doing such development.

Also, launchpad has limitations on concurrent testing per-machine and so forth - multiple VM's can be used to work around this.

Make a VM image

  1. Install KVM

% sudo apt-get install virt-manager
  1. Download the Lucid server ISO
  2. Run virt-manager.
  3. Double click on localhost(QEMU)
  4. click on the New virtual machine icon
  5. follow your nose here, using the ISO as the install media, and allocating no less than 2G of disk and 1G of memory. I suggest 4G if you can spare it.
  6. After its installed, connect to the image and install acpid and openssh-server

  7. Use ssh-copy-id to copy your public key into the VM.
  8. ssh -A <vm IP address> to connect to the VM. You can now follow the getting-started on LP instructions.

References

See also this email thread about running Launchpad in a virtual machine, and this discussion of the differences between running in a chroot environment and running a VM.