3100
3126
"connect via VNC to complete the installation."
3103
#: serverguide/C/virtualization.xml:189(para)
3129
#: serverguide/C/virtualization.xml:192(para)
3105
3131
"<emphasis>--noautoconsole:</emphasis> will not automatically connect to the "
3106
3132
"virtual machine's console."
3109
#: serverguide/C/virtualization.xml:194(para)
3135
#: serverguide/C/virtualization.xml:197(para)
3110
3136
msgid "<emphasis>-v:</emphasis> creates a fully virtualized guest."
3113
#: serverguide/C/virtualization.xml:199(para)
3139
#: serverguide/C/virtualization.xml:202(para)
3115
3141
"After launching <application>virt-install</application> you can connect to "
3116
3142
"the virtual machine's console either locally using a GUI (if your server has "
3117
3143
"a GUI), or via a remote VNC client from a GUI-based computer."
3120
#: serverguide/C/virtualization.xml:206(title)
3146
#: serverguide/C/virtualization.xml:209(title)
3121
3147
msgid "virt-clone"
3124
#: serverguide/C/virtualization.xml:208(para)
3150
#: serverguide/C/virtualization.xml:211(para)
3126
3152
"The <application>virt-clone</application> application can be used to copy "
3127
3153
"one virtual machine to another. For example:"
3130
#: serverguide/C/virtualization.xml:212(command)
3156
#: serverguide/C/virtualization.xml:215(command)
3132
"sudo virt-clone -o web_devel -n database_devel -f "
3133
"/path/to/database_devel.img \\ --connect=qemu:///system"
3158
"sudo virt-clone -o web_devel -n database_devel -f /path/to/database_devel.img"
3136
#: serverguide/C/virtualization.xml:218(para)
3161
#: serverguide/C/virtualization.xml:220(para)
3137
3162
msgid "<emphasis>-o:</emphasis> original virtual machine."
3140
#: serverguide/C/virtualization.xml:222(para)
3165
#: serverguide/C/virtualization.xml:224(para)
3141
3166
msgid "<emphasis>-n:</emphasis> name of the new virtual machine."
3144
#: serverguide/C/virtualization.xml:227(para)
3169
#: serverguide/C/virtualization.xml:229(para)
3146
3171
"<emphasis>-f:</emphasis> path to the file, logical volume, or partition to "
3147
3172
"be used by the new virtual machine."
3150
#: serverguide/C/virtualization.xml:232(para)
3152
"<emphasis>--connect:</emphasis> specifies which hypervisor to connect to."
3155
#: serverguide/C/virtualization.xml:237(para)
3175
#: serverguide/C/virtualization.xml:234(para)
3157
3177
"Also, use <emphasis>-d</emphasis> or <emphasis>--debug</emphasis> option to "
3158
3178
"help troubleshoot problems with <application>virt-clone</application>."
3161
#: serverguide/C/virtualization.xml:242(para)
3181
#: serverguide/C/virtualization.xml:239(para)
3163
3183
"Replace <emphasis>web_devel</emphasis> and "
3164
3184
"<emphasis>database_devel</emphasis> with appropriate virtual machine names."
3187
#: serverguide/C/virtualization.xml:246(title)
3188
msgid "Virtual Machine Management"
3167
3191
#: serverguide/C/virtualization.xml:249(title)
3168
msgid "Virtual Machine Management"
3171
#: serverguide/C/virtualization.xml:252(title)
3175
#: serverguide/C/virtualization.xml:254(para)
3195
#: serverguide/C/virtualization.xml:251(para)
3177
3197
"There are several utilities available to manage virtual machines and "
3178
3198
"<application>libvirt</application>. The <application>virsh</application> "
3179
3199
"utility can be used from the command line. Some examples:"
3182
#: serverguide/C/virtualization.xml:261(para)
3202
#: serverguide/C/virtualization.xml:258(para)
3183
3203
msgid "To list running virtual machines:"
3186
#: serverguide/C/virtualization.xml:264(command)
3187
msgid "virsh -c qemu:///system list"
3206
#: serverguide/C/virtualization.xml:261(command)
3190
#: serverguide/C/virtualization.xml:269(para)
3210
#: serverguide/C/virtualization.xml:266(para)
3191
3211
msgid "To start a virtual machine:"
3194
#: serverguide/C/virtualization.xml:272(command)
3195
msgid "virsh -c qemu:///system start web_devel"
3214
#: serverguide/C/virtualization.xml:269(command)
3215
msgid "virsh start web_devel"
3198
#: serverguide/C/virtualization.xml:277(para)
3218
#: serverguide/C/virtualization.xml:274(para)
3199
3219
msgid "Similarly, to start a virtual machine at boot:"
3202
#: serverguide/C/virtualization.xml:280(command)
3203
msgid "virsh -c qemu:///system autostart web_devel"
3222
#: serverguide/C/virtualization.xml:277(command)
3223
msgid "virsh autostart web_devel"
3206
#: serverguide/C/virtualization.xml:285(para)
3226
#: serverguide/C/virtualization.xml:282(para)
3207
3227
msgid "Reboot a virtual machine with:"
3210
#: serverguide/C/virtualization.xml:288(command)
3211
msgid "virsh -c qemu:///system reboot web_devel"
3230
#: serverguide/C/virtualization.xml:285(command)
3231
msgid "virsh reboot web_devel"
3214
#: serverguide/C/virtualization.xml:293(para)
3234
#: serverguide/C/virtualization.xml:290(para)
3216
3236
"The <emphasis>state</emphasis> of virtual machines can be saved to a file in "
3217
3237
"order to be restored later. The following will save the virtual machine "
3218
3238
"state into a file named according to the date:"
3221
#: serverguide/C/virtualization.xml:299(command)
3222
msgid "virsh -c qemu:///system save web_devel web_devel-022708.state"
3241
#: serverguide/C/virtualization.xml:296(command)
3242
msgid "virsh save web_devel web_devel-022708.state"
3225
#: serverguide/C/virtualization.xml:302(para)
3245
#: serverguide/C/virtualization.xml:299(para)
3226
3246
msgid "Once saved the virtual machine will no longer be running."
3229
#: serverguide/C/virtualization.xml:307(para)
3249
#: serverguide/C/virtualization.xml:304(para)
3230
3250
msgid "A saved virtual machine can be restored using:"
3233
#: serverguide/C/virtualization.xml:310(command)
3234
msgid "virsh -c qemu:///system restore web_devel-022708.state"
3253
#: serverguide/C/virtualization.xml:307(command)
3254
msgid "virsh restore web_devel-022708.state"
3237
#: serverguide/C/virtualization.xml:315(para)
3257
#: serverguide/C/virtualization.xml:312(para)
3238
3258
msgid "To shutdown a virtual machine do:"
3241
#: serverguide/C/virtualization.xml:318(command)
3242
msgid "virsh -c qemu:///system shutdown web_devel"
3261
#: serverguide/C/virtualization.xml:315(command)
3262
msgid "virsh shutdown web_devel"
3245
#: serverguide/C/virtualization.xml:323(para)
3265
#: serverguide/C/virtualization.xml:320(para)
3246
3266
msgid "A CDROM device can be mounted in a virtual machine by entering:"
3249
#: serverguide/C/virtualization.xml:327(command)
3250
msgid "virsh -c qemu:///system attach-disk web_devel /dev/cdrom /media/cdrom"
3269
#: serverguide/C/virtualization.xml:324(command)
3270
msgid "virsh attach-disk web_devel /dev/cdrom /media/cdrom"
3253
#: serverguide/C/virtualization.xml:333(para)
3273
#: serverguide/C/virtualization.xml:330(para)
3255
3275
"In the above examples replace <emphasis>web_devel</emphasis> with the "
3256
3276
"appropriate virtual machine name, and <filename>web_devel-"
3257
3277
"022708.state</filename> with a descriptive file name."
3280
#: serverguide/C/virtualization.xml:334(para)
3282
"If virsh (or other vir* tools) shall connect to something else than the "
3283
"default qemu-kvm/system hipervisor one can find alternatives for the "
3284
"<emphasis>connect</emphasis> option in <emphasis>man virsh</emphasis> or "
3285
"<ulink url=\"http://libvirt.org/uri.html\">libvirt doc</ulink>"
3260
3288
#: serverguide/C/virtualization.xml:341(title)
3292
#: serverguide/C/virtualization.xml:342(para)
3294
"There are different types of migration available depending on the versions "
3295
"of libvirt and the hipervisor being used. In general those types are:"
3298
#: serverguide/C/virtualization.xml:345(ulink)
3299
msgid "offline migration"
3302
#: serverguide/C/virtualization.xml:346(ulink)
3303
msgid "live migration"
3306
#: serverguide/C/virtualization.xml:347(ulink)
3307
msgid "postcopy migration"
3310
#: serverguide/C/virtualization.xml:349(para)
3312
"There are various options to those methods, but the entry point for all of "
3313
"them is <emphasis>virsh migrate</emphasis>. Read the integrated help for "
3317
#: serverguide/C/virtualization.xml:350(command)
3318
msgid "virsh migrate --help"
3321
#: serverguide/C/virtualization.xml:351(para)
3323
"Some useful documentation on constraints and considerations about live "
3324
"migration can be found at the <ulink "
3325
"url=\"https://wiki.ubuntu.com/QemuKVMMigration\">Ubuntu Wiki</ulink>"
3328
#: serverguide/C/virtualization.xml:355(title)
3261
3329
msgid "Virtual Machine Manager"
3264
#: serverguide/C/virtualization.xml:343(para)
3332
#: serverguide/C/virtualization.xml:357(para)
3266
3334
"The <application>virt-manager</application> package contains a graphical "
3267
3335
"utility to manage local and remote virtual machines. To install virt-manager "
3271
#: serverguide/C/virtualization.xml:348(command)
3339
#: serverguide/C/virtualization.xml:362(command)
3272
3340
msgid "sudo apt install virt-manager"
3275
#: serverguide/C/virtualization.xml:351(para)
3343
#: serverguide/C/virtualization.xml:365(para)
3277
3345
"Since <application>virt-manager</application> requires a Graphical User "
3278
3346
"Interface (GUI) environment it is recommended to be installed on a "
3320
#: serverguide/C/virtualization.xml:390(para)
3388
#: serverguide/C/virtualization.xml:404(para)
3322
3390
"To install <application>virt-viewer</application> from a terminal enter:"
3325
#: serverguide/C/virtualization.xml:394(command)
3393
#: serverguide/C/virtualization.xml:408(command)
3326
3394
msgid "sudo apt install virt-viewer"
3329
#: serverguide/C/virtualization.xml:397(para)
3397
#: serverguide/C/virtualization.xml:411(para)
3331
3399
"Once a virtual machine is installed and running you can connect to the "
3332
3400
"virtual machine's console by using:"
3335
#: serverguide/C/virtualization.xml:401(command)
3336
msgid "virt-viewer -c qemu:///system web_devel"
3403
#: serverguide/C/virtualization.xml:415(command)
3404
msgid "virt-viewer web_devel"
3339
#: serverguide/C/virtualization.xml:404(para)
3407
#: serverguide/C/virtualization.xml:418(para)
3341
3409
"Similar to <application>virt-manager</application>, <application>virt-"
3342
3410
"viewer</application> can connect to a remote host using "
3343
3411
"<emphasis>SSH</emphasis> with key authentication, as well:"
3346
#: serverguide/C/virtualization.xml:409(command)
3414
#: serverguide/C/virtualization.xml:423(command)
3347
3415
msgid "virt-viewer -c qemu+ssh://virtnode1.mydomain.com/system web_devel"
3350
#: serverguide/C/virtualization.xml:412(para)
3418
#: serverguide/C/virtualization.xml:426(para)
3352
3420
"Be sure to replace <emphasis role=\"italic\">web_devel</emphasis> with the "
3353
3421
"appropriate virtual machine name."
3356
#: serverguide/C/virtualization.xml:415(para)
3424
#: serverguide/C/virtualization.xml:429(para)
3358
3426
"If configured to use a <emphasis>bridged</emphasis> network interface you "
3359
3427
"can also setup <application>SSH</application> access to the virtual machine."
3362
#: serverguide/C/virtualization.xml:421(title) serverguide/C/virtualization.xml:674(title) serverguide/C/virtualization.xml:745(title) serverguide/C/virtualization.xml:2680(title) serverguide/C/samba.xml:247(title) serverguide/C/samba.xml:345(title) serverguide/C/samba.xml:700(title) serverguide/C/samba.xml:1094(title) serverguide/C/samba.xml:1292(title) serverguide/C/reporting-bugs.xml:252(title) serverguide/C/remote-administration.xml:414(title) serverguide/C/other-apps.xml:151(title) serverguide/C/other-apps.xml:305(title) serverguide/C/other-apps.xml:399(title) serverguide/C/network-config.xml:588(title) serverguide/C/network-config.xml:843(title) serverguide/C/network-config.xml:1691(title) serverguide/C/network-auth.xml:2140(title) serverguide/C/network-auth.xml:2673(title) serverguide/C/network-auth.xml:3389(title) serverguide/C/network-auth.xml:3942(title) serverguide/C/network-auth.xml:4177(title) serverguide/C/installation.xml:880(title) serverguide/C/installation.xml:1166(title) serverguide/C/installation.xml:1677(title) serverguide/C/databases.xml:264(title) serverguide/C/databases.xml:419(title) serverguide/C/cgroups.xml:198(title) serverguide/C/backups.xml:870(title)
3430
#: serverguide/C/virtualization.xml:435(title) serverguide/C/virtualization.xml:742(title) serverguide/C/virtualization.xml:813(title) serverguide/C/virtualization.xml:2748(title) serverguide/C/samba.xml:247(title) serverguide/C/samba.xml:345(title) serverguide/C/samba.xml:700(title) serverguide/C/samba.xml:1094(title) serverguide/C/samba.xml:1292(title) serverguide/C/reporting-bugs.xml:252(title) serverguide/C/remote-administration.xml:414(title) serverguide/C/other-apps.xml:151(title) serverguide/C/other-apps.xml:305(title) serverguide/C/other-apps.xml:399(title) serverguide/C/network-config.xml:588(title) serverguide/C/network-config.xml:843(title) serverguide/C/network-config.xml:1945(title) serverguide/C/network-auth.xml:2140(title) serverguide/C/network-auth.xml:2666(title) serverguide/C/network-auth.xml:3382(title) serverguide/C/network-auth.xml:3935(title) serverguide/C/network-auth.xml:4170(title) serverguide/C/installation.xml:880(title) serverguide/C/installation.xml:1166(title) serverguide/C/installation.xml:1677(title) serverguide/C/databases.xml:264(title) serverguide/C/databases.xml:419(title) serverguide/C/cgroups.xml:198(title) serverguide/C/backups.xml:870(title)
3363
3431
msgid "Resources"
3364
3432
msgstr "Resources"
3366
#: serverguide/C/virtualization.xml:425(para)
3434
#: serverguide/C/virtualization.xml:439(para)
3368
3436
"See the <ulink url=\"http://www.linux-kvm.org/\">KVM</ulink> home page for "
3369
3437
"more details."
3372
#: serverguide/C/virtualization.xml:430(para)
3440
#: serverguide/C/virtualization.xml:444(para)
3374
3442
"For more information on <application>libvirt</application> see the <ulink "
3375
3443
"url=\"http://libvirt.org/\">libvirt home page</ulink>"
3378
#: serverguide/C/virtualization.xml:436(para)
3446
#: serverguide/C/virtualization.xml:450(para)
3380
3448
"The <ulink url=\"http://virt-manager.org/\">Virtual Machine Manager</ulink> "
3381
3449
"site has more information on <application>virt-manager</application> "
3385
#: serverguide/C/virtualization.xml:442(para)
3453
#: serverguide/C/virtualization.xml:456(para)
3387
3455
"Also, stop by the <emphasis>#ubuntu-virt</emphasis> IRC channel on <ulink "
3388
3456
"url=\"http://freenode.net/\">freenode</ulink> to discuss virtualization "
3389
3457
"technology in Ubuntu."
3392
#: serverguide/C/virtualization.xml:448(para)
3460
#: serverguide/C/virtualization.xml:462(para)
3394
3462
"Another good resource is the <ulink "
3395
3463
"url=\"https://help.ubuntu.com/community/KVM\">Ubuntu Wiki KVM</ulink> page."
3398
#: serverguide/C/virtualization.xml:454(para)
3466
#: serverguide/C/virtualization.xml:468(para)
3400
3468
"For information on Xen, including using Xen with libvirt, please see the "
3401
3469
"<ulink url=\"https://help.ubuntu.com/community/Xen\">Ubuntu Wiki Xen</ulink> "
3405
#: serverguide/C/virtualization.xml:464(title)
3473
#: serverguide/C/virtualization.xml:478(title)
3477
#: serverguide/C/virtualization.xml:479(para)
3479
"<ulink url=\"http://wiki.qemu.org/Main_Page\">Qemu</ulink> is a machine "
3480
"emulator that can run operating systems and programs for one machine on a "
3481
"different machine. Mostly it is not used as emulator but as virtualizer in "
3482
"collaboration with KVM or XEN kernel components. In that case it utilizes "
3483
"the virtualization technology of the hardware to virtualize guests."
3486
#: serverguide/C/virtualization.xml:483(para)
3488
"While qemu has a <ulink url=\"http://wiki.qemu.org/download/qemu-"
3489
"doc.html#sec_005finvocation\">command line interface</ulink> and a <ulink "
3490
"url=\"http://wiki.qemu.org/download/qemu-"
3491
"doc.html#pcsys_005fmonitor\">monitor</ulink> to interact with running guests "
3492
"those is rarely used that way for other means than development purposes. "
3493
"<link linkend=\"libvirt\">Libvirt</link> provides an abstraction from "
3494
"specific versions and hiperviors and encapsulates some workarounds and best "
3498
#: serverguide/C/virtualization.xml:488(title)
3499
msgid "Upgrading the machine type"
3502
#: serverguide/C/virtualization.xml:489(para)
3504
"This also is documented along some more constraints and considerations at "
3506
"url=\"https://wiki.ubuntu.com/QemuKVMMigration#Upgrade_machine_type\">Ubuntu "
3510
#: serverguide/C/virtualization.xml:490(para)
3512
"You might want to update your machine type of an existing defined guest to:"
3515
#: serverguide/C/virtualization.xml:492(para)
3516
msgid "to pick up latest security fixes and features"
3519
#: serverguide/C/virtualization.xml:493(para)
3520
msgid "continue using a guest created on a now unsupported release"
3523
#: serverguide/C/virtualization.xml:495(para)
3525
"In general it is recommended to update machine types when upgrading qemu/kvm "
3526
"to a new major version. But this can likely never be an automated task as "
3527
"this change is guest visible. The guest devices might change in appearance, "
3528
"new features will be announced to the guest and so on. Linux is usually very "
3529
"good at tolerating such changes, but it depends so much on the setup and "
3530
"workload of the guest that this has to be evaluated by the owner/admin of "
3531
"the system. Other operating systems where known to often have severe impacts "
3532
"by changing the hardware. Consider a machine type change similar to "
3533
"replacing all devices and firmware of a physical machine to the latest "
3534
"revision - all considerations that apply there apply to evaluating a machine "
3535
"type upgrade as well."
3538
#: serverguide/C/virtualization.xml:496(para)
3540
"As usual with major configuration changes it is wise to back up your guest "
3541
"definition and disk state to be able to do a rollback just in case. There is "
3542
"no integrated single command to update the machine type via virsh or similar "
3543
"tools. It is a normal part of your machine definition. And therefore updated "
3544
"the same way as most others."
3547
#: serverguide/C/virtualization.xml:498(para)
3548
msgid "First shutdown your machine and wait until it has reached that state."
3551
#: serverguide/C/virtualization.xml:499(screen)
3555
"virsh shutdown <yourmachine>\n"
3557
"virsh list --inactive\n"
3558
"# should now list your machine as \"shut off\"\n"
3562
#: serverguide/C/virtualization.xml:505(para)
3564
"Then edit the machine definition and find the type in the type tag at the "
3565
"machine attribute."
3568
#: serverguide/C/virtualization.xml:506(screen)
3572
"virsh edit <yourmachine>\n"
3573
"<type arch='x86_64' machine='pc-i440fx-xenial'>hvm</type>\n"
3577
#: serverguide/C/virtualization.xml:510(para)
3579
"Change this to the value you want. If you need to check what types are "
3580
"available via \"-M ?\" Note that while providing upstream types as "
3581
"convenience only Ubuntu types are supported. There you can also see what the "
3582
"current default would be. In general it is strongly recommended that you "
3583
"change to newer types if possible to exploit newer features, but also to "
3584
"benefit of bugfixes that only apply to the newer device virtualization."
3587
#: serverguide/C/virtualization.xml:511(screen)
3592
"# lists machine types, e.g.\n"
3593
"pc-i440fx-xenial Ubuntu 16.04 PC (i440FX + PIIX, 1996) (default)\n"
3598
#: serverguide/C/virtualization.xml:517(para)
3600
"After this you can start your guest again. You can check the current machine "
3601
"type from guest and host depending on your needs."
3604
#: serverguide/C/virtualization.xml:518(screen)
3608
"virsh start <yourmachine>\n"
3609
"# check from host, via dumping the active xml definition\n"
3610
"virsh dumpxml <yourmachine> | xmllint --xpath "
3611
"\"string(//domain/os/type/@machine)\" -\n"
3612
"# or from the guest via dmidecode\n"
3613
"sudo dmidecode | grep Product -A 1\n"
3614
" Product Name: Standard PC (i440FX + PIIX, 1996)\n"
3615
" Version: pc-i440fx-xenial\n"
3619
#: serverguide/C/virtualization.xml:527(para)
3621
"If you keep non-live definitions around like xml files remember to update "
3625
#: serverguide/C/virtualization.xml:532(title)
3406
3626
msgid "Cloud images and uvtool"
3409
#: serverguide/C/virtualization.xml:467(title) serverguide/C/security.xml:366(title) serverguide/C/samba.xml:23(title) serverguide/C/remote-administration.xml:18(title) serverguide/C/package-management.xml:18(title) serverguide/C/introduction.xml:11(title) serverguide/C/installation.xml:1374(title)
3629
#: serverguide/C/virtualization.xml:535(title) serverguide/C/security.xml:366(title) serverguide/C/samba.xml:23(title) serverguide/C/remote-administration.xml:18(title) serverguide/C/package-management.xml:18(title) serverguide/C/introduction.xml:11(title) serverguide/C/installation.xml:1374(title)
3410
3630
msgid "Introduction"
3411
3631
msgstr "Introduction"
3413
#: serverguide/C/virtualization.xml:469(para)
3633
#: serverguide/C/virtualization.xml:537(para)
3415
3635
"With Ubuntu being one of the most used operating systems on many cloud "
3416
3636
"platforms, the availability of stable and secure cloud images has become "
3676
#: serverguide/C/virtualization.xml:639(title)
3896
#: serverguide/C/virtualization.xml:707(title)
3677
3897
msgid "Get the list of running VMs"
3680
#: serverguide/C/virtualization.xml:640(para)
3900
#: serverguide/C/virtualization.xml:708(para)
3681
3901
msgid "You can get the list of VMs running on your system with this command:"
3684
#: serverguide/C/virtualization.xml:642(programlisting)
3904
#: serverguide/C/virtualization.xml:710(programlisting)
3687
3907
"$ uvt-kvm list\n"
3691
#: serverguide/C/virtualization.xml:647(title)
3911
#: serverguide/C/virtualization.xml:715(title)
3692
3912
msgid "Destroy your VM"
3695
#: serverguide/C/virtualization.xml:648(para)
3915
#: serverguide/C/virtualization.xml:716(para)
3696
3916
msgid "Once you are done with your VM, you can destroy it with:"
3699
#: serverguide/C/virtualization.xml:650(programlisting)
3919
#: serverguide/C/virtualization.xml:718(programlisting)
3701
3921
msgid "$ uvt-kvm destroy secondtest"
3704
#: serverguide/C/virtualization.xml:652(title)
3924
#: serverguide/C/virtualization.xml:720(title)
3705
3925
msgid "More uvt-kvm options"
3708
#: serverguide/C/virtualization.xml:654(para)
3928
#: serverguide/C/virtualization.xml:722(para)
3710
3930
"The following options can be used to change some of the characteristics of "
3711
3931
"the VM that you are creating:"
3714
#: serverguide/C/virtualization.xml:657(para)
3934
#: serverguide/C/virtualization.xml:725(para)
3715
3935
msgid "--memory : Amount of RAM in megabytes. Default: 512."
3718
#: serverguide/C/virtualization.xml:658(para)
3938
#: serverguide/C/virtualization.xml:726(para)
3719
3939
msgid "--disk : Size of the OS disk in gigabytes. Default: 8."
3722
#: serverguide/C/virtualization.xml:659(para)
3942
#: serverguide/C/virtualization.xml:727(para)
3723
3943
msgid "--cpu : Number of CPU cores. Default: 1."
3726
#: serverguide/C/virtualization.xml:662(para)
3946
#: serverguide/C/virtualization.xml:730(para)
3728
3948
"Some other parameters will have an impact on the cloud-init configuration:"
3731
#: serverguide/C/virtualization.xml:664(para)
3951
#: serverguide/C/virtualization.xml:732(para)
3733
3953
"--password password : Allow login to the VM using the Ubuntu account and "
3734
3954
"this provided password."
3737
#: serverguide/C/virtualization.xml:665(para)
3957
#: serverguide/C/virtualization.xml:733(para)
3739
3959
"--run-script-once script_file : Run script_file as root on the VM the first "
3740
3960
"time it is booted, but never again."
3743
#: serverguide/C/virtualization.xml:666(para)
3963
#: serverguide/C/virtualization.xml:734(para)
3745
3965
"--packages package_list : Install the comma-separated packages specified in "
3746
3966
"package_list on first boot."
3749
#: serverguide/C/virtualization.xml:669(para)
3969
#: serverguide/C/virtualization.xml:737(para)
3751
3971
"A complete description of all available modifiers is available in the "
3752
3972
"manpage of uvt-kvm."
3755
#: serverguide/C/virtualization.xml:676(para)
3975
#: serverguide/C/virtualization.xml:744(para)
3757
3977
"If you are interested in learning more, have questions or suggestions, "
3758
3978
"please contact the Ubuntu Server Team at:"
3761
#: serverguide/C/virtualization.xml:681(para)
3981
#: serverguide/C/virtualization.xml:749(para)
3762
3982
msgid "IRC: #ubuntu-server on freenode"
3765
#: serverguide/C/virtualization.xml:685(para)
3985
#: serverguide/C/virtualization.xml:753(para)
3767
3987
"Mailing list: <ulink url=\"https://lists.ubuntu.com/mailman/listinfo/ubuntu-"
3768
3988
"server\">ubuntu-server at lists.ubuntu.com</ulink>"
3771
#: serverguide/C/virtualization.xml:694(title)
3991
#: serverguide/C/virtualization.xml:762(title)
3772
3992
msgid "Ubuntu Cloud"
3775
#: serverguide/C/virtualization.xml:696(para)
3995
#: serverguide/C/virtualization.xml:764(para)
3777
3997
"<application>Cloud computing</application> is a computing model that allows "
3778
3998
"vast pools of resources to be allocated on-demand. These resources such as "
4066
4286
"the desired architecture:"
4069
#: serverguide/C/virtualization.xml:988(command)
4289
#: serverguide/C/virtualization.xml:1056(command)
4070
4290
msgid "lxc image info ubuntu:lts/arm64"
4073
#: serverguide/C/virtualization.xml:993(para)
4293
#: serverguide/C/virtualization.xml:1061(para)
4074
4294
msgid "Now, let's start our first container:"
4077
#: serverguide/C/virtualization.xml:998(command)
4297
#: serverguide/C/virtualization.xml:1066(command)
4078
4298
msgid "lxc launch ubuntu:xenial x1"
4081
#: serverguide/C/virtualization.xml:1003(para)
4301
#: serverguide/C/virtualization.xml:1071(para)
4083
4303
"This will download the official current Xenial cloud image for your current "
4084
4304
"architecture, then create a container using that image, and finally start "
4085
4305
"it. Once the command returns, you can see it using:"
4088
#: serverguide/C/virtualization.xml:1010(command)
4308
#: serverguide/C/virtualization.xml:1078(command)
4089
4309
msgid "lxc list lxc info x1"
4092
#: serverguide/C/virtualization.xml:1016(para)
4312
#: serverguide/C/virtualization.xml:1084(para)
4093
4313
msgid "and open a shell in it using:"
4096
#: serverguide/C/virtualization.xml:1021(command)
4316
#: serverguide/C/virtualization.xml:1089(command)
4097
4317
msgid "lxc exec x1 bash"
4100
#: serverguide/C/virtualization.xml:1026(para)
4320
#: serverguide/C/virtualization.xml:1094(para)
4102
4322
"The try-it page gives a full synopsis of the commands you can use to "
4103
4323
"administer containers."
4106
#: serverguide/C/virtualization.xml:1031(para)
4326
#: serverguide/C/virtualization.xml:1099(para)
4108
4328
"Now that the 'xenial' image has been downloaded, it will be kept in sync "
4109
4329
"until no new containers have been created based on it for (by default) 10 "
4110
4330
"days. After that, it will be deleted."
4113
#: serverguide/C/virtualization.xml:1039(title)
4333
#: serverguide/C/virtualization.xml:1107(title)
4114
4334
msgid "LXD Server Configuration"
4117
#: serverguide/C/virtualization.xml:1041(para)
4337
#: serverguide/C/virtualization.xml:1109(para)
4119
4339
"By default, LXD is socket activated and configured to listen only on a local "
4120
4340
"UNIX socket. While LXD may not be running when you first look at the process "
4121
4341
"listing, any LXC command will start it up. For instance:"
4124
#: serverguide/C/virtualization.xml:1048(command)
4344
#: serverguide/C/virtualization.xml:1116(command)
4125
4345
msgid "lxc list"
4128
#: serverguide/C/virtualization.xml:1053(para)
4348
#: serverguide/C/virtualization.xml:1121(para)
4130
4350
"This will create your client certificate and contact the LXD server for a "
4131
4351
"list of containers. To make the server accessible over the network you can "
4132
4352
"set the http port using:"
4135
#: serverguide/C/virtualization.xml:1060(command)
4355
#: serverguide/C/virtualization.xml:1128(command)
4136
4356
msgid "lxc config set core.https_address :8443"
4139
#: serverguide/C/virtualization.xml:1065(para)
4359
#: serverguide/C/virtualization.xml:1133(para)
4140
4360
msgid "This will tell LXD to listen to port 8843 on all addresses."
4143
#: serverguide/C/virtualization.xml:1069(title)
4363
#: serverguide/C/virtualization.xml:1137(title)
4144
4364
msgid "Authentication"
4147
#: serverguide/C/virtualization.xml:1071(para)
4367
#: serverguide/C/virtualization.xml:1139(para)
4149
4369
"By default, LXD will allow all members of group 'lxd' (which by default "
4150
4370
"includes all members of group admin) to talk to it over the UNIX socket. "
4355
4575
"must be set to true:"
4358
#: serverguide/C/virtualization.xml:1289(command)
4578
#: serverguide/C/virtualization.xml:1357(command)
4359
4579
msgid "lxc config set container1 security.nesting true"
4362
#: serverguide/C/virtualization.xml:1294(para)
4582
#: serverguide/C/virtualization.xml:1362(para)
4363
4583
msgid "Once this is done, container1 will be able to start sub-containers."
4366
#: serverguide/C/virtualization.xml:1298(para)
4586
#: serverguide/C/virtualization.xml:1366(para)
4368
4588
"In order to run unprivileged (the default in LXD) containers nested under an "
4369
4589
"unprivileged container, you will need to ensure a wide enough UID mapping. "
4370
4590
"Please see the 'UID mapping' section below."
4373
#: serverguide/C/virtualization.xml:1304(title)
4593
#: serverguide/C/virtualization.xml:1372(title)
4377
#: serverguide/C/virtualization.xml:1306(para)
4597
#: serverguide/C/virtualization.xml:1374(para)
4379
4599
"In order to facilitate running docker containers inside a LXD container, a "
4380
4600
"'docker' profile is provided. To launch a new container with the docker "
4381
4601
"profile, you can run:"
4384
#: serverguide/C/virtualization.xml:1313(command)
4604
#: serverguide/C/virtualization.xml:1381(command)
4385
4605
msgid "lxc launch xenial container1 -p default -p docker"
4388
#: serverguide/C/virtualization.xml:1318(para)
4608
#: serverguide/C/virtualization.xml:1386(para)
4390
4610
"Note that currently the docker package in Ubuntu 16.04 is patched to "
4391
4611
"facilitate running in a container. This support is expected to land upstream "
4395
#: serverguide/C/virtualization.xml:1324(para)
4615
#: serverguide/C/virtualization.xml:1392(para)
4397
4617
"Note that 'cgroup namespace' support is also required. This is available in "
4398
4618
"the 16.04 kernel as well as in the 4.6 upstream source."
4401
#: serverguide/C/virtualization.xml:1333(title)
4621
#: serverguide/C/virtualization.xml:1401(title)
4405
#: serverguide/C/virtualization.xml:1335(para)
4625
#: serverguide/C/virtualization.xml:1403(para)
4407
4627
"LXD supports flexible constraints on the resources which containers can "
4408
4628
"consume. The limits come in the following categories:"
4411
#: serverguide/C/virtualization.xml:1342(para)
4631
#: serverguide/C/virtualization.xml:1410(para)
4412
4632
msgid "CPU: limit cpu available to the container in several ways."
4415
#: serverguide/C/virtualization.xml:1345(para)
4635
#: serverguide/C/virtualization.xml:1413(para)
4416
4636
msgid "Disk: configure the priority of I/O requests under load"
4419
#: serverguide/C/virtualization.xml:1348(para)
4639
#: serverguide/C/virtualization.xml:1416(para)
4420
4640
msgid "RAM: configure memory and swap availability"
4423
#: serverguide/C/virtualization.xml:1351(para)
4643
#: serverguide/C/virtualization.xml:1419(para)
4424
4644
msgid "Network: configure the network priority under load"
4427
#: serverguide/C/virtualization.xml:1354(para)
4647
#: serverguide/C/virtualization.xml:1422(para)
4428
4648
msgid "Processes: limit the number of concurrent processes in the container."
4431
#: serverguide/C/virtualization.xml:1358(para)
4651
#: serverguide/C/virtualization.xml:1426(para)
4433
4653
"For a full list of limits known to LXD, see <ulink "
4434
4654
"url=\"https://github.com/lxc/lxd/blob/master/doc/configuration.md\"> the "
4435
4655
"configuration documentation</ulink>."
4438
#: serverguide/C/virtualization.xml:1366(title)
4658
#: serverguide/C/virtualization.xml:1434(title)
4439
4659
msgid "UID mappings and Privileged containers"
4442
#: serverguide/C/virtualization.xml:1368(para)
4662
#: serverguide/C/virtualization.xml:1436(para)
4444
4664
"By default, LXD creates unprivileged containers. This means that root in the "
4445
4665
"container is a non-root UID on the host. It is privileged against the "
4528
4748
".html\"> the lxc.container.conf(5) manual page</ulink>."
4531
#: serverguide/C/virtualization.xml:1457(title)
4751
#: serverguide/C/virtualization.xml:1525(title)
4532
4752
msgid "Images and containers"
4535
#: serverguide/C/virtualization.xml:1459(para)
4755
#: serverguide/C/virtualization.xml:1527(para)
4537
4757
"LXD is image based. When you create your first container, you will generally "
4538
4758
"do so using an existing image. LXD comes pre-configured with three default "
4539
4759
"image remotes:"
4542
#: serverguide/C/virtualization.xml:1467(para)
4762
#: serverguide/C/virtualization.xml:1535(para)
4544
4764
"ubuntu: This is a <ulink "
4545
4765
"url=\"https://launchpad.net/simplestreams\">simplestreams-based</ulink> "
4546
4766
"remote serving released ubuntu cloud images."
4549
#: serverguide/C/virtualization.xml:1472(para)
4769
#: serverguide/C/virtualization.xml:1540(para)
4551
4771
"ubuntu-daily: This is another simplestreams based remote which serves "
4552
4772
"'daily' ubuntu cloud images. These provide quicker but potentially less "
4553
4773
"stable images."
4556
#: serverguide/C/virtualization.xml:1478(para)
4776
#: serverguide/C/virtualization.xml:1546(para)
4558
4778
"images: This is a remote publishing best-effort container images for many "
4559
4779
"distributions, created using community-provided build scripts."
4562
#: serverguide/C/virtualization.xml:1483(para)
4782
#: serverguide/C/virtualization.xml:1551(para)
4563
4783
msgid "To view the images available on one of these servers, you can use:"
4566
#: serverguide/C/virtualization.xml:1493(para)
4786
#: serverguide/C/virtualization.xml:1561(para)
4568
4788
"Most of the images are known by several aliases for easier reference. To see "
4569
4789
"the full list of aliases, you can use"
4572
#: serverguide/C/virtualization.xml:1499(command)
4792
#: serverguide/C/virtualization.xml:1567(command)
4573
4793
msgid "lxc image alias list images:"
4576
#: serverguide/C/virtualization.xml:1504(para)
4796
#: serverguide/C/virtualization.xml:1572(para)
4578
4798
"Any alias or image fingerprint can be used to specify how to create the new "
4579
4799
"container. For instance, to create an amd64 Ubuntu 14.04 container, some "
4583
#: serverguide/C/virtualization.xml:1511(command)
4803
#: serverguide/C/virtualization.xml:1579(command)
4585
4805
"lxc launch ubuntu:14.04 trusty1 lxc launch ubuntu:trusty trusty1 lxc launch "
4586
4806
"ubuntu:trusty/amd64 trusty1 lxc launch ubuntu:lts trusty1"
4589
#: serverguide/C/virtualization.xml:1519(para)
4809
#: serverguide/C/virtualization.xml:1587(para)
4590
4810
msgid "The 'lts' alias always refers to the latest released LTS image."
4593
#: serverguide/C/virtualization.xml:1523(title) serverguide/C/virtualization.xml:2352(title)
4813
#: serverguide/C/virtualization.xml:1591(title) serverguide/C/virtualization.xml:2420(title)
4594
4814
msgid "Snapshots"
4597
#: serverguide/C/virtualization.xml:1525(para)
4817
#: serverguide/C/virtualization.xml:1593(para)
4599
4819
"Containers can be renamed and live-migrated using the 'lxc move' command:"
4602
#: serverguide/C/virtualization.xml:1530(command)
4822
#: serverguide/C/virtualization.xml:1598(command)
4603
4823
msgid "lxc move c1 final-beta"
4606
#: serverguide/C/virtualization.xml:1535(para)
4826
#: serverguide/C/virtualization.xml:1603(para)
4607
4827
msgid "They can also be snapshotted:"
4610
#: serverguide/C/virtualization.xml:1540(command)
4830
#: serverguide/C/virtualization.xml:1608(command)
4611
4831
msgid "lxc snapshot c1 YYYY-MM-DD"
4614
#: serverguide/C/virtualization.xml:1545(para)
4834
#: serverguide/C/virtualization.xml:1613(para)
4615
4835
msgid "Later changes to c1 can then be reverted by restoring the snapshot:"
4618
#: serverguide/C/virtualization.xml:1550(command)
4838
#: serverguide/C/virtualization.xml:1618(command)
4619
4839
msgid "lxc restore u1 YYYY-MM-DD"
4622
#: serverguide/C/virtualization.xml:1555(para)
4842
#: serverguide/C/virtualization.xml:1623(para)
4624
4844
"New containers can also be created by copying a container or snapshot:"
4627
#: serverguide/C/virtualization.xml:1560(command)
4847
#: serverguide/C/virtualization.xml:1628(command)
4628
4848
msgid "lxc copy u1/YYYY-MM-DD testcontainer"
4631
#: serverguide/C/virtualization.xml:1567(title)
4851
#: serverguide/C/virtualization.xml:1635(title)
4632
4852
msgid "Publishing images"
4635
#: serverguide/C/virtualization.xml:1569(para)
4855
#: serverguide/C/virtualization.xml:1637(para)
4637
4857
"When a container or container snapshot is ready for consumption by others, "
4638
4858
"it can be published as a new image using;"
4641
#: serverguide/C/virtualization.xml:1575(command)
4861
#: serverguide/C/virtualization.xml:1643(command)
4642
4862
msgid "lxc publish u1/YYYY-MM-DD --alias foo-2.0"
4645
#: serverguide/C/virtualization.xml:1580(para)
4865
#: serverguide/C/virtualization.xml:1648(para)
4647
4867
"The published image will be private by default, meaning that LXD will not "
4648
4868
"allow clients without a trusted certificate to see them. If the image is "
15609
15895
"installation\" at the end of this document for more."
15612
#: serverguide/C/network-config.xml:1654(para)
15898
#: serverguide/C/network-config.xml:1692(para)
15614
15900
"As usual with tunings you have to know your system and workload really well -"
15615
15901
" so please verify any tunings with workloads matching your real use case."
15618
#: serverguide/C/network-config.xml:1661(para)
15904
#: serverguide/C/network-config.xml:1699(para)
15620
15906
"DPDK is a fast evolving project. In any case of a search for support and "
15621
15907
"further guides it is highly recommended to first check if they apply to the "
15622
15908
"current version."
15625
#: serverguide/C/network-config.xml:1668(ulink)
15911
#: serverguide/C/network-config.xml:1707(ulink)
15626
15912
msgid "DPDK Mailing Lists"
15629
#: serverguide/C/network-config.xml:1672(para)
15915
#: serverguide/C/network-config.xml:1711(para)
15631
15917
"For OpenVswitch-DPDK <ulink url=\"http://openvswitch.org/mlists\">OpenStack "
15632
15918
"Mailing Lists</ulink>"
15635
#: serverguide/C/network-config.xml:1677(para)
15921
#: serverguide/C/network-config.xml:1716(para)
15637
15923
"Known issues in <ulink "
15638
15924
"url=\"https://bugs.launchpad.net/ubuntu/+source/dpdk\">DPDK Launchpad "
15639
15925
"Area</ulink>"
15642
#: serverguide/C/network-config.xml:1682(para)
15928
#: serverguide/C/network-config.xml:1721(para)
15643
15929
msgid "Join the IRC channels #DPDK or #openvswitch on freenode."
15646
#: serverguide/C/network-config.xml:1696(ulink)
15932
#: serverguide/C/network-config.xml:1727(para)
15934
"Issues are often due to missing small details in the general setup. Later "
15935
"on, these missing details cause problems which can be hard to track down to "
15936
"their root cause. A common case seems to be the \"could not open network "
15937
"device dpdk0 (No such device)\" issue. This occurs rather late when setting "
15938
"up a port in Open vSwitch with DPDK. But the root cause most of the time is "
15939
"very early in the setup and initialization. Here an example how a proper "
15940
"initialization of a device looks - this can be found in the syslog/journal "
15941
"when starting Open vSwitch with DPDK enabled."
15944
#: serverguide/C/network-config.xml:1738(programlisting)
15948
"ovs-ctl[3560]: EAL: PCI device 0000:04:00.1 on NUMA socket 0\n"
15949
"ovs-ctl[3560]: EAL: probe driver: 8086:1528 rte_ixgbe_pmd\n"
15950
"ovs-ctl[3560]: EAL: PCI memory mapped at 0x7f2140000000\n"
15951
"ovs-ctl[3560]: EAL: PCI memory mapped at 0x7f2140200000\n"
15955
#: serverguide/C/network-config.xml:1745(para)
15957
"If this is missing, either by ignored cards, failed initialization or other "
15958
"reasons, later on there will be no DPDK device to refer to. Unfortunately "
15959
"the logging is spread across syslog/journal and the openvswitch log. To "
15960
"allow some cross checking here an example what can be found in these logs, "
15961
"relative to the entered command."
15964
#: serverguide/C/network-config.xml:1753(programlisting)
15968
"#Note: This log was taken with dpdk 2.2 and openvswitch 2.5\n"
15970
"CMD: that you enter\n"
15971
"SYSLOG: (Inlcuding EAL and OVS Messages)\n"
15972
"OVS-LOG: (Openvswitch messages)\n"
15975
"Bind an interface to DPDK UIO drivers, make Hugepages available, enable DPDK "
15978
"CMD: sudo service openvswitch-switch restart\n"
15981
"2016-01-22T08:58:31.372Z|00003|daemon_unix(monitor)|INFO|pid 3329 died, "
15982
"killed (Terminated), exiting\n"
15983
"2016-01-22T08:58:33.377Z|00002|vlog|INFO|opened log file "
15984
"/var/log/openvswitch/ovs-vswitchd.log\n"
15985
"2016-01-22T08:58:33.381Z|00003|ovs_numa|INFO|Discovered 12 CPU cores on NUMA "
15987
"2016-01-22T08:58:33.381Z|00004|ovs_numa|INFO|Discovered 1 NUMA nodes and 12 "
15990
"22T08:58:33.381Z|00005|reconnect|INFO|unix:/var/run/openvswitch/db.sock: "
15993
"22T08:58:33.383Z|00006|reconnect|INFO|unix:/var/run/openvswitch/db.sock: "
15995
"2016-01-22T08:58:33.386Z|00007|bridge|INFO|ovs-vswitchd (Open vSwitch) "
15999
"systemd[1]: Stopping Open vSwitch...\n"
16000
"systemd[1]: Stopped Open vSwitch.\n"
16001
"systemd[1]: Stopping Open vSwitch Internal Unit...\n"
16002
"ovs-ctl[3541]: * Killing ovs-vswitchd (3329)\n"
16003
"ovs-ctl[3541]: * Killing ovsdb-server (3318)\n"
16004
"systemd[1]: Stopped Open vSwitch Internal Unit.\n"
16005
"systemd[1]: Starting Open vSwitch Internal Unit...\n"
16006
"ovs-ctl[3560]: * Starting ovsdb-server\n"
16007
"ovs-vsctl: ovs|00001|vsctl|INFO|Called as ovs-vsctl --no-wait -- init -- set "
16008
"Open_vSwitch . db-version=7.12.1\n"
16009
"ovs-vsctl: ovs|00001|vsctl|INFO|Called as ovs-vsctl --no-wait set "
16010
"Open_vSwitch . ovs-version=2.5.0 \"external-ids:system-id=\\\"e7c5ba80-bb14-"
16011
"45c1-b8eb-628f3ad03903\\\"\" \"system-type=\\\"Ubuntu\\\"\" \"system-"
16012
"version=\\\"16.04-xenial\\\"\"\n"
16013
"ovs-ctl[3560]: * Configuring Open vSwitch system IDs\n"
16014
"ovs-ctl[3560]: 2016-01-22T08:58:31Z|00001|dpdk|INFO|No -vhost_sock_dir "
16015
"provided - defaulting to /var/run/openvswitch\n"
16016
"ovs-vswitchd: ovs|00001|dpdk|INFO|No -vhost_sock_dir provided - defaulting "
16017
"to /var/run/openvswitch\n"
16018
"ovs-ctl[3560]: EAL: Detected lcore 0 as core 0 on socket 0\n"
16019
"ovs-ctl[3560]: EAL: Detected lcore 1 as core 1 on socket 0\n"
16020
"ovs-ctl[3560]: EAL: Detected lcore 2 as core 2 on socket 0\n"
16021
"ovs-ctl[3560]: EAL: Detected lcore 3 as core 3 on socket 0\n"
16022
"ovs-ctl[3560]: EAL: Detected lcore 4 as core 4 on socket 0\n"
16023
"ovs-ctl[3560]: EAL: Detected lcore 5 as core 5 on socket 0\n"
16024
"ovs-ctl[3560]: EAL: Detected lcore 6 as core 0 on socket 0\n"
16025
"ovs-ctl[3560]: EAL: Detected lcore 7 as core 1 on socket 0\n"
16026
"ovs-ctl[3560]: EAL: Detected lcore 8 as core 2 on socket 0\n"
16027
"ovs-ctl[3560]: EAL: Detected lcore 9 as core 3 on socket 0\n"
16028
"ovs-ctl[3560]: EAL: Detected lcore 10 as core 4 on socket 0\n"
16029
"ovs-ctl[3560]: EAL: Detected lcore 11 as core 5 on socket 0\n"
16030
"ovs-ctl[3560]: EAL: Support maximum 128 logical core(s) by configuration.\n"
16031
"ovs-ctl[3560]: EAL: Detected 12 lcore(s)\n"
16032
"ovs-ctl[3560]: EAL: VFIO modules not all loaded, skip VFIO support...\n"
16033
"ovs-ctl[3560]: EAL: Setting up physically contiguous memory...\n"
16034
"ovs-ctl[3560]: EAL: Ask a virtual area of 0x100000000 bytes\n"
16035
"ovs-ctl[3560]: EAL: Virtual area found at 0x7f2040000000 (size = "
16037
"ovs-ctl[3560]: EAL: Requesting 4 pages of size 1024MB from socket 0\n"
16038
"ovs-ctl[3560]: EAL: TSC frequency is ~2397202 KHz\n"
16039
"ovs-vswitchd[3592]: EAL: TSC frequency is ~2397202 KHz\n"
16040
"ovs-vswitchd[3592]: EAL: Master lcore 0 is ready (tid=fc6cbb00;cpuset=[0])\n"
16041
"ovs-vswitchd[3592]: EAL: PCI device 0000:04:00.0 on NUMA socket 0\n"
16042
"ovs-vswitchd[3592]: EAL: probe driver: 8086:1528 rte_ixgbe_pmd\n"
16043
"ovs-vswitchd[3592]: EAL: Not managed by a supported kernel driver, "
16045
"ovs-vswitchd[3592]: EAL: PCI device 0000:04:00.1 on NUMA socket 0\n"
16046
"ovs-vswitchd[3592]: EAL: probe driver: 8086:1528 rte_ixgbe_pmd\n"
16047
"ovs-vswitchd[3592]: EAL: PCI memory mapped at 0x7f2140000000\n"
16048
"ovs-vswitchd[3592]: EAL: PCI memory mapped at 0x7f2140200000\n"
16049
"ovs-ctl[3560]: EAL: Master lcore 0 is ready (tid=fc6cbb00;cpuset=[0])\n"
16050
"ovs-ctl[3560]: EAL: PCI device 0000:04:00.0 on NUMA socket 0\n"
16051
"ovs-ctl[3560]: EAL: probe driver: 8086:1528 rte_ixgbe_pmd\n"
16052
"ovs-ctl[3560]: EAL: Not managed by a supported kernel driver, skipped\n"
16053
"ovs-ctl[3560]: EAL: PCI device 0000:04:00.1 on NUMA socket 0\n"
16054
"ovs-ctl[3560]: EAL: probe driver: 8086:1528 rte_ixgbe_pmd\n"
16055
"ovs-ctl[3560]: EAL: PCI memory mapped at 0x7f2140000000\n"
16056
"ovs-ctl[3560]: EAL: PCI memory mapped at 0x7f2140200000\n"
16057
"ovs-vswitchd[3592]: PMD: eth_ixgbe_dev_init(): MAC: 4, PHY: 3\n"
16058
"ovs-vswitchd[3592]: PMD: eth_ixgbe_dev_init(): port 0 vendorID=0x8086 "
16059
"deviceID=0x1528\n"
16060
"ovs-ctl[3560]: PMD: eth_ixgbe_dev_init(): MAC: 4, PHY: 3\n"
16061
"ovs-ctl[3560]: PMD: eth_ixgbe_dev_init(): port 0 vendorID=0x8086 "
16062
"deviceID=0x1528\n"
16063
"ovs-ctl[3560]: Zone 0: name:<RG_MP_log_history>, phys:0x83fffdec0, "
16064
"len:0x2080, virt:0x7f213fffdec0, socket_id:0, flags:0\n"
16065
"ovs-ctl[3560]: Zone 1: name:<MP_log_history>, phys:0x83fd73d40, "
16066
"len:0x28a0c0, virt:0x7f213fd73d40, socket_id:0, flags:0\n"
16067
"ovs-ctl[3560]: Zone 2: name:<rte_eth_dev_data>, phys:0x83fd43380, "
16068
"len:0x2f700, virt:0x7f213fd43380, socket_id:0, flags:0\n"
16069
"ovs-ctl[3560]: * Starting ovs-vswitchd\n"
16070
"ovs-ctl[3560]: * Enabling remote OVSDB managers\n"
16071
"systemd[1]: Started Open vSwitch Internal Unit.\n"
16072
"systemd[1]: Starting Open vSwitch...\n"
16073
"systemd[1]: Started Open vSwitch.\n"
16076
"CMD: sudo ovs-vsctl add-br ovsdpdkbr0 -- set bridge ovsdpdkbr0 "
16077
"datapath_type=netdev\n"
16080
"2016-01-22T08:58:56.344Z|00008|memory|INFO|37256 kB peak resident set size "
16081
"after 24.5 seconds\n"
16082
"2016-01-22T08:58:56.346Z|00009|ofproto_dpif|INFO|netdev@ovs-netdev: Datapath "
16083
"supports recirculation\n"
16084
"2016-01-22T08:58:56.346Z|00010|ofproto_dpif|INFO|netdev@ovs-netdev: MPLS "
16085
"label stack length probed as 3\n"
16086
"2016-01-22T08:58:56.346Z|00011|ofproto_dpif|INFO|netdev@ovs-netdev: Datapath "
16087
"supports unique flow ids\n"
16088
"2016-01-22T08:58:56.346Z|00012|ofproto_dpif|INFO|netdev@ovs-netdev: Datapath "
16089
"does not support ct_state\n"
16090
"2016-01-22T08:58:56.346Z|00013|ofproto_dpif|INFO|netdev@ovs-netdev: Datapath "
16091
"does not support ct_zone\n"
16092
"2016-01-22T08:58:56.346Z|00014|ofproto_dpif|INFO|netdev@ovs-netdev: Datapath "
16093
"does not support ct_mark\n"
16094
"2016-01-22T08:58:56.346Z|00015|ofproto_dpif|INFO|netdev@ovs-netdev: Datapath "
16095
"does not support ct_label\n"
16096
"2016-01-22T08:58:56.360Z|00016|bridge|INFO|bridge ovsdpdkbr0: added "
16097
"interface ovsdpdkbr0 on port 65534\n"
16098
"2016-01-22T08:58:56.361Z|00017|bridge|INFO|bridge ovsdpdkbr0: using datapath "
16099
"ID 00005a4a1ed0a14d\n"
16100
"2016-01-22T08:58:56.361Z|00018|connmgr|INFO|ovsdpdkbr0: added service "
16101
"controller \"punix:/var/run/openvswitch/ovsdpdkbr0.mgmt\"\n"
16104
"ovs-vsctl: ovs|00001|vsctl|INFO|Called as ovs-vsctl add-br ovsdpdkbr0 -- set "
16105
"bridge ovsdpdkbr0 datapath_type=netdev\n"
16106
"systemd-udevd[3607]: Could not generate persistent MAC address for ovs-"
16107
"netdev: No such file or directory\n"
16108
"kernel: [50165.886554] device ovs-netdev entered promiscuous mode\n"
16109
"kernel: [50165.901261] device ovsdpdkbr0 entered promiscuous mode\n"
16112
"CMD: sudo ovs-vsctl add-port ovsdpdkbr0 dpdk0 -- set Interface dpdk0 "
16116
"2016-01-22T08:59:06.369Z|00019|memory|INFO|peak resident set size grew 155% "
16117
"in last 10.0 seconds, from 37256 kB to 95008 kB\n"
16118
"2016-01-22T08:59:06.369Z|00020|memory|INFO|handlers:4 ports:1 revalidators:2 "
16120
"2016-01-22T08:59:30.989Z|00021|dpdk|INFO|Port 0: 8c:dc:d4:b3:6d:e9\n"
16121
"2016-01-22T08:59:31.520Z|00022|dpdk|INFO|Port 0: 8c:dc:d4:b3:6d:e9\n"
16122
"2016-01-22T08:59:31.521Z|00023|dpif_netdev|INFO|Created 1 pmd threads on "
16124
"2016-01-22T08:59:31.522Z|00001|dpif_netdev(pmd16)|INFO|Core 0 processing "
16126
"2016-01-22T08:59:31.522Z|00024|bridge|INFO|bridge ovsdpdkbr0: added "
16127
"interface dpdk0 on port 1\n"
16128
"2016-01-22T08:59:31.522Z|00025|bridge|INFO|bridge ovsdpdkbr0: using datapath "
16129
"ID 00008cdcd4b36de9\n"
16130
"2016-01-22T08:59:31.523Z|00002|dpif_netdev(pmd16)|INFO|Core 0 processing "
16134
"ovs-vsctl: ovs|00001|vsctl|INFO|Called as ovs-vsctl add-port ovsdpdkbr0 "
16135
"dpdk0 -- set Interface dpdk0 type=dpdk\n"
16136
"ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a79ebc0 "
16137
"hw_ring=0x7f211a7a6c00 dma_addr=0x81a7a6c00\n"
16138
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Using simple tx code path\n"
16139
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx enabled.\n"
16140
"ovs-vswitchd[3595]: PMD: ixgbe_dev_rx_queue_setup(): sw_ring=0x7f211a78a6c0 "
16141
"sw_sc_ring=0x7f211a786580 hw_ring=0x7f211a78e800 dma_addr=0x81a78e800\n"
16142
"ovs-vswitchd[3595]: PMD: ixgbe_set_rx_function(): Vector rx enabled, please "
16143
"make sure RX burst size no less than 4 (port=0).\n"
16144
"ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a79ebc0 "
16145
"hw_ring=0x7f211a7a6c00 dma_addr=0x81a7a6c00\n"
16146
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Using simple tx code path\n"
16147
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx enabled.\n"
16148
"ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a76e4c0 "
16149
"hw_ring=0x7f211a776500 dma_addr=0x81a776500\n"
16150
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Using simple tx code path\n"
16151
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx enabled.\n"
16152
"ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a756440 "
16153
"hw_ring=0x7f211a75e480 dma_addr=0x81a75e480\n"
16154
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Using simple tx code path\n"
16155
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx enabled.\n"
16156
"ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a73e3c0 "
16157
"hw_ring=0x7f211a746400 dma_addr=0x81a746400\n"
16158
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Using simple tx code path\n"
16159
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx enabled.\n"
16160
"ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a726340 "
16161
"hw_ring=0x7f211a72e380 dma_addr=0x81a72e380\n"
16162
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Using simple tx code path\n"
16163
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx enabled.\n"
16164
"ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a70e2c0 "
16165
"hw_ring=0x7f211a716300 dma_addr=0x81a716300\n"
16166
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Using simple tx code path\n"
16167
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx enabled.\n"
16168
"ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a6f6240 "
16169
"hw_ring=0x7f211a6fe280 dma_addr=0x81a6fe280\n"
16170
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Using simple tx code path\n"
16171
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx enabled.\n"
16172
"ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a6de1c0 "
16173
"hw_ring=0x7f211a6e6200 dma_addr=0x81a6e6200\n"
16174
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Using simple tx code path\n"
16175
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx enabled.\n"
16176
"ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a6c6140 "
16177
"hw_ring=0x7f211a6ce180 dma_addr=0x81a6ce180\n"
16178
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Using simple tx code path\n"
16179
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx enabled.\n"
16180
"ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a6ae0c0 "
16181
"hw_ring=0x7f211a6b6100 dma_addr=0x81a6b6100\n"
16182
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Using simple tx code path\n"
16183
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx enabled.\n"
16184
"ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a696040 "
16185
"hw_ring=0x7f211a69e080 dma_addr=0x81a69e080\n"
16186
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Using simple tx code path\n"
16187
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx enabled.\n"
16188
"ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a67dfc0 "
16189
"hw_ring=0x7f211a686000 dma_addr=0x81a686000\n"
16190
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Using simple tx code path\n"
16191
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx enabled.\n"
16192
"ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a665e40 "
16193
"hw_ring=0x7f211a66de80 dma_addr=0x81a66de80\n"
16194
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Using simple tx code path\n"
16195
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx enabled.\n"
16196
"ovs-vswitchd[3595]: PMD: ixgbe_dev_rx_queue_setup(): sw_ring=0x7f211a78a6c0 "
16197
"sw_sc_ring=0x7f211a786580 hw_ring=0x7f211a78e800 dma_addr=0x81a78e800\n"
16198
"ovs-vswitchd[3595]: PMD: ixgbe_set_rx_function(): Vector rx enabled, please "
16199
"make sure RX burst size no less than 4 (port=0).\n"
16202
"CMD: sudo ovs-vsctl add-port ovsdpdkbr0 vhost-user-1 -- set Interface vhost-"
16203
"user-1 type=dpdkvhostuser\n"
16206
"2016-01-22T09:00:35.145Z|00026|dpdk|INFO|Socket /var/run/openvswitch/vhost-"
16207
"user-1 created for vhost-user port vhost-user-1\n"
16208
"2016-01-22T09:00:35.145Z|00003|dpif_netdev(pmd16)|INFO|Core 0 processing "
16210
"2016-01-22T09:00:35.145Z|00004|dpif_netdev(pmd16)|INFO|Core 0 processing "
16211
"port 'vhost-user-1'\n"
16212
"2016-01-22T09:00:35.145Z|00027|bridge|INFO|bridge ovsdpdkbr0: added "
16213
"interface vhost-user-1 on port 2\n"
16216
"ovs-vsctl: ovs|00001|vsctl|INFO|Called as ovs-vsctl add-port ovsdpdkbr0 "
16217
"vhost-user-1 -- set Interface vhost-user-1 type=dpdkvhostuser\n"
16218
"ovs-vswitchd[3595]: VHOST_CONFIG: socket created, fd:46\n"
16219
"ovs-vswitchd[3595]: VHOST_CONFIG: bind to /var/run/openvswitch/vhost-user-1\n"
16221
"Eventually we can see the poll thread in top\n"
16222
" PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND\n"
16223
" 3595 root 10 -10 4975344 103936 9916 S 100.0 0.3 33:13.56 ovs-"
16228
#: serverguide/C/network-config.xml:1950(ulink)
15647
16229
msgid "DPDK Documentation"
15650
#: serverguide/C/network-config.xml:1701(ulink)
16232
#: serverguide/C/network-config.xml:1955(ulink)
15651
16233
msgid "Release Notes matching the version packages in Ubuntu 16.04"
15654
#: serverguide/C/network-config.xml:1706(ulink)
16236
#: serverguide/C/network-config.xml:1960(ulink)
15655
16237
msgid "Linux DPDK User Getting Started"
15658
#: serverguide/C/network-config.xml:1711(ulink)
16240
#: serverguide/C/network-config.xml:1965(ulink)
15659
16241
msgid "EAL Command-line Options"
15662
#: serverguide/C/network-config.xml:1716(ulink)
16244
#: serverguide/C/network-config.xml:1970(ulink)
15663
16245
msgid "DPDK Api Documentation"
15666
#: serverguide/C/network-config.xml:1721(ulink)
16248
#: serverguide/C/network-config.xml:1975(ulink)
15667
16249
msgid "OpenVswitch DPDK installation"
15670
#: serverguide/C/network-config.xml:1726(ulink)
16252
#: serverguide/C/network-config.xml:1980(ulink)
15671
16253
msgid "Wikipedias definition of DPDK"
24319
24890
#: serverguide/C/lamp-applications.xml:278(title)
24323
24894
#: serverguide/C/lamp-applications.xml:280(para)
24325
"MediaWiki is an web based Wiki software written in the PHP language. It can "
24326
"either use <application>MySQL</application> or "
24327
"<application>PostgreSQL</application> Database Management System."
24330
#: serverguide/C/lamp-applications.xml:290(para)
24332
"Before installing <application>MediaWiki</application> you should also "
24333
"install <application>Apache2</application>, the "
24334
"<application>PHP</application> scripting language and a Database Management "
24335
"System. <application>MySQL</application> or "
24336
"<application>PostgreSQL</application> are the most common, choose one "
24337
"depending on your need. Please refer to those sections in this manual for "
24338
"installation instructions."
24341
#: serverguide/C/lamp-applications.xml:298(para)
24343
"To install <application>MediaWiki</application>, run the following command "
24344
"in the command prompt:"
24347
#: serverguide/C/lamp-applications.xml:304(command)
24348
msgid "sudo apt install mediawiki php-gd"
24351
#: serverguide/C/lamp-applications.xml:307(para)
24353
"For additional <application>MediaWiki</application> functionality see the "
24354
"<application>mediawiki-extensions</application> package."
24357
#: serverguide/C/lamp-applications.xml:317(para)
24359
"The Apache configuration file <filename>mediawiki.conf</filename> for "
24360
"<application>MediaWiki</application> is installed in "
24361
"<filename>/etc/apache2/conf-available/</filename> directory. To access "
24362
"<application>MediaWiki</application>, uncomment the following line in the "
24366
#: serverguide/C/lamp-applications.xml:324(screen)
24370
"# Alias /mediawiki /var/lib/mediawiki\n"
24373
#: serverguide/C/lamp-applications.xml:328(para)
24375
"The <application>MediaWiki</application> configuration also needs to be "
24379
#: serverguide/C/lamp-applications.xml:332(command)
24380
msgid "sudo a2enconf mediawiki.conf"
24383
#: serverguide/C/lamp-applications.xml:335(para)
24384
msgid "Restart Apache server."
24387
#: serverguide/C/lamp-applications.xml:342(para)
24389
"Access <application>MediaWiki</application> by visiting <ulink "
24390
"url=\"http://localhost/mediawiki/mw-"
24391
"config/index.php\">http://localhost/mediawiki/mw-config/index.php</ulink>. "
24392
"(Or <ulink url=\"http://NAME_OF_YOUR_VIRTUAL_HOST/mediawiki/mw-"
24393
"config/index.php\">http://NAME_OF_YOUR_VIRTUAL_HOST/mediawiki/mw-"
24394
"config/index.php</ulink> if your server has no GUI.)"
24397
#: serverguide/C/lamp-applications.xml:350(para)
24399
"Please read the <quote>Environmental checks</quote> section of the "
24400
"configuration page. You should be able to fix many issues by carefully "
24401
"reading this section."
24404
#: serverguide/C/lamp-applications.xml:357(para)
24406
"Once the configuration is complete, you should copy the "
24407
"<filename>LocalSettings.php</filename> file to "
24408
"<filename>/etc/mediawiki</filename> directory:"
24411
#: serverguide/C/lamp-applications.xml:364(command)
24412
msgid "sudo mv /var/lib/mediawiki/config/LocalSettings.php /etc/mediawiki/"
24415
#: serverguide/C/lamp-applications.xml:367(para)
24417
"You may also want to edit "
24418
"<filename>/etc/mediawiki/LocalSettings.php</filename> in order to set the "
24419
"memory limit (disabled by default):"
24422
#: serverguide/C/lamp-applications.xml:372(programlisting)
24426
"ini_set( 'memory_limit', '64M' );\n"
24429
#: serverguide/C/lamp-applications.xml:379(title)
24433
#: serverguide/C/lamp-applications.xml:380(para)
24435
"The extensions add new features and enhancements for the MediaWiki "
24436
"application. The extensions give wiki administrators and end users the "
24437
"ability to customize MediaWiki to their requirements."
24440
#: serverguide/C/lamp-applications.xml:386(para)
24442
"You can download MediaWiki extensions as an archive file or checkout from "
24443
"the Subversion repository. You should copy it to "
24444
"<filename>/var/lib/mediawiki/extensions</filename> directory. You should "
24445
"also add the following line at the end of file: "
24446
"<filename>/etc/mediawiki/LocalSettings.php</filename>."
24449
#: serverguide/C/lamp-applications.xml:394(programlisting)
24453
"require_once \"$IP/extensions/ExtentionName/ExtentionName.php\";\n"
24456
#: serverguide/C/lamp-applications.xml:404(para)
24458
"For more details, please refer to the <ulink "
24459
"url=\"http://www.mediawiki.org\">MediaWiki</ulink> web site."
24462
#: serverguide/C/lamp-applications.xml:410(para)
24464
"The <ulink url=\"http://www.packtpub.com/Mediawiki/book\">MediaWiki "
24465
"Administrators' Tutorial Guide</ulink> contains a wealth of information for "
24466
"new MediaWiki administrators."
24469
#: serverguide/C/lamp-applications.xml:416(para)
24471
"Also, the <ulink url=\"https://help.ubuntu.com/community/MediaWiki\">Ubuntu "
24472
"Wiki MediaWiki</ulink> page is a good resource."
24475
#: serverguide/C/lamp-applications.xml:426(title)
24479
#: serverguide/C/lamp-applications.xml:428(para)
24481
24896
"<application>phpMyAdmin</application> is a LAMP application specifically "
24482
24897
"written for administering <application>MySQL</application> servers. Written "
24483
24898
"in <application>PHP</application>, and accessed through a web browser, "
24484
24899
"phpMyAdmin provides a graphical interface for database administration tasks."
24487
#: serverguide/C/lamp-applications.xml:437(para)
24902
#: serverguide/C/lamp-applications.xml:289(para)
24489
24904
"Before installing <application>phpMyAdmin</application> you will need access "
24490
24905
"to a <application>MySQL</application> database either on the same host as "