vagrant-qemu 0.1.8 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f4783c55dca06b637299b64ea97ae4f167c9620c5a08b54cb1e2a881a89db7b8
4
- data.tar.gz: 674fa985a8edfd98325b9e99dde2700eba546d8e4085fb65564a9a6b879bac0f
3
+ metadata.gz: b46cfaa2964de5f308d27d5547506b100bb794ab6bbf24be6cd9cef45af02079
4
+ data.tar.gz: a94f3b9be8cec1a6bc0834bee7db2818a233678a6281dba2b3b62272b8618749
5
5
  SHA512:
6
- metadata.gz: 498446e3e74d0529b40bd77cc2640f9ab6b8dd9c47667c6bb473ff344f546bf722223afa1160efd46ec3697af36a2ff6a4ccae88598c433bdb029bac5a9456f9
7
- data.tar.gz: 820e4ea618f964ba5b4ffb8ff43596f41af5f8b6a2b5c6553931f451a771f517161328f0e7e3948ae7e8d4b40fc572bfe627ca781ed35c4725dd2676c56d0a3b
6
+ metadata.gz: a5b9b84028dc8625e775fb058ed25bbe19f1eb5d0f12b3c2ba3ad65a35310305ac2ebe6ee4129ca1b1db7d548f3ecf25f14e0893a161be06167f29635530ad4d
7
+ data.tar.gz: d203be0515807c605c83e0206f4fcadbc9550455de9cea4554f4e8948fc57601e25aa9eb75fc3532909c885f39522d35f7de443d2af49e59da6847a043ecd61e
data/CHANGELOG.md CHANGED
@@ -26,3 +26,7 @@
26
26
 
27
27
  * Fix port collision problem with default ssh port 2222.
28
28
  * Export serial port to unix socket for debug.
29
+
30
+ # 0.1.9 (2022-08-01)
31
+
32
+ * Set default config for newer qemu (>=7.0.0)
data/README.md CHANGED
@@ -3,11 +3,32 @@
3
3
  This is a Vagrant plugin that adds a simple QEMU provider to Vagrant, allowing Vagrant
4
4
  to control and provision machines using QEMU.
5
5
 
6
- **Notes: test with Apple Silicon / M1 and CentOS aarch64 image only**
6
+ **Notes: test with Apple Silicon / M1 and CentOS / Ubuntu aarch64 image**
7
+
8
+ ## Compatible with
9
+
10
+ Tested:
11
+
12
+ * MacOS >= 12.4
13
+ * QEMU >= 7.0.0
14
+ * CentOS (centos-7-aarch64-2009-4K)
15
+ * Ubuntu (see [Wiki](https://github.com/ppggff/vagrant-qemu/wiki) for detais)
16
+
17
+ Others:
18
+
19
+ * (MacOS < 12.4) + (QEMU >= 7.0.0) : update OS, or use QEMU 6.x
20
+ * QEMU 6.x: use following config:
21
+ ```
22
+ config.vm.provider "qemu" do |qe|
23
+ qe.machine = "virt,accel=hvf,highmem=off"
24
+ qe.cpu = "cortex-a72"
25
+ end
26
+ ```
7
27
 
8
28
  ## Features
9
29
 
10
30
  * Import from a Libvirt vagrant box or qcow2 image
31
+ * To use box for **Paralles or VMware Fusion**, see [Wiki](https://github.com/ppggff/vagrant-qemu/wiki) for details
11
32
  * Start VM without GUI
12
33
  * SSH into VM
13
34
  * Provision the instances with any built-in Vagrant provisioner
@@ -132,7 +153,7 @@ end
132
153
  Vagrant.configure(2) do |config|
133
154
  # ... other stuff
134
155
 
135
- config.vm.network "forwarded", guest: 80, host: 8080
156
+ config.vm.network "forwarded_port", guest: 80, host: 8080
136
157
  end
137
158
  ```
138
159
 
@@ -162,7 +183,7 @@ Once you have the dependencies, build with `rake`:
162
183
  bundle exec rake build
163
184
  ```
164
185
 
165
- ## Known issue
186
+ ## Known issue / Troubleshooting
166
187
 
167
188
  ### 1. failed to create shared folder
168
189
 
@@ -187,6 +208,24 @@ Vagrant.configure("2") do |config|
187
208
  end
188
209
  ```
189
210
 
211
+ ### 2. netcat does not support the -U parameter
212
+
213
+ I had netcat installed through home brew and it does not support the -U parameter.
214
+
215
+ I fixed it by uninstalling netcat in home brew brew uninstall netcat
216
+
217
+ Thanks @kjeldahl fix this at [issue #6](https://github.com/ppggff/vagrant-qemu/issues/6)
218
+
219
+ ### 3. Vagrant SMB synced folders require the account password to be stored in an NT compatible format
220
+
221
+ If you get this error when running `vagrant up`
222
+
223
+ 1. On your M1 Mac, go to System Preferences > Sharing > File Sharing > Options...
224
+ 2. Tick "Share Files and Folders using SMB"
225
+ 3. Tick your username
226
+ 4. Click Done
227
+ 5. Run `vagrant up` again
228
+
190
229
  ## TODO
191
230
 
192
231
  * Support NFS shared folder
@@ -37,8 +37,8 @@ module VagrantPlugins
37
37
  def finalize!
38
38
  @ssh_port = 50022 if @ssh_port == UNSET_VALUE
39
39
  @arch = "aarch64" if @arch == UNSET_VALUE
40
- @machine = "virt,accel=hvf,highmem=off" if @machine == UNSET_VALUE
41
- @cpu = "cortex-a72" if @cpu == UNSET_VALUE
40
+ @machine = "virt,accel=hvf,highmem=on" if @machine == UNSET_VALUE
41
+ @cpu = "host" if @cpu == UNSET_VALUE
42
42
  @smp = "2" if @smp == UNSET_VALUE
43
43
  @memory = "4G" if @memory == UNSET_VALUE
44
44
  @net_device = "virtio-net-device" if @net_device == UNSET_VALUE
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module QEMU
3
- VERSION = '0.1.8'
3
+ VERSION = '0.1.9'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-qemu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - ppggff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-05 00:00:00.000000000 Z
11
+ date: 2022-08-01 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Enables Vagrant to manage machines with QEMU.
14
14
  email: pgf00a@gmail.com