all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Hubert <contact@hubert-lombard.website>
To: help-guix@gnu.org
Subject: Can't create user account in virtual machine with guix system vm
Date: Mon, 7 Mar 2022 11:47:31 +0100	[thread overview]
Message-ID: <20220307114731.26c4b9a2@hubert-lombard.website> (raw)

Hello Guix!


I have made a VM in which no user account seems to could created.

The standard command for that:

https://guix.gnu.org/fr/manual/devel/en/html_node/Invoking-guix-system.html#Invoking-guix-system

$ guix system vm Test.scm --expose=$HOME --share=$HOME/tmp=/exchange

And the vm starts running, but no way to add an user account:

$ sudo /gnu/store/zrd2c9czm6fdqd33q7yx2695s2dgy9kl-run-vm.sh

At the graphical login I typed 'root' and validated. This opened me a privileged user session.  

In the qemu console I typed: 'sendkey ctrl-alt-f1' [Enter]

In tty2 virtual console, I typed 'passwd' for root, validated and 'passwd hubert' confirming the password after typing it.

But when I return to the login, either as a guest user or as my username, the password does not succeed, returning me to the login.

The vm starts more correctly by adding the options

'-m 1024 -smp 2 -nic user,model=virtio-net-pci' 

I can't remember why I needed to add these (familiar) options. Anyway, the following launchs the vm:

$ sudo /gnu/store/zrd2c9czm6fdqd33q7yx2695s2dgy9kl-run-vm.sh -m 1024 -smp 2 -nic user,model=virtio-net-pci

Here again, I can only connect in a graphical session with root.

Which doesn't surprise me too much, since the home directory is read-only.

I don't know if there are ways to solve this case... Give rights to home ?...

Thank you in advance if you have any suggestions for me :)


Hubert


             reply	other threads:[~2022-03-07 11:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-07 10:47 Hubert [this message]
2022-03-07 11:59 ` Can't create user account in virtual machine with guix system vm Jérémy Korwin-Zmijowski
2022-03-07 16:16   ` Hubert

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

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

  git send-email \
    --in-reply-to=20220307114731.26c4b9a2@hubert-lombard.website \
    --to=contact@hubert-lombard.website \
    --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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.