Copy partition table:
sfdisk -d /dev/sda > part_table
sfdisk /dev/sda < part_table
Copy boot partition
dd if=/dev/sda1 of=/dev/sdb1 bs=50M
# Module groups for genkernel initramfs auto-loading | |
# RAID | |
MODULES_ATARAID="" | |
#MODULES_DMRAID="dm-mod dm-mirror dm-crypt" | |
MODULES_DMRAID="" | |
MODULES_LVM="" | |
#MODULES_MDADM="dm-mod dm-snapshot dm-mirror dm-crypt dm-bbr raid0 raid1 raid456 raid5 raid6 raid10" | |
MODULES_MDADM="" |
Copy partition table:
sfdisk -d /dev/sda > part_table
sfdisk /dev/sda < part_table
Copy boot partition
dd if=/dev/sda1 of=/dev/sdb1 bs=50M
There aren't many tutorials about this, the only tutorials I've found were about passing through entire PCIe cards to VMs, or refered to old ESXI versions (below 6.5) that used a more comprehensive desktop client instead of the web app. In v6.5, the web app was introduced and the desktop client was deprecated. You used to be able to setup RDMs in the desktop client, but with the introduction of the web console, this is no longer the case. This tutorial shows you how to pass SATA HDDs to the virtual machine on VMWare ESXI 6.5. This tutorial is partially based on VMWare's own KB and the now deprecated Forza IT blog post.
We attach the SATA HDDs as a RDM (Raw Device Mapper) into an existing virtual disk in the command line, then on the web app
In /etc/nixos
edit configuration.nix
imports =
[ # ...
./ldapserver.nix
];
package com.github.pshirshov.izumi.idealingua.runtime.services | |
import scala.concurrent.{ExecutionContext, Future} | |
import scala.util.Try | |
import scala.language.{higherKinds, implicitConversions} | |
//-------------------------------------------------------------------------- | |
// Runtime: unopinionated part | |
trait ServiceResult[R[_]] { |
import io.circe._ | |
import io.circe.parser._ | |
import io.circe.syntax._ | |
import io.circe.generic.decoding._ | |
import io.circe.generic.encoding._ | |
import io.circe.generic.semiauto._ | |
case class GenericModel[Payload](payload: Payload, value: String) | |
case class TestPayload() |
import cats._ | |
import cats.implicits._ | |
trait Service[R[_]] { | |
type Result[T] = R[T] | |
def computeValue(): Result[Int] | |
} | |
class ServiceImpl[R[_] : Monad : Foldable] |
import cats.Foldable | |
import shapeless.ops.product._ | |
import shapeless.ops.tuple._ | |
import cats._ | |
import cats.implicits._ | |
trait Pipeline[+A] { | |
@inline def map[B](f: A => B): Pipeline[B] | |
@inline def flatMap[B](f: A => Pipeline[B]): Pipeline[B] |
import OT.{OT1, OT2} | |
import _root_.io.circe._ | |
import _root_.io.circe.generic.semiauto._ | |
import _root_.io.circe.syntax._ | |
import io.circe.parser._ | |
//import _root_.io.circe.java8.time._ | |
decode[List[Int]](List(123, 456).asJson.noSpaces) | |
sealed trait ST |
-server | |
-ea | |
-noverify | |
-Xms1024m | |
-Xmx2048m | |
-XX:+UseG1GC | |
-XX:-UseParNewGC | |
-XX:-UseConcMarkSweepGC | |
-XX:ReservedCodeCacheSize=240m | |
-XX:+OmitStackTraceInFastThrow |