Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qemu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
qemu
Commits
d84dbc47
Commit
d84dbc47
authored
Jul 08, 2020
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qemu-kvm depends on the host architecture - install only one we really need
parent
641c2019
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
1 deletion
+17
-1
Makefile
Makefile
+7
-1
qemu-kvm-aarch64
qemu-kvm-aarch64
+10
-0
qemu-kvm-x86_64
qemu-kvm-x86_64
+0
-0
No files found.
Makefile
View file @
d84dbc47
...
...
@@ -29,7 +29,9 @@ x86_64: bridge-netdev
$(MAKE)
-C
qemu-4.1.1
install
rm
-rf
qemu-4.1.1
install
-v
-m755
qemu-kvm
/usr/bin/qemu-kvm
if
[
`uname
-m`
=
'x86_64'
]
;
then
\
install
-v
-m755
qemu-kvm-x86_64
/usr/bin/qemu-kvm
;
\
fi
swapoff
swap
rm
-rf
swap
...
...
@@ -67,6 +69,10 @@ aarch64: bridge-netdev
$(MAKE)
-C
qemu-4.1.1
install
rm
-rf
qemu-4.1.1
if
[
`uname
-m`
=
'aarch64'
]
;
then
\
install
-v
-m755
qemu-kvm-aarch64
/usr/bin/qemu-kvm
;
\
fi
swapoff
swap
rm
-rf
swap
...
...
qemu-kvm-aarch64
0 → 100755
View file @
d84dbc47
#!/bin/sh
# Libvirt introspects the binary using -M none. In that case, don't try
# to init KVM, which will fail and be noisy if the host has kvm disabled
opts
=
"-machine accel=kvm"
if
echo
"
$@
"
|
grep
-q
" -M none "
;
then
opts
=
fi
exec
/usr/bin/qemu-system-aarch64
$opts
"
$@
"
qemu-kvm
→
qemu-kvm
-x86_64
View file @
d84dbc47
File moved
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