个人工具
登录
查看“UbuntuHelp:UserModeLinux”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:UserModeLinux”的源代码
来自Ubuntu中文
←
UbuntuHelp:UserModeLinux
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/UserModeLinux}} {{Languages|UbuntuHelp:UserModeLinux}} <<Include(Tag/ContentCleanup)>> <<Include(Tag/NeedsExpansion)>> === Getting Started === This page will help you get started using User-Mode Linux with Ubuntu. Guide is created for Hardy LTS, but will most likely work with other releases: The first thing we need is to install the uml kernel and utilities we will need. <pre><nowiki> sudo apt-get install user-mode-linux uml-utilities bridge-utils </nowiki></pre> The next step is getting us a nice ubuntu hardy filesystem: <pre><nowiki> dd if=/dev/zero of=uml-root-hardy bs=4096 seek=1M count=1 mkfs.xfs uml-root-hardy sudo mount -o loop uml-root-hardy /mnt sudo apt-get install debootstrap sudo debootstrap --arch amd64 hardy /mnt http://us.archive.ubuntu.com/ubuntu sudo echo "/dev/ubd0 / xfs defaults 0 1" > /mnt/etc/fstab sudo echo "proc / proc proc defaults 0 0" >> /mnt/etc/fstab sudo mknod --mode=660 /mnt/dev/ubd0 b 98 0 sudo chown root:disk /mnt/dev/ubd0 sudo echo "127.0.0.1 localhost" /etc/hosts sudo echo "auto lo \ iface lo inet loopback \ auto eth0 \ iface eth0 inet dhcp" > /mnt/etc/network/interfaces sudo echo "tty0" >> /mnt/etc/securetty sudo echo "ttys/0" >> /mnt/etc/securetty sudo rm /mnt/etc/event.d/tty2 sudo rm /mnt/etc/event.d/tty3 sudo rm /mnt/etc/event.d/tty4 sudo rm /mnt/etc/event.d/tty5 sudo rm /mnt/etc/event.d/tty6 sudo rm /mnt/etc/udev/rules.d/75-persistent-net-generator.rules </nowiki></pre> Basically what we've done is created an empty filesystem, mounted it, and made some changes that we want done on all our vm's. We should be ready to run our new vm now: <pre><nowiki> linux ubd0=uml-root-hardy.cow1,uml-root-hardy umid=uml1 </nowiki></pre> '''User-Mode Linux''' is another virtualisation technique for running [[UbuntuHelp:VirtualMachines|VirtualMachines]] under GNU/Linux. See the User-Mode Linux [http://user-mode-linux.sourceforge.net/ project page] for more information. [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:UserModeLinux
。