system "brctl addif virtual $ifname"
unless `brctl show` =~ m{$ifname};
- my $name = client::conf( client::ip_from_mac $mac, 'hostname' );
+ my $ip = client::ip_from_mac $mac;
+
+ my $name = client::conf( $ip, 'hostname' );
$name ||= $nr;
+ my $boot = client::conf( $ip, 'kvm.boot' ) || 'n'; # network by default
+
my $kvm = qq|
kvm
-name "$name"
-m $memory_size -net nic,macaddr=$mac
-net tap,ifname=$ifname,script=no
- -boot n
+ -boot $boot
-monitor tcp:$mon,server,nowait
-serial tcp:$ser,server,nowait
|;