ユーザーモードLinuxでDebian Wheezyをビルドするときに発生する問題

ユーザーモードLinuxでDebian Wheezyをビルドするときに発生する問題

UML内にDebian仮想マシンを構築していますが、動作が停止します。

これは私のビルドシェルスクリプトです。

#!/bin/bash
# Let's make sure we're updated
printf "\nUpdating...\n"
apt update
apt upgrade
# Next let's collect some tools we may need
printf "\nInstalling tcpdump, nmap, wireshark, qemu, debootstrap.\n"
apt install tcpdump nmap wireshark qemu debootstrap
# We need a tarball of the linux kernel. We use the current mainline as of this writing.
printf "\nDownloading mainline linux kernel...\n"
curl -o kernelpackage https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/snapshot/linux-4.18-rc4.tar.gz 
# And we'll extract it to the current directory.
printf "\nExtracting linux kernel...\n"
tar -zxvf kernelpackage
# Next let's start with configuring UML default.
# This line changes dependent on your kernel release.
cd linux-4.18-rc4
# Set up some configuration.
printf "\nConfiguring kernel...\n"
make defconfig ARCH=um
# This summons up the kernel. Don't be afraid, this will take some time.
printf "\nBuilding kernel...\n"
make ARCH=um linux
# We need to make modules BEFORE we strip. Ignore the book.
printf "\nBuilding kernel modules...\n"
make ARCH=um modules
# Let's get a debian distribution to run in the virtual machine.
printf "\nDownloading and constructing debian image for VM...\n"
sudo debootstrap --arch amd64 --variant minbase wheezy wheezy-uml http://mirror.switch.ch/ftp/mirror/debian
# And let's ensure that UML will have write permissions.
sudo chown -R $USER:$USER wheezy-uml
# Finally, we can start the UML VM. We will be giving it a gigabyte of ram.
printf "\nStarting virtual machine...\n"
# Boot debian in the virtual machine.
./linux rootfstype=hostfs rootflags=$(pwd)/wheezy-uml init=/sbin/init rw mem=1024M

これで Debian を起動した結果は次のようになります。

保留!

だから私はランダムに停止しています:crng init Done

どんな助けやアドバイスでもいいようです。私はシミュレーションの世界に初めて入門しました。ありがとうございます!

ベストアンサー1

おすすめ記事