Changeset 64523 in vbox for trunk/src/VBox/ValidationKit
- Timestamp:
- Nov 2, 2016 8:07:37 PM (8 years ago)
- Location:
- trunk/src/VBox/ValidationKit/docs
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/docs/TestBoxImaging.html
r64498 r64523 386 386 <dd><ul class="first last simple"> 387 387 <li>backup</li> 388 <li> redo-backup</li>388 <li>backup-again</li> 389 389 <li>restore</li> 390 <li>refresh-info</li> 391 <li>rescue</li> 390 392 </ul> 391 393 </dd> … … 393 395 <p>Possible modifier that indicates a subset of disk on testboxes with other OSes 394 396 installed. Support for partition level backup/restore is not explored here.</p> 397 <div class="section" id="how-to-use"> 398 <h2>How to use</h2> 399 <p>To perform one of the above maintenance actions on a testbox copy the</p> 400 </div> 395 401 </div> 396 402 <div class="section" id="storage-server"> … … 400 406 <blockquote> 401 407 <ol class="arabic simple"> 402 <li>/export s/testbox-tftp - TFTP config area. Read-write.</li>403 <li>/export s/testbox-backup - Images and logs. Read-write.</li>404 <li>/export s/testbox-nfsroot - Custom debian. Read-only, no root squash.</li>408 <li>/export/testbox-tftp - TFTP config area. Read-write.</li> 409 <li>/export/testbox-backup - Images and logs. Read-write.</li> 410 <li>/export/testbox-nfsroot - Custom debian. Read-only, no root squash.</li> 405 411 </ol> 406 412 </blockquote> 407 413 </div> 408 <div class="section" id="tftp-export s-testbox-tftp">409 <h1>TFTP (/export s/testbox-tftp)</h1>414 <div class="section" id="tftp-export-testbox-tftp"> 415 <h1>TFTP (/export/testbox-tftp)</h1> 410 416 <p>The testbox-tftp share needs to be writable, root squashing is okay.</p> 411 417 <p>We need files from both PXELINUX and SYSLINUX to make this work now. On a … … 419 425 Perform the following copy operations:</p> 420 426 <pre class="literal-block"> 421 cp /usr/lib/PXELINUX/pxelinux.0 testbox-tftp/422 cp /usr/lib/syslinux/modules/*/ldlinux.* testbox-tftp/423 cp /usr/lib/syslinux/modules/biostestbox-tftp/424 cp /usr/lib/syslinux/modules/efi32testbox-tftp/425 cp /usr/lib/syslinux/modules/efi64testbox-tftp/427 cp /usr/lib/PXELINUX/pxelinux.0 /mnt/testbox-tftp/ 428 cp /usr/lib/syslinux/modules/*/ldlinux.* /mnt/testbox-tftp/ 429 cp -R /usr/lib/syslinux/modules/bios /mnt/testbox-tftp/ 430 cp -R /usr/lib/syslinux/modules/efi32 /mnt/testbox-tftp/ 431 cp -R /usr/lib/syslinux/modules/efi64 /mnt/testbox-tftp/ 426 432 </pre> 427 433 <p>For simplicitly, all the testboxes boot using good old fashioned BIOS, no EFI. … … 445 451 </pre> 446 452 <p>This will make the default behavior to boot the local disk system.</p> 447 </div> 448 <div class="section" id="images-and-logs-exports-testbox-backup"> 449 <h1>Images and logs (/exports/testbox-backup)</h1> 453 <p>Create <tt class="docutils literal"><span class="pre">pxelinux.cfg/do-backup</span></tt>, <tt class="docutils literal"><span class="pre">pxelinux.cfg/do-backup-again</span></tt>, 454 <tt class="docutils literal"><span class="pre">pxelinux.cfg/do-restore</span></tt>, <tt class="docutils literal"><span class="pre">pxelinux.cfg/do-refresh-info</span></tt>, and 455 <tt class="docutils literal"><span class="pre">pxelinux.cfg/do-rescue</span></tt> configuration files on the form:</p> 456 <pre class="literal-block"> 457 PATH bios 458 DEFAULT maintenance 459 LABEL maintenance 460 MENU LABEL Maintenance (NFS) 461 KERNEL maintenance-boot/vmlinuz-3.16.0-4-amd64 462 APPEND initrd=maintenance-boot/initrd.img-3.16.0-4-amd64 testbox-action-backup ro ip=dhcp aufs=tmpfs boot=nfs root=/dev/nfs nfsroot=10.42.1.1:/export/testbox-nfsroot,ro nfsvers=3 nfsrootdebug 463 LABEL local-boot 464 LOCALBOOT 465 </pre> 466 <p>When you want to preform an action on a testbox, copy the <tt class="docutils literal"><span class="pre">do-<action></span></tt> to 467 <tt class="docutils literal"><span class="pre">pxeclient.cfg/<HEX-ip-addr></span></tt> and trigger a boot of the testbox. The machine 468 config will be removed automatically once the action has been successfully 469 completed.</p> 470 </div> 471 <div class="section" id="images-and-logs-export-testbox-backup"> 472 <h1>Images and logs (/export/testbox-backup)</h1> 450 473 <p>The testbox-backup share needs to be writable, root squashing is okay.</p> 474 <p>In the root there must be a file <tt class="docutils literal"><span class="pre">testbox-backup</span></tt> so we can easily tell 475 whether we've actually mounted the share or are just staring at an empty mount 476 point directory.</p> 477 <p>The <tt class="docutils literal"><span class="pre">testbox-maintenance.sh</span></tt> script maintains a global log in the root 478 directory that's called <tt class="docutils literal">maintenance.log</tt>. Errors will be logged there as 479 well as a ping and the action.</p> 451 480 <p>We use a directory layout based on dotted decimal IP addresses here, so for a 452 server with the IP 10.40.41.42 all its file will be under <tt class="docutils literal">10.40.41.42/</tt>.</p> 453 <p>Files found under <tt class="docutils literal">10.40.41.42/</tt>:</p> 481 server with the IP 10.40.41.42 all its file will be under <tt class="docutils literal">10.40.41.42/</tt>:</p> 454 482 <dl class="docutils"> 455 483 <dt><tt class="docutils literal"><hostname></tt></dt> … … 473 501 </dl> 474 502 </div> 475 <div class="section" id="debian-nfs-root-export s-testbox-nfsroot">476 <h1>Debian NFS root (/export s/testbox-nfsroot)</h1>503 <div class="section" id="debian-nfs-root-export-testbox-nfsroot"> 504 <h1>Debian NFS root (/export/testbox-nfsroot)</h1> 477 505 <p>The testbox-nfsroot share should be read-only and must <strong>not</strong> have root 478 506 squashing enabled.</p> … … 484 512 <blockquote> 485 513 <ul> 486 <li><p class="first"><tt class="docutils literal"><span class="pre">apt-get</span> install pxelinux syslinux <span class="pre">initramfs-tools</span> gddrescue joe</tt> and487 optionally <tt class="docutils literal"><span class="pre">apt-get</span> install smbclient <span class="pre">cifs-utils</span></tt>.</p>514 <li><p class="first"><tt class="docutils literal"><span class="pre">apt-get</span> install pxelinux syslinux <span class="pre">initramfs-tools</span> zip gddrescue joe</tt> 515 and optionally <tt class="docutils literal"><span class="pre">apt-get</span> install smbclient <span class="pre">cifs-utils</span></tt>.</p> 488 516 </li> 489 517 <li><p class="first"><tt class="docutils literal">/etc/default/grub</tt> was modified to set <tt class="docutils literal">GRUB_CMDLINE_LINUX_DEFAULT</tt> to … … 493 521 </li> 494 522 <li><p class="first">Create the directory <tt class="docutils literal">/etc/systemd/system/getty@tty1.service.d</tt> and create 495 the file noclear.confin it with the following content:</p>523 the file <tt class="docutils literal">noclear.conf</tt> in it with the following content:</p> 496 524 <pre class="literal-block"> 497 525 [Service] … … 501 529 messages, which includes messages from the testbox-maintenance service.</p> 502 530 </li> 503 <li><p class="first">Copy the <tt class="docutils literal"><span class="pre">testbox-maintenance.sh</span></tt> file found in the same directory as this504 document to <tt class="docutils literal">/root/scripts/</tt> (need to create the dir) and make it505 executable.</p>506 </li>507 <li><p class="first">Create the systemd service file for the maintenance service as508 <tt class="docutils literal"><span class="pre">/etc/systemd/system/textbox-maintenance.service</span></tt> with the content:</p>509 <pre class="literal-block">510 [Unit]511 Description=Testbox Maintenance512 After=network.target513 Before=getty@tty1.service514 515 [Service]516 Type=oneshot517 RemainAfterExit=True518 ExecStart=/root/scripts/testbox-maintenance.sh519 ExecStartPre=/bin/echo -e \033%G520 ExecReload=/bin/kill -HUP $MAINPID521 WorkingDirectory=/tmp522 Environment=TERM=xterm523 StandardOutput=journal+console524 525 [Install]526 WantedBy=multi-user.target527 </pre>528 </li>529 531 <li><p class="first">Mount the testbox-nfsroot under <tt class="docutils literal">/mnt/</tt> with write privileges. (The write 530 532 privileges are temporary - don't forget to remove them later on.):</p> 531 533 <pre class="literal-block"> 532 mount -t nfs myserver.com:/exports/testbox-nfsroot 533 </pre> 534 mount -t nfs myserver.com:/export/testbox-nfsroot 535 </pre> 536 <p>Note! Adding <tt class="docutils literal"><span class="pre">-o</span> nfsvers=3</tt> may help with some NTFv4 servers.</p> 534 537 </li> 535 538 <li><p class="first">Copy the debian root and dev file system onto nfsroot. If you have ssh … … 544 547 <blockquote> 545 548 <ul> 546 <li><p class="first">Enable our service: <tt class="docutils literal">systemctl enable <span class="pre">testbox-maintenance.service</span></tt></p> 549 <li><p class="first"><tt class="docutils literal">mount <span class="pre">-o</span> proc proc /proc</tt></p> 550 </li> 551 <li><p class="first"><tt class="docutils literal">mount <span class="pre">-o</span> sysfs sysfs /sys</tt></p> 552 </li> 553 <li><p class="first"><tt class="docutils literal">mkdir <span class="pre">/mnt/testbox-tftp</span> <span class="pre">/mnt/testbox-backup</span></tt></p> 554 </li> 555 <li><p class="first">Recreate <tt class="docutils literal">/etc/fstab</tt> with:</p> 556 <pre class="literal-block"> 557 proc /proc proc defaults 0 0 558 /dev/nfs / nfs defaults 1 1 559 10.42.1.1:/export/testbox-tftp /mnt/testbox-tftp nfs nfsvers=3 2 2 560 10.42.1.1:/export/testbox-backup /mnt/testbox-backup nfs nfsvers=3 3 3 561 </pre> 562 </li> 563 <li><p class="first">Do <tt class="docutils literal">mount <span class="pre">/mnt/testbox-tftp</span> && mount <span class="pre">/mnt/testbox-backup</span></tt> to mount the 564 two shares. This may be a good time to execute the instructions in the 565 sections above relating to these two shares.</p> 547 566 </li> 548 567 <li><p class="first">Edit <tt class="docutils literal"><span class="pre">/etc/initramfs-tools/initramfs.conf</span></tt> and change the <tt class="docutils literal">MODULES</tt> … … 556 575 an executable file with the following content:</p> 557 576 <pre class="literal-block"> 577 #!/bin/sh 558 578 # Don't run during update-initramfs: 559 579 case "$1" in … … 576 596 </li> 577 597 <li><p class="first">Update the init ramdisk: <tt class="docutils literal"><span class="pre">update-initramfs</span> <span class="pre">-u</span> <span class="pre">-k</span> all</tt></p> 578 </li> 579 <li><p class="first">Either copy the initrd.img and corresponding kernel to the 580 <tt class="docutils literal"><span class="pre">testbox-tftp/maintenance-boot/</span></tt> directory, or create 581 <tt class="docutils literal"><span class="pre">testbox-tftp/maintenance-boot</span></tt> as a symbolic link to 582 <tt class="docutils literal"><span class="pre">testbox-nfsroot/boot/</span></tt>.</p> 583 </li> 584 <li><p class="first">Recreate <tt class="docutils literal">/etc/fstab</tt> with:</p> 585 <pre class="literal-block"> 586 proc /proc proc defaults 0 0 587 /dev/nfs / nfs defaults 1 1 588 # Mount tftp and backup too. 589 </pre> 590 </li> 591 <li><p class="first">xxx</p> 598 <dl class="docutils"> 599 <dt>Note! It may be necessary to do <tt class="docutils literal">mount <span class="pre">-t</span> tmpfs tmpfs /var/tmp</tt> to help</dt> 600 <dd><p class="first last">this operation succeed.</p> 601 </dd> 602 </dl> 603 </li> 604 <li><p class="first">Copy <tt class="docutils literal">/boot</tt> to <tt class="docutils literal"><span class="pre">/mnt/testbox-tftp/maintenance-boot/</span></tt>.</p> 605 </li> 606 <li><p class="first">Copy the <tt class="docutils literal"><span class="pre">testbox-maintenance.sh</span></tt> file found in the same directory as this 607 document to <tt class="docutils literal">/root/scripts/</tt> (need to create the dir) and make it 608 executable.</p> 609 </li> 610 <li><p class="first">Create the systemd service file for the maintenance service as 611 <tt class="docutils literal"><span class="pre">/etc/systemd/system/testbox-maintenance.service</span></tt> with the content:</p> 612 <pre class="literal-block"> 613 [Unit] 614 Description=Testbox Maintenance 615 After=network.target 616 Before=getty@tty1.service 617 618 [Service] 619 Type=oneshot 620 RemainAfterExit=True 621 ExecStart=/root/scripts/testbox-maintenance.sh 622 ExecStartPre=/bin/echo -e \033%G 623 ExecReload=/bin/kill -HUP $MAINPID 624 WorkingDirectory=/tmp 625 Environment=TERM=xterm 626 StandardOutput=journal+console 627 628 [Install] 629 WantedBy=multi-user.target 630 </pre> 631 </li> 632 <li><p class="first">Enable our service: <tt class="docutils literal">systemctl enable <span class="pre">/etc/systemd/system/testbox-maintenance.service</span></tt></p> 633 </li> 634 <li><p class="first">xxxx ... more ???</p> 635 </li> 636 <li><p class="first">Before leaving the chroot, do <tt class="docutils literal">mount /proc /sys <span class="pre">/mnt/testbox-*</span></tt>.</p> 592 637 </li> 593 638 </ul> 594 639 </blockquote> 595 640 </li> 596 <li><dl class="first docutils"> 597 <dt>Testing the setup from a VM is kind of useful:</dt> 598 <dd><ul class="first last"> 641 <li><p class="first">Testing the setup from a VM is kind of useful (if the nfs server can be 642 convinced to accept root nfs mounts from non-privileged clinet ports):</p> 643 <blockquote> 644 <ul> 599 645 <li><p class="first">Create a VM using the 64-bit debian profile. Let's call it "pxe-vm".</p> 600 646 </li> … … 617 663 KERNEL maintenance-boot/vmlinuz-3.16.0-4-amd64 618 664 APPEND initrd=maintenance-boot/initrd.img-3.16.0-4-amd64 ro ip=dhcp aufs=tmpfs \ 619 boot=nfs root=/dev/nfs nfsroot=10.42.1.1:/export s/testbox-nfsroot665 boot=nfs root=/dev/nfs nfsroot=10.42.1.1:/export/testbox-nfsroot 620 666 LABEL local-boot 621 667 LOCALBOOT … … 623 669 </li> 624 670 </ul> 625 </dd> 626 </dl> 671 </blockquote> 627 672 </li> 628 673 </ul> -
trunk/src/VBox/ValidationKit/docs/TestBoxImaging.txt
r64498 r64523 44 44 Maintenance actions are: 45 45 - backup 46 - redo-backup46 - backup-again 47 47 - restore 48 - refresh-info 49 - rescue 48 50 49 51 Possible modifier that indicates a subset of disk on testboxes with other OSes … … 51 53 52 54 55 How to use 56 ---------- 57 58 To perform one of the above maintenance actions on a testbox copy the 59 60 53 61 Storage Server 54 62 ============== … … 57 65 avoids extra work getting CIFS sharing right too (NFS is already a pain). 58 66 59 1. /export s/testbox-tftp - TFTP config area. Read-write.60 2. /export s/testbox-backup - Images and logs. Read-write.61 3. /export s/testbox-nfsroot - Custom debian. Read-only, no root squash.62 63 64 TFTP (/export s/testbox-tftp)67 1. /export/testbox-tftp - TFTP config area. Read-write. 68 2. /export/testbox-backup - Images and logs. Read-write. 69 3. /export/testbox-nfsroot - Custom debian. Read-only, no root squash. 70 71 72 TFTP (/export/testbox-tftp) 65 73 ============================ 66 74 … … 78 86 Perform the following copy operations:: 79 87 80 cp /usr/lib/PXELINUX/pxelinux.0 testbox-tftp/81 cp /usr/lib/syslinux/modules/*/ldlinux.* testbox-tftp/82 cp /usr/lib/syslinux/modules/biostestbox-tftp/83 cp /usr/lib/syslinux/modules/efi32testbox-tftp/84 cp /usr/lib/syslinux/modules/efi64testbox-tftp/88 cp /usr/lib/PXELINUX/pxelinux.0 /mnt/testbox-tftp/ 89 cp /usr/lib/syslinux/modules/*/ldlinux.* /mnt/testbox-tftp/ 90 cp -R /usr/lib/syslinux/modules/bios /mnt/testbox-tftp/ 91 cp -R /usr/lib/syslinux/modules/efi32 /mnt/testbox-tftp/ 92 cp -R /usr/lib/syslinux/modules/efi64 /mnt/testbox-tftp/ 85 93 86 94 … … 109 117 This will make the default behavior to boot the local disk system. 110 118 111 112 113 Images and logs (/exports/testbox-backup) 119 Create ``pxelinux.cfg/do-backup``, ``pxelinux.cfg/do-backup-again``, 120 ``pxelinux.cfg/do-restore``, ``pxelinux.cfg/do-refresh-info``, and 121 ``pxelinux.cfg/do-rescue`` configuration files on the form:: 122 123 PATH bios 124 DEFAULT maintenance 125 LABEL maintenance 126 MENU LABEL Maintenance (NFS) 127 KERNEL maintenance-boot/vmlinuz-3.16.0-4-amd64 128 APPEND initrd=maintenance-boot/initrd.img-3.16.0-4-amd64 testbox-action-backup ro ip=dhcp aufs=tmpfs boot=nfs root=/dev/nfs nfsroot=10.42.1.1:/export/testbox-nfsroot,ro nfsvers=3 nfsrootdebug 129 LABEL local-boot 130 LOCALBOOT 131 132 When you want to preform an action on a testbox, copy the ``do-<action>`` to 133 ``pxeclient.cfg/<HEX-ip-addr>`` and trigger a boot of the testbox. The machine 134 config will be removed automatically once the action has been successfully 135 completed. 136 137 138 139 Images and logs (/export/testbox-backup) 114 140 ========================================= 115 141 116 142 The testbox-backup share needs to be writable, root squashing is okay. 117 143 144 In the root there must be a file ``testbox-backup`` so we can easily tell 145 whether we've actually mounted the share or are just staring at an empty mount 146 point directory. 147 148 The ``testbox-maintenance.sh`` script maintains a global log in the root 149 directory that's called ``maintenance.log``. Errors will be logged there as 150 well as a ping and the action. 151 118 152 We use a directory layout based on dotted decimal IP addresses here, so for a 119 server with the IP 10.40.41.42 all its file will be under ``10.40.41.42/``. 120 121 122 Files found under ``10.40.41.42/``: 153 server with the IP 10.40.41.42 all its file will be under ``10.40.41.42/``: 123 154 124 155 ``<hostname>`` … … 149 180 150 181 151 Debian NFS root (/export s/testbox-nfsroot)182 Debian NFS root (/export/testbox-nfsroot) 152 183 ========================================== 153 184 … … 162 193 done in a VM. After installation the following modifications was done: 163 194 164 - ``apt-get install pxelinux syslinux initramfs-tools gddrescue joe`` and165 optionally ``apt-get install smbclient cifs-utils``.195 - ``apt-get install pxelinux syslinux initramfs-tools zip gddrescue joe`` 196 and optionally ``apt-get install smbclient cifs-utils``. 166 197 167 198 … … 172 203 173 204 - Create the directory ``/etc/systemd/system/[email protected]`` and create 174 the file noclear.confin it with the following content::205 the file ``noclear.conf`` in it with the following content:: 175 206 176 207 [Service] … … 180 211 messages, which includes messages from the testbox-maintenance service. 181 212 182 - Copy the ``testbox-maintenance.sh`` file found in the same directory as this183 document to ``/root/scripts/`` (need to create the dir) and make it184 executable.185 186 - Create the systemd service file for the maintenance service as187 ``/etc/systemd/system/textbox-maintenance.service`` with the content::188 189 [Unit]190 Description=Testbox Maintenance191 After=network.target192 [email protected]193 194 [Service]195 Type=oneshot196 RemainAfterExit=True197 ExecStart=/root/scripts/testbox-maintenance.sh198 ExecStartPre=/bin/echo -e \033%G199 ExecReload=/bin/kill -HUP $MAINPID200 WorkingDirectory=/tmp201 Environment=TERM=xterm202 StandardOutput=journal+console203 204 [Install]205 WantedBy=multi-user.target206 207 213 - Mount the testbox-nfsroot under ``/mnt/`` with write privileges. (The write 208 214 privileges are temporary - don't forget to remove them later on.):: 209 215 210 mount -t nfs myserver.com:/exports/testbox-nfsroot 216 mount -t nfs myserver.com:/export/testbox-nfsroot 217 218 Note! Adding ``-o nfsvers=3`` may help with some NTFv4 servers. 211 219 212 220 - Copy the debian root and dev file system onto nfsroot. If you have ssh … … 220 228 - chroot into the nfsroot: ``chroot /mnt/`` 221 229 222 - Enable our service: ``systemctl enable testbox-maintenance.service`` 230 - ``mount -o proc proc /proc`` 231 232 - ``mount -o sysfs sysfs /sys`` 233 234 - ``mkdir /mnt/testbox-tftp /mnt/testbox-backup`` 235 236 - Recreate ``/etc/fstab`` with:: 237 238 proc /proc proc defaults 0 0 239 /dev/nfs / nfs defaults 1 1 240 10.42.1.1:/export/testbox-tftp /mnt/testbox-tftp nfs nfsvers=3 2 2 241 10.42.1.1:/export/testbox-backup /mnt/testbox-backup nfs nfsvers=3 3 3 242 243 - Do ``mount /mnt/testbox-tftp && mount /mnt/testbox-backup`` to mount the 244 two shares. This may be a good time to execute the instructions in the 245 sections above relating to these two shares. 223 246 224 247 - Edit ``/etc/initramfs-tools/initramfs.conf`` and change the ``MODULES`` … … 232 255 an executable file with the following content:: 233 256 257 #!/bin/sh 234 258 # Don't run during update-initramfs: 235 259 case "$1" in … … 252 276 - Update the init ramdisk: ``update-initramfs -u -k all`` 253 277 254 - Either copy the initrd.img and corresponding kernel to the 255 ``testbox-tftp/maintenance-boot/`` directory, or create 256 ``testbox-tftp/maintenance-boot`` as a symbolic link to 257 ``testbox-nfsroot/boot/``. 258 259 - Recreate ``/etc/fstab`` with:: 260 261 proc /proc proc defaults 0 0 262 /dev/nfs / nfs defaults 1 1 263 # Mount tftp and backup too. 264 265 - xxx 266 267 268 - Testing the setup from a VM is kind of useful: 278 Note! It may be necessary to do ``mount -t tmpfs tmpfs /var/tmp`` to help 279 this operation succeed. 280 281 - Copy ``/boot`` to ``/mnt/testbox-tftp/maintenance-boot/``. 282 283 - Copy the ``testbox-maintenance.sh`` file found in the same directory as this 284 document to ``/root/scripts/`` (need to create the dir) and make it 285 executable. 286 287 - Create the systemd service file for the maintenance service as 288 ``/etc/systemd/system/testbox-maintenance.service`` with the content:: 289 290 [Unit] 291 Description=Testbox Maintenance 292 After=network.target 293 [email protected] 294 295 [Service] 296 Type=oneshot 297 RemainAfterExit=True 298 ExecStart=/root/scripts/testbox-maintenance.sh 299 ExecStartPre=/bin/echo -e \033%G 300 ExecReload=/bin/kill -HUP $MAINPID 301 WorkingDirectory=/tmp 302 Environment=TERM=xterm 303 StandardOutput=journal+console 304 305 [Install] 306 WantedBy=multi-user.target 307 308 - Enable our service: ``systemctl enable /etc/systemd/system/testbox-maintenance.service`` 309 310 - xxxx ... more ??? 311 312 - Before leaving the chroot, do ``mount /proc /sys /mnt/testbox-*``. 313 314 315 - Testing the setup from a VM is kind of useful (if the nfs server can be 316 convinced to accept root nfs mounts from non-privileged clinet ports): 317 269 318 - Create a VM using the 64-bit debian profile. Let's call it "pxe-vm". 270 319 - Mount the TFTP share somewhere, like M: or /mnt/testbox-tftp. … … 284 333 KERNEL maintenance-boot/vmlinuz-3.16.0-4-amd64 285 334 APPEND initrd=maintenance-boot/initrd.img-3.16.0-4-amd64 ro ip=dhcp aufs=tmpfs \ 286 boot=nfs root=/dev/nfs nfsroot=10.42.1.1:/export s/testbox-nfsroot335 boot=nfs root=/dev/nfs nfsroot=10.42.1.1:/export/testbox-nfsroot 287 336 LABEL local-boot 288 337 LOCALBOOT
Note:
See TracChangeset
for help on using the changeset viewer.