qemu-toolkit 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -75,7 +75,7 @@ This is a macro that will define a \fBvirtio\fR\-device and automatically number
75
75
  .nf
76
76
 
77
77
  # Use a zvol block device
78
- disk \'/dev/zvol/dsk/pool1/myvm/disk1\'
78
+ disk \'/dev/zvol/rdsk/pool1/myvm/disk1\'
79
79
  .
80
80
  .fi
81
81
  .
@@ -48,7 +48,7 @@ Here's a list of configuration options within the virtual_machine declaration:
48
48
  over qemu options, use the `drive`-option.
49
49
 
50
50
  # Use a zvol block device
51
- disk '/dev/zvol/dsk/pool1/myvm/disk1'
51
+ disk '/dev/zvol/rdsk/pool1/myvm/disk1'
52
52
 
53
53
  * drive <OPTIONS>:
54
54
  Directly add a drive directive to qemu options. If you use this, you'll
@@ -32,7 +32,7 @@ module QemuToolkit
32
32
 
33
33
  def each_disk
34
34
  @disks.sort.each do |path|
35
- yield "/dev/zvol/dsk/#{path}"
35
+ yield "/dev/zvol/rdsk/#{path}"
36
36
  end
37
37
  end
38
38
  end
@@ -211,7 +211,8 @@ module QemuToolkit
211
211
  file: device,
212
212
  if: 'virtio',
213
213
  index: disk_index,
214
- media: 'disk'
214
+ media: 'disk',
215
+ cache: 'none'
215
216
  }
216
217
  params[:boot] = 'on' if disk_index == 0
217
218
  cmd << "-drive " + parameter_list(params)
@@ -94,7 +94,7 @@ module QemuToolkit
94
94
  # iscsi_target 'iqn.2012-01.com.qemu-toolkit:#{name}', "10.40.0.1"
95
95
  #
96
96
  # Or a local disk, like a zvol for example:
97
- # disk /dev/zvol/dsk/pool/#{name}/disk1
97
+ # disk /dev/zvol/rdsk/pool/#{name}/disk1
98
98
  #{local_disks.string}
99
99
 
100
100
  # Network configuration
@@ -161,6 +161,13 @@ end
161
161
  end
162
162
  end
163
163
 
164
+ subcommand('generate_mac',
165
+ 'Generates a random MAC address.') do
166
+ def _execute
167
+ puts random_mac_address
168
+ end
169
+ end
170
+
164
171
  def random_mac_address
165
172
  # Please see this discussion if improving this:
166
173
  # http://stackoverflow.com/questions/8484877/mac-address-generator-in-python
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qemu-toolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-17 00:00:00.000000000 Z
12
+ date: 2013-01-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: clamp