Comment 14 for bug 1632405

Revision history for this message
Ioanna Alifieraki (joalif) wrote :

[VERIFICATION XENIAL]

Now configures network without a problem.

$ dpkg -l | grep libguestfs
ii libguestfs-hfsplus:amd64 1:1.32.2-4ubuntu2.2 amd64 guest disk image management system - HFS+ support
ii libguestfs-perl 1:1.32.2-4ubuntu2.2 amd64 guest disk image management system - Perl bindings
ii libguestfs-reiserfs:amd64 1:1.32.2-4ubuntu2.2 amd64 guest disk image management system - ReiserFS support
ii libguestfs-tools 1:1.32.2-4ubuntu2.2 amd64 guest disk image management system - tools
ii libguestfs-xfs:amd64 1:1.32.2-4ubuntu2.2 amd64 guest disk image management system - XFS support
ii libguestfs0:amd64 1:1.32.2-4ubuntu2.2 amd64 guest disk image management system - shared library

$ sudo guestfish -a xenial-server-cloudimg-amd64-disk1.img --network -v << EOF
> run
> mount /dev/sda1 /
> command 'apt update'
> EOF
libguestfs: launch: program=guestfish
libguestfs: launch: version=1.32.2
libguestfs: launch: backend registered: unix
libguestfs: launch: backend registered: uml
libguestfs: launch: backend registered: libvirt
libguestfs: launch: backend registered: direct
...
commandrvf: apt update
...
renaming /sysroot/etc/2j272z4v to /sysroot/etc/resolv.conf
Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Get:5 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [7532 kB]
Get:6 http://archive.ubuntu.com/ubuntu xenial/universe Translation-en [4354 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [144 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial/multiverse Translation-en [106 kB]
Get:9 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [912 kB]
Get:10 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [728 kB]
Get:11 http://archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [301 kB]
Get:12 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [16.6 kB]
Get:13 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse Translation-en [8440 B]
Get:14 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [7280 B]
Get:15 http://archive.ubuntu.com/ubuntu xenial-backports/main Translation-en [4456 B]
Get:16 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [7804 B]
Get:17 http://archive.ubuntu.com/ubuntu xenial-backports/universe Translation-en [4184 B]
Get:18 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [425 kB]
Get:19 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en [171 kB]
Get:20 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [5600 B]
Get:21 http://security.ubuntu.com/ubuntu xenial-security/multiverse Translation-en [2676 B]
Fetched 15.1 MB in 21s (714 kB/s)
Reading package lists...
Building dependency tree...
Reading state information...
All packages are up to date.
...