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.
@@ -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/
|
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
|
data/lib/qemu-toolkit/vm.rb
CHANGED
data/lib/qemu-toolkit/vmadm.rb
CHANGED
@@ -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/
|
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
|
+
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:
|
12
|
+
date: 2013-01-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: clamp
|