1063
Comment: create
|
1895
|
Deletions are marked like this. | Additions are marked like this. |
Line 32: | Line 32: |
1. ssh -A <vm IP address> to connect to the VM. You can now follow the [[Getting|getting-started]] on LP instructions. | 1. ssh -A <vm IP address> to connect to the VM. 1. {{{bzr whoami "Your Name <your.email@example.com>"}}} to set your bzr identity in the VM. 1. You can now follow the [[Getting|getting-started]] on LP instructions. = 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. = Alternatively = You can skip some manual steps of installing from an ISO using a command like this: {{{ sudo ubuntu-vm-builder kvm lucid --domain vm --dest lp-lucid --hostname lp-lucid --mem 1024 --user mbp --mirror http://mirror.internode.on.net/pub/ubuntu/ubuntu --libvirt qemu:///system --debug -v }}} After installation completes, it should show up in your virt-manager menu. |
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
- Install KVM
% sudo apt-get install virt-manager
- Download the Lucid server ISO
- Run virt-manager.
- Double click on localhost(QEMU)
- click on the New virtual machine icon
- 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.
After its installed, connect to the image and install acpid and openssh-server
- Use ssh-copy-id to copy your public key into the VM.
ssh -A <vm IP address> to connect to the VM.
bzr whoami "Your Name <your.email@example.com>" to set your bzr identity in 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.
Alternatively
You can skip some manual steps of installing from an ISO using a command like this:
sudo ubuntu-vm-builder kvm lucid --domain vm --dest lp-lucid --hostname lp-lucid --mem 1024 --user mbp --mirror http://mirror.internode.on.net/pub/ubuntu/ubuntu --libvirt qemu:///system --debug -v
After installation completes, it should show up in your virt-manager menu.