Permalink
Switch branches/tags
Nothing to show
Commits on Nov 26, 2017
  1. Merge #12

    Andy Lutomirski
    Andy Lutomirski committed Nov 26, 2017
Commits on Nov 25, 2017
  1. Merge pull request #17 from zevweiss/resolvconf-fix

    amluto committed Nov 25, 2017
    virtme-udhcpc-script: make resolv.conf world-readable.
    
    Arguably a nicer solution would be to name the file /run/virtme/resolv.conf, but that's a different issue entirely.
  2. virtme-run: add --name flag

    zevweiss committed Mar 22, 2017
    Sets hostname in guest init and passes it to qemu's '-name' flag for
    easier identification.
    
    Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
  3. virtme-init: make resolv.conf world-readable.

    zevweiss committed Nov 23, 2017
    'mktemp' creates files that are only accessible to the current user
    (and doesn't have any options to change this), but in this case the
    file we're creating is going to end up as resolv.conf, which should be
    world-readable.  So here we manually chmod it as such after creating it.
    
    Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
Commits on Nov 22, 2017
  1. Merge pull request #15 from fzago-cray/forupstream

    amluto committed Nov 22, 2017
    Minor changes for Debian/Ubuntu and OpenSUSE
  2. Add path to busybox-static for openSUSE

    fzago-cray committed Jul 20, 2017
    On OpenSUSE, /usr/bin/busybox is a dynamic binary, while
    /usr/bin/busybox-static is static. We need the static version, so add
    it.
    
    Signed-off-by: Frank Zago <fzago@cray.com>
  3. Add resolv.conf path for Debian

    fzago-cray committed Jun 22, 2017
    On Ubuntu, the real resolv.conf is in /run/resolvconf, not
    /run/NetworkManager, so that create that path in the VM as well.
    
    Signed-off-by: Frank Zago <fzago@cray.com>
  4. Merge part of PR #10, improving Ubuntu support.

    Andy Lutomirski
    Andy Lutomirski committed Nov 22, 2017
  5. README: remove some taken-care-of TODO items

    zevweiss authored and Andy Lutomirski committed Mar 22, 2017
    --rw/--rwdir and --script-sh/--script-exec provide these features now.
    (Also tack on a newline at EOF.)
    
    Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
    Signed-off-by: Andy Lutomirski <luto@kernel.org>
  6. Merge two commits from PR #12

    Andy Lutomirski
    Andy Lutomirski committed Nov 22, 2017
Commits on Apr 20, 2017
  1. virtme-init: Mount configfs and debugfs if available

    Andy Lutomirski
    Andy Lutomirski committed Apr 20, 2017
    This removes some steps in using a bunch of testing tools.
    
    Signed-off-by: Andy Lutomirski <luto@kernel.org>
Commits on Mar 22, 2017
  1. virtme-init: create /dev/{fd,std{in,out,err}} symlinks

    zevweiss committed Mar 22, 2017
    bash, for example, wants /dev/fd to exist for implementing process
    substitution (e.g. 'cat <(echo hello)').  Might as well provide the
    usual three stdio links while we're there.
    
    Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
  2. virtme-init: avoid a warning from bash

    zevweiss committed Mar 22, 2017
    As of version 4.4 bash now warns about null bytes in command
    substitutions.  Sidestep it here by using sed to strip the null
    terminator off the contents of 9pnet_virtio's mount_tag sysfs
    attributes.
    
    Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
Commits on Mar 3, 2017
  1. Provide search path for systemd-udevd on Ubuntu 16.

    jamesyonan committed Mar 3, 2017
    Signed-off-by: James Yonan <james@openvpn.net>
Commits on Nov 27, 2016
  1. Merge branch 'master' of https://github.com/zevweiss/virtme

    Andy Lutomirski
    Andy Lutomirski committed Nov 27, 2016
    This improves script mode.
  2. Merge pull request #8 from zevweiss/non-tty-stdout

    amluto committed Nov 27, 2016
    virtme-run: Handle non-tty stdout
  3. virtme-run: Handle non-tty stdout

    zevweiss committed Nov 27, 2016
    Catch and ignore ENOTTY exceptions from os.get_terminal_size().
    
    Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
Commits on Oct 28, 2016
  1. mkinitramfs: Remove leading slash from /run_virtme/data

    zevweiss committed Oct 1, 2016
    Doesn't make any real difference to the guest, but avoids trying to
    put things in / when unpacking the cpio archive for debugging purposes.
    
    Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
  2. virtme-run: Don't use exec for --script-sh

    zevweiss committed Oct 1, 2016
    This allows passing multiple semicolon-delimited shell commands.
    
    Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
  3. virtme-init: Fix virtme.scriptio I/O redirection

    zevweiss committed Oct 1, 2016
    The <> redirection defaults to stdin, not stdout, so redirect file
    descriptors 1 and 2 to 0.
    
    Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
  4. virtme-run: Don't mount second /run tmpfs with initramfs

    zevweiss committed Oct 28, 2016
    The _INIT script in mkinitramfs.py mounts a tmpfs on /run; mounting
    another one over it hides /run/virtme, breaking --script-sh and
    --script-exec (which execute a script from /run/virtme/data).
    
    Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
  5. virtme-run: Decompose initargs into discrete commands

    zevweiss committed Oct 1, 2016
    Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
  6. Add a Developer's Certificate of Origin

    Andy Lutomirski
    Andy Lutomirski committed Oct 28, 2016
    Signed-off-by: Andy Lutomirski <luto@kernel.org>
Commits on Jun 24, 2016
  1. virtme-udhcpc-script: Create /run/NetworkManager

    Andy Lutomirski
    Andy Lutomirski committed Jun 24, 2016
    This is a silly workaround for /etc/resolv.conf being a symlink
    to /var/run/NetworkManager/resolv.conf.
    
    Signed-off-by: Andy Lutomirski <luto@kernel.org>
  2. virtme-init: Explicitly probe for the address of the --net nic

    Andy Lutomirski
    Andy Lutomirski committed Jun 24, 2016
    Modern systemd renames it, so probe to find its new name.
    
    Signed-off-by: Andy Lutomirski <luto@kernel.org>
  3. virtme-init: Forcibly create /run/dbus

    Andy Lutomirski
    Andy Lutomirski committed Jun 24, 2016
    This makes dbus a bit more reliable, which improves the (low) chance
    that a full graphical session works correctly inside virtme.
    
    Signed-off-by: Andy Lutomirski <luto@kernel.org>
Commits on May 1, 2016
  1. virtme-run: Don't panic if an unrecognized argument is passed to -a

    Andy Lutomirski
    Andy Lutomirski committed May 1, 2016
    The kernel interprets:
    
      init=/bin/sh foobar -- baz quux
    
    as a request to run /bin/sh foobar baz quux, unless foobar is a
    known kernel parameter.  As a result, passing '-a foobar' to
    virtme-run will panic the guest.  I think this is a bug or design
    error in the kernel argument parser.
    
    Fortunately, there's another counterbalancing quirk:
    
      foobar init=/bin/sh -- baz quux
    
    will cause foobar to be ignored because init=/bin/sh resets
    accumulated init arguments.
    
    Reorder our argument generation to take advantage of this quirk and
    avoid panicking if a bad argument is passed.
    
    Signed-off-by: Andy Lutomirski <luto@kernel.org>
Commits on Mar 11, 2016
  1. virtme-run: Fix -a/--kopt

    Andy Lutomirski
    Andy Lutomirski committed Mar 11, 2016
    When I added '--' support, I put user-specified kopts on the wrong
    side of the '--'.
    
    Signed-off-by: Andy Lutomirski <luto@kernel.org>
Commits on Feb 23, 2016
  1. Bump to 0.0.3

    Andy Lutomirski
    Andy Lutomirski committed Feb 23, 2016
  2. Fix guest tools search

    Andy Lutomirski
    Andy Lutomirski committed Feb 23, 2016
  3. Add --rodir to complement --rwdir

    Andy Lutomirski
    Andy Lutomirski committed Feb 23, 2016
    Signed-off-by: Andy Lutomirski <luto@kernel.org>
  4. Grab guest tools from a separate mount even w/o initramfs

    Andy Lutomirski
    Andy Lutomirski committed Feb 23, 2016
    We no longer require guest tools to exist in the rootfs to avoid
    initramfs, nor do we even try to use it if it's there.  Instead we
    pull it in using virtfs and boot from it using the '--' kernel
    command line feature to embed a scriptlet.
    
    Signed-off-by: Andy Lutomirski <luto@kernel.org>
Commits on Feb 1, 2016
  1. virtme-init: Split udevadm invocation

    Andy Lutomirski
    Andy Lutomirski committed Feb 1, 2016
    This is how systemd does it, so it's probably a good idea.
    
    Signed-off-by: Andy Lutomirski <luto@kernel.org>
Commits on Jan 8, 2016
  1. virtme-init: Set a HOME directory

    Andy Lutomirski
    Andy Lutomirski committed Jan 8, 2016
    Everything works better if HOME points somewhere writable.
    
    Signed-off-by: Andy Lutomirski <luto@kernel.org>
  2. virtme-init: Run systemd-tmpfiles if available

    Andy Lutomirski
    Andy Lutomirski committed Jan 8, 2016
    A bunch of service depend on /run being fully set up, and
    systemd-tmpfiles is a common way to set it up.  Invoke it.
    
    Signed-off-by: Andy Lutomirski <luto@kernel.org>