Commit Graph

44 Commits

Author SHA1 Message Date
Luke Dashjr
bf52af1377 Bugfix: copy-{to,from}-target: Strip trailing / from sources to avoid triggering special rsync behaviour
Without this, the caches end up in the wrong place (one level of directories gets removed)
2015-12-14 08:21:39 +00:00
Luke Dashjr
dd2ba39d32 Use rsync instead of scp for file transfers to save time on cache download from VM 2015-12-13 09:41:19 +00:00
MarcoFalke
7e4b665acb Replace deprecated dsa with rsa 2015-12-02 13:27:17 +01:00
Joseph Bisch
3edec91085 Set TUSER to ubuntu by default and update README
Now, if a user is using something like on-target directly, that user
doesn't need to set the DISTRO or TUSER variables if using Ubuntu guests
(so the scripts function the same as they did before Debian guest
support was added).
2015-11-18 10:22:38 -05:00
Joseph Bisch
8b297cbcdf Initial Debian guest support 2015-10-06 22:28:27 -04:00
Miron
b48730064a handle no lxc installed 2015-06-30 15:18:37 -07:00
Dev Random
1913792091 Start using lxc-execute from LXC version 1.0.0 2015-06-04 12:37:01 -07:00
Devrandom
af56f89a6a improved LXC support
fixes #86
2015-05-16 20:48:18 -07:00
Devrandom
7b82201dd7 allow overwrite in copy-from-target
fixes #80
2015-01-15 11:44:18 -08:00
Cory Fields
037d17aff7 fix copy-from-target when using lxc to copy a subdir 2014-12-23 20:36:56 -05:00
Devrandom
300a2d6faa Merge branch 'virtio-kvm' 2014-11-06 14:18:33 -08:00
Lunar
c4c8348dff Use virtio for disk in KVM instead of emulating real hardware
This should improve I/O performance.
2014-11-06 11:33:10 +01:00
Lunar
56bd00ea39 Copy target image as a sparse file in LXC mode
This will save us from writing a lot of zeros on disk.
2014-11-06 11:31:28 +01:00
Devrandom
07108c4eeb Default back to lxc-start, with option for lxc-execute 2014-09-22 15:10:33 -07:00
Christopher Gurnee
63fe5d1de2 Fix issue #63: use lxc-execute instead of lxc-start 2014-09-04 16:54:05 -04:00
Wladimir J. van der Laan
4e90888bcf Make it possible to override bridge if for LXC
For example Ubuntu installs a bridge called `virbr0` by default for LXC.
Using this system-provided bridge avoids having to configure one
specifically before gitian building.

This commits makes it possible to override the bridge used by gitian
using the environment variable LXC_BRIDGE. The default is still to use
`br0` as before.
2014-04-04 09:56:25 +02:00
Wladimir J. van der Laan
5785dfc3ae Un-hardcode host/guest IP
I was running into trouble using gitian LXC INSIDE a VirtualBox VM, because
the 10.0.2.x IP range overlaps with the range that VirtualBox uses for
its internal NAT network.

This commit makes it possible to override the host and guest IP that
is used during LXC image creation and the build, using environment variables:

- `GITIAN_HOST_IP` (default=10.0.2.2, host IP from the viewpoint of the
   VM, can be used for both LXC and KVM)
- `LXC_GUEST_IP` (default=10.0.2.5, guest IP from the viewpoint of the
   host, effective for LXC only)

When these are not defined the behavior remains the same as before.
2014-04-02 16:24:52 +02:00
devrandom
79c1217cb1 make passing env vars work across guest OS suites 2013-09-29 10:58:33 -07:00
devrandom
6919e04de1 use sudo even for root lxc so that path is set 2013-09-26 15:48:08 -07:00
devrandom
f7148de91b try again 2013-09-26 15:31:09 -07:00
devrandom
c47e51af72 second try 2013-09-26 14:55:26 -07:00
devrandom
af52ebf6cb use shell for lxc-start exec 2013-09-26 14:33:30 -07:00
devrandom
84796af6ac make README.md Sanity Test section work as written 2013-09-24 11:18:27 -07:00
Warren Togami
e51dbdc9e3 Fix --user in --help to display how the command actually works 2013-06-03 01:14:27 -10:00
Wladimir J. van der Laan
cdb3bb4d43 Increase ssh connection timeout to 30 seconds
The previous 5-second timeout causes random errors during compilation
here, increasing it to 30 seconds solves this problem.
2013-05-10 19:56:29 +02:00
Pieter Wuille
9a198b32a7 Perhaps also actually enable KVM... 2013-04-15 01:22:22 +02:00
Pieter Wuille
b7b24bd401 Use qemu-system- instead of kvm -m
As kvm -m doesn't work in Ubuntu 13.04 anymore.
2013-04-14 00:55:07 +02:00
Luke Dashjr
54aeb2df27 Allow environment-configurable KVM binary name 2013-04-09 07:12:04 +00:00
Gavin Andresen
8d937f553b VirtualBox support 2013-02-08 15:31:58 -05:00
Matt Corallo
6a87c1dcb7 Use writeback disk cache in kvm. 2012-06-26 00:08:10 +02:00
devrandom
953edf57df Fix scp for git repos 2012-04-22 13:31:01 -07:00
devrandom
0bc83c5f44 Use image file for lxc 2012-04-22 11:55:05 -07:00
devrandom
5e77059137 Using backing image instead of copy for qemu image. From lukejr. 2012-04-22 10:42:18 -07:00
devrandom
28bb421156 First pass lxc support 2012-04-22 10:26:39 -07:00
Matt Corallo
e2d600f242 Dont listen for remote VNC/SSH connections in kvm. 2012-02-22 11:56:38 -05:00
devrandom
10b40d5ad5 improve quietness flag 2011-07-16 18:27:23 -07:00
devrandom
d60397616d add -j and -m flags to control VM processors, make procs and VM memory 2011-07-15 09:41:20 -07:00
Matt Corallo
3ccd662304 Make the timeout a bit longer to accommodate machines under high load. 2011-04-29 17:01:08 +02:00
devrandom
6c7dd53eed no host auth for copy-*-target 2011-03-23 08:51:44 -07:00
devrandom
0d12b0f72f no ssh host auth for localhost 2011-03-22 11:30:59 -07:00
devrandom
7bf63853bc revert memory size, update apt-get to grab from new IP address 2011-03-22 09:02:53 -07:00
devrandom
a344ed9dac Make guest default to 10.0.2.2 as the apt mirror, fix skip_image vs quiet flags 2011-03-19 18:09:36 -07:00
devrandom
928a5f0880 multi-architecture builds 2011-01-31 23:50:59 -08:00
devrandom
4db2a9dfa0 initial 2011-01-30 13:19:02 -08:00