Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE3
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
5
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
46c893d2
authored
Dec 28, 2022
by
Karsa Zoltán István
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete tmp
parent
00680aec
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
21 deletions
+0
-21
demo.py
+0
-21
No files found.
demo.py
deleted
100644 → 0
View file @
00680aec
import
sys
import
libvirt
domName
=
'cloud-9'
conn
=
None
try
:
conn
=
libvirt
.
open
(
"qemu:///system"
)
except
libvirt
.
libvirtError
as
e
:
print
(
repr
(
e
),
file
=
sys
.
stderr
)
exit
(
1
)
dom
=
conn
.
lookupByID
(
7
)
if
dom
==
None
:
print
(
'Failed to find the domain '
+
domName
,
file
=
sys
.
stderr
)
exit
(
1
)
dom
.
setVcpus
(
4
)
conn
.
close
()
exit
(
0
)
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