/[pxelator]/lib/PXElator/kvm.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/PXElator/kvm.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 405 by dpavlin, Tue Sep 8 21:06:40 2009 UTC revision 406 by dpavlin, Wed Sep 9 09:04:04 2009 UTC
# Line 70  sub start { Line 70  sub start {
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

Legend:
Removed from v.405  
changed lines
  Added in v.406

  ViewVC Help
Powered by ViewVC 1.1.26