Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE3
/
gpuvirt
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
13a43df2
authored
Sep 22, 2023
by
Zoltan Karsa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set cache for disk
parent
fa1ae36b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
templates/demovm.xml
+5
-1
vm.py
+1
-0
No files found.
templates/demovm.xml
View file @
13a43df2
...
...
@@ -34,7 +34,11 @@
<devices>
<emulator>
/usr/bin/qemu-system-x86_64
</emulator>
<disk
type=
'file'
device=
'disk'
>
<driver
name=
'qemu'
type=
'qcow2'
/>
<driver
cache=
"none"
name=
"qemu"
type=
"qcow2"
>
<metadata_cache>
<max_size
unit=
'KiB'
>
{{ disk_cache }}
</max_size>
</metadata_cache>
</driver>
<source
file=
'{{ disk }}'
/>
<target
dev=
'sda'
bus=
'sata'
/>
</disk>
...
...
vm.py
View file @
13a43df2
...
...
@@ -25,6 +25,7 @@ params = {
"vgpu_type"
:
"nvidia-1"
,
"mdev_bus"
:
"0000
\
:01
\
:00.0"
,
"boot_menu"
:
"yes"
,
"disk_cache"
:
1024
,
}
def
start_vm
(
params
):
...
...
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