`
yangzb
  • 浏览: 3492414 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Tiny Core Linux > VirtualBox

阅读更多

VirtualBox

If you are a Windows user, have you ever wondered how difficult it is to work with or experiment with tinycore?

This is bacause many people would find it inconvenient to boot into tinycore every time they need to make a small change, cook up a package, or simply experiment.

I have a great suggestion that would ease your pains. You can actually boot tinycore within a virtual machine like Sun VirtualBox. This will allow you to boot TinyCore as a "window" within your existing OS, and even works on Windows!

There are 3 ways of doing this, of which the last one I like best.
The last one is a Hybrid Boot setup, allowing booting TinyCore from a disk partition after the BIOS, and also within Windows itself as a VirtualBox VM instance reading from the same disk partition.

Note: This tutorial emphasizes on Safety. There is very very little chance of corrupting your hard-drive or existing Operating System. For example, VBoxManage commands restricts write to only the new partition.

Windows Host Os

Method 1: VBox Boot from Mounted Tinycore ISO

The tutorial here will be focused on getting you up and running the simplest way.

Method 2: VBox Boot from Tinycore Virtual Disk

The tutorial here will be slightly more complicated as you would need to initialize a .vdi virtual-disk file, then perform installation of Tinycore on the virtual disk.

Method 3: VBox Boot from Tinycore Virtual Physical Parition

The tutorial here will be slightly more tedious, but not more complicated, exploiting a lesser known feature that allows VBox to boot from a physical partition residing on your disk.

This produces a Hybrid Boot setup where you can boot Tinycore within Windows and also normally from BIOS (to gain the best performance). Paragon Ext2Browser (read & write) is used to allow you to copy files in and out of Tinycore (from within Windows).

STEPS


Part A

  1. EUSEAS Partition Manager Home (freeware) is used to shrink the existing NTFS partition by a meager 2GB. Other partition managers like gparted can be used. Then, a new unformatted partition is created in the free space.
  2. The VBox Partition Pointer file (.vmdk) is created with
    VBoxManage internalcommands createrawvmdk -filename PhysicalDrive0-Partition2.vmdk -rawdisk \\.\PhysicalDrive0 -partitions 2 -mbr C:\grub.mbr -register
    (grub.mbr here is an empty "notepad" file we created.) (Win Vista: console/cmd with Administrator access is required for this step) Read more on VBoxManage  (external link)


Part B
Note: This part requires understanding of the Official TC Install Guide  (external link) . All steps are exactly the same as the official install guide, except you are doing it from Windows through the VM. The partition does not need the bootable flag, thus you can skip the whole part regarding cfdisk. For beginners, it would be good to follow along the nice screenshots in the official guide.

  1. We then boot Tinycore in VirtualBox from the Mounted Tinycore ISO. (Win Vista: Start VirtualBox as Administrator)
  2. And do
    fdisk /dev/sda
    to delete & recreate partition 2, then
    mkfs.ext3 /dev/sda2
  3. Grub extension is first installed from the Appbrowser. Boot files are then copied from /mnt/hdc/boot to /mnt/sda2/boot. Grub special files also. The /mnt/sda2/boot/grub/menu.lst is created. You can also add the xvesa option to the kernel option of grub to set the desktop resolution
    kernel /boot/bzImage quiet xvesa=800x600x24
    so when it runs in a window it fits on the screen. The vga option only affects the terminal.
  4. Grub is initialized with root (hd0,1) and setup (hd0,2) and setup (hd0).
  5. Lastly, the grub MBR is extracted with
    dd if=/dev/sda2 of=/home/tc/grub.mbr bs=512 count=1
    .


Part C

  1. Paragon Ext2Browser is installed giving us access to the ext3 partition we created from within Windows. We copy out the /home/tc/grub.mbr to C:/grub.mbr
  2. Finally, we edit boot.ini (WinXp) or use bcdedit (Vista) or EasyBCD  (external link) to create a record in Windows Bootloader to allow us to boot into grub when in the "Choose your operating System" Screen. Read this link  (external link) to find out how.
  3. Shiretoko, Xfe, Xfw extensions are installed to give the common user some ease.


Help needed

  • It would be nice if someone can create an automated (tce.installed) batch script for Part B, package it up a an extension (which has a dep on grub extension), and submit it to the online repository. This would make Tinycore more accessible to the masses out there.
  • The tutorial above need more detailed elaboration, which I hope anyone who tries the tutorial can help complete.
  • People with ingenious ideas of how Portable VirtualBox  (external link) can be used to deliver a USB flash disk that boots TC. The TC can be from a hidden ext3 partition on the USB flash disk, not necessarily from a file.
  • Method 3 can also be adapted to the case that you already have an existing Tinycore installed in a partition, but now would like to boot it in VirtualBox on Windows.
分享到:
评论

相关推荐

    tinycore linux installation guide

    - **虚拟化环境**: 如果是在虚拟机中进行安装,可以使用VirtualBox等虚拟化软件来创建一个虚拟硬盘,并分配至少1GB的空间用于安装TinyCore Linux。 **安装过程**: 1. **打开应用浏览器**: - 启动TinyCore Linux后...

    Windows下直接启动世界上最小的Linux

    这通常涉及到虚拟化技术或者轻量级的Linux系统,比如Tiny Core Linux或Puppy Linux等,这些系统因其小巧的体积和快速的启动特性而受到一些用户的喜爱。它们可以在不重新安装或修改现有Windows系统的情况下,提供一个...

    自己动手做一个迷你 Linux 系统

    1. **选择基础系统**: 开始时,你可以选择一个现有的轻量级 Linux 发行版作为基础,比如 BusyBox 或 Tiny Core Linux。这些发行版已经实现了最小化的基本功能,可以作为构建迷你系统的起点。 2. **定制 Linux 内核*...

    boot2docker_v18.09.1

    Docker v18.09.1 ...Tiny Core Linux v8.2.1 Parallels Tools v13.3.0-43321 VMware Tools (open-vm-tools) v10.2.0.1608 VirtualBox Guest Additions v5.2.22 XenServer Tools (xe-guest-utilities) v7.10.0

    boot2docker.iso

    Tiny Core Linux v10.1 Parallels Tools v13.3.0-43321 VMware Tools (open-vm-tools) v10.3.10.10540 VirtualBox Guest Additions v5.2.34 XenServer Tools (xe-guest-utilities) v7.13.0 Changes: v19.03.4...v...

    openproject-docker-dev:Mac 和 Linux 上 OpenProject 的 Docker 开发容器

    OpenProject Docker 开发Dockerfile 和 docker-compose 脚本,用于构建 OpenProject 的开发容器以及 PostgreSQL 9.4.X 服务器。... 一个流行的选择是 ,它运行使用 VirtualBox 作为虚拟化引擎的 Tiny Core Linux。 但

    boot2docker-xfs-ng:适用于Docker XFS NG的轻量级Linux

    默认情况下,它使用TCL(TinyCore Linux 11.x)和XFS文件系统。 Boot2Docker是专门用于运行容器的轻量级Linux发行版。 它完全从RAM运行,下载约69MB即可快速启动。 重要的提示 Boot2Docker正式处于维护模式-建议...

    Boot2Docker:专为运行 Docker 容器而制作的 Linux 发行版-开源

    Boot2Docker 是一个轻量级的 Linux 发行版,专门用于运行 Docker 容器。 它完全从 RAM 运行,大约需要 45MB 的下载量并且... Boot2docker 使用 Tiny Core Linux,它从 RAM 运行,因此默认情况下不会保留文件系统更改。

    Windows版本docker安装包

    1. **VirtualBox**:Toolbox使用VirtualBox创建一个轻量级的Linux虚拟机(通常是Tiny Core Linux)来运行Docker。 2. **Docker Machine**:这个工具用于创建和管理Docker主机。在Windows上,Docker Machine会在...

    在Windows系统上安装Docker的教程.docx

    为了解决这个问题,开发者可以使用Boot2Docker应用程序来创建一个小型的虚拟机,运行基于TinyCore Linux的小型Linux系统,以便在Windows系统上运行Docker容器。 安装Docker的步骤: 1. 下载Boot2Docker:首先,...

    虚拟机下beini不能识别usb网卡的解决办法.rar

    Beini基于Tiny Core Linux,通常包含基础的驱动,但可能不包含所有USB网卡的驱动。在这种情况下,你可能需要手动加载或编译驱动。可以尝试在Beini的命令行中使用`lsusb`命令来查看已连接的USB设备,找出对应网卡的...

    windows7 安装docker包 DockerToolbox18.03.0.zip

    在Windows 7上使用Docker需要注意的是,所有Docker操作都会通过VirtualBox中的轻量级Linux发行版(通常是Tiny Core Linux)进行,这意味着速度可能比在原生支持Docker的系统上慢一些。 Docker容器是一种强大的工具...

    docker-vagrant:更强大的 boot2docker 版本

    与不同,这是一个成熟的 Ubuntu VM,而不是基于 TinyCore Linux。 因此,安装了 VirtualBox Guest Additions,因此共享文件夹和其他功能按预期工作。 如果支持 Docker 卷从您的主机 (OSX) 文件系统挂载到 Docker ...

    boot2docker-xhyve-源码.rar

    - **定义**:Boot2Docker 是一个基于 Tiny Core Linux 的轻量级发行版,主要设计用于 Docker 容器的运行。它不包含桌面环境,只包含运行 Docker 所需的基本组件,如 Docker 引擎、Linux 内核等。 - **功能**:Boot...

    boot2docker_v19.03.5.zip

    2. **boot2docker**: boot2docker是一个基于Tiny Core Linux的轻量级虚拟机映像,主要用于在不支持原生Docker的平台上快速启动Docker服务,比如Windows和早期的MacOS。它包含了Docker守护进程和其他必要的组件,用户...

    boot2docker.iso的v18.03.1-ce版本

    1. **轻量级**: Boot2Docker基于Tiny Core Linux,占用资源少,适合在虚拟机如VirtualBox中运行。 2. **自动化**: 它配置了Docker守护进程,用户可以快速启动Docker环境,无需手动配置。 3. **网络配置**: Boot2...

    Mac的虚拟技术xhyve.zip

    使用 git 下载源码后编译,运行 xhyverun.sh 后会启动一个简单的 Tiny Core Linux 虚拟机:$ git clone https://github.com/mist64/xhyve.git$ cd xhyve$ make$ ./xhyverun.sh架构: -----------------------------...

Global site tag (gtag.js) - Google Analytics