Merge pull request #5699 from hashicorp/docnestedvirt

some cloud providers support nested virtualization
This commit is contained in:
Matthew Hooker 2017-12-13 10:10:06 -08:00 committed by GitHub
commit e6e16c1c8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 11 deletions

View File

@ -10,10 +10,12 @@ This guide walks through the process of building a VirtualBox image using
Packer on a new TeamCity Agent. Before getting started you should have access Packer on a new TeamCity Agent. Before getting started you should have access
to a TeamCity Server. to a TeamCity Server.
The Packer VirtualBox builder requires access to VirtualBox, which needs to run The Packer VirtualBox builder requires access to VirtualBox. Virtualization is
on a bare-metal machine, as virtualization is generally not supported on cloud not universally supported on cloud instances, so we recommend you run these
instances. This is also true for the [VMWare](/docs/builders/vmware.html) and builds on either a bare metal server, or cloud instances which support nested
the [QEMU](/docs/builders/qemu.html) Packer builders. virtualization, such as Azure or GCP. This is also true for the
[VMWare](/docs/builders/vmware.html) and the [QEMU](/docs/builders/qemu.html)
Packer builders.
We will use Chef's [Bento boxes](https://github.com/chef/bento) to provision an We will use Chef's [Bento boxes](https://github.com/chef/bento) to provision an
Ubuntu image on VirtualBox. For this example, we will use the repository Ubuntu image on VirtualBox. For this example, we will use the repository
@ -21,13 +23,12 @@ directly, but you may also fork it for the same results.
## 1. Provision a Bare-metal Machine ## 1. Provision a Bare-metal Machine
The Packer VirtualBox builder requires running on bare-metal (hardware). If you For the purposes of this example, we will run on a bare-metal instance from
do not have access to a bare-metal machine, we recommend using [Packet.net](https://www.packet.net/). If you are a first time user of
[Packet.net](https://www.packet.net/) to obtain a new machine. If you are Packet.net, the Packet.net team has provided HashiCorp the coupon code `hash25`
a first time user of Packet.net, the Packet.net team has provided HashiCorp the which you can use for $25 off to test out this guide. You can use
coupon code `hash25` which you can use for $25 off to test out this guide. You a `baremetal_0` server type for testing, but for regular use, the `baremetal_1`
can use a `baremetal_0` server type for testing, but for regular use, the instance may be a better option.
`baremetal_1` instance may be a better option.
There is also a [Packet There is also a [Packet
Provider](https://www.terraform.io/docs/providers/packet/index.html) in Provider](https://www.terraform.io/docs/providers/packet/index.html) in