70 |
system "brctl addif virtual $ifname" |
system "brctl addif virtual $ifname" |
71 |
unless `brctl show` =~ m{$ifname}; |
unless `brctl show` =~ m{$ifname}; |
72 |
|
|
73 |
|
my $name = client::conf( client::ip_from_mac $mac, 'hostname' ); |
74 |
|
$name ||= $nr; |
75 |
|
|
76 |
my $kvm = qq| |
my $kvm = qq| |
77 |
kvm -m $memory_size -net nic,macaddr=$mac |
kvm |
78 |
|
-name "$name" |
79 |
|
-m $memory_size -net nic,macaddr=$mac |
80 |
-net tap,ifname=$ifname,script=no |
-net tap,ifname=$ifname,script=no |
81 |
-boot n |
-boot n |
82 |
-monitor tcp:$mon,server,nowait |
-monitor tcp:$mon,server,nowait |