1 <?xml version=
"1.0" encoding=
"UTF-8"?>
3 <html xmlns=
"http://www.w3.org/1999/xhtml">
5 <h1>VirtualBox hypervisor driver
</h1>
7 The libvirt VirtualBox driver can manage any VirtualBox version
8 from version
4.0 onwards
9 (
<span class=
"since">since libvirt
3.0.0</span>).
12 <h2><a id=
"project">Project Links
</a></h2>
16 The
<a href=
"http://www.virtualbox.org/">VirtualBox
</a>
21 <h2>Connections to VirtualBox driver
</h2>
24 The libvirt VirtualBox driver provides per-user drivers (the
"session" instance).
25 The uri of the driver protocol is
"vbox". Some example connection URIs for the driver are:
29 vbox:///session (local access to per-user instance)
30 vbox+unix:///session (local access to per-user instance)
31 vbox+tcp://user@example.com/session (remote access, SASl/Kerberos)
32 vbox+ssh://user@example.com/session (remote access, SSH tunnelled)
36 <strong>NOTE: as of libvirt
1.0.6, the VirtualBox driver will always
37 run inside the libvirtd daemon, instead of being built-in to the
38 libvirt.so library directly. This change was required due to the
39 fact that VirtualBox code is LGPLv2-only licensed, which is not
40 compatible with the libvirt.so license of LGPLv2-or-later. The
41 daemon will be auto-started when the first connection to VirtualBox
42 is requested. This change also means that it will not be possible
43 to use VirtualBox URIs on the Windows platform, until additional
44 work is completed to get the libvirtd daemon working there.
</strong>
47 <h2><a id=
"xmlconfig">Example domain XML config
</a></h2>
50 <domain type='vbox'
>
51 <name
>vbox
</name
>
52 <uuid
>4dab22b31d52d8f32516782e98ab3fa0
</uuid
>
55 <type
>hvm
</type
>
56 <boot dev='cdrom'/
>
57 <boot dev='hd'/
>
58 <boot dev='fd'/
>
59 <boot dev='network'/
>
62 <memory
>654321</memory
>
63 <vcpu
>1</vcpu
>
72 <!--Set IDE controller model to PIIX4 (default PIIX3)--
>
73 <controller type='ide' model='piix4'/
>
75 <controller type='scsi' index='
0'/
>
77 <!--VirtualBox SAS Controller--
>
78 <controller type='scsi' index='
1' model='lsisas1068'/
>
80 <disk type='file' device='cdrom'
>
81 <source file='/home/user/Downloads/slax-
6.0.9.iso'/
>
82 <target dev='hdc'/
>
86 <disk type='file' device='disk'
>
87 <source file='/home/user/tmp/vbox.vdi'/
>
88 <target dev='hdd'/
>
91 <!--Attach to the SCSI controller (index=
0, default)--
>
92 <disk type='file' device='disk'
>
93 <source file='/home/user/tmp/vbox2.vdi'/
>
94 <target dev='sda' bus='scsi'/
>
97 <!--Attach to the SAS controller (index=
1)--
>
98 <disk type='file' device='disk'
>
99 <source file='/home/user/tmp/vbox3.vdi'/
>
100 <target dev='sda' bus='scsi'/
>
101 <address type='drive' controller='
1' bus='
0' target='
0' unit='
0'/
>
104 <disk type='file' device='floppy'
>
105 <source file='/home/user/tmp/WIN98C.IMG'/
>
106 <target dev='fda'/
>
109 <filesystem type='mount'
>
110 <source dir='/home/user/stuff'/
>
111 <target dir='my-shared-folder'/
>
115 <interface type='bridge'
>
116 <source bridge='eth0'/
>
117 <mac address='
00:
16:
3e:
5d:c7:
9e'/
>
118 <model type='am79c973'/
>
122 <interface type='user'
>
123 <mac address='
56:
16:
3e:
5d:c7:
9e'/
>
124 <model type='
82540eM'/
>
127 <graphics type='desktop'/
>
129 <!--Activate the VRDE server with a port in
3389-
3689 range--
>
130 <graphics type='rdp' autoport='yes' multiUser='yes'/
>
132 <sound model='sb16'/
>
134 <parallel type='dev'
>
135 <source path='/dev/pts/
1'/
>
136 <target port='
0'/
>
139 <parallel type='dev'
>
140 <source path='/dev/pts/
2'/
>
141 <target port='
1'/
>
144 <serial
type=
"dev">
145 <source
path=
"/dev/ttyS0"/
>
146 <target
port=
"0"/
>
149 <serial
type=
"pipe">
150 <source
path=
"/tmp/serial.txt"/
>
151 <target
port=
"1"/
>
154 <hostdev mode='subsystem' type='usb'
>
156 <vendor id='
0x1234'/
>
157 <product id='
0xbeef'/
>
161 <hostdev mode='subsystem' type='usb'
>
163 <vendor id='
0x4321'/
>
164 <product id='
0xfeeb'/
>