Skip to content

Commit

Permalink
Merge pull request #88 from hman20ps/hman20ps
Browse files Browse the repository at this point in the history
Fixed markdown lint warnings and updated lic date
  • Loading branch information
smurawski authored Apr 8, 2020
2 parents 1424525 + ae8d53e commit d7a90d7
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2015 Steven Murawski
Copyright (c) 2020 Steven Murawski

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
23 changes: 12 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

[![Gem Version](https://badge.fury.io/rb/kitchen-hyperv.svg)](http://badge.fury.io/rb/kitchen-hyperv)


This is a [Test Kitchen](https://github.com/test-kitchen/test-kitchen)
driver for Microsoft Hyper-V.

Expand All @@ -31,19 +30,21 @@ driver:
name: 'hyperv'
```
### Required parameters:
### Required parameters
#### Driver parameters
* parent_vhd_folder
* Location of the base vhd files
* parent_vhd_name
* Vhd file name for the base vhd file
#### Transport parameters
* password
* Password used to connect to the instance
### Optional parameters:
### Optional parameters
* memory_startup_bytes
* amount of RAM to assign to each virtual machine. Defaults to 536,870,912.
Expand Down Expand Up @@ -89,7 +90,7 @@ driver:
* Integer. If not provided, will default to 5.
* type
* The type of virtual disk to create, .VHD or .VHDX. Defaults to the file extension of the parent virtual hard drive.
* Example:
* Example:

```yaml
driver:
Expand All @@ -103,13 +104,14 @@ driver:
size_gb: 50
type: .VHD
```

* vm_note
* A note to add to the VM's note field. Defaults to empty.
* copy_vm_files
* An array of hashes (`source` and `dest`) of files or directories to copy over to the system under test. Requires enable_guest_services to be true.
* example:
* example:

```
```yaml
driver:
name: hyperv
copy_vm_files:
Expand All @@ -122,20 +124,19 @@ driver:
* Hyper-V will automatically assign a valid dynamic address if your input doesn't give a valid MAC Address.
* example: `static_mac_address: '00155d123456'`

## Image Configuration

The following changes need to be made to a Windows image that is going to be used for testing. This is not an exhaustive list and, your milage may vary.
* Guest VMs should have the latest Integration Components installed. See https://support.microsoft.com/en-us/help/3063109/hyper-v-integration-components-update-for-windows-virtual-machines-that-are-running-on-a-windows-10-based-host

* Guest VMs should have the latest Integration Components installed. See <https://support.microsoft.com/en-us/help/3063109/hyper-v-integration-components-update-for-windows-virtual-machines-that-are-running-on-a-windows-10-based-host>

Ubuntu and other Linux virtual machines may require installation of cloud tools to allow Hyper-V to determine the virtual machine's IP.

* Resolved by installing linux cloud tools. See https://stackoverflow.com/a/33059342
* Resolved by installing linux cloud tools. See <https://stackoverflow.com/a/33059342>

## Contributing

1. Fork it ( https://github.com/[my-github-username]/kitchen-hyperv/fork )
1. Fork it ( <https://github.com/[my-github-username]/kitchen-hyperv/fork> )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
Expand Down
2 changes: 1 addition & 1 deletion lib/kitchen/driver/hyperv.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Author:: Steven Murawski <smurawski@chef.io>
# Copyright:: Copyright (c) 2015 Chef Software, Inc.
# Copyright:: Copyright (c) 2020 Chef Software, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 1 addition & 1 deletion lib/kitchen/driver/hyperv_version.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Author:: Steven Murawski <smurawski@chef.io>
# Copyright:: Copyright (c) 2015-2018 Chef Software, Inc.
# Copyright:: Copyright (c) 2015-2020 Chef Software, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 1 addition & 1 deletion lib/kitchen/driver/powershell.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Author:: Steven Murawski <smurawski@chef.io>
# Copyright:: Copyright (c) 2015 Chef Software, Inc.
# Copyright:: Copyright (c) 2020 Chef Software, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 1 addition & 1 deletion spec/kitchen/driver/hyperv_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# Author:: Fletcher (<fnichol@nichol.ca>)
#
# Copyright (C) 2015, Fletcher Nichol
# Copyright (C) 2020, Fletcher Nichol
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down

0 comments on commit d7a90d7

Please sign in to comment.