Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
kvm.kvm_tool
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Paul John King
kvm.kvm_tool
Commits
9b00aa81
Commit
9b00aa81
authored
Mar 16, 2017
by
Paul John King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed failed attempts to set name of guest NIC --
parent
2534262c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
20 deletions
+15
-20
kvm_tool
kvm_tool
+15
-20
No files found.
kvm_tool
View file @
9b00aa81
...
...
@@ -558,12 +558,11 @@ __END_OF_STDIN__
_get_interface_xml
(){
if
test
$#
-eq
3
;
if
test
$#
-eq
2
;
then
local
_BRIDGE
=
"
${
1
}
"
;
local
_ADDRESS
=
"
${
2
}
"
;
local
_DEVICE
=
"
${
3
}
"
;
shift
3
;
shift
2
;
else
return
127
;
fi
;
...
...
@@ -585,7 +584,7 @@ _get_interface_xml(){
fi
;
_echo_stdin
<<-
__END_OF_STDIN__
<source
${
_DEVICE
:+
dev=
'${_DEVICE}'
}
bridge='
${
_BRIDGE
}
'/>
<source bridge='
${
_BRIDGE
}
'/>
<model type='virtio'/>
</interface>
__END_OF_STDIN__
...
...
@@ -640,14 +639,13 @@ _get_domain_xml(){
<controller type='ide'/>
__END_OF_STDIN__
while
test
$#
-ge
3
;
while
test
$#
-ge
2
;
do
_BRIDGE
=
"
${
1
#_
}
"
;
_ADDRESS
=
"
${
2
#_
}
"
;
_DEVICE
=
"
${
3
#_
}
"
;
shift
3
;
shift
2
;
_get_interface_xml
"
${
_BRIDGE
}
"
"
${
_ADDRESS
}
"
"
${
_DEVICE
}
"
||
_status
=
1
;
_get_interface_xml
"
${
_BRIDGE
}
"
"
${
_ADDRESS
}
"
||
_status
=
1
;
done
;
_echo_stdin
<<-
__END_OF_STDIN__
...
...
@@ -683,9 +681,6 @@ create_domain(){
_string
=
"
${
_string
##
${
_BRIDGE
}}
"
;
_string
=
"
${
_string
##,
}
"
;
_ADDRESS
=
"
${
_string
%%,*
}
"
;
_string
=
"
${
_string
##
${
_ADDRESS
}}
"
;
_string
=
"
${
_string
##,
}
"
;
_DEVICE
=
"
${
_string
%%,*
}
"
;
if
test
-z
"
${
_BRIDGE
}
"
;
then
...
...
@@ -694,7 +689,7 @@ create_domain(){
return
127
;
fi
;
_connections
=
"
${
_connections
}
_
${
_BRIDGE
}
_
${
_ADDRESS
}
_
${
_DEVICE
}
"
;
_connections
=
"
${
_connections
}
_
${
_BRIDGE
}
_
${
_ADDRESS
}
"
;
;;
"?"
)
...
...
@@ -838,13 +833,13 @@ The command call
creates a KVM domain with the name \`«name»\`, \`«cpu_count»\` CPUs, \`«ram»\`
MiB of RAM and the file-system image at the path \`«path»\`. The option
-c «bridge»[,«mac_address»
[,«name»]
]
-c «bridge»[,«mac_address»]
adds a connection to the bridge \`«bridge»\`, and optionally gives the
connecting device the MAC address \`«mac_address»\`
and the name «name». The
option can be used any number of times. The \`-x\` option outputs to standard
output the \`libvirt\` XML that would be used to create the domain, but does
not create
it.
connecting device the MAC address \`«mac_address»\`
. The option can be used
any number of times. The \`-x\` option outputs to standard output the
\`libvirt\` XML that would be used to create the domain, but does not create
it.
The command call
...
...
@@ -1067,11 +1062,11 @@ MiB of RAM and a qcow2 storage volume with the name \`«name»\` in the
\`default\` storage pool with the qcow2 file-system image at the path
\`«path»\` as its backing storage volume. The option
-c «bridge»[,«ipv4_address»
[,«name»]
]
-c «bridge»[,«ipv4_address»]
adds a connection to the bridge \`«bridge»\`, and optionally gives the
connecting device the MAC address \`«mac_address»\`
and the name «name», where
\`«mac_address»\` is the MAC address
output by
connecting device the MAC address \`«mac_address»\`
, where \`«mac_address»\` is
that
output by
${
0
##*/
}
get mac address «ipv4_address»
...
...
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