When I run this, I'm able to build a raw VM image and run it, but I get lots of input/output errors. The VM is unusable, since I can't get it resolve DNS names: ls: /etc/resolv.conf: Input/output error
During boot, I see similar errors: chown: failed to get attributes of /etc/resolv/conf input/output error chmod: failed to get attributes of /etc/resolv.conf: input/output error chown/chmod: failed to get attributes of /var/log/dmesg: input/output error chown: failed to get attributes of /etc/resolv.conf
Do you see these?
8:52 PM
Anonymous said...
See also https://github.com/tuxofil/linsygen (based on this script, heavily modified to support Debian and openSUSE)
8:21 AM
I've been a long qemu fan, and a new debootstrap groupie. The following script was built with the help of the debian-user list and combines these two affections -- with some fancy footwork -- to build a "from scratch" bootable qemu image. There are still some kinks to be worked out (specifically, I don't know where to get a "real" stage1, stage2, and e2fs_stage1_5 file, so it copies it from the host system), and right now it is fixed at 1GB (though that could be easily corrected), but otherwise it seems to work surprisingly well. Behold:
echo "Creating 1GB file of zeros in $1.raw" dd if=/dev/zero of=$1.raw bs=1024 count=1048576
"Building a 1GB bootable qemu image using debootstrap"
2 Comments -
When I run this, I'm able to build a raw VM image and run it, but I get lots of input/output errors. The VM is unusable, since I can't get it resolve DNS names:
ls: /etc/resolv.conf: Input/output error
During boot, I see similar errors:
chown: failed to get attributes of /etc/resolv/conf input/output error
chmod: failed to get attributes of /etc/resolv.conf: input/output error
chown/chmod: failed to get attributes of /var/log/dmesg: input/output error
chown: failed to get attributes of /etc/resolv.conf
Do you see these?
8:52 PM
See also https://github.com/tuxofil/linsygen (based on this script, heavily modified to support Debian and openSUSE)
8:21 AM