pbwolf
May 27th, 2019, 08:24 PM
I'm using Ubuntu 18.04 because it is LTS. I would like to automate the setup of a virtual guest with a desktop, a web browser (all patched and up-to-date), and an auto-login user account that should change its password on first login.
virt-builder looks very promising, but I ran into problems. First, I tried to make an Ubuntu guest image (Sad to say, the latest Ubuntu it offers is 18.04):
sudo virt-builder ubuntu-18.04 -o ubuntu-18.04 --network --size 21G --smp 4 --install 'gnome-shell' --install 'ubuntu-gnome-desktop'
But it emitted a ton of error messages, ending with these:
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/u/usb-modeswitch/usb-modeswitch_2.5.2+repack0-2ubuntu1_amd64.deb Temporary failure resolving 'us.archive.ubuntu.com'
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/x/xorg-server/xserver-xorg-legacy_1.19.6-1ubuntu4_amd64.deb Temporary failure resolving 'us.archive.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
virt-builder: error:
export DEBIAN_FRONTEND=noninteractive
apt_opts='-q -y -o Dpkg::Options::=--force-confnew'
apt-get $apt_opts update
apt-get $apt_opts install 'gnome-shell'
: command exited with an error
I fetched some of the failed deb URLs with curl all right, so virt-builder is having a more exotic kind of trouble. Well, I don't especially require Ubuntu in the guest, so next I tried to make a Fedora 30 guest image:
sudo virt-builder fedora-30 -o fedora-30 --network --size 21G --smp 4 --append-line /etc/dnf/dnf.conf:zchunk=False --install '@Fedora Workstation' --install '@KDE (K Desktop Environment)'
But there was trouble of a different nature:
Failed to synchronize cache for repo 'fedora-modular'
Error: Failed to synchronize cache for repo 'fedora-modular'
virt-builder: error: dnf -y install '@Fedora Workstation': command exited
Finally, I tried Fedora 29, with the same outcome as Fedora 30.
How do folks automate the installation of a virtual guest of Ubuntu 18.04?
virt-builder looks very promising, but I ran into problems. First, I tried to make an Ubuntu guest image (Sad to say, the latest Ubuntu it offers is 18.04):
sudo virt-builder ubuntu-18.04 -o ubuntu-18.04 --network --size 21G --smp 4 --install 'gnome-shell' --install 'ubuntu-gnome-desktop'
But it emitted a ton of error messages, ending with these:
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/u/usb-modeswitch/usb-modeswitch_2.5.2+repack0-2ubuntu1_amd64.deb Temporary failure resolving 'us.archive.ubuntu.com'
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/x/xorg-server/xserver-xorg-legacy_1.19.6-1ubuntu4_amd64.deb Temporary failure resolving 'us.archive.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
virt-builder: error:
export DEBIAN_FRONTEND=noninteractive
apt_opts='-q -y -o Dpkg::Options::=--force-confnew'
apt-get $apt_opts update
apt-get $apt_opts install 'gnome-shell'
: command exited with an error
I fetched some of the failed deb URLs with curl all right, so virt-builder is having a more exotic kind of trouble. Well, I don't especially require Ubuntu in the guest, so next I tried to make a Fedora 30 guest image:
sudo virt-builder fedora-30 -o fedora-30 --network --size 21G --smp 4 --append-line /etc/dnf/dnf.conf:zchunk=False --install '@Fedora Workstation' --install '@KDE (K Desktop Environment)'
But there was trouble of a different nature:
Failed to synchronize cache for repo 'fedora-modular'
Error: Failed to synchronize cache for repo 'fedora-modular'
virt-builder: error: dnf -y install '@Fedora Workstation': command exited
Finally, I tried Fedora 29, with the same outcome as Fedora 30.
How do folks automate the installation of a virtual guest of Ubuntu 18.04?