General TC > Tiny Core on Virtual Machines

automatically mount /dev/sda1 with vm-scsi to achieve persistence

<< < (2/2)

danielibarnes:

--- Quote ---But somehow it is not automatically loaded.
--- End quote ---

Sorry, there was an error in my text. Note bolded change:

mkdir -p /tmp/vm/opt/tce/optional/
tce-load -w vm-scsi-2.6.33.3-tinycore.tcz
cp $(cat /opt/.tce_dir)/optional/vm-scsi-2.6.33.3-tinycore.tcz* /tmp/vm/opt/tce/optional/
echo vm-scsi-2.6.33.3-tinycore.tcz > /tmp/vm/opt/tce/onboot.lst
cd /tmp/vm/
find|cpio -o -H newc|gzip -9 > /mnt/sda1/boot/vm-scsi.gz


--- Quote ---I don't have IDE available in the vSphere I use.
--- End quote ---

I'm not sure what you mean. The CD-ROM is IDE, and it is easy to add an IDE hard disk to a virtual machine.


--- Quote ---Currently, the iso is virtually loaded in the CDROM tray manually on the client side
--- End quote ---

Is that a requirement or just your current implementation? The virtual machine can boot directly from an .iso image.

curaga:
Do mkdir the dir too ;)

beetle:
Well...

I adapted my setup script with the '/optional/' folder but still, it would not automatically load the module.

I tryed playing around with the /opt/bootlocal.sh to force a mount there. It complained (dmesg) about being root, I then tried "su tc": not complains but no success...

I finally succeeded by forcing the tce-load inside /home/tc/.profile

From that point I can continue on my own, I can run my scripts from /dev/sda1 as required.

It is just sad that I can not explain why I could not load the module via an "official way"

Thanks for you help, it was greatly appreciated.



--- Quote ---I'm not sure what you mean. The CD-ROM is IDE, and it is easy to add an IDE hard disk to a virtual machine.
--- End quote ---

I just digged into it and you're right, I could have created a disk on IDE which is not the default option.

Wow... could have been much more simpler!


--- Quote ---
--- Quote ---Currently, the iso is virtually loaded in the CDROM tray manually on the client side
--- End quote ---

Is that a requirement or just your current implementation? The virtual machine can boot directly from an .iso image.
--- End quote ---

vSphere & vmWare ESXi is new to me. Maybe I can create an ISO file inside the server's "Datastore" but I did not dig into that.


Thanks a lot!



-Beetle

danielibarnes:

--- Quote ---Maybe I can create an ISO file inside the server's "Datastore" but I did not dig into that.
--- End quote ---

You can right-click on "datastore1" and select "Browse Datastore." From there, you can copy a .iso image to the server.

Navigation

[0] Message Index

[*] Previous page

Go to full version