From ded2693ee7f74b197655027c211b47d99c08b480 Mon Sep 17 00:00:00 2001 From: Michael Ledin Date: Sun, 5 Mar 2017 16:55:48 +0300 Subject: [PATCH 1/2] Add floppy size limitation notice. Should help people dealing with #4570 and #3328 because packer copies `floppy_files` to floppy without any error even if they exceed 1.44 MB limit. `floppy_dirs`throws error about FAT size limit exceeded but without mentioning that real issue is the floppy size limit: ``` Build 'qemu' errored: Error adding path virtio_iso to floppy: FAT FULL ``` --- website/source/docs/builders/qemu.html.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/source/docs/builders/qemu.html.md b/website/source/docs/builders/qemu.html.md index 381e8872f..28fe8400e 100644 --- a/website/source/docs/builders/qemu.html.md +++ b/website/source/docs/builders/qemu.html.md @@ -172,13 +172,13 @@ Linux server and have not enabled X11 forwarding (`ssh -X`). is attached as the first floppy device. Currently, no support exists for creating sub-directories on the floppy. Wildcard characters (\*, ?, and \[\]) are allowed. Directory names are also allowed, which will add all - the files found in the directory to the floppy. + the files found in the directory to the floppy. The summary size of the listed files must not exceed 1.44 MB. The supported ways to move large files into the OS are using `http_directory` or [the file provisioner]( https://www.packer.io/docs/provisioners/file.html). - `floppy_dirs` (array of strings) - A list of directories to place onto the floppy disk recursively. This is similar to the `floppy_files` option except that the directory structure is preserved. This is useful for when your floppy disk includes drivers or if you just want to organize it's - contents as a hierarchy. Wildcard characters (\*, ?, and \[\]) are allowed. + contents as a hierarchy. Wildcard characters (\*, ?, and \[\]) are allowed. The maximum summary size of all files in the listed directories are the same as in `floppy_files`. - `format` (string) - Either "qcow2" or "raw", this specifies the output format of the virtual machine image. This defaults to `qcow2`. From 5ac53907c28114185435eb1ed188c9511ddfda94 Mon Sep 17 00:00:00 2001 From: Matthew Hooker Date: Mon, 6 Mar 2017 10:25:32 -0800 Subject: [PATCH 2/2] docs/qemu: reformat --- website/source/docs/builders/qemu.html.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/website/source/docs/builders/qemu.html.md b/website/source/docs/builders/qemu.html.md index 28fe8400e..813ef0a6c 100644 --- a/website/source/docs/builders/qemu.html.md +++ b/website/source/docs/builders/qemu.html.md @@ -172,13 +172,18 @@ Linux server and have not enabled X11 forwarding (`ssh -X`). is attached as the first floppy device. Currently, no support exists for creating sub-directories on the floppy. Wildcard characters (\*, ?, and \[\]) are allowed. Directory names are also allowed, which will add all - the files found in the directory to the floppy. The summary size of the listed files must not exceed 1.44 MB. The supported ways to move large files into the OS are using `http_directory` or [the file provisioner]( https://www.packer.io/docs/provisioners/file.html). + the files found in the directory to the floppy. The summary size of the + listed files must not exceed 1.44 MB. The supported ways to move large + files into the OS are using `http_directory` or [the file provisioner]( + https://www.packer.io/docs/provisioners/file.html). - `floppy_dirs` (array of strings) - A list of directories to place onto the floppy disk recursively. This is similar to the `floppy_files` option except that the directory structure is preserved. This is useful for when your floppy disk includes drivers or if you just want to organize it's - contents as a hierarchy. Wildcard characters (\*, ?, and \[\]) are allowed. The maximum summary size of all files in the listed directories are the same as in `floppy_files`. + contents as a hierarchy. Wildcard characters (\*, ?, and \[\]) are allowed. + The maximum summary size of all files in the listed directories are the + same as in `floppy_files`. - `format` (string) - Either "qcow2" or "raw", this specifies the output format of the virtual machine image. This defaults to `qcow2`. @@ -417,7 +422,10 @@ command, they will be replaced by the proper key: - ` ` - Add user defined time.Duration pause before sending any additional keys. For example `` or `` -When using modifier keys `ctrl`, `alt`, `shift` ensure that you release them, otherwise they will be held down until the machine reboots. Use lowercase characters as well inside modifiers. For example: to simulate ctrl+c use `c`. +When using modifier keys `ctrl`, `alt`, `shift` ensure that you release them, +otherwise they will be held down until the machine reboots. Use lowercase +characters as well inside modifiers. For example: to simulate ctrl+c use +`c`. In addition to the special keys, each command to type is treated as a [configuration template](/docs/templates/configuration-templates.html). The