unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Hartmut Goebel <h.goebel@crazy-compilers.com>
Cc: help-guix@gnu.org
Subject: Re: Seeking working, complete example for a vm
Date: Sat, 29 Oct 2016 01:57:15 +0200	[thread overview]
Message-ID: <87twbwuiw4.fsf@gnu.org> (raw)
In-Reply-To: <58133002.2070804@crazy-compilers.com> (Hartmut Goebel's message of "Fri, 28 Oct 2016 13:01:22 +0200")

Hartmut Goebel <h.goebel@crazy-compilers.com> skribis:

> 1) lsh wants keystrokes a random-seed on each boot. This looks like
> file-system will not be preserved over reboots. How can I solve this?

Use OpenSSH.  ;-)  The root file system is indeed volatile.

> 2) Using "guix system reconfigure" *within* the vm would be great. But
> where do I find the system declaration within the vm? Or is it
> preferable to share my working directory?

The OS declaration is not in the VM, unless you share it with --expose
or --share.

> 3) How can I *easiest* setup networking, either bridged or "NAT" (how
> virtualbox names it). Since this

Networking works out of the box in the VM.

If you want the VM to be reachable from the outside, the easiest
solution is port forwarding:

  https://lists.gnu.org/archive/html/guix-devel/2016-09/msg01857.html

> 4) Can I specify this in the system declaration? Or is there some other
> way to declare the vm, including all the parameters to be passed to
> qemu? If not, this is not much of a problem, as another bash-script
> would do the job.

The OS declarations only describes the OS in the VM, not the QEMU
parameters.

> 9) Minor glitch: How can I turn of the colour in ls using the system
> declaration?

Just “unalias ls” (the alias comes from the default ~/.bashrc).

> [1] On the host, /dev/kvm needs to have group kvm and g+rx and
> guixbuild..-users need to be members of this group, This is written in
> the manual, but not emphasised.

Maybe we could move the note in
<https://www.gnu.org/software/guix/manual/html_node/Invoking-guix-system.html>
higher, in the description of the ‘vm’ sub-command?

HTH!

Ludo’.

  parent reply	other threads:[~2016-10-28 23:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-28 11:01 Seeking working, complete example for a vm Hartmut Goebel
2016-10-28 16:27 ` Leo Famulari
2016-10-28 16:52   ` Hartmut Goebel
2016-10-28 18:07     ` Leo Famulari
2016-10-28 23:49       ` Ludovic Courtès
2016-10-28 23:57 ` Ludovic Courtès [this message]
2016-11-02 22:09   ` Hartmut Goebel
2016-10-31 18:18 ` myglc2
     [not found]   ` <be122fc0-6302-31ec-c9a9-8ebfc50d3824@crazy-compilers.com>
2016-11-03  1:20     ` myglc2

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87twbwuiw4.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=h.goebel@crazy-compilers.com \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).