knife-kvm 0.1 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -1,14 +1,21 @@
1
1
  = Knife KVM
2
2
 
3
+ http://github.com/rubiojr/knife-kvm
4
+
3
5
  = DESCRIPTION:
4
6
 
5
- This is the unofficial Opscode Knife plugin for KVM. This plugin gives knife the ability to create, bootstrap, and manage virtual machines in a VMWare KVM host.
7
+ This is the unofficial Opscode Knife plugin for KVM. This plugin gives knife the ability to create, bootstrap, and manage virtual machines in a Linux KVM host.
6
8
 
7
- You'll need an KVM host with SSH enabled and a privileged user account to connect to it via SSH:
9
+ = PRE-REQUISITES
8
10
 
9
- You'll also need a special VM template (in QCOW2/RAW) with CentOS/Ubuntu/Fedora and installed.
11
+ * You'll need an KVM host with SSH enabled and a privileged user account to connect to it via SSH
12
+ * libguestfs-tools (virt-cat in particular) installed in the hypervisor host
13
+ * A special VM template (in QCOW2/RAW) with CentOS/Ubuntu/Fedora and installed. I've got a couple of them to share:
10
14
 
11
- http://github.com/rubiojr/knife-kvm
15
+ - http://download.frameos.org/appliances/centos5-jeos-ip-info.qcow2
16
+ - http://download.frameos.org/appliances/centos6-jeos-with-ip-info.qcow2
17
+
18
+ These templates have a script (ip-info) that is executed when the OS boots and writes all the ip addresses available in the guest to the /tmp/ip-info file (https://gist.github.com/1405266). This information is used to retrieve the VM ip addresses so that knife-kvm can bootstrap the Chef client.
12
19
 
13
20
  = INSTALLATION:
14
21
 
@@ -34,10 +41,13 @@ You also have the option of passing your KVM Host/Username/Password into the ind
34
41
 
35
42
  # provision a new Ubuntu 11.10 VM
36
43
  knife kvm vm create --template-file ~/.chef/bootstrap/ubuntu11.10-gems.erb \
37
- --vm-disk /path-to/ubuntu1110-x64-vmware-tools.vmdk \
44
+ --vm-disk /path-to/ubuntu1110-x64.qcow2 \
38
45
  --vm-name knife-kvm-test-ubuntu \
39
- --datastore datastore1
46
+ --ssh-user ubuntu \
47
+ --ssh-password ubuntu \
48
+ --pool default \
40
49
  --kvm-host my-test-host \
50
+ --kvm-user root \
41
51
  --kvm-password secret
42
52
 
43
53
  = SUBCOMMANDS:
@@ -40,7 +40,7 @@ class Chef
40
40
  confirm("Do you really want to delete this virtual machine '#{vm.name}'")
41
41
  end
42
42
 
43
- vm.destroy
43
+ vm.destroy :destroy_volumes => true
44
44
  deleted << vm_name
45
45
  ui.warn("Deleted virtual machine #{vm.name}")
46
46
  end
@@ -1,6 +1,6 @@
1
1
  module Knife
2
2
  module KVM
3
- VERSION = "0.1"
3
+ VERSION = "0.1.1"
4
4
  MAJOR, MINOR, TINY = VERSION.split('.')
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-kvm
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-11-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fog
16
- requirement: &12667040 !ruby/object:Gem::Requirement
16
+ requirement: &12162280 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.1.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *12667040
24
+ version_requirements: *12162280
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: terminal-table
27
- requirement: &12666620 !ruby/object:Gem::Requirement
27
+ requirement: &12161860 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *12666620
35
+ version_requirements: *12161860
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: alchemist
38
- requirement: &12666160 !ruby/object:Gem::Requirement
38
+ requirement: &12161400 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *12666160
46
+ version_requirements: *12161400
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: chef
49
- requirement: &12665600 !ruby/object:Gem::Requirement
49
+ requirement: &12160900 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0.10'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *12665600
57
+ version_requirements: *12160900
58
58
  description: KVM Support for Chef's Knife Command
59
59
  email:
60
60
  - rubiojr@frameos.org