Jump to content
Read the Funtoo Newsletter: Summer 2023 ×

Havis

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by Havis

  1. Wouldn't it be nice to have all the virtualization/emulation software in one kit instead it being all over the place?
    It would make testing and deploying virtualization technologies much easier.
    Most of the virtualization software is in nokit. LXC and LXD are in core-kit.
    Some libvirt python bindings are in python-kit, and virtualbox guest additions are in xorg-kit.

    virtualzation pkgs:
    app-emulation/libvirt::nokit
    app-emulation/qemu::nokit
    app-emulation/lxc::core-kit
    app-emulation/lxd::core-kit
    app-emulation/virtualbox::nokit
    app-emulation/virtualbox-bin::nokit
    app-emulation/xen::nokit

    virtualization tools:
    app-emulation/virt-manager::nokit
    app-emulation/virt-viewer::nokit
    app-emulation/virtio-win::nokit
    app-emulation/virtualbox-guest-additions::xorg-kit
    app-emulation/open-vm-tools::nokit
    dev-python/libvirt-python::python-kit

    cloud related virtualization software:
    app-emulation/docker::nokit
    app-emulation/cloud-init::nokit
    app-emulation/containerd::nokit

    hard emulators:
    app-emulation/bochs::nokit
    app-emulation/armv8-fast-model::nokit
    app-emulation/edumips64::nokit
    app-emulation/vmips::nokit

    I'm sure I forgot many packages, the open-vz kernel sources, probably more emulators, and more stuff related to docker,
    but this is just an idea how to consolidate the virtualization packages into one kit.

  2. Just to clarify things, for bridge to work, you need two configs (tap & bridge)

     

    config for tap should look like this:

    file: /etc/conf.d/net.tap0


    template="tap"

     

    config for br0 should look like this:

    file: /etc/conf.d/net.br0

    template="bridge"
    ipaddr="192.168.2.1/24"
    slaves="net.tap0"
    stp="on"
    forwarding="1"

     

    If these two configs work, then add stuff like domains, nameservers, routes, mtu's etc...

    also make sure, that you actually have IP forwarding enabled on your system (echo 1 > /proc/sys/net/ipv4/ip_forward)

     

    Actual network templates are located in /etc/netif.d/

    If you don't like them, you can create custom ones!

  3. CPU: i7 6700k@stock

    RAM: 64GB Kingston HyperX Fury

    MB: Gigabyte Z170x Gaming7

    GPU: Sapphire Radeon RX480 8GB Nitro

    SSD: Samsung 850 EVO 500GB

    HDD: 6x Seagate 3TB in RAID6

    Sound: Creative SoundBlaster X-Fi

    Case: Fractal Design Define XL R2

     

    This is essentially my home workstation. I use it for coding, testing, virtualization (KVM & LXC) and gaming.

    It's fast and everything feels really snappy.

    Everything works with open-source drivers on current v4.9 kernel.

    Radeon RX480 uses new open-source AMDGPU drivers (in kernel since v4.7). It's extremly fast and stable (at least compared with other GPU's that I've seen on Linux)

     

    I also have Thinkpad E540, that I use when I'm not home.

  4. This is make.conf used on my Skylake system (i7 6700k)

     

    You can use "app-portage/cpuid2cpuflags" to adjust CPU_FLAGS_X86 for other systems (run cpuinfo2cpuflags-x86)

     

    make.conf ala Havis:

     

    ABI_X86="64 32"

    CFLAGS="-march=broadwell -mclflushopt -mxsavec -mxsaves -O2 -pipe"
    CXXFLAGS="${CFLAGS}"
    CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"

    FEATURES="buildpkg network-sandbox parallel-fetch sandbox userpriv usersandbox userfetch usersync"
    EMERGE_DEFAULT_OPTS="--ask --verbose --quiet-build=y --with-bdeps=y --backtrack=10"

    DISTDIR=/var/portage/distfiles
    PKGDIR=/var/portage/packages

    MAKEOPTS="-j8"
    PORTAGE_NICENESS="19"
    CLEAN_DELAY="3"
    LINGUAS="*"
    VIDEO_CARDS="amdgpu vesa intel i915 i965 mga nv nouveau r100 r200 r300 r600 radeonsi radeon v4l qxl"
    ACCEPT_LICENSE="@FSF-APPROVED"

    CPU_USE="threads smp custom-cflags custom-optimization"
    PACKERS_USE="lzma lzo lz4 minizip"
    AUDIO_USE="alsa openal pulseaudio"
    AUDIO_CODECS_USE="opus fdk"
    VIDEO_CODECS_USE="libass vcd xv quicktime mp4"
    GFX_USE="djvu mng dvi xmp xpm"
    X_USE="glamor introspection sdl vdpau xa xvmc spice wayland gles xcb xkb"
    LIB_USE=""
    USE=" \
         ${CPU_USE} \
         ${PACKERS_USE} \
         ${AUDIO_USE} \
         ${AUDIO_CODECS_USE} \
         ${VIDEO_CODECS_USE} \
         ${GFX_USE} \
         ${X_USE} \
         ${LIB_USE} \
         "

    QEMU_SOFTMMU_TARGETS="*"
    QEMU_USER_TARGETS="*"
    GRUB_PLATFORMS="efi-32 efi-64 pc"

  5. You can use "net-fs/sshfs" to safely connect to your server.

    All you need is publicly accessible IP on your server & opened SSH port

     

    syntax is something like this:

    sshfs username@host:/   local_directory/

    (local_directory is a directory in your home-dir)

     

    You can also try "net-misc/unison" for two-way synchronization, or unison + rsync, once you have remote dir mounted.

     

    If you need single software that does it all try BORG (e.g. app-backup/borgbackup), but this is usually only used on servers to make differential backups.

×
×
  • Create New...