just create kvm.boot file with following parameters:
d -cdrom /srv/pxelator/iso/FreeNAS-i386-LiveCD-0.7.2.5255.iso -hda /srv/pxelator/tftp/freenas.cqow2
which will modify produce -boot option for kvm
to boot from cdrom and install in persistant image
system "brctl addif virtual $ifname"
unless `brctl show` =~ m{$ifname};
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' );
+ 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
my $kvm = qq|
kvm
-name "$name"
-m $memory_size -net nic,macaddr=$mac
-net tap,ifname=$ifname,script=no
-monitor tcp:$mon,server,nowait
-serial tcp:$ser,server,nowait
|;
-monitor tcp:$mon,server,nowait
-serial tcp:$ser,server,nowait
|;