--- lib/PXElator/kvm.pm 2009/09/13 15:51:03 429 +++ lib/PXElator/kvm.pm 2010/07/16 21:30:30 504 @@ -69,15 +69,19 @@ 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 |;