sshargo syncvm : Connection refused as read-only-rootfs is removed to create a read-write FS in the syncvm

8 views
Skip to first unread message

Vaishali Dhakate

unread,
May 20, 2022, 6:03:08 AM5/20/22
to openxt
I am working on some modifications to the sync-client in the syncvm .
I wanted to install the src of sync-client in the sync-vm and setup the development environment so I can make modifications in sync-client when I am in the syncvm in the openxt device. This would be faster. I can run the code and modify and debug it ,there and get my work done.
I have tried the IMAGE_FEATURES = read-only-rootfs , I removed this and build.
But then I am not able to sshargo to the syncvm . It says "the connection refused".
When I add this MAGE_FEATURES = read-only-rootfs back it is able to sshargo to the syncvm
I have been able to add the git/code for the sync-client in the syncvm doing the changes to install it in PACKAGES and  FILES-{PN}.
But  I'll xtill need a read-write syncvm to make any progress. Or please suggest how I test and try out the sync-client code after making modifications.
Should I use devtools.
Regards and Thanks in Advance.
Vaishali.

Jason Andryuk

unread,
May 24, 2022, 8:47:49 AM5/24/22
to Vaishali Dhakate, openxt
Hi, Vaishali,

Removing read-only-rootfs changes stuff in here:
https://github.com/OpenXT/xenclient-oe/blob/master/classes/openxt-image.bbclass#L31-L52

There may be a difference between /etc/ssh/sshd_config_readonly_argo
and /etc/ssh/sshd_config_argo or the respective ssh key generation.
dom0 /var/log/messages should show something about either sshd-argo
failing to generate keys or start up, or the connection being refused.

Alternatively, you can take a read-only rootfs, and make it read-write
at runtime. You need to change the xenmgr vm configuration to have a
writable "w" disk. Maybe also clear the disk sha1sum and toggle
measured to false - otherwise you may get a measurement failure which
causes the computer to shutdown.

Then you boot the VM and sshargo in. Then you type `rw` and the disk
is remounted read-write. (You can toggle back to read-only with
`ro`.)

You might be able to do the above disk changes and then add "rw" to
the `cmd-line` and have it boot read-write, but I haven't tested that.

Regards,
Jason
Reply all
Reply to author
Forward
0 new messages