Merge lp:~ted-m-cox/serverguide/virtualization_punctuation into lp:serverguide/trunk

Proposed by Ted Cox
Status: Merged
Approved by: Doug Smythies
Approved revision: 250
Merged at revision: 251
Proposed branch: lp:~ted-m-cox/serverguide/virtualization_punctuation
Merge into: lp:serverguide/trunk
Diff against target: 226 lines (+31/-39)
1 file modified
serverguide/C/virtualization.xml (+31/-39)
To merge this branch: bzr merge lp:~ted-m-cox/serverguide/virtualization_punctuation
Reviewer Review Type Date Requested Status
Doug Smythies Approve
Review via email: mp+258447@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Doug Smythies (dsmythies) wrote :

O.K. thanks.

Ted: Please consider to not make long lines.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'serverguide/C/virtualization.xml'
--- serverguide/C/virtualization.xml 2014-12-18 23:05:34 +0000
+++ serverguide/C/virtualization.xml 2015-05-07 04:56:37 +0000
@@ -112,9 +112,9 @@
112112
113 <para>Yet another way to install an Ubuntu virtual machine is to use113 <para>Yet another way to install an Ubuntu virtual machine is to use
114 <application>uvtool</application>.114 <application>uvtool</application>.
115 This application, available as of 14.04 allows you to set up115 This application, available as of 14.04, allows you to set up
116 specific VM options, execute custom post-install scripts, etc. For116 specific VM options, execute custom post-install scripts, etc. For
117 details see <xref linkend="cloud-images-and-uvtool"/></para>117 details see <xref linkend="cloud-images-and-uvtool"/>.</para>
118118
119 <para>Libvirt can also be configured work with119 <para>Libvirt can also be configured work with
120 <application>Xen</application>. For details, see the Xen Ubuntu120 <application>Xen</application>. For details, see the Xen Ubuntu
@@ -198,7 +198,7 @@
198198
199 <para>After launching <application>virt-install</application> you can199 <para>After launching <application>virt-install</application> you can
200 connect to the virtual machine's console either locally using a GUI (if200 connect to the virtual machine's console either locally using a GUI (if
201 your server has a GUI), or via a remote VNC client from a GUI based201 your server has a GUI), or via a remote VNC client from a GUI-based
202 computer.</para>202 computer.</para>
203 </sect2>203 </sect2>
204204
@@ -433,7 +433,7 @@
433 </listitem>433 </listitem>
434434
435 <listitem>435 <listitem>
436 <para>The <ulink url="http://virt-manager.et.redhat.com/">Virtual436 <para>The <ulink url="http://virt-manager.org/">Virtual
437 Machine Manager</ulink> site has more information on437 Machine Manager</ulink> site has more information on
438 <application>virt-manager</application> development.</para>438 <application>virt-manager</application> development.</para>
439 </listitem>439 </listitem>
@@ -466,8 +466,7 @@
466 <sect2 id="cloud-image-introduction" status="review">466 <sect2 id="cloud-image-introduction" status="review">
467 <title>Introduction</title>467 <title>Introduction</title>
468468
469 <para>With Ubuntu being one of the most used operating systems on most of469 <para>With Ubuntu being one of the most used operating systems on many cloud platforms, the availability of stable and secure cloud images
470 the cloud platforms, the availability of stable and secure cloud images
471 has become very important. As of 12.04 the utilization of cloud470 has become very important. As of 12.04 the utilization of cloud
472 images outside of a cloud infrastructure has been improved. It is now471 images outside of a cloud infrastructure has been improved. It is now
473 possible to use those images to create a virtual machine without the472 possible to use those images to create a virtual machine without the
@@ -486,7 +485,7 @@
486 <sect3>485 <sect3>
487 <title>Uvtool packages</title>486 <title>Uvtool packages</title>
488487
489 <para>The following packages and their dependancies will be required 488 <para>The following packages and their dependencies will be required
490 in order to use uvtool:</para>489 in order to use uvtool:</para>
491490
492 <para/>491 <para/>
@@ -502,8 +501,7 @@
502501
503 </itemizedlist>502 </itemizedlist>
504 503
505<para>Installation of <application>uvtool</application> is done the same as 504<para>To install <application>uvtool</application>, run:</para>
506for any other application by using apt-get:</para>
507<programlisting>$ apt-get -y install uvtool</programlisting>505<programlisting>$ apt-get -y install uvtool</programlisting>
508506
509<para>This will install uvtool's main commands: </para>507<para>This will install uvtool's main commands: </para>
@@ -523,7 +521,7 @@
523521
524 <programlisting>$ uvt-simplestreams-libvirt sync arch=amd64</programlisting>522 <programlisting>$ uvt-simplestreams-libvirt sync arch=amd64</programlisting>
525 523
526<para>After an amount of time required to download all the images from the internet, you will have 524<para>After an amount of time required to download all the images from the Internet, you will have
527a complete set of cloud images stored locally. To see what has been downloaded use the following 525a complete set of cloud images stored locally. To see what has been downloaded use the following
528command:</para>526command:</para>
529527
@@ -545,9 +543,7 @@
545 <sect3>543 <sect3>
546 <title>Create the VM using uvt-kvm</title>544 <title>Create the VM using uvt-kvm</title>
547545
548<para>In order to be able to connect to the virtual machine once it has been created, it is necessary to have a 546<para>In order to connect to the virtual machine once it has been created, you must have a valid SSH key available for the Ubuntu user. If your environment does not have an SSH key, you can easily create one using the following command:</para>
549valid SSH key available for the ubuntu user. If your environment does not have a ssh key, you can easily create
550one using the following command:</para>
551547
552<programlisting>548<programlisting>
553$ ssh-keygen549$ ssh-keygen
@@ -572,18 +568,17 @@
572| E |568| E |
573+-----------------+569+-----------------+
574</programlisting>570</programlisting>
575 <para>The creation of a new virtual machine using uvtool is easy. In its simplest form, 571 <para>To create of a new virtual machine using uvtool, run the following in a terminal:</para>
576 you only need to do:</para>
577572
578<programlisting>$ uvt-kvm create firsttest</programlisting>573<programlisting>$ uvt-kvm create firsttest</programlisting>
579574
580<para>This will create a VM named <emphasis role="bold">firsttest</emphasis> using the current LTS cloud image available locally.575<para>This will create a VM named <emphasis role="bold">firsttest</emphasis> using the current LTS cloud image available locally.
581If you want to specify a release to be used to create the VM, you need to use the <emphasis role="bold">release=</emphasis> filter</para>576If you want to specify a release to be used to create the VM, you need to use the <emphasis role="bold">release=</emphasis> filter:</para>
582577
583<programlisting>$ uvt-kvm create secondtest release=trusty</programlisting>578<programlisting>$ uvt-kvm create secondtest release=trusty</programlisting>
584579
585<para>The <application>uvt-kvm wait {name}</application> can be used to wait until the creation of 580<para><application>uvt-kvm wait</application> can be used to wait until the creation of
586the VM has completed</para>581the VM has completed:</para>
587582
588<programlisting>$ uvt-kvm wait secondttest --insecure583<programlisting>$ uvt-kvm wait secondttest --insecure
589Warning: secure wait for boot-finished not yet implemented; use --insecure.584Warning: secure wait for boot-finished not yet implemented; use --insecure.
@@ -591,16 +586,14 @@
591</sect3>586</sect3>
592587
593<sect3><title>Connect to the running VM</title>588<sect3><title>Connect to the running VM</title>
594<para>Once the virtual machine creation is completed, you can connect to it using ssh:589<para>Once the virtual machine creation is completed, you can connect to it using SSH:
595</para>590</para>
596591
597<programlisting>$ uvt-kvm ssh secondtest --insecure</programlisting>592<programlisting>$ uvt-kvm ssh secondtest --insecure</programlisting>
598593
599<para>For the time being, the <emphasis role="bold">--insecure</emphasis> is required so you should be594<para>For the time being, the <emphasis role="bold">--insecure</emphasis> is required, so use this mechanism to connect to your VM only if you completely trust your network infrastructure.</para>
600using this mechanism to connect to your VM only if you completely trust your network infrastructure</para>
601595
602<para>You can also connect to your VM using a regular ssh session using the IP address of the VM. The address596<para>You can also connect to your VM using a regular SSH session using the IP address of the VM. The address can be queried using the following command:</para>
603can be queried using the following command: </para>
604597
605<programlisting>598<programlisting>
606$ uvt-kvm ip secondtest599$ uvt-kvm ip secondtest
@@ -629,7 +622,7 @@
629</sect3>622</sect3>
630623
631<sect3><title>Get the list of running VMs</title>624<sect3><title>Get the list of running VMs</title>
632<para>You can get the list of VM running on your system with this command:</para>625<para>You can get the list of VMs running on your system with this command:</para>
633626
634<programlisting>$ uvt-kvm list627<programlisting>$ uvt-kvm list
635secondtest628secondtest
@@ -637,29 +630,28 @@
637</sect3>630</sect3>
638631
639<sect3><title>Destroy your VM</title>632<sect3><title>Destroy your VM</title>
640<para>Once you are done with your VM, you can proceed to destroy it with: </para>633<para>Once you are done with your VM, you can destroy it with:</para>
641634
642<programlisting>$ uvt-kvm destroy secondtest</programlisting>635<programlisting>$ uvt-kvm destroy secondtest</programlisting>
643</sect3>636</sect3>
644<sect3><title>More uvt-kvm options</title>637<sect3><title>More uvt-kvm options</title>
645638
646<para>The following options can be used to change some of the characteristics of 639<para>The following options can be used to change some of the characteristics of the VM that you are creating:</para>
647the virtual memory that you are creating</para>
648640
649<itemizedlist mark="bullet">641<itemizedlist mark="bullet">
650<listitem><para>--memory : Amount of RAM in megabytes. Default: 512</para></listitem>642<listitem><para>--memory : Amount of RAM in megabytes. Default: 512.</para></listitem>
651<listitem><para>--disk : Size of the OS disk in gigabytes. Default: 8</para></listitem>643<listitem><para>--disk : Size of the OS disk in gigabytes. Default: 8.</para></listitem>
652<listitem><para>--cpu : Number of CPU cores. Default: 1</para></listitem>644<listitem><para>--cpu : Number of CPU cores. Default: 1.</para></listitem>
653</itemizedlist>645</itemizedlist>
654646
655<para>Some other parameters will have an impact on the cloud-init configuration</para>647<para>Some other parameters will have an impact on the cloud-init configuration:</para>
656<itemizedlist mark="bullet">648<itemizedlist mark="bullet">
657<listitem><para>--password password : Allow login to the VM using the ubuntu account and this provided password</para></listitem>649<listitem><para>--password password : Allow login to the VM using the Ubuntu account and this provided password.</para></listitem>
658<listitem><para>--run-script-once script_file : Run script_file as root on the VM the first time it is booted, but never again.</para></listitem>650<listitem><para>--run-script-once script_file : Run script_file as root on the VM the first time it is booted, but never again.</para></listitem>
659<listitem><para>--packages package_list : Install the comma-separated packages specified in package_list on first boot.</para></listitem>651<listitem><para>--packages package_list : Install the comma-separated packages specified in package_list on first boot.</para></listitem>
660</itemizedlist>652</itemizedlist>
661653
662<para>A complete description of all available modifiers is available in the manpage of uvt-kvm</para>654<para>A complete description of all available modifiers is available in the manpage of uvt-kvm.</para>
663</sect3>655</sect3>
664</sect2>656</sect2>
665657
@@ -846,7 +838,7 @@
846 <sect3>838 <sect3>
847 <title>Basic privileged usage</title>839 <title>Basic privileged usage</title>
848 <para>840 <para>
849 To create a privileged container, you can simply to841 To create a privileged container, you can simply do:
850 </para>842 </para>
851<screen>843<screen>
852<command>844<command>
@@ -1027,7 +1019,7 @@
1027 </para>1019 </para>
1028 <para>1020 <para>
1029 <filename>lxc.conf</filename> and <filename>default.conf</filename> are1021 <filename>lxc.conf</filename> and <filename>default.conf</filename> are
1030 exist both under <filename>/etc/lxc</filename> and <filename>$HOME/.config/lxc</filename>,1022 both under <filename>/etc/lxc</filename> and <filename>$HOME/.config/lxc</filename>,
1031 while <filename>lxc-usernet.conf</filename> is only host-wide.1023 while <filename>lxc-usernet.conf</filename> is only host-wide.
1032 </para>1024 </para>
1033 <para>1025 <para>
@@ -1130,7 +1122,7 @@
1130 </para>1122 </para>
1131 </listitem>1123 </listitem>
1132 <listitem>1124 <listitem>
1133 <para><filename>/etc/init/lxc-instance.conf:</filename>1125 <para><filename>/etc/init/lxc-instance.conf</filename>
1134 is used by <filename>/etc/init/lxc.conf</filename>1126 is used by <filename>/etc/init/lxc.conf</filename>
1135 to autostart a container.1127 to autostart a container.
1136 </para>1128 </para>
@@ -1312,7 +1304,7 @@
1312 If you wish to use libvirt inside containers, then you will need1304 If you wish to use libvirt inside containers, then you will need
1313 to edit that policy (which is defined in1305 to edit that policy (which is defined in
1314 <filename>/etc/apparmor.d/lxc/lxc-default-with-nesting</filename>)1306 <filename>/etc/apparmor.d/lxc/lxc-default-with-nesting</filename>)
1315 to uncomment the following line1307 by uncommenting the following line:
1316 <screen>1308 <screen>
1317mount fstype=cgroup -> /sys/fs/cgroup/**,1309mount fstype=cgroup -> /sys/fs/cgroup/**,
1318 </screen>1310 </screen>
@@ -1452,7 +1444,7 @@
1452</command>1444</command>
1453</screen>1445</screen>
14541446
1455 <para>A snapshot can be created using</para>1447 <para>A snapshot can be created using:</para>
1456<screen>1448<screen>
1457<command>1449<command>
1458sudo lxc-clone -s -o C1 -n C21450sudo lxc-clone -s -o C1 -n C2
@@ -1588,7 +1580,7 @@
1588 specified by the <command>lxc.tty</command> variable, and is usually1580 specified by the <command>lxc.tty</command> variable, and is usually
1589 set to 4. Those consoles are shown on <filename>/dev/ttyN</filename>1581 set to 4. Those consoles are shown on <filename>/dev/ttyN</filename>
1590 (for 1 &lt;= N &lt;= 4). To log into console 3 from the host,1582 (for 1 &lt;= N &lt;= 4). To log into console 3 from the host,
1591 use</para>1583 use:</para>
15921584
1593 <screen>1585 <screen>
1594<command>1586<command>

Subscribers

People subscribed via source and target branches