사용자 모드 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

이제 데비안을 부팅할 때의 결과는 다음과 같습니다:

보류!

그래서 나는 무작위로 멈춰 있습니다: crng init Done

어떤 도움이나 조언이라도 좋을 것 같습니다. 저는 시뮬레이션 세계에 처음 입문했습니다. 감사합니다!

관련 정보