From: Hubert <contact@hubert-lombard.website>
To: "Jérémy Korwin-Zmijowski" <jeremy@korwin-zmijowski.fr>
Cc: help-guix@gnu.org
Subject: Re: Can't create user account in virtual machine with guix system vm
Date: Mon, 7 Mar 2022 17:16:15 +0100 [thread overview]
Message-ID: <20220307171615.4420e385@hubert-lombard.website> (raw)
In-Reply-To: <C2399D53-23AD-4051-A264-A384A367E100@korwin-zmijowski.fr>
Hi Jeremy!
Got it!
I suspected it was something like that, good to know, to have it confirmed.
Thanks again :)
HUbert
Le Mon, 07 Mar 2022 12:59:51 +0100,
Jérémy Korwin-Zmijowski <jeremy@korwin-zmijowski.fr> a écrit :
> 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
> >
prev parent reply other threads:[~2022-03-07 16:16 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
2022-03-07 16:16 ` Hubert [this message]
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=20220307171615.4420e385@hubert-lombard.website \
--to=contact@hubert-lombard.website \
--cc=help-guix@gnu.org \
--cc=jeremy@korwin-zmijowski.fr \
/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).