Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
7caee4b9
Commit
7caee4b9
authored
Feb 19, 2022
by
Antoine Kaufmann
Browse files
images: enable fall back to tcg for qemu if no kvm support
parent
e0f613fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
images/extended-image.pkr.hcl
images/extended-image.pkr.hcl
+1
-1
images/ubuntu1804.json
images/ubuntu1804.json
+1
-1
No files found.
images/extended-image.pkr.hcl
View file @
7caee4b9
...
@@ -29,7 +29,7 @@ source "qemu" "autogenerated_1" {
...
@@ -29,7 +29,7 @@ source "qemu" "autogenerated_1" {
memory = "${var.memory}"
memory = "${var.memory}"
net_device = "virtio-net"
net_device = "virtio-net"
output_directory = "output-${var.outname}"
output_directory = "output-${var.outname}"
qemuargs = [["-machine", "pc-q35-4.2,accel=kvm,usb=off,vmport=off,dump-guest-core=off"]]
qemuargs = [["-machine", "pc-q35-4.2,accel=kvm
:tcg
,usb=off,vmport=off,dump-guest-core=off"]]
shutdown_command = "sudo shutdown --poweroff --no-wall now"
shutdown_command = "sudo shutdown --poweroff --no-wall now"
ssh_password = "ubuntu"
ssh_password = "ubuntu"
ssh_username = "ubuntu"
ssh_username = "ubuntu"
...
...
images/ubuntu1804.json
View file @
7caee4b9
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
"iso_url"
:
"https://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64.img"
,
"iso_url"
:
"https://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64.img"
,
"qemuargs"
:
[
"qemuargs"
:
[
[
"-smbios"
,
"type=1,serial=ds=nocloud-net;instance-id=packer;seedfrom=http://{{ .HTTPIP }}:{{ .HTTPPort }}/"
],
[
"-smbios"
,
"type=1,serial=ds=nocloud-net;instance-id=packer;seedfrom=http://{{ .HTTPIP }}:{{ .HTTPPort }}/"
],
[
"-machine"
,
"pc-q35-4.2,accel=kvm,usb=off,vmport=off,dump-guest-core=off"
]
[
"-machine"
,
"pc-q35-4.2,accel=kvm
:tcg
,usb=off,vmport=off,dump-guest-core=off"
]
],
],
"http_directory"
:
"scripts"
,
"http_directory"
:
"scripts"
,
"ssh_username"
:
"ubuntu"
,
"ssh_username"
:
"ubuntu"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment