3069
3095
"connect via VNC to complete the installation."
3072
#: serverguide/C/virtualization.xml:189(para)
3098
#: serverguide/C/virtualization.xml:192(para)
3074
3100
"<emphasis>--noautoconsole:</emphasis> will not automatically connect to the "
3075
3101
"virtual machine's console."
3078
#: serverguide/C/virtualization.xml:194(para)
3104
#: serverguide/C/virtualization.xml:197(para)
3079
3105
msgid "<emphasis>-v:</emphasis> creates a fully virtualized guest."
3082
#: serverguide/C/virtualization.xml:199(para)
3108
#: serverguide/C/virtualization.xml:202(para)
3084
3110
"After launching <application>virt-install</application> you can connect to "
3085
3111
"the virtual machine's console either locally using a GUI (if your server has "
3086
3112
"a GUI), or via a remote VNC client from a GUI-based computer."
3089
#: serverguide/C/virtualization.xml:206(title)
3115
#: serverguide/C/virtualization.xml:209(title)
3090
3116
msgid "virt-clone"
3093
#: serverguide/C/virtualization.xml:208(para)
3119
#: serverguide/C/virtualization.xml:211(para)
3095
3121
"The <application>virt-clone</application> application can be used to copy "
3096
3122
"one virtual machine to another. For example:"
3099
#: serverguide/C/virtualization.xml:212(command)
3125
#: serverguide/C/virtualization.xml:215(command)
3101
"sudo virt-clone -o web_devel -n database_devel -f "
3102
"/path/to/database_devel.img \\ --connect=qemu:///system"
3127
"sudo virt-clone -o web_devel -n database_devel -f /path/to/database_devel.img"
3105
#: serverguide/C/virtualization.xml:218(para)
3130
#: serverguide/C/virtualization.xml:220(para)
3106
3131
msgid "<emphasis>-o:</emphasis> original virtual machine."
3109
#: serverguide/C/virtualization.xml:222(para)
3134
#: serverguide/C/virtualization.xml:224(para)
3110
3135
msgid "<emphasis>-n:</emphasis> name of the new virtual machine."
3113
#: serverguide/C/virtualization.xml:227(para)
3138
#: serverguide/C/virtualization.xml:229(para)
3115
3140
"<emphasis>-f:</emphasis> path to the file, logical volume, or partition to "
3116
3141
"be used by the new virtual machine."
3119
#: serverguide/C/virtualization.xml:232(para)
3121
"<emphasis>--connect:</emphasis> specifies which hypervisor to connect to."
3124
#: serverguide/C/virtualization.xml:237(para)
3144
#: serverguide/C/virtualization.xml:234(para)
3126
3146
"Also, use <emphasis>-d</emphasis> or <emphasis>--debug</emphasis> option to "
3127
3147
"help troubleshoot problems with <application>virt-clone</application>."
3130
#: serverguide/C/virtualization.xml:242(para)
3150
#: serverguide/C/virtualization.xml:239(para)
3132
3152
"Replace <emphasis>web_devel</emphasis> and "
3133
3153
"<emphasis>database_devel</emphasis> with appropriate virtual machine names."
3156
#: serverguide/C/virtualization.xml:246(title)
3157
msgid "Virtual Machine Management"
3136
3160
#: serverguide/C/virtualization.xml:249(title)
3137
msgid "Virtual Machine Management"
3140
#: serverguide/C/virtualization.xml:252(title)
3144
#: serverguide/C/virtualization.xml:254(para)
3164
#: serverguide/C/virtualization.xml:251(para)
3146
3166
"There are several utilities available to manage virtual machines and "
3147
3167
"<application>libvirt</application>. The <application>virsh</application> "
3148
3168
"utility can be used from the command line. Some examples:"
3151
#: serverguide/C/virtualization.xml:261(para)
3171
#: serverguide/C/virtualization.xml:258(para)
3152
3172
msgid "To list running virtual machines:"
3155
#: serverguide/C/virtualization.xml:264(command)
3156
msgid "virsh -c qemu:///system list"
3175
#: serverguide/C/virtualization.xml:261(command)
3159
#: serverguide/C/virtualization.xml:269(para)
3179
#: serverguide/C/virtualization.xml:266(para)
3160
3180
msgid "To start a virtual machine:"
3163
#: serverguide/C/virtualization.xml:272(command)
3164
msgid "virsh -c qemu:///system start web_devel"
3183
#: serverguide/C/virtualization.xml:269(command)
3184
msgid "virsh start web_devel"
3167
#: serverguide/C/virtualization.xml:277(para)
3187
#: serverguide/C/virtualization.xml:274(para)
3168
3188
msgid "Similarly, to start a virtual machine at boot:"
3171
#: serverguide/C/virtualization.xml:280(command)
3172
msgid "virsh -c qemu:///system autostart web_devel"
3191
#: serverguide/C/virtualization.xml:277(command)
3192
msgid "virsh autostart web_devel"
3175
#: serverguide/C/virtualization.xml:285(para)
3195
#: serverguide/C/virtualization.xml:282(para)
3176
3196
msgid "Reboot a virtual machine with:"
3179
#: serverguide/C/virtualization.xml:288(command)
3180
msgid "virsh -c qemu:///system reboot web_devel"
3199
#: serverguide/C/virtualization.xml:285(command)
3200
msgid "virsh reboot web_devel"
3183
#: serverguide/C/virtualization.xml:293(para)
3203
#: serverguide/C/virtualization.xml:290(para)
3185
3205
"The <emphasis>state</emphasis> of virtual machines can be saved to a file in "
3186
3206
"order to be restored later. The following will save the virtual machine "
3187
3207
"state into a file named according to the date:"
3190
#: serverguide/C/virtualization.xml:299(command)
3191
msgid "virsh -c qemu:///system save web_devel web_devel-022708.state"
3210
#: serverguide/C/virtualization.xml:296(command)
3211
msgid "virsh save web_devel web_devel-022708.state"
3194
#: serverguide/C/virtualization.xml:302(para)
3214
#: serverguide/C/virtualization.xml:299(para)
3195
3215
msgid "Once saved the virtual machine will no longer be running."
3198
#: serverguide/C/virtualization.xml:307(para)
3218
#: serverguide/C/virtualization.xml:304(para)
3199
3219
msgid "A saved virtual machine can be restored using:"
3202
#: serverguide/C/virtualization.xml:310(command)
3203
msgid "virsh -c qemu:///system restore web_devel-022708.state"
3222
#: serverguide/C/virtualization.xml:307(command)
3223
msgid "virsh restore web_devel-022708.state"
3206
#: serverguide/C/virtualization.xml:315(para)
3226
#: serverguide/C/virtualization.xml:312(para)
3207
3227
msgid "To shutdown a virtual machine do:"
3210
#: serverguide/C/virtualization.xml:318(command)
3211
msgid "virsh -c qemu:///system shutdown web_devel"
3230
#: serverguide/C/virtualization.xml:315(command)
3231
msgid "virsh shutdown web_devel"
3214
#: serverguide/C/virtualization.xml:323(para)
3234
#: serverguide/C/virtualization.xml:320(para)
3215
3235
msgid "A CDROM device can be mounted in a virtual machine by entering:"
3218
#: serverguide/C/virtualization.xml:327(command)
3219
msgid "virsh -c qemu:///system attach-disk web_devel /dev/cdrom /media/cdrom"
3238
#: serverguide/C/virtualization.xml:324(command)
3239
msgid "virsh attach-disk web_devel /dev/cdrom /media/cdrom"
3222
#: serverguide/C/virtualization.xml:333(para)
3242
#: serverguide/C/virtualization.xml:330(para)
3224
3244
"In the above examples replace <emphasis>web_devel</emphasis> with the "
3225
3245
"appropriate virtual machine name, and <filename>web_devel-"
3226
3246
"022708.state</filename> with a descriptive file name."
3249
#: serverguide/C/virtualization.xml:334(para)
3251
"If virsh (or other vir* tools) shall connect to something else than the "
3252
"default qemu-kvm/system hipervisor one can find alternatives for the "
3253
"<emphasis>connect</emphasis> option in <emphasis>man virsh</emphasis> or "
3254
"<ulink url=\"http://libvirt.org/uri.html\">libvirt doc</ulink>"
3229
3257
#: serverguide/C/virtualization.xml:341(title)
3261
#: serverguide/C/virtualization.xml:342(para)
3263
"There are different types of migration available depending on the versions "
3264
"of libvirt and the hipervisor being used. In general those types are:"
3267
#: serverguide/C/virtualization.xml:345(ulink)
3268
msgid "offline migration"
3271
#: serverguide/C/virtualization.xml:346(ulink)
3272
msgid "live migration"
3275
#: serverguide/C/virtualization.xml:347(ulink)
3276
msgid "postcopy migration"
3279
#: serverguide/C/virtualization.xml:349(para)
3281
"There are various options to those methods, but the entry point for all of "
3282
"them is <emphasis>virsh migrate</emphasis>. Read the integrated help for "
3286
#: serverguide/C/virtualization.xml:350(command)
3287
msgid "virsh migrate --help"
3290
#: serverguide/C/virtualization.xml:351(para)
3292
"Some useful documentation on constraints and considerations about live "
3293
"migration can be found at the <ulink "
3294
"url=\"https://wiki.ubuntu.com/QemuKVMMigration\">Ubuntu Wiki</ulink>"
3297
#: serverguide/C/virtualization.xml:355(title)
3230
3298
msgid "Virtual Machine Manager"
3233
#: serverguide/C/virtualization.xml:343(para)
3301
#: serverguide/C/virtualization.xml:357(para)
3235
3303
"The <application>virt-manager</application> package contains a graphical "
3236
3304
"utility to manage local and remote virtual machines. To install virt-manager "
3240
#: serverguide/C/virtualization.xml:348(command)
3308
#: serverguide/C/virtualization.xml:362(command)
3241
3309
msgid "sudo apt install virt-manager"
3244
#: serverguide/C/virtualization.xml:351(para)
3312
#: serverguide/C/virtualization.xml:365(para)
3246
3314
"Since <application>virt-manager</application> requires a Graphical User "
3247
3315
"Interface (GUI) environment it is recommended to be installed on a "
3289
#: serverguide/C/virtualization.xml:390(para)
3357
#: serverguide/C/virtualization.xml:404(para)
3291
3359
"To install <application>virt-viewer</application> from a terminal enter:"
3294
#: serverguide/C/virtualization.xml:394(command)
3362
#: serverguide/C/virtualization.xml:408(command)
3295
3363
msgid "sudo apt install virt-viewer"
3298
#: serverguide/C/virtualization.xml:397(para)
3366
#: serverguide/C/virtualization.xml:411(para)
3300
3368
"Once a virtual machine is installed and running you can connect to the "
3301
3369
"virtual machine's console by using:"
3304
#: serverguide/C/virtualization.xml:401(command)
3305
msgid "virt-viewer -c qemu:///system web_devel"
3372
#: serverguide/C/virtualization.xml:415(command)
3373
msgid "virt-viewer web_devel"
3308
#: serverguide/C/virtualization.xml:404(para)
3376
#: serverguide/C/virtualization.xml:418(para)
3310
3378
"Similar to <application>virt-manager</application>, <application>virt-"
3311
3379
"viewer</application> can connect to a remote host using "
3312
3380
"<emphasis>SSH</emphasis> with key authentication, as well:"
3315
#: serverguide/C/virtualization.xml:409(command)
3383
#: serverguide/C/virtualization.xml:423(command)
3316
3384
msgid "virt-viewer -c qemu+ssh://virtnode1.mydomain.com/system web_devel"
3319
#: serverguide/C/virtualization.xml:412(para)
3387
#: serverguide/C/virtualization.xml:426(para)
3321
3389
"Be sure to replace <emphasis role=\"italic\">web_devel</emphasis> with the "
3322
3390
"appropriate virtual machine name."
3325
#: serverguide/C/virtualization.xml:415(para)
3393
#: serverguide/C/virtualization.xml:429(para)
3327
3395
"If configured to use a <emphasis>bridged</emphasis> network interface you "
3328
3396
"can also setup <application>SSH</application> access to the virtual machine."
3331
#: 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)
3399
#: 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)
3332
3400
msgid "Resources"
3335
#: serverguide/C/virtualization.xml:425(para)
3403
#: serverguide/C/virtualization.xml:439(para)
3337
3405
"See the <ulink url=\"http://www.linux-kvm.org/\">KVM</ulink> home page for "
3338
3406
"more details."
3341
#: serverguide/C/virtualization.xml:430(para)
3409
#: serverguide/C/virtualization.xml:444(para)
3343
3411
"For more information on <application>libvirt</application> see the <ulink "
3344
3412
"url=\"http://libvirt.org/\">libvirt home page</ulink>"
3347
#: serverguide/C/virtualization.xml:436(para)
3415
#: serverguide/C/virtualization.xml:450(para)
3349
3417
"The <ulink url=\"http://virt-manager.org/\">Virtual Machine Manager</ulink> "
3350
3418
"site has more information on <application>virt-manager</application> "
3354
#: serverguide/C/virtualization.xml:442(para)
3422
#: serverguide/C/virtualization.xml:456(para)
3356
3424
"Also, stop by the <emphasis>#ubuntu-virt</emphasis> IRC channel on <ulink "
3357
3425
"url=\"http://freenode.net/\">freenode</ulink> to discuss virtualization "
3358
3426
"technology in Ubuntu."
3361
#: serverguide/C/virtualization.xml:448(para)
3429
#: serverguide/C/virtualization.xml:462(para)
3363
3431
"Another good resource is the <ulink "
3364
3432
"url=\"https://help.ubuntu.com/community/KVM\">Ubuntu Wiki KVM</ulink> page."
3367
#: serverguide/C/virtualization.xml:454(para)
3435
#: serverguide/C/virtualization.xml:468(para)
3369
3437
"For information on Xen, including using Xen with libvirt, please see the "
3370
3438
"<ulink url=\"https://help.ubuntu.com/community/Xen\">Ubuntu Wiki Xen</ulink> "
3374
#: serverguide/C/virtualization.xml:464(title)
3442
#: serverguide/C/virtualization.xml:478(title)
3446
#: serverguide/C/virtualization.xml:479(para)
3448
"<ulink url=\"http://wiki.qemu.org/Main_Page\">Qemu</ulink> is a machine "
3449
"emulator that can run operating systems and programs for one machine on a "
3450
"different machine. Mostly it is not used as emulator but as virtualizer in "
3451
"collaboration with KVM or XEN kernel components. In that case it utilizes "
3452
"the virtualization technology of the hardware to virtualize guests."
3455
#: serverguide/C/virtualization.xml:483(para)
3457
"While qemu has a <ulink url=\"http://wiki.qemu.org/download/qemu-"
3458
"doc.html#sec_005finvocation\">command line interface</ulink> and a <ulink "
3459
"url=\"http://wiki.qemu.org/download/qemu-"
3460
"doc.html#pcsys_005fmonitor\">monitor</ulink> to interact with running guests "
3461
"those is rarely used that way for other means than development purposes. "
3462
"<link linkend=\"libvirt\">Libvirt</link> provides an abstraction from "
3463
"specific versions and hiperviors and encapsulates some workarounds and best "
3467
#: serverguide/C/virtualization.xml:488(title)
3468
msgid "Upgrading the machine type"
3471
#: serverguide/C/virtualization.xml:489(para)
3473
"This also is documented along some more constraints and considerations at "
3475
"url=\"https://wiki.ubuntu.com/QemuKVMMigration#Upgrade_machine_type\">Ubuntu "
3479
#: serverguide/C/virtualization.xml:490(para)
3481
"You might want to update your machine type of an existing defined guest to:"
3484
#: serverguide/C/virtualization.xml:492(para)
3485
msgid "to pick up latest security fixes and features"
3488
#: serverguide/C/virtualization.xml:493(para)
3489
msgid "continue using a guest created on a now unsupported release"
3492
#: serverguide/C/virtualization.xml:495(para)
3494
"In general it is recommended to update machine types when upgrading qemu/kvm "
3495
"to a new major version. But this can likely never be an automated task as "
3496
"this change is guest visible. The guest devices might change in appearance, "
3497
"new features will be announced to the guest and so on. Linux is usually very "
3498
"good at tolerating such changes, but it depends so much on the setup and "
3499
"workload of the guest that this has to be evaluated by the owner/admin of "
3500
"the system. Other operating systems where known to often have severe impacts "
3501
"by changing the hardware. Consider a machine type change similar to "
3502
"replacing all devices and firmware of a physical machine to the latest "
3503
"revision - all considerations that apply there apply to evaluating a machine "
3504
"type upgrade as well."
3507
#: serverguide/C/virtualization.xml:496(para)
3509
"As usual with major configuration changes it is wise to back up your guest "
3510
"definition and disk state to be able to do a rollback just in case. There is "
3511
"no integrated single command to update the machine type via virsh or similar "
3512
"tools. It is a normal part of your machine definition. And therefore updated "
3513
"the same way as most others."
3516
#: serverguide/C/virtualization.xml:498(para)
3517
msgid "First shutdown your machine and wait until it has reached that state."
3520
#: serverguide/C/virtualization.xml:499(screen)
3524
"virsh shutdown <yourmachine>\n"
3526
"virsh list --inactive\n"
3527
"# should now list your machine as \"shut off\"\n"
3531
#: serverguide/C/virtualization.xml:505(para)
3533
"Then edit the machine definition and find the type in the type tag at the "
3534
"machine attribute."
3537
#: serverguide/C/virtualization.xml:506(screen)
3541
"virsh edit <yourmachine>\n"
3542
"<type arch='x86_64' machine='pc-i440fx-xenial'>hvm</type>\n"
3546
#: serverguide/C/virtualization.xml:510(para)
3548
"Change this to the value you want. If you need to check what types are "
3549
"available via \"-M ?\" Note that while providing upstream types as "
3550
"convenience only Ubuntu types are supported. There you can also see what the "
3551
"current default would be. In general it is strongly recommended that you "
3552
"change to newer types if possible to exploit newer features, but also to "
3553
"benefit of bugfixes that only apply to the newer device virtualization."
3556
#: serverguide/C/virtualization.xml:511(screen)
3561
"# lists machine types, e.g.\n"
3562
"pc-i440fx-xenial Ubuntu 16.04 PC (i440FX + PIIX, 1996) (default)\n"
3567
#: serverguide/C/virtualization.xml:517(para)
3569
"After this you can start your guest again. You can check the current machine "
3570
"type from guest and host depending on your needs."
3573
#: serverguide/C/virtualization.xml:518(screen)
3577
"virsh start <yourmachine>\n"
3578
"# check from host, via dumping the active xml definition\n"
3579
"virsh dumpxml <yourmachine> | xmllint --xpath "
3580
"\"string(//domain/os/type/@machine)\" -\n"
3581
"# or from the guest via dmidecode\n"
3582
"sudo dmidecode | grep Product -A 1\n"
3583
" Product Name: Standard PC (i440FX + PIIX, 1996)\n"
3584
" Version: pc-i440fx-xenial\n"
3588
#: serverguide/C/virtualization.xml:527(para)
3590
"If you keep non-live definitions around like xml files remember to update "
3594
#: serverguide/C/virtualization.xml:532(title)
3375
3595
msgid "Cloud images and uvtool"
3378
#: 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)
3598
#: 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)
3379
3599
msgid "Introduction"
3382
#: serverguide/C/virtualization.xml:469(para)
3602
#: serverguide/C/virtualization.xml:537(para)
3384
3604
"With Ubuntu being one of the most used operating systems on many cloud "
3385
3605
"platforms, the availability of stable and secure cloud images has become "
3645
#: serverguide/C/virtualization.xml:639(title)
3865
#: serverguide/C/virtualization.xml:707(title)
3646
3866
msgid "Get the list of running VMs"
3649
#: serverguide/C/virtualization.xml:640(para)
3869
#: serverguide/C/virtualization.xml:708(para)
3650
3870
msgid "You can get the list of VMs running on your system with this command:"
3653
#: serverguide/C/virtualization.xml:642(programlisting)
3873
#: serverguide/C/virtualization.xml:710(programlisting)
3656
3876
"$ uvt-kvm list\n"
3660
#: serverguide/C/virtualization.xml:647(title)
3880
#: serverguide/C/virtualization.xml:715(title)
3661
3881
msgid "Destroy your VM"
3664
#: serverguide/C/virtualization.xml:648(para)
3884
#: serverguide/C/virtualization.xml:716(para)
3665
3885
msgid "Once you are done with your VM, you can destroy it with:"
3668
#: serverguide/C/virtualization.xml:650(programlisting)
3888
#: serverguide/C/virtualization.xml:718(programlisting)
3670
3890
msgid "$ uvt-kvm destroy secondtest"
3673
#: serverguide/C/virtualization.xml:652(title)
3893
#: serverguide/C/virtualization.xml:720(title)
3674
3894
msgid "More uvt-kvm options"
3677
#: serverguide/C/virtualization.xml:654(para)
3897
#: serverguide/C/virtualization.xml:722(para)
3679
3899
"The following options can be used to change some of the characteristics of "
3680
3900
"the VM that you are creating:"
3683
#: serverguide/C/virtualization.xml:657(para)
3903
#: serverguide/C/virtualization.xml:725(para)
3684
3904
msgid "--memory : Amount of RAM in megabytes. Default: 512."
3687
#: serverguide/C/virtualization.xml:658(para)
3907
#: serverguide/C/virtualization.xml:726(para)
3688
3908
msgid "--disk : Size of the OS disk in gigabytes. Default: 8."
3691
#: serverguide/C/virtualization.xml:659(para)
3911
#: serverguide/C/virtualization.xml:727(para)
3692
3912
msgid "--cpu : Number of CPU cores. Default: 1."
3695
#: serverguide/C/virtualization.xml:662(para)
3915
#: serverguide/C/virtualization.xml:730(para)
3697
3917
"Some other parameters will have an impact on the cloud-init configuration:"
3700
#: serverguide/C/virtualization.xml:664(para)
3920
#: serverguide/C/virtualization.xml:732(para)
3702
3922
"--password password : Allow login to the VM using the Ubuntu account and "
3703
3923
"this provided password."
3706
#: serverguide/C/virtualization.xml:665(para)
3926
#: serverguide/C/virtualization.xml:733(para)
3708
3928
"--run-script-once script_file : Run script_file as root on the VM the first "
3709
3929
"time it is booted, but never again."
3712
#: serverguide/C/virtualization.xml:666(para)
3932
#: serverguide/C/virtualization.xml:734(para)
3714
3934
"--packages package_list : Install the comma-separated packages specified in "
3715
3935
"package_list on first boot."
3718
#: serverguide/C/virtualization.xml:669(para)
3938
#: serverguide/C/virtualization.xml:737(para)
3720
3940
"A complete description of all available modifiers is available in the "
3721
3941
"manpage of uvt-kvm."
3724
#: serverguide/C/virtualization.xml:676(para)
3944
#: serverguide/C/virtualization.xml:744(para)
3726
3946
"If you are interested in learning more, have questions or suggestions, "
3727
3947
"please contact the Ubuntu Server Team at:"
3730
#: serverguide/C/virtualization.xml:681(para)
3950
#: serverguide/C/virtualization.xml:749(para)
3731
3951
msgid "IRC: #ubuntu-server on freenode"
3734
#: serverguide/C/virtualization.xml:685(para)
3954
#: serverguide/C/virtualization.xml:753(para)
3736
3956
"Mailing list: <ulink url=\"https://lists.ubuntu.com/mailman/listinfo/ubuntu-"
3737
3957
"server\">ubuntu-server at lists.ubuntu.com</ulink>"
3740
#: serverguide/C/virtualization.xml:694(title)
3960
#: serverguide/C/virtualization.xml:762(title)
3741
3961
msgid "Ubuntu Cloud"
3744
#: serverguide/C/virtualization.xml:696(para)
3964
#: serverguide/C/virtualization.xml:764(para)
3746
3966
"<application>Cloud computing</application> is a computing model that allows "
3747
3967
"vast pools of resources to be allocated on-demand. These resources such as "
4035
4255
"the desired architecture:"
4038
#: serverguide/C/virtualization.xml:988(command)
4258
#: serverguide/C/virtualization.xml:1056(command)
4039
4259
msgid "lxc image info ubuntu:lts/arm64"
4042
#: serverguide/C/virtualization.xml:993(para)
4262
#: serverguide/C/virtualization.xml:1061(para)
4043
4263
msgid "Now, let's start our first container:"
4046
#: serverguide/C/virtualization.xml:998(command)
4266
#: serverguide/C/virtualization.xml:1066(command)
4047
4267
msgid "lxc launch ubuntu:xenial x1"
4050
#: serverguide/C/virtualization.xml:1003(para)
4270
#: serverguide/C/virtualization.xml:1071(para)
4052
4272
"This will download the official current Xenial cloud image for your current "
4053
4273
"architecture, then create a container using that image, and finally start "
4054
4274
"it. Once the command returns, you can see it using:"
4057
#: serverguide/C/virtualization.xml:1010(command)
4277
#: serverguide/C/virtualization.xml:1078(command)
4058
4278
msgid "lxc list lxc info x1"
4061
#: serverguide/C/virtualization.xml:1016(para)
4281
#: serverguide/C/virtualization.xml:1084(para)
4062
4282
msgid "and open a shell in it using:"
4065
#: serverguide/C/virtualization.xml:1021(command)
4285
#: serverguide/C/virtualization.xml:1089(command)
4066
4286
msgid "lxc exec x1 bash"
4069
#: serverguide/C/virtualization.xml:1026(para)
4289
#: serverguide/C/virtualization.xml:1094(para)
4071
4291
"The try-it page gives a full synopsis of the commands you can use to "
4072
4292
"administer containers."
4075
#: serverguide/C/virtualization.xml:1031(para)
4295
#: serverguide/C/virtualization.xml:1099(para)
4077
4297
"Now that the 'xenial' image has been downloaded, it will be kept in sync "
4078
4298
"until no new containers have been created based on it for (by default) 10 "
4079
4299
"days. After that, it will be deleted."
4082
#: serverguide/C/virtualization.xml:1039(title)
4302
#: serverguide/C/virtualization.xml:1107(title)
4083
4303
msgid "LXD Server Configuration"
4086
#: serverguide/C/virtualization.xml:1041(para)
4306
#: serverguide/C/virtualization.xml:1109(para)
4088
4308
"By default, LXD is socket activated and configured to listen only on a local "
4089
4309
"UNIX socket. While LXD may not be running when you first look at the process "
4090
4310
"listing, any LXC command will start it up. For instance:"
4093
#: serverguide/C/virtualization.xml:1048(command)
4313
#: serverguide/C/virtualization.xml:1116(command)
4094
4314
msgid "lxc list"
4097
#: serverguide/C/virtualization.xml:1053(para)
4317
#: serverguide/C/virtualization.xml:1121(para)
4099
4319
"This will create your client certificate and contact the LXD server for a "
4100
4320
"list of containers. To make the server accessible over the network you can "
4101
4321
"set the http port using:"
4104
#: serverguide/C/virtualization.xml:1060(command)
4324
#: serverguide/C/virtualization.xml:1128(command)
4105
4325
msgid "lxc config set core.https_address :8443"
4108
#: serverguide/C/virtualization.xml:1065(para)
4328
#: serverguide/C/virtualization.xml:1133(para)
4109
4329
msgid "This will tell LXD to listen to port 8843 on all addresses."
4112
#: serverguide/C/virtualization.xml:1069(title)
4332
#: serverguide/C/virtualization.xml:1137(title)
4113
4333
msgid "Authentication"
4116
#: serverguide/C/virtualization.xml:1071(para)
4336
#: serverguide/C/virtualization.xml:1139(para)
4118
4338
"By default, LXD will allow all members of group 'lxd' (which by default "
4119
4339
"includes all members of group admin) to talk to it over the UNIX socket. "
4324
4544
"must be set to true:"
4327
#: serverguide/C/virtualization.xml:1289(command)
4547
#: serverguide/C/virtualization.xml:1357(command)
4328
4548
msgid "lxc config set container1 security.nesting true"
4331
#: serverguide/C/virtualization.xml:1294(para)
4551
#: serverguide/C/virtualization.xml:1362(para)
4332
4552
msgid "Once this is done, container1 will be able to start sub-containers."
4335
#: serverguide/C/virtualization.xml:1298(para)
4555
#: serverguide/C/virtualization.xml:1366(para)
4337
4557
"In order to run unprivileged (the default in LXD) containers nested under an "
4338
4558
"unprivileged container, you will need to ensure a wide enough UID mapping. "
4339
4559
"Please see the 'UID mapping' section below."
4342
#: serverguide/C/virtualization.xml:1304(title)
4562
#: serverguide/C/virtualization.xml:1372(title)
4346
#: serverguide/C/virtualization.xml:1306(para)
4566
#: serverguide/C/virtualization.xml:1374(para)
4348
4568
"In order to facilitate running docker containers inside a LXD container, a "
4349
4569
"'docker' profile is provided. To launch a new container with the docker "
4350
4570
"profile, you can run:"
4353
#: serverguide/C/virtualization.xml:1313(command)
4573
#: serverguide/C/virtualization.xml:1381(command)
4354
4574
msgid "lxc launch xenial container1 -p default -p docker"
4357
#: serverguide/C/virtualization.xml:1318(para)
4577
#: serverguide/C/virtualization.xml:1386(para)
4359
4579
"Note that currently the docker package in Ubuntu 16.04 is patched to "
4360
4580
"facilitate running in a container. This support is expected to land upstream "
4364
#: serverguide/C/virtualization.xml:1324(para)
4584
#: serverguide/C/virtualization.xml:1392(para)
4366
4586
"Note that 'cgroup namespace' support is also required. This is available in "
4367
4587
"the 16.04 kernel as well as in the 4.6 upstream source."
4370
#: serverguide/C/virtualization.xml:1333(title)
4590
#: serverguide/C/virtualization.xml:1401(title)
4374
#: serverguide/C/virtualization.xml:1335(para)
4594
#: serverguide/C/virtualization.xml:1403(para)
4376
4596
"LXD supports flexible constraints on the resources which containers can "
4377
4597
"consume. The limits come in the following categories:"
4380
#: serverguide/C/virtualization.xml:1342(para)
4600
#: serverguide/C/virtualization.xml:1410(para)
4381
4601
msgid "CPU: limit cpu available to the container in several ways."
4384
#: serverguide/C/virtualization.xml:1345(para)
4604
#: serverguide/C/virtualization.xml:1413(para)
4385
4605
msgid "Disk: configure the priority of I/O requests under load"
4388
#: serverguide/C/virtualization.xml:1348(para)
4608
#: serverguide/C/virtualization.xml:1416(para)
4389
4609
msgid "RAM: configure memory and swap availability"
4392
#: serverguide/C/virtualization.xml:1351(para)
4612
#: serverguide/C/virtualization.xml:1419(para)
4393
4613
msgid "Network: configure the network priority under load"
4396
#: serverguide/C/virtualization.xml:1354(para)
4616
#: serverguide/C/virtualization.xml:1422(para)
4397
4617
msgid "Processes: limit the number of concurrent processes in the container."
4400
#: serverguide/C/virtualization.xml:1358(para)
4620
#: serverguide/C/virtualization.xml:1426(para)
4402
4622
"For a full list of limits known to LXD, see <ulink "
4403
4623
"url=\"https://github.com/lxc/lxd/blob/master/doc/configuration.md\"> the "
4404
4624
"configuration documentation</ulink>."
4407
#: serverguide/C/virtualization.xml:1366(title)
4627
#: serverguide/C/virtualization.xml:1434(title)
4408
4628
msgid "UID mappings and Privileged containers"
4411
#: serverguide/C/virtualization.xml:1368(para)
4631
#: serverguide/C/virtualization.xml:1436(para)
4413
4633
"By default, LXD creates unprivileged containers. This means that root in the "
4414
4634
"container is a non-root UID on the host. It is privileged against the "
4497
4717
".html\"> the lxc.container.conf(5) manual page</ulink>."
4500
#: serverguide/C/virtualization.xml:1457(title)
4720
#: serverguide/C/virtualization.xml:1525(title)
4501
4721
msgid "Images and containers"
4504
#: serverguide/C/virtualization.xml:1459(para)
4724
#: serverguide/C/virtualization.xml:1527(para)
4506
4726
"LXD is image based. When you create your first container, you will generally "
4507
4727
"do so using an existing image. LXD comes pre-configured with three default "
4508
4728
"image remotes:"
4511
#: serverguide/C/virtualization.xml:1467(para)
4731
#: serverguide/C/virtualization.xml:1535(para)
4513
4733
"ubuntu: This is a <ulink "
4514
4734
"url=\"https://launchpad.net/simplestreams\">simplestreams-based</ulink> "
4515
4735
"remote serving released ubuntu cloud images."
4518
#: serverguide/C/virtualization.xml:1472(para)
4738
#: serverguide/C/virtualization.xml:1540(para)
4520
4740
"ubuntu-daily: This is another simplestreams based remote which serves "
4521
4741
"'daily' ubuntu cloud images. These provide quicker but potentially less "
4522
4742
"stable images."
4525
#: serverguide/C/virtualization.xml:1478(para)
4745
#: serverguide/C/virtualization.xml:1546(para)
4527
4747
"images: This is a remote publishing best-effort container images for many "
4528
4748
"distributions, created using community-provided build scripts."
4531
#: serverguide/C/virtualization.xml:1483(para)
4751
#: serverguide/C/virtualization.xml:1551(para)
4532
4752
msgid "To view the images available on one of these servers, you can use:"
4535
#: serverguide/C/virtualization.xml:1493(para)
4755
#: serverguide/C/virtualization.xml:1561(para)
4537
4757
"Most of the images are known by several aliases for easier reference. To see "
4538
4758
"the full list of aliases, you can use"
4541
#: serverguide/C/virtualization.xml:1499(command)
4761
#: serverguide/C/virtualization.xml:1567(command)
4542
4762
msgid "lxc image alias list images:"
4545
#: serverguide/C/virtualization.xml:1504(para)
4765
#: serverguide/C/virtualization.xml:1572(para)
4547
4767
"Any alias or image fingerprint can be used to specify how to create the new "
4548
4768
"container. For instance, to create an amd64 Ubuntu 14.04 container, some "
4552
#: serverguide/C/virtualization.xml:1511(command)
4772
#: serverguide/C/virtualization.xml:1579(command)
4554
4774
"lxc launch ubuntu:14.04 trusty1 lxc launch ubuntu:trusty trusty1 lxc launch "
4555
4775
"ubuntu:trusty/amd64 trusty1 lxc launch ubuntu:lts trusty1"
4558
#: serverguide/C/virtualization.xml:1519(para)
4778
#: serverguide/C/virtualization.xml:1587(para)
4559
4779
msgid "The 'lts' alias always refers to the latest released LTS image."
4562
#: serverguide/C/virtualization.xml:1523(title) serverguide/C/virtualization.xml:2352(title)
4782
#: serverguide/C/virtualization.xml:1591(title) serverguide/C/virtualization.xml:2420(title)
4563
4783
msgid "Snapshots"
4566
#: serverguide/C/virtualization.xml:1525(para)
4786
#: serverguide/C/virtualization.xml:1593(para)
4568
4788
"Containers can be renamed and live-migrated using the 'lxc move' command:"
4571
#: serverguide/C/virtualization.xml:1530(command)
4791
#: serverguide/C/virtualization.xml:1598(command)
4572
4792
msgid "lxc move c1 final-beta"
4575
#: serverguide/C/virtualization.xml:1535(para)
4795
#: serverguide/C/virtualization.xml:1603(para)
4576
4796
msgid "They can also be snapshotted:"
4579
#: serverguide/C/virtualization.xml:1540(command)
4799
#: serverguide/C/virtualization.xml:1608(command)
4580
4800
msgid "lxc snapshot c1 YYYY-MM-DD"
4583
#: serverguide/C/virtualization.xml:1545(para)
4803
#: serverguide/C/virtualization.xml:1613(para)
4584
4804
msgid "Later changes to c1 can then be reverted by restoring the snapshot:"
4587
#: serverguide/C/virtualization.xml:1550(command)
4807
#: serverguide/C/virtualization.xml:1618(command)
4588
4808
msgid "lxc restore u1 YYYY-MM-DD"
4591
#: serverguide/C/virtualization.xml:1555(para)
4811
#: serverguide/C/virtualization.xml:1623(para)
4593
4813
"New containers can also be created by copying a container or snapshot:"
4596
#: serverguide/C/virtualization.xml:1560(command)
4816
#: serverguide/C/virtualization.xml:1628(command)
4597
4817
msgid "lxc copy u1/YYYY-MM-DD testcontainer"
4600
#: serverguide/C/virtualization.xml:1567(title)
4820
#: serverguide/C/virtualization.xml:1635(title)
4601
4821
msgid "Publishing images"
4604
#: serverguide/C/virtualization.xml:1569(para)
4824
#: serverguide/C/virtualization.xml:1637(para)
4606
4826
"When a container or container snapshot is ready for consumption by others, "
4607
4827
"it can be published as a new image using;"
4610
#: serverguide/C/virtualization.xml:1575(command)
4830
#: serverguide/C/virtualization.xml:1643(command)
4611
4831
msgid "lxc publish u1/YYYY-MM-DD --alias foo-2.0"
4614
#: serverguide/C/virtualization.xml:1580(para)
4834
#: serverguide/C/virtualization.xml:1648(para)
4616
4836
"The published image will be private by default, meaning that LXD will not "
4617
4837
"allow clients without a trusted certificate to see them. If the image is "
15183
15471
"installation\" at the end of this document for more."
15186
#: serverguide/C/network-config.xml:1654(para)
15474
#: serverguide/C/network-config.xml:1692(para)
15188
15476
"As usual with tunings you have to know your system and workload really well -"
15189
15477
" so please verify any tunings with workloads matching your real use case."
15192
#: serverguide/C/network-config.xml:1661(para)
15480
#: serverguide/C/network-config.xml:1699(para)
15194
15482
"DPDK is a fast evolving project. In any case of a search for support and "
15195
15483
"further guides it is highly recommended to first check if they apply to the "
15196
15484
"current version."
15199
#: serverguide/C/network-config.xml:1668(ulink)
15487
#: serverguide/C/network-config.xml:1707(ulink)
15200
15488
msgid "DPDK Mailing Lists"
15203
#: serverguide/C/network-config.xml:1672(para)
15491
#: serverguide/C/network-config.xml:1711(para)
15205
15493
"For OpenVswitch-DPDK <ulink url=\"http://openvswitch.org/mlists\">OpenStack "
15206
15494
"Mailing Lists</ulink>"
15209
#: serverguide/C/network-config.xml:1677(para)
15497
#: serverguide/C/network-config.xml:1716(para)
15211
15499
"Known issues in <ulink "
15212
15500
"url=\"https://bugs.launchpad.net/ubuntu/+source/dpdk\">DPDK Launchpad "
15213
15501
"Area</ulink>"
15216
#: serverguide/C/network-config.xml:1682(para)
15504
#: serverguide/C/network-config.xml:1721(para)
15217
15505
msgid "Join the IRC channels #DPDK or #openvswitch on freenode."
15220
#: serverguide/C/network-config.xml:1696(ulink)
15508
#: serverguide/C/network-config.xml:1727(para)
15510
"Issues are often due to missing small details in the general setup. Later "
15511
"on, these missing details cause problems which can be hard to track down to "
15512
"their root cause. A common case seems to be the \"could not open network "
15513
"device dpdk0 (No such device)\" issue. This occurs rather late when setting "
15514
"up a port in Open vSwitch with DPDK. But the root cause most of the time is "
15515
"very early in the setup and initialization. Here an example how a proper "
15516
"initialization of a device looks - this can be found in the syslog/journal "
15517
"when starting Open vSwitch with DPDK enabled."
15520
#: serverguide/C/network-config.xml:1738(programlisting)
15524
"ovs-ctl[3560]: EAL: PCI device 0000:04:00.1 on NUMA socket 0\n"
15525
"ovs-ctl[3560]: EAL: probe driver: 8086:1528 rte_ixgbe_pmd\n"
15526
"ovs-ctl[3560]: EAL: PCI memory mapped at 0x7f2140000000\n"
15527
"ovs-ctl[3560]: EAL: PCI memory mapped at 0x7f2140200000\n"
15531
#: serverguide/C/network-config.xml:1745(para)
15533
"If this is missing, either by ignored cards, failed initialization or other "
15534
"reasons, later on there will be no DPDK device to refer to. Unfortunately "
15535
"the logging is spread across syslog/journal and the openvswitch log. To "
15536
"allow some cross checking here an example what can be found in these logs, "
15537
"relative to the entered command."
15540
#: serverguide/C/network-config.xml:1753(programlisting)
15544
"#Note: This log was taken with dpdk 2.2 and openvswitch 2.5\n"
15546
"CMD: that you enter\n"
15547
"SYSLOG: (Inlcuding EAL and OVS Messages)\n"
15548
"OVS-LOG: (Openvswitch messages)\n"
15551
"Bind an interface to DPDK UIO drivers, make Hugepages available, enable DPDK "
15554
"CMD: sudo service openvswitch-switch restart\n"
15557
"2016-01-22T08:58:31.372Z|00003|daemon_unix(monitor)|INFO|pid 3329 died, "
15558
"killed (Terminated), exiting\n"
15559
"2016-01-22T08:58:33.377Z|00002|vlog|INFO|opened log file "
15560
"/var/log/openvswitch/ovs-vswitchd.log\n"
15561
"2016-01-22T08:58:33.381Z|00003|ovs_numa|INFO|Discovered 12 CPU cores on NUMA "
15563
"2016-01-22T08:58:33.381Z|00004|ovs_numa|INFO|Discovered 1 NUMA nodes and 12 "
15566
"22T08:58:33.381Z|00005|reconnect|INFO|unix:/var/run/openvswitch/db.sock: "
15569
"22T08:58:33.383Z|00006|reconnect|INFO|unix:/var/run/openvswitch/db.sock: "
15571
"2016-01-22T08:58:33.386Z|00007|bridge|INFO|ovs-vswitchd (Open vSwitch) "
15575
"systemd[1]: Stopping Open vSwitch...\n"
15576
"systemd[1]: Stopped Open vSwitch.\n"
15577
"systemd[1]: Stopping Open vSwitch Internal Unit...\n"
15578
"ovs-ctl[3541]: * Killing ovs-vswitchd (3329)\n"
15579
"ovs-ctl[3541]: * Killing ovsdb-server (3318)\n"
15580
"systemd[1]: Stopped Open vSwitch Internal Unit.\n"
15581
"systemd[1]: Starting Open vSwitch Internal Unit...\n"
15582
"ovs-ctl[3560]: * Starting ovsdb-server\n"
15583
"ovs-vsctl: ovs|00001|vsctl|INFO|Called as ovs-vsctl --no-wait -- init -- set "
15584
"Open_vSwitch . db-version=7.12.1\n"
15585
"ovs-vsctl: ovs|00001|vsctl|INFO|Called as ovs-vsctl --no-wait set "
15586
"Open_vSwitch . ovs-version=2.5.0 \"external-ids:system-id=\\\"e7c5ba80-bb14-"
15587
"45c1-b8eb-628f3ad03903\\\"\" \"system-type=\\\"Ubuntu\\\"\" \"system-"
15588
"version=\\\"16.04-xenial\\\"\"\n"
15589
"ovs-ctl[3560]: * Configuring Open vSwitch system IDs\n"
15590
"ovs-ctl[3560]: 2016-01-22T08:58:31Z|00001|dpdk|INFO|No -vhost_sock_dir "
15591
"provided - defaulting to /var/run/openvswitch\n"
15592
"ovs-vswitchd: ovs|00001|dpdk|INFO|No -vhost_sock_dir provided - defaulting "
15593
"to /var/run/openvswitch\n"
15594
"ovs-ctl[3560]: EAL: Detected lcore 0 as core 0 on socket 0\n"
15595
"ovs-ctl[3560]: EAL: Detected lcore 1 as core 1 on socket 0\n"
15596
"ovs-ctl[3560]: EAL: Detected lcore 2 as core 2 on socket 0\n"
15597
"ovs-ctl[3560]: EAL: Detected lcore 3 as core 3 on socket 0\n"
15598
"ovs-ctl[3560]: EAL: Detected lcore 4 as core 4 on socket 0\n"
15599
"ovs-ctl[3560]: EAL: Detected lcore 5 as core 5 on socket 0\n"
15600
"ovs-ctl[3560]: EAL: Detected lcore 6 as core 0 on socket 0\n"
15601
"ovs-ctl[3560]: EAL: Detected lcore 7 as core 1 on socket 0\n"
15602
"ovs-ctl[3560]: EAL: Detected lcore 8 as core 2 on socket 0\n"
15603
"ovs-ctl[3560]: EAL: Detected lcore 9 as core 3 on socket 0\n"
15604
"ovs-ctl[3560]: EAL: Detected lcore 10 as core 4 on socket 0\n"
15605
"ovs-ctl[3560]: EAL: Detected lcore 11 as core 5 on socket 0\n"
15606
"ovs-ctl[3560]: EAL: Support maximum 128 logical core(s) by configuration.\n"
15607
"ovs-ctl[3560]: EAL: Detected 12 lcore(s)\n"
15608
"ovs-ctl[3560]: EAL: VFIO modules not all loaded, skip VFIO support...\n"
15609
"ovs-ctl[3560]: EAL: Setting up physically contiguous memory...\n"
15610
"ovs-ctl[3560]: EAL: Ask a virtual area of 0x100000000 bytes\n"
15611
"ovs-ctl[3560]: EAL: Virtual area found at 0x7f2040000000 (size = "
15613
"ovs-ctl[3560]: EAL: Requesting 4 pages of size 1024MB from socket 0\n"
15614
"ovs-ctl[3560]: EAL: TSC frequency is ~2397202 KHz\n"
15615
"ovs-vswitchd[3592]: EAL: TSC frequency is ~2397202 KHz\n"
15616
"ovs-vswitchd[3592]: EAL: Master lcore 0 is ready (tid=fc6cbb00;cpuset=[0])\n"
15617
"ovs-vswitchd[3592]: EAL: PCI device 0000:04:00.0 on NUMA socket 0\n"
15618
"ovs-vswitchd[3592]: EAL: probe driver: 8086:1528 rte_ixgbe_pmd\n"
15619
"ovs-vswitchd[3592]: EAL: Not managed by a supported kernel driver, "
15621
"ovs-vswitchd[3592]: EAL: PCI device 0000:04:00.1 on NUMA socket 0\n"
15622
"ovs-vswitchd[3592]: EAL: probe driver: 8086:1528 rte_ixgbe_pmd\n"
15623
"ovs-vswitchd[3592]: EAL: PCI memory mapped at 0x7f2140000000\n"
15624
"ovs-vswitchd[3592]: EAL: PCI memory mapped at 0x7f2140200000\n"
15625
"ovs-ctl[3560]: EAL: Master lcore 0 is ready (tid=fc6cbb00;cpuset=[0])\n"
15626
"ovs-ctl[3560]: EAL: PCI device 0000:04:00.0 on NUMA socket 0\n"
15627
"ovs-ctl[3560]: EAL: probe driver: 8086:1528 rte_ixgbe_pmd\n"
15628
"ovs-ctl[3560]: EAL: Not managed by a supported kernel driver, skipped\n"
15629
"ovs-ctl[3560]: EAL: PCI device 0000:04:00.1 on NUMA socket 0\n"
15630
"ovs-ctl[3560]: EAL: probe driver: 8086:1528 rte_ixgbe_pmd\n"
15631
"ovs-ctl[3560]: EAL: PCI memory mapped at 0x7f2140000000\n"
15632
"ovs-ctl[3560]: EAL: PCI memory mapped at 0x7f2140200000\n"
15633
"ovs-vswitchd[3592]: PMD: eth_ixgbe_dev_init(): MAC: 4, PHY: 3\n"
15634
"ovs-vswitchd[3592]: PMD: eth_ixgbe_dev_init(): port 0 vendorID=0x8086 "
15635
"deviceID=0x1528\n"
15636
"ovs-ctl[3560]: PMD: eth_ixgbe_dev_init(): MAC: 4, PHY: 3\n"
15637
"ovs-ctl[3560]: PMD: eth_ixgbe_dev_init(): port 0 vendorID=0x8086 "
15638
"deviceID=0x1528\n"
15639
"ovs-ctl[3560]: Zone 0: name:<RG_MP_log_history>, phys:0x83fffdec0, "
15640
"len:0x2080, virt:0x7f213fffdec0, socket_id:0, flags:0\n"
15641
"ovs-ctl[3560]: Zone 1: name:<MP_log_history>, phys:0x83fd73d40, "
15642
"len:0x28a0c0, virt:0x7f213fd73d40, socket_id:0, flags:0\n"
15643
"ovs-ctl[3560]: Zone 2: name:<rte_eth_dev_data>, phys:0x83fd43380, "
15644
"len:0x2f700, virt:0x7f213fd43380, socket_id:0, flags:0\n"
15645
"ovs-ctl[3560]: * Starting ovs-vswitchd\n"
15646
"ovs-ctl[3560]: * Enabling remote OVSDB managers\n"
15647
"systemd[1]: Started Open vSwitch Internal Unit.\n"
15648
"systemd[1]: Starting Open vSwitch...\n"
15649
"systemd[1]: Started Open vSwitch.\n"
15652
"CMD: sudo ovs-vsctl add-br ovsdpdkbr0 -- set bridge ovsdpdkbr0 "
15653
"datapath_type=netdev\n"
15656
"2016-01-22T08:58:56.344Z|00008|memory|INFO|37256 kB peak resident set size "
15657
"after 24.5 seconds\n"
15658
"2016-01-22T08:58:56.346Z|00009|ofproto_dpif|INFO|netdev@ovs-netdev: Datapath "
15659
"supports recirculation\n"
15660
"2016-01-22T08:58:56.346Z|00010|ofproto_dpif|INFO|netdev@ovs-netdev: MPLS "
15661
"label stack length probed as 3\n"
15662
"2016-01-22T08:58:56.346Z|00011|ofproto_dpif|INFO|netdev@ovs-netdev: Datapath "
15663
"supports unique flow ids\n"
15664
"2016-01-22T08:58:56.346Z|00012|ofproto_dpif|INFO|netdev@ovs-netdev: Datapath "
15665
"does not support ct_state\n"
15666
"2016-01-22T08:58:56.346Z|00013|ofproto_dpif|INFO|netdev@ovs-netdev: Datapath "
15667
"does not support ct_zone\n"
15668
"2016-01-22T08:58:56.346Z|00014|ofproto_dpif|INFO|netdev@ovs-netdev: Datapath "
15669
"does not support ct_mark\n"
15670
"2016-01-22T08:58:56.346Z|00015|ofproto_dpif|INFO|netdev@ovs-netdev: Datapath "
15671
"does not support ct_label\n"
15672
"2016-01-22T08:58:56.360Z|00016|bridge|INFO|bridge ovsdpdkbr0: added "
15673
"interface ovsdpdkbr0 on port 65534\n"
15674
"2016-01-22T08:58:56.361Z|00017|bridge|INFO|bridge ovsdpdkbr0: using datapath "
15675
"ID 00005a4a1ed0a14d\n"
15676
"2016-01-22T08:58:56.361Z|00018|connmgr|INFO|ovsdpdkbr0: added service "
15677
"controller \"punix:/var/run/openvswitch/ovsdpdkbr0.mgmt\"\n"
15680
"ovs-vsctl: ovs|00001|vsctl|INFO|Called as ovs-vsctl add-br ovsdpdkbr0 -- set "
15681
"bridge ovsdpdkbr0 datapath_type=netdev\n"
15682
"systemd-udevd[3607]: Could not generate persistent MAC address for ovs-"
15683
"netdev: No such file or directory\n"
15684
"kernel: [50165.886554] device ovs-netdev entered promiscuous mode\n"
15685
"kernel: [50165.901261] device ovsdpdkbr0 entered promiscuous mode\n"
15688
"CMD: sudo ovs-vsctl add-port ovsdpdkbr0 dpdk0 -- set Interface dpdk0 "
15692
"2016-01-22T08:59:06.369Z|00019|memory|INFO|peak resident set size grew 155% "
15693
"in last 10.0 seconds, from 37256 kB to 95008 kB\n"
15694
"2016-01-22T08:59:06.369Z|00020|memory|INFO|handlers:4 ports:1 revalidators:2 "
15696
"2016-01-22T08:59:30.989Z|00021|dpdk|INFO|Port 0: 8c:dc:d4:b3:6d:e9\n"
15697
"2016-01-22T08:59:31.520Z|00022|dpdk|INFO|Port 0: 8c:dc:d4:b3:6d:e9\n"
15698
"2016-01-22T08:59:31.521Z|00023|dpif_netdev|INFO|Created 1 pmd threads on "
15700
"2016-01-22T08:59:31.522Z|00001|dpif_netdev(pmd16)|INFO|Core 0 processing "
15702
"2016-01-22T08:59:31.522Z|00024|bridge|INFO|bridge ovsdpdkbr0: added "
15703
"interface dpdk0 on port 1\n"
15704
"2016-01-22T08:59:31.522Z|00025|bridge|INFO|bridge ovsdpdkbr0: using datapath "
15705
"ID 00008cdcd4b36de9\n"
15706
"2016-01-22T08:59:31.523Z|00002|dpif_netdev(pmd16)|INFO|Core 0 processing "
15710
"ovs-vsctl: ovs|00001|vsctl|INFO|Called as ovs-vsctl add-port ovsdpdkbr0 "
15711
"dpdk0 -- set Interface dpdk0 type=dpdk\n"
15712
"ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a79ebc0 "
15713
"hw_ring=0x7f211a7a6c00 dma_addr=0x81a7a6c00\n"
15714
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Using simple tx code path\n"
15715
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx enabled.\n"
15716
"ovs-vswitchd[3595]: PMD: ixgbe_dev_rx_queue_setup(): sw_ring=0x7f211a78a6c0 "
15717
"sw_sc_ring=0x7f211a786580 hw_ring=0x7f211a78e800 dma_addr=0x81a78e800\n"
15718
"ovs-vswitchd[3595]: PMD: ixgbe_set_rx_function(): Vector rx enabled, please "
15719
"make sure RX burst size no less than 4 (port=0).\n"
15720
"ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a79ebc0 "
15721
"hw_ring=0x7f211a7a6c00 dma_addr=0x81a7a6c00\n"
15722
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Using simple tx code path\n"
15723
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx enabled.\n"
15724
"ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a76e4c0 "
15725
"hw_ring=0x7f211a776500 dma_addr=0x81a776500\n"
15726
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Using simple tx code path\n"
15727
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx enabled.\n"
15728
"ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a756440 "
15729
"hw_ring=0x7f211a75e480 dma_addr=0x81a75e480\n"
15730
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Using simple tx code path\n"
15731
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx enabled.\n"
15732
"ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a73e3c0 "
15733
"hw_ring=0x7f211a746400 dma_addr=0x81a746400\n"
15734
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Using simple tx code path\n"
15735
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx enabled.\n"
15736
"ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a726340 "
15737
"hw_ring=0x7f211a72e380 dma_addr=0x81a72e380\n"
15738
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Using simple tx code path\n"
15739
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx enabled.\n"
15740
"ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a70e2c0 "
15741
"hw_ring=0x7f211a716300 dma_addr=0x81a716300\n"
15742
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Using simple tx code path\n"
15743
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx enabled.\n"
15744
"ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a6f6240 "
15745
"hw_ring=0x7f211a6fe280 dma_addr=0x81a6fe280\n"
15746
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Using simple tx code path\n"
15747
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx enabled.\n"
15748
"ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a6de1c0 "
15749
"hw_ring=0x7f211a6e6200 dma_addr=0x81a6e6200\n"
15750
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Using simple tx code path\n"
15751
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx enabled.\n"
15752
"ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a6c6140 "
15753
"hw_ring=0x7f211a6ce180 dma_addr=0x81a6ce180\n"
15754
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Using simple tx code path\n"
15755
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx enabled.\n"
15756
"ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a6ae0c0 "
15757
"hw_ring=0x7f211a6b6100 dma_addr=0x81a6b6100\n"
15758
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Using simple tx code path\n"
15759
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx enabled.\n"
15760
"ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a696040 "
15761
"hw_ring=0x7f211a69e080 dma_addr=0x81a69e080\n"
15762
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Using simple tx code path\n"
15763
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx enabled.\n"
15764
"ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a67dfc0 "
15765
"hw_ring=0x7f211a686000 dma_addr=0x81a686000\n"
15766
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Using simple tx code path\n"
15767
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx enabled.\n"
15768
"ovs-vswitchd[3595]: PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f211a665e40 "
15769
"hw_ring=0x7f211a66de80 dma_addr=0x81a66de80\n"
15770
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Using simple tx code path\n"
15771
"ovs-vswitchd[3595]: PMD: ixgbe_set_tx_function(): Vector tx enabled.\n"
15772
"ovs-vswitchd[3595]: PMD: ixgbe_dev_rx_queue_setup(): sw_ring=0x7f211a78a6c0 "
15773
"sw_sc_ring=0x7f211a786580 hw_ring=0x7f211a78e800 dma_addr=0x81a78e800\n"
15774
"ovs-vswitchd[3595]: PMD: ixgbe_set_rx_function(): Vector rx enabled, please "
15775
"make sure RX burst size no less than 4 (port=0).\n"
15778
"CMD: sudo ovs-vsctl add-port ovsdpdkbr0 vhost-user-1 -- set Interface vhost-"
15779
"user-1 type=dpdkvhostuser\n"
15782
"2016-01-22T09:00:35.145Z|00026|dpdk|INFO|Socket /var/run/openvswitch/vhost-"
15783
"user-1 created for vhost-user port vhost-user-1\n"
15784
"2016-01-22T09:00:35.145Z|00003|dpif_netdev(pmd16)|INFO|Core 0 processing "
15786
"2016-01-22T09:00:35.145Z|00004|dpif_netdev(pmd16)|INFO|Core 0 processing "
15787
"port 'vhost-user-1'\n"
15788
"2016-01-22T09:00:35.145Z|00027|bridge|INFO|bridge ovsdpdkbr0: added "
15789
"interface vhost-user-1 on port 2\n"
15792
"ovs-vsctl: ovs|00001|vsctl|INFO|Called as ovs-vsctl add-port ovsdpdkbr0 "
15793
"vhost-user-1 -- set Interface vhost-user-1 type=dpdkvhostuser\n"
15794
"ovs-vswitchd[3595]: VHOST_CONFIG: socket created, fd:46\n"
15795
"ovs-vswitchd[3595]: VHOST_CONFIG: bind to /var/run/openvswitch/vhost-user-1\n"
15797
"Eventually we can see the poll thread in top\n"
15798
" PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND\n"
15799
" 3595 root 10 -10 4975344 103936 9916 S 100.0 0.3 33:13.56 ovs-"
15804
#: serverguide/C/network-config.xml:1950(ulink)
15221
15805
msgid "DPDK Documentation"
15224
#: serverguide/C/network-config.xml:1701(ulink)
15808
#: serverguide/C/network-config.xml:1955(ulink)
15225
15809
msgid "Release Notes matching the version packages in Ubuntu 16.04"
15228
#: serverguide/C/network-config.xml:1706(ulink)
15812
#: serverguide/C/network-config.xml:1960(ulink)
15229
15813
msgid "Linux DPDK User Getting Started"
15232
#: serverguide/C/network-config.xml:1711(ulink)
15816
#: serverguide/C/network-config.xml:1965(ulink)
15233
15817
msgid "EAL Command-line Options"
15236
#: serverguide/C/network-config.xml:1716(ulink)
15820
#: serverguide/C/network-config.xml:1970(ulink)
15237
15821
msgid "DPDK Api Documentation"
15240
#: serverguide/C/network-config.xml:1721(ulink)
15824
#: serverguide/C/network-config.xml:1975(ulink)
15241
15825
msgid "OpenVswitch DPDK installation"
15244
#: serverguide/C/network-config.xml:1726(ulink)
15828
#: serverguide/C/network-config.xml:1980(ulink)
15245
15829
msgid "Wikipedias definition of DPDK"
23879
24452
#: serverguide/C/lamp-applications.xml:278(title)
23883
24456
#: serverguide/C/lamp-applications.xml:280(para)
23885
"MediaWiki is an web based Wiki software written in the PHP language. It can "
23886
"either use <application>MySQL</application> or "
23887
"<application>PostgreSQL</application> Database Management System."
23890
#: serverguide/C/lamp-applications.xml:290(para)
23892
"Before installing <application>MediaWiki</application> you should also "
23893
"install <application>Apache2</application>, the "
23894
"<application>PHP</application> scripting language and a Database Management "
23895
"System. <application>MySQL</application> or "
23896
"<application>PostgreSQL</application> are the most common, choose one "
23897
"depending on your need. Please refer to those sections in this manual for "
23898
"installation instructions."
23901
#: serverguide/C/lamp-applications.xml:298(para)
23903
"To install <application>MediaWiki</application>, run the following command "
23904
"in the command prompt:"
23907
#: serverguide/C/lamp-applications.xml:304(command)
23908
msgid "sudo apt install mediawiki php-gd"
23911
#: serverguide/C/lamp-applications.xml:307(para)
23913
"For additional <application>MediaWiki</application> functionality see the "
23914
"<application>mediawiki-extensions</application> package."
23917
#: serverguide/C/lamp-applications.xml:317(para)
23919
"The Apache configuration file <filename>mediawiki.conf</filename> for "
23920
"<application>MediaWiki</application> is installed in "
23921
"<filename>/etc/apache2/conf-available/</filename> directory. To access "
23922
"<application>MediaWiki</application>, uncomment the following line in the "
23926
#: serverguide/C/lamp-applications.xml:324(screen)
23930
"# Alias /mediawiki /var/lib/mediawiki\n"
23933
#: serverguide/C/lamp-applications.xml:328(para)
23935
"The <application>MediaWiki</application> configuration also needs to be "
23939
#: serverguide/C/lamp-applications.xml:332(command)
23940
msgid "sudo a2enconf mediawiki.conf"
23943
#: serverguide/C/lamp-applications.xml:335(para)
23944
msgid "Restart Apache server."
23947
#: serverguide/C/lamp-applications.xml:342(para)
23949
"Access <application>MediaWiki</application> by visiting <ulink "
23950
"url=\"http://localhost/mediawiki/mw-"
23951
"config/index.php\">http://localhost/mediawiki/mw-config/index.php</ulink>. "
23952
"(Or <ulink url=\"http://NAME_OF_YOUR_VIRTUAL_HOST/mediawiki/mw-"
23953
"config/index.php\">http://NAME_OF_YOUR_VIRTUAL_HOST/mediawiki/mw-"
23954
"config/index.php</ulink> if your server has no GUI.)"
23957
#: serverguide/C/lamp-applications.xml:350(para)
23959
"Please read the <quote>Environmental checks</quote> section of the "
23960
"configuration page. You should be able to fix many issues by carefully "
23961
"reading this section."
23964
#: serverguide/C/lamp-applications.xml:357(para)
23966
"Once the configuration is complete, you should copy the "
23967
"<filename>LocalSettings.php</filename> file to "
23968
"<filename>/etc/mediawiki</filename> directory:"
23971
#: serverguide/C/lamp-applications.xml:364(command)
23972
msgid "sudo mv /var/lib/mediawiki/config/LocalSettings.php /etc/mediawiki/"
23975
#: serverguide/C/lamp-applications.xml:367(para)
23977
"You may also want to edit "
23978
"<filename>/etc/mediawiki/LocalSettings.php</filename> in order to set the "
23979
"memory limit (disabled by default):"
23982
#: serverguide/C/lamp-applications.xml:372(programlisting)
23986
"ini_set( 'memory_limit', '64M' );\n"
23989
#: serverguide/C/lamp-applications.xml:379(title)
23993
#: serverguide/C/lamp-applications.xml:380(para)
23995
"The extensions add new features and enhancements for the MediaWiki "
23996
"application. The extensions give wiki administrators and end users the "
23997
"ability to customize MediaWiki to their requirements."
24000
#: serverguide/C/lamp-applications.xml:386(para)
24002
"You can download MediaWiki extensions as an archive file or checkout from "
24003
"the Subversion repository. You should copy it to "
24004
"<filename>/var/lib/mediawiki/extensions</filename> directory. You should "
24005
"also add the following line at the end of file: "
24006
"<filename>/etc/mediawiki/LocalSettings.php</filename>."
24009
#: serverguide/C/lamp-applications.xml:394(programlisting)
24013
"require_once \"$IP/extensions/ExtentionName/ExtentionName.php\";\n"
24016
#: serverguide/C/lamp-applications.xml:404(para)
24018
"For more details, please refer to the <ulink "
24019
"url=\"http://www.mediawiki.org\">MediaWiki</ulink> web site."
24022
#: serverguide/C/lamp-applications.xml:410(para)
24024
"The <ulink url=\"http://www.packtpub.com/Mediawiki/book\">MediaWiki "
24025
"Administrators' Tutorial Guide</ulink> contains a wealth of information for "
24026
"new MediaWiki administrators."
24029
#: serverguide/C/lamp-applications.xml:416(para)
24031
"Also, the <ulink url=\"https://help.ubuntu.com/community/MediaWiki\">Ubuntu "
24032
"Wiki MediaWiki</ulink> page is a good resource."
24035
#: serverguide/C/lamp-applications.xml:426(title)
24039
#: serverguide/C/lamp-applications.xml:428(para)
24041
24458
"<application>phpMyAdmin</application> is a LAMP application specifically "
24042
24459
"written for administering <application>MySQL</application> servers. Written "
24043
24460
"in <application>PHP</application>, and accessed through a web browser, "
24044
24461
"phpMyAdmin provides a graphical interface for database administration tasks."
24047
#: serverguide/C/lamp-applications.xml:437(para)
24464
#: serverguide/C/lamp-applications.xml:289(para)
24049
24466
"Before installing <application>phpMyAdmin</application> you will need access "
24050
24467
"to a <application>MySQL</application> database either on the same host as "