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
00ceebd8
Commit
00ceebd8
authored
Jun 24, 2019
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for qemu-kvm and bridged networking
parent
d28b0cca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletion
+23
-1
Makefile
Makefile
+13
-1
qemu-kvm
qemu-kvm
+10
-0
No files found.
Makefile
View file @
00ceebd8
all
:
all
:
bridge-netdev
dd
if
=
/dev/zero
of
=
swap
bs
=
1048576
count
=
1024
dd
if
=
/dev/zero
of
=
swap
bs
=
1048576
count
=
1024
chmod
600 swap
chmod
600 swap
mkswap swap
mkswap swap
...
@@ -11,5 +11,17 @@ all:
...
@@ -11,5 +11,17 @@ all:
$(MAKE)
-C
qemu-3.1.0
install
$(MAKE)
-C
qemu-3.1.0
install
rm
-rf
qemu-3.1.0
rm
-rf
qemu-3.1.0
install
-v
-m755
qemu-kvm
/usr/bin/qemu-kvm
swapoff
swap
swapoff
swap
rm
-rf
swap
rm
-rf
swap
echo
"$$BRIDGE_NETDEV"
>
/etc/systemd/network/br0.netdev
bridge-netdev
:
define
BRIDGE_NETDEV
[NetDev]
Name
=
br0
Kind
=
bridge
endef
export
BRIDGE_NETDEV
qemu-kvm
0 → 100755
View file @
00ceebd8
#!/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-x86_64
$opts
"
$@
"
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