* Give the installation VM a different MAC/IP from the fake nixos.org

VM.  MAC collisions don't work at all with VDE.

svn path=/nixos/trunk/; revision=26009
This commit is contained in:
Eelco Dolstra 2011-02-17 13:00:55 +00:00
parent 559834437a
commit 10119c9abc

View file

@ -94,7 +94,7 @@ let
createDisk("harddisk", 4 * 1024);
my $machine = createMachine({ hda => "harddisk", cdrom => glob("${iso}/iso/*.iso"),
qemuFlags => '${if testChannel then qemuNICFlags 1 1 1 else ""}'});
qemuFlags => '${if testChannel then qemuNICFlags 1 1 2 else ""}'});
$machine->start;
${optionalString testChannel ''
@ -305,7 +305,7 @@ in {
testScript =
''
# damn, it's costly to evaluate nixos-rebuild (1G of ram)
my $machine = createMachine({ cdrom => glob("${iso}/iso/*.iso"), qemuFlags => '${qemuNICFlags 1 1 1} -m 1024' });
my $machine = createMachine({ cdrom => glob("${iso}/iso/*.iso"), qemuFlags => '${qemuNICFlags 1 1 2} -m 1024' });
$machine->start;
# Make sure that we don't try to download anything.