Tiny Core Linux
General TC => Tiny Core on Virtual Machines => Topic started by: halma on January 21, 2020, 07:16:47 PM
-
Hello,
i am trying to get Tinycore64 Version 11 beta1 running under XEN4.13. I need to modify two files, written here (http://forum.tinycorelinux.net/index.php/topic,17420.msg104402.html#msg104402) other wise TC doesnt boot till the loginprompt!
This is my PV domu config for TC11beta1
# Kernel paths for install
kernel = "/home/xen/domains/tc11.0beta1_x64/distribution_files/vmlinuz64"
ramdisk = "/home/xen/domains/tc11.0beta1_x64/distribution_files/corepure64-xen.gz"
extra="modules=loop,squashfs console=hvc0 nortc [color=red]noautologin[/color]"
# Path to HDD and iso file
disk = [ 'format=raw, vdev=xvda, access=w, target=/dev/vg/tc11.1beta1-disk', 'format=raw, vdev=xvdb, access=w, target=/dev/vg/tc11.1beta1-swap' ]
# Network configuration
vif = ['mac=00:16:3e:aa:bb:cc, bridge=FOOBAR']
# DomU settings
memory = 512
name = "tc11beta1"
vcpus = 1
maxvcpus = 1
so far it boots but if i am using the bootcode "noautologin" then this happend:
Run /init as init process
init started: BusyBox v1.31.1 (2019-12-16 14:38:11 UTC)
Booting Core 11.0beta1
Running Linux Kernel 5.4.3-tinycore64.
Checking boot options... Done.
Starting udev daemon for hotplug support...input: PC Speaker as /devices/platform/pcspkr/input/input0
Done.
loop: module loaded
zram0: detected capacity change from 0 to 117014528
random: mkswap: uninitialized urandom read (16 bytes read)
Adding 114268k swap on /dev/zram0. Priority:-2 extents:1 across:114268k SSFS
Scanning hard disk partitions to create /etc/fstab
Setting Language to C Done.
Skipping rtc as requested from the boot command line.
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Adding 1048572k swap on /dev/xvdb. Priority:-3 extents:1 across:1048572k SSFS
Possible swap partition(s) enabled.
Loading extensions...EXT4-fs (xvda): mounted filesystem with ordered data mode. Opts: (null)
Done.
Setting keymap to us Done.
EXT4-fs (xvda): mounted filesystem with ordered data mode. Opts: (null)
Setting hostname to box Done.
( '>')
/) TC (\ Core is distributed with ABSOLUTELY NO WARRANTY.
(/-_--_-\) www.tinycorelinux.net
login[400]: root login on 'hvc0'
login[399]: root login on 'tty1'
i cant login, everything hangs (domU) after this point!
But if i am using these kernel commandline (bootcode)
extra="modules=loop,squashfs console=hvc0 nortc noautologin user=tc"
then "root" is doing auto login O.o
Run /init as init process
init started: BusyBox v1.31.1 (2019-12-16 14:38:11 UTC)
Booting Core 11.0beta1
Running Linux Kernel 5.4.3-tinycore64.
Checking boot options... Done.
Starting udev daemon for hotplug support...input: PC Speaker as /devices/platform/pcspkr/input/input0
Done.
loop: module loaded
zram0: detected capacity change from 0 to 117014528
random: mkswap: uninitialized urandom read (16 bytes read)
Adding 114268k swap on /dev/zram0. Priority:-2 extents:1 across:114268k SSFS
Scanning hard disk partitions to create /etc/fstab
Setting Language to C Done.
Skipping rtc as requested from the boot command line.
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Adding 1048572k swap on /dev/xvdb. Priority:-3 extents:1 across:1048572k SSFS
Possible swap partition(s) enabled.
Loading extensions...EXT4-fs (xvda): mounted filesystem with ordered data mode. Opts: (null)
Done.
Setting keymap to us Done.
EXT4-fs (xvda): mounted filesystem with ordered data mode. Opts: (null)
Setting hostname to box Done.
( '>')
/) TC (\ Core is distributed with ABSOLUTELY NO WARRANTY.
(/-_--_-\) www.tinycorelinux.net
login[400]: root login on 'tty1'
login[401]: root login on 'hvc0'
root@box:~#
and another quest: after root has logged in and i type "exit" and hit enter/return the logout process hangs and i am not able to do anything anymore, thats not correct or ?
Thanks, best regards
-
noautologin works the same as before, there is a temporary root login. It works in qemu, so not sure what is the issue in xen.
-
Hello Curaga,
i tried to boot TC11.0beta1 on xen4.13 with "pygrub" and also "pvgrub2"
GNU GRUB version 2.05
+----------------------------------------------------------------------------+
|*tc11.0beta1 |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
+----------------------------------------------------------------------------+
Use the ^ and v keys to select which entry is highlighted.
Press enter to boot the selected OS, `e' to edit the commands
before booting or `c' for a command-line. ESC to return
previous menu.
tc11.0beta1 loading...
Linux version 5.4.3-tinycore64 (tc@box) (gcc version 9.2.0 (GCC)) #2020 SMP Tue Dec 17 17:38:30 UTC 2019
Command line: root=/dev/xvda1 ro modules=loop,squashfs console=hvc0 nortc noautologin user=tc
...
Linux version 5.4.3-tinycore64 [color=red](tc@box)[/color] (gcc version 9.2.0 (GCC)) #2020 SMP Tue Dec 17 17:38:30 UTC 2019
You can see from the command line the user is "tc" --> (tc@box) <--but if the boot is done then "root" trys to login ...
Are there any debug or verbose option to get more information at boottime so may i can find what causes the problem ?
At least "noautologin" is ignored also "user=tc" ... thats strange.
Regards
Halma
-
so far i managed the noautologin problem and i can also logout and login without problems/hangs!
I modified the "/etc/inittab" from the corepure64.gz to the following:
tc@box:~$ cat /etc/inittab
# /etc/inittab: init configuration for busybox init.
# Boot-time system configuration/initialization script.
#
::sysinit:/etc/init.d/rcS
hvc0::respawn:/sbin/getty 38400 hvc0
# /sbin/getty respawn shell invocations for selected ttys.
tty1::respawn:/sbin/getty 38400 tty1
#tty2::respawn:/sbin/getty 38400 tty2
#tty3::respawn:/sbin/getty 38400 tty3
#tty4::askfirst:/sbin/getty 38400 tty4
#tty5::askfirst:/sbin/getty 38400 tty5
#tty6::askfirst:/sbin/getty 38400 tty6
# Stuff to do when restarting the init
# process, or before rebooting.
::restart:/etc/init.d/rc.shutdown
::restart:/sbin/init
::ctrlaltdel:/sbin/reboot
::shutdown:/etc/init.d/rc.shutdown
i am not sure, i think thats not the official way todo !?!
Regards
Halma