2007-06-21 23:00:17 +08:00
. \" Automatically generated by Pod::Man v1.37, Pod::Parser v1.32
2006-04-10 22:15:33 +08:00
. \"
. \" Standard preamble:
. \" ========================================================================
.de Sh \" Subsection heading
.br
.if t .Sp
.ne 5
.PP
\fB \\ $1\fR
.PP
. .
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
. .
.de Vb \" Begin verbatim text
.ft CW
.nf
.ne \\ $1
. .
.de Ve \" End verbatim text
.ft R
.fi
. .
. \" Set up some character translations and predefined strings. \*(-- will
. \" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
. \" double quote, and \*(R" will give a right double quote. | will give a
. \" real vertical bar. \*(C+ will give a nicer C++. Capital omega is used to
. \" do unbreakable dashes and therefore won't be available. \*(C` and \*(C'
. \" expand to `' in nroff, nothing in troff, for use with C<>.
.tr \(*W -|\(bv\*(Tr
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
.ie n \{ \
. ds -- \(*W -
. ds PI pi
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W \h '-12u'\(*W\h'-12u'-\" diablo 10 pitch
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W \h '-12u'\(*W\h'-8u'-\" diablo 12 pitch
. ds L" ""
. ds R" ""
. ds C` ""
. ds C' ""
'br\}
.el \{ \
. ds -- \| \(em \|
. ds PI \(*p
. ds L" ``
. ds R" ''
'br\}
. \"
. \" If the F register is turned on, we'll generate index entries on stderr for
. \" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
. \" entries marked with X<> in POD. Of course, you'll have to process the
. \" output yourself in some meaningful fashion.
.if \nF \{ \
. de IX
. tm Index:\\$1\t\\n%\t"\\$2"
. .
. nr % 0
. rr F
. \}
. \"
. \" For nroff, turn off justification. Always turn off hyphenation; it makes
. \" way too many mistakes in technical documents.
.hy 0
.if n .na
. \"
. \" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
. \" Fear. Run. Save yourself. No user-serviceable parts.
. \" fudge factors for nroff and troff
.if n \{ \
. ds #H 0
. ds #V .8m
. ds #F .3m
. ds #[ \f1
. ds #] \fP
. \}
.if t \{ \
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
. ds #V .6m
. ds #F 0
. ds #[ \&
. ds #] \&
. \}
. \" simple accents for nroff and troff
.if n \{ \
. ds ' \&
. ds ` \&
. ds ^ \&
. ds , \&
. ds ~ ~
. ds /
. \}
.if t \{ \
. ds ' \\ k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
. ds ` \\ k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
. ds ^ \\ k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
. ds , \\ k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
. ds ~ \\ k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
. ds / \\ k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
. \}
. \" troff and (daisy-wheel) nroff accents
.ds : \\ k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
.ds 8 \h '\*(#H'\(*b\h'-\*(#H'
.ds o \\ k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
.ds d- \h '\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
.ds th \* (#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
.ds Th \* (#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
.ds ae a\h'-(\w'a'u*4/10)'e
.ds Ae A\h'-(\w'A'u*4/10)'E
. \" corrections for vroff
.if v .ds ~ \\ k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
.if v .ds ^ \\ k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
. \" for low resolution devices (crt and lpr)
.if \n (.H>23 .if \n (.V>19 \
\{ \
. ds : e
. ds 8 ss
. ds o a
. ds d- d\h'-1'\(ga
. ds D- D\h'-1'\(hy
. ds th \o 'bp'
. ds Th \o 'LP'
. ds ae ae
. ds Ae AE
. \}
.rm #[ #] #H #V #F C
. \" ========================================================================
. \"
2007-06-21 23:00:17 +08:00
.IX Title "VIRSH 1"
.TH VIRSH 1 "2007-06-21" "perl v5.8.8" "Virtualization Support"
2006-04-10 22:15:33 +08:00
.SH "NAME"
virsh \- management user interface
.SH "SYNOPSIS"
.IX Header "SYNOPSIS"
virsh <subcommand> [args]
.SH "DESCRIPTION"
.IX Header "DESCRIPTION"
The \fB virsh\fR program is the main interface for managing virsh guest
2007-06-21 23:00:17 +08:00
domains. The program can be used to create, pause, and shutdown
domains. It can also be used to list current domains. Libvirt is a C toolkit to interract with the virtualization capabilities of recent versions of Linux (and other OSes). It is free software available under the \s -1GNU\s 0 Lesser General Public License. Virtualization of the Linux Operating System means the ability to run multiple instances of Operating Systems concurently on a single hardware system where the basic resources are driven by a Linux instance. The library aim at providing long term stable C \s -1API\s 0 initially for the Xen paravirtualization but should be able to integrate other virtualization mechanisms, it currently also support QEmu and \s -1KVM\s 0.
2006-04-10 22:15:33 +08:00
.PP
2007-06-21 23:00:17 +08:00
The basic structure of most virsh usage is:
2006-04-10 22:15:33 +08:00
.PP
.Vb 1
2007-06-21 23:00:17 +08:00
\& virsh <command> <domain-id> [OPTIONS]
2006-04-10 22:15:33 +08:00
.Ve
.PP
2007-06-21 23:00:17 +08:00
Where \fI command\fR is one of the commands listed below, \fI domain-id\fR
2006-04-10 22:15:33 +08:00
is the numeric domain id, or the domain name (which will be internally
2007-06-21 23:00:17 +08:00
translated to domain id), and \fI \s -1OPTIONS\s 0\fR are command specific
2006-04-10 22:15:33 +08:00
options. There are a few exceptions to this rule in the cases where
2007-06-21 23:00:17 +08:00
the command in question acts on all domains, the entire machine,
or directly on the xen hypervisor. Those exceptions will be clear for
each of those commands.
.PP
The \fB virsh\fR program can be used either to run one command at a time
by giving the command as an argument on the command line, or as a shell
if no command is given in the command line, it will then start a minimal
interpreter waiting for your commands and the \fB quit\fR command will then exit
the program.
2006-04-10 22:15:33 +08:00
.SH "NOTES"
.IX Header "NOTES"
2006-10-11 23:18:31 +08:00
All \fB virsh\fR operations rely upon the libvirt library.
2007-06-21 23:00:17 +08:00
For any virsh commands to run xend/qemu, or what ever virtual library that libvirt suports. For this reason you should start xend/qemu as a service when your system first boots using xen/qemu. This can usually be done using the command
\& \fB service start libvirtd\fR .
2006-04-10 22:15:33 +08:00
.PP
Most \fB virsh\fR commands require root privledges to run due to the
communications channels used to talk to the hypervisor. Running as
non root will return an error.
.PP
Most \fB virsh\fR commands act asynchronously, so just because the \fB virsh\fR
2007-06-21 23:00:17 +08:00
program returned, doesn't mean the action is complete. This is
2006-04-10 22:15:33 +08:00
important, as many operations on domains, like create and shutdown,
can take considerable time (30 seconds or more) to bring the machine
into a fully compliant state. If you want to know when one of these
actions has finished you must poll through virsh list periodically.
2007-06-21 23:00:17 +08:00
.SH "GENERIC COMMANDS"
.IX Header "GENERIC COMMANDS"
The following commands are generic i.e. not specific to a domain.
.IP "\fBhelp\fR optional \fIcommand\fR" 4
.IX Item "help optional command"
This prints a small synoposis about all commands available for \fB virsh\fR
\& \fB help\fR \fI command\fR will print out a detailed help message on that command.
.IP "\fBquit\fR" 4
.IX Item "quit"
quit this interactive terminal
.IP "\fBversion\fR" 4
.IX Item "version"
Will print out the major version info about what this built from.
.RS 4
2006-04-10 22:15:33 +08:00
.Sp
2007-06-21 23:00:17 +08:00
.RS 4
\& \fB Example\fR
.Sp
\& \fB virsh\fR version
2006-04-10 22:15:33 +08:00
.Sp
2007-06-21 23:00:17 +08:00
Compiled against library: libvir 0.0.6
.Sp
Using library: libvir 0.0.6
.Sp
Using \s -1API:\s 0 Xen 3.0.0
.Sp
Running hypervisor: Xen 3.0.0
.RE
.RE
.RS 4
.RE
.IP "\fBconnect\fR \fI\s-1URI\s0\fR optional \fI\-\-readonly\fR" 4
.IX Item "connect URI optional --readonly"
(Re)\- Connect to the hypervisor. This is a build-in command after shell
start up, and usually get an \fI \s -1URI\s 0\fR parameter specifying how to connect
to the hypervisor. The documentation page at <http://libvirt.org/uri.html>
list the values supported but the most commons are:
.RS 4
2007-06-21 23:46:04 +08:00
.IP "xen:///" 4
.IX Item "xen:///"
2007-06-21 23:00:17 +08:00
this is used to connect to the local Xen hypervisor, this is the default
.IP "qemu:///system" 4
.IX Item "qemu:///system"
2007-06-21 23:46:04 +08:00
allow to connect locally as root to the daemon supervizing QEmu and \s -1KVM\s 0 domains
2007-06-21 23:00:17 +08:00
.IP "qemu:///session" 4
.IX Item "qemu:///session"
2007-06-21 23:46:04 +08:00
allow to connect locally as a normal user to the his own set of QEmu and \s -1KVM\s 0 domains
2007-06-21 23:00:17 +08:00
.RE
.RS 4
.Sp
For remote access see the documetnation page on how to make URIs.
The \fI \- \- readonly\fR option allows for read-only connection
.RE
.IP "\fBnodeinfo\fR" 4
.IX Item "nodeinfo"
Returns basic information about the node, like number and type of \s -1CPU\s 0,
and size of the physical memory.
.IP "\fBcapabilities\fR" 4
.IX Item "capabilities"
Print an \s -1XML\s 0 document describing the capabilities of the hypervisor
we are currently connected to. This includes a section on the host
capabilities in terms of \s -1CPU\s 0 and features, and a set of description
for each kind of guest which can be virtualized. For a more complete
description see the description at:
<http://libvirt.org/format.html#Capa1>
2006-04-10 22:15:33 +08:00
.IP "\fBlist\fR" 4
.IX Item "list"
Prints information about one or more domains. If no domains are
specified it prints out information about all domains.
.Sp
An example format for the list is as follows:
.Sp
\& \fB virsh\fR list
Id Name State
.Sp
\& \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \- \-
.Sp
.Vb 2
\& 0 Domain-0 running
\& 2 fedora paused
.Ve
.Sp
Name is the name of the domain. \s -1ID\s 0 the domain numeric id.
State is the run state (see below).
.RS 4
.Sp
.RS 4
\& \fB \s -1STATES\s 0\fR
.Sp
The State field lists 6 states for a Xen Domain, and which ones the
current Domain is in.
=back
.RE
2007-06-21 23:00:17 +08:00
.IP "\fBr \- running\fR" 4
.IX Item "r - running"
2006-04-10 22:15:33 +08:00
The domain is currently running on a \s -1CPU\s 0
2007-06-21 23:00:17 +08:00
.IP "\fBb \- blocked\fR" 4
.IX Item "b - blocked"
2006-04-10 22:15:33 +08:00
The domain is blocked, and not running or runable. This can be caused
because the domain is waiting on \s -1IO\s 0 (a traditional wait state) or has
gone to sleep because there was nothing else for it to do.
2007-06-21 23:00:17 +08:00
.IP "\fBp \- paused\fR" 4
.IX Item "p - paused"
2006-04-10 22:15:33 +08:00
The domain has been paused, usually occurring through the administrator
2007-06-21 23:00:17 +08:00
running \fB xm pause\fR . When in a paused state the domain will still
2006-04-10 22:15:33 +08:00
consume allocated resources like memory, but will not be eligible for
scheduling by the Xen hypervisor.
2007-06-21 23:00:17 +08:00
.IP "\fBs \- shutdown\fR" 4
.IX Item "s - shutdown"
The domain is in the process of shutting down, i.e. the guest operating system
has been notified and should be in the process of stopping its operations
gracefully.
.IP "\fBc \- crashed\fR" 4
.IX Item "c - crashed"
2006-04-10 22:15:33 +08:00
The domain has crashed, which is always a violent ending. Usually
this state can only occur if the domain has been configured not to
restart on crash. See xmdomain.cfg for more info.
2007-06-21 23:00:17 +08:00
.IP "\fBd \- dying\fR" 4
.IX Item "d - dying"
The domain is in process of dying, but hasn't completely shutdown or
crashed.
2006-04-10 22:15:33 +08:00
.RE
.RS 4
2007-06-21 23:00:17 +08:00
.SH "DOMAIN COMMANDS"
.IX Header "DOMAIN COMMANDS"
The following commands manipulate domains directly, as stated
previously most commands take domain-id as the first parameter. The
\& \fI domain-id\fR can be specified as an short integer, a name or a full \s -1UUID\s 0.
2007-06-21 23:46:04 +08:00
.IP "\fBautostart\fR optional \fI\-\-disable\fR \fIdomain-id\fR" 4
.IX Item "autostart optional --disable domain-id"
2007-06-21 23:00:17 +08:00
Configure a domain to be automatically started at boot.
.Sp
2007-06-21 23:46:04 +08:00
The option \fI \- \- disable\fR disable autostarting.
2007-06-21 23:00:17 +08:00
.IP "\fBconsole\fR \fIdomain-id\fR" 4
.IX Item "console domain-id"
Connect the virtual serial console for the guest.
.IP "\fBcreate\fR \fI\s-1FILE\s0\fR" 4
.IX Item "create FILE"
Create a domain from an \s -1XML\s 0 <file> an easy way to create one if you have a pre-existing xen guest created via \fB xm\fR create <\s -1XMLFILE\s 0>.
.Sp
\& \fB Example\fR
.Sp
virsh dumpxml <domain\- id> > file.
.IP "\fBdefine\fR \fI\s-1FILE\s0\fR" 4
.IX Item "define FILE"
Define a domain from an \s -1XML\s 0 <file>. The domain definitions is registered
but not started.
.IP "\fBdestroy\fR \fIdomain-id\fR" 4
.IX Item "destroy domain-id"
Immediately terminate the domain domain\- id. This doesn't give the domain
\& \s -1OS\s 0 any chance to react, and it the equivalent of ripping the power
cord out on a physical machine. In most cases you will want to use
the \fB shutdown\fR command instead.
.IP "\fBdominfo\fR \fIdomain-id\fR" 4
.IX Item "dominfo domain-id"
Returns basic information about the domain.
.IP "\fBdomuuid\fR \fIdomain-name-or-id\fR" 4
.IX Item "domuuid domain-name-or-id"
Convert a domain name or id to domain \s -1UUID\s 0
.IP "\fBdomid\fR \fIdomain-name\fR" 4
.IX Item "domid domain-name"
Converts a domain name to a domain id using xend's internal mapping.
.IP "\fBdominfo\fR \fIdomain-id\fR" 4
.IX Item "dominfo domain-id"
Returns basic information about the domain.
.IP "\fBdomname\fR \fIdomain-id\fR" 4
.IX Item "domname domain-id"
convert a domain Id to domain name
.IP "\fBdomstate\fR \fIdomain-id\fR" 4
.IX Item "domstate domain-id"
Returns state about a running domain.
.IP "\fBdumpxml\fR \fIdomain-id\fR" 4
.IX Item "dumpxml domain-id"
Ouput the domain informations as an \s -1XML\s 0 dump to stdout, this format can be used by the \fB create\fR command.
.IP "\fBreboot\fR \fIdomain-id\fR" 4
.IX Item "reboot domain-id"
2006-04-10 22:15:33 +08:00
Reboot a domain. This acts just as if the domain had the \fB reboot\fR
command run from the console. The command returns as soon as it has
2007-06-21 23:00:17 +08:00
executed the reboot action, which may be significantly before the
domain actually reboots.
2006-04-10 22:15:33 +08:00
.Sp
For xen vm the behavior of what happens to a domain when it reboots is set by the
\& \fI on_reboot\fR parameter of the xmdomain.cfg file when the domain was
created.
.IP "\fBrestore\fR \fIstate-file\fR" 4
.IX Item "restore state-file"
Restores a domain from an \fB virsh save\fR state file. See \fI save\fR for more info.
2007-06-21 23:00:17 +08:00
.IP "\fBsave\fR \fIdomain-id\fR \fIstate-file\fR" 4
.IX Item "save domain-id state-file"
2006-04-10 22:15:33 +08:00
Saves a running domain to a state file so that it can be restored
later. Once saved, the domain will no longer be running on the
system, thus the memory allocated for the domain will be free for
other domains to use. \fB virsh restore\fR restores from this state file.
.Sp
This is roughly equivalent to doing a hibernate on a running computer,
with all the same limitations. Open network connections may be
severed upon restore, as \s -1TCP\s 0 timeouts may have expired.
2007-06-21 23:00:17 +08:00
.IP "\fBsetmem\fR \fIdomain-id\fR \fBkilobytes\fR" 4
.IX Item "setmem domain-id kilobytes"
Change the current memory allocation in the guest domain. This should take
effect immediately. The memory limit is specified in
kilobytes.
.IP "\fBsetmaxmem\fR \fIdomain-id\fR \fBkilobytes\fR" 4
.IX Item "setmaxmem domain-id kilobytes"
Change the maximum memory allocation limit in the guest domain. This should
not change the current memory use. The memory limit is specified in
kilobytes.
.IP "\fBsetvcpus\fR \fIdomain-id\fR \fIcount\fR" 4
.IX Item "setvcpus domain-id count"
Change the number of virtual CPUs active in the guest domain. Note that
\& \fI count\fR may be limited by host, hypervisor or limit coming from the
original description of domain.
.IP "\fBshutdown\fR \fIdomain-id\fR" 4
.IX Item "shutdown domain-id"
2006-04-10 22:15:33 +08:00
Gracefully shuts down a domain. This coordinates with the domain \s -1OS\s 0
to perform graceful shutdown, so there is no guaruntee that it will
succeed, and may take a variable length of time depending on what
services must be shutdown in the domain.
.Sp
For a xen guest vm the behavior of what happens to a domain when it reboots is set by the
\& \fI on_shutdown\fR parameter of the xmdomain.cfg file when the domain was
created.
2007-06-21 23:00:17 +08:00
.IP "\fBsuspend\fR \fIdomain-id\fR" 4
.IX Item "suspend domain-id"
Suspend a running domain. It is kept in memory but won't be scheduled
anymore.
.IP "\fBresume\fR \fIdomain-id\fR" 4
.IX Item "resume domain-id"
Moves a domain out of the suspended state. This will allow a previously
suspended domain to now be eligible for scheduling by the the underlying
hypervisor.
.IP "\fBundefine\fR \fIdomain-id\fR" 4
.IX Item "undefine domain-id"
Undefine the configuration for an inactive domain. Since it's not running
the domain name or UUId must be used as the \fI domain-id\fR .
.IP "\fBvcpuinfo\fR \fIdomain-id\fR" 4
.IX Item "vcpuinfo domain-id"
Returns basic information about the domain virtual CPUs, like the number of
vCPUs, the running time, the affinity to physical processors.
.IP "\fBvcpupin\fR \fIdomain-id\fR \fIvcpu\fR \fIcpulist\fR" 4
.IX Item "vcpupin domain-id vcpu cpulist"
Pin domain VCPUs to host physical CPUs. The \fI vcpu\fR number must be provided
and \fI cpulist\fR is a comma separated list of physical \s -1CPU\s 0 numbers.
.IP "\fBvncdisplay\fR \fIdomain-id\fR" 4
.IX Item "vncdisplay domain-id"
Output the \s -1IP\s 0 address and port number for the \s -1VNC\s 0 display.
.RE
2006-04-10 22:15:33 +08:00
.RS 4
2007-06-21 23:00:17 +08:00
.SH "DEVICES COMMANDS"
.IX Header "DEVICES COMMANDS"
The following commands manipulate devices associated to domains.
The domain-id can be specified as an short integer, a name or a full \s -1UUID\s 0.
To better understand the values allowed as options for the command
reading the documentation at <http://libvirt.org/format.html> on the
format of the device sections to get the most accurate set of accepted values.
.IP "\fBattach-device\fR \fIdomain-id\fR \fI\s-1FILE\s0\fR" 4
.IX Item "attach-device domain-id FILE"
Attach a device to the domain, using a device definition in an \s -1XML\s 0 file.
See the documentation to learn about libvirt \s -1XML\s 0 format for a device.
.IP "\fBattach-disk\fR \fIdomain-id\fR \fIsource\fR \fItarget\fR optional \fI\-\-driver driver\fR \fI\-\-subdriver subdriver\fR \fI\-\-type type\fR \fI\-\-mode mode\fR" 4
.IX Item "attach-disk domain-id source target optional --driver driver --subdriver subdriver --type type --mode mode"
Attach a new disk device to the domain.
\& \fI source\fR and \fI target\fR are paths for the files and devices.
\& \fI driver\fR can be \fI file\fR , \fI tap\fR or \fI phy\fR depending on the kind of access.
\& \fI type\fR can indicate \fI cdrom\fR or \fI floppy\fR as alternative to the disk default.
\& \fI mode\fR can specify the two specific mode \fI readonly\fR or \fI shareable\fR .
.IP "\fBattach-interface\fR \fIdomain-id\fR \fItype\fR \fIsource\fR optional \fI\-\-target target\fR \fI\-\-mac mac\fR \fI\-\-script script\fR" 4
.IX Item "attach-interface domain-id type source optional --target target --mac mac --script script"
Attach a new network interface to the domain.
\& \fI type\fR can be either \fI network\fR to indicate a physical network device or \fI bridge\fR to indicate a bridge to a device.
\& \fI source\fR indicates the source device.
\& \fI target\fR allows to indicate the target device in the guest.
\& \fI mac\fR allows to specify the \s -1MAC\s 0 address of the network interface.
\& \fI script\fR allows to specify a path to a script handling a bridge instead of
the default one.
.IP "\fBdetach-device\fR \fIdomain-id\fR \fI\s-1FILE\s0\fR" 4
.IX Item "detach-device domain-id FILE"
Detach a device from the domain, takes the same kind of \s -1XML\s 0 descriptions
as command \fB attach-device\fR .
.IP "\fBdetach-disk\fR \fIdomain-id\fR \fItarget\fR" 4
.IX Item "detach-disk domain-id target"
Detach a disk device from a domain. The \fI target\fR is the device as seen
from the domain.
.IP "\fBdetach-interface\fR \fIdomain-id\fR \fItype\fR optional \fI\-\-mac mac\fR" 4
.IX Item "detach-interface domain-id type optional --mac mac"
Detatch a network interface from a domain.
\& \fI type\fR can be either \fI network\fR to indicate a physical network device or \fI bridge\fR to indicate a bridge to a device.
It is recommended to use the \fI mac\fR option to distinguish between the interfaces
if more than one are present on the domain.
2006-04-10 22:15:33 +08:00
.RE
2007-06-21 23:00:17 +08:00
.RS 4
.SH "VIRTUAL NETWORKS COMMANDS"
.IX Header "VIRTUAL NETWORKS COMMANDS"
The following commands manipulate networks. Libvirt has the capability to
define virtual networks which can then be used by domains and linked to
actual network dvices. For more detailed informations about this feature
see the documentation at <http://libvirt.org/format.html#Net1> . A lot
of the command for virtual networks are similar to the one used for domains,
but the way to name a virtual network is either by its name or \s -1UUID\s 0.
.IP "\fBnet-autostart\fR \fInetwork\fR optional \fI\-\-disable\fR" 4
.IX Item "net-autostart network optional --disable"
Configure a virtual network to be automatically started at boot.
The \fI \- \- disable\fR option disable autostarting.
.IP "\fBnet-create\fR \fIfile\fR" 4
.IX Item "net-create file"
Create a virtual network from an \s -1XML\s 0 \fI file\fR , see the documentation to get
a description of the \s -1XML\s 0 network format used by libvirt.
.IP "\fBnet-define\fR \fIfile\fR" 4
.IX Item "net-define file"
Define a virtual network from an \s -1XML\s 0 \fI file\fR , the network is just defined but
not instanciated.
.IP "\fBnet-destroy\fR \fInetwork\fR" 4
.IX Item "net-destroy network"
Destroy a given virtual network specified by its name or \s -1UUID\s 0. This takes
effect immediately.
.IP "\fBnet-dumpxml\fR \fInetwork\fR" 4
.IX Item "net-dumpxml network"
Output the virtual network information as an \s -1XML\s 0 dump to stdout.
.IP "\fBnet-list\fR optional \fI\-\-inactive\fR or \fI\-\-all\fR" 4
.IX Item "net-list optional --inactive or --all"
Returns the list of active networks, if \fI \- \- all\fR is specified this will also
include defined but inactive networks, if \fI \- \- inactive\fR is specified only the
inactive ones will be listed.
.IP "\fBnet-name\fR \fInetwork-UUID\fR" 4
.IX Item "net-name network-UUID"
Convert a network \s -1UUID\s 0 to network name.
.IP "\fBnet-start\fR \fInetwork\fR" 4
.IX Item "net-start network"
Start a (previously defined) inactive network.
.IP "\fBnet-undefine\fR \fInetwork\fR" 4
.IX Item "net-undefine network"
Undefine the configuration for an inactive network.
.IP "\fBnet-uuid\fR \fInetwork-name\fR" 4
.IX Item "net-uuid network-name"
Convert a network name to network \s -1UUID\s 0.
2006-04-10 22:15:33 +08:00
.RE
.RS 4
.SH "SEE ALSO"
.IX Header "SEE ALSO"
2007-06-21 23:00:17 +08:00
\& \fI xm\fR \| (1), \fI xmdomain.cfg\fR \| (5), \fI xentop\fR \| (1) , <http://www.libvirt.org/>
2006-04-10 22:15:33 +08:00
.SH "AUTHOR"
.IX Header "AUTHOR"
.Vb 2
\& Andrew Puch <apuch @ redhat.com>
\& Daniel Veillard <veillard @ redhat.com>
.Ve
.Sp
.Vb 3
\& Based on the xm man paged by
\& Sean Dague <sean at dague dot net>
\& Daniel Stekloff <dsteklof at us dot ibm dot com>
.Ve
.SH "BUGS"
.IX Header "BUGS"
2007-06-21 23:00:17 +08:00
Bugs can be view on the RedHat buzilla page under the libvirt
2006-04-10 22:15:33 +08:00
<https://bugzilla.redhat.com/>
2007-06-21 23:00:17 +08:00
.Sp
<https://bugzilla.redhat.com/bugzilla/buglist.cgi?product=Fedora+Core&component=libvirt&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_status=MODIFIED&short_desc_type=allwordssubstr&short_desc=&long_desc_type=allwordssubstr>
.Sp
=