all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Jérémy Korwin-Zmijowski" <jeremy@korwin-zmijowski.fr>
To: help-guix@gnu.org, Hubert <contact@hubert-lombard.website>
Subject: Re: Can't create user account in virtual machine with guix system vm
Date: Mon, 07 Mar 2022 12:59:51 +0100	[thread overview]
Message-ID: <C2399D53-23AD-4051-A264-A384A367E100@korwin-zmijowski.fr> (raw)
In-Reply-To: <20220307114731.26c4b9a2@hubert-lombard.website>

Hi Hubert !
You have to edit your system definition to add a user. 
Sharing some files, even your home directory, is not the way to create users.
Cheers
Jérémy

Le 7 mars 2022 11:47:31 GMT+01:00, Hubert <contact@hubert-lombard.website> a écrit :
>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 12:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-07 10:47 Can't create user account in virtual machine with guix system vm Hubert
2022-03-07 11:59 ` Jérémy Korwin-Zmijowski [this message]
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=C2399D53-23AD-4051-A264-A384A367E100@korwin-zmijowski.fr \
    --to=jeremy@korwin-zmijowski.fr \
    --cc=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.