VCL will be able to to capture a Ubuntu 20.04 image but the vcl scripts
currently do not support the netplan networking system which is how
networking is configured by default via default.  If you revert to using
the ifupdown and the old network naming conventions like eth0 you will be
able to caputre a image successfully.

You can find instructions for doing this here
https://linuxconfig.org/how-to-switch-back-networking-to-etc-network-interfaces-on-ubuntu-20-04-focal-fossa-linux

Mike Jennings


On Tue, Mar 30, 2021 at 5:02 PM Luis A Lopez Negron <
[email protected]> wrote:

> Hi folks:
>
> Does VCL support Ububtu Server 20.04?.  I'm having problems capturing an
> Ubuntu image with mac address errors
>
>
> |10909|165540|166082|image|OS.pm:get_private_interface_name|1907| ----
> WARNING ----
> |10909|165540|166082|image|OS.pm:get_private_interface_name|1907|
> 2021-03-30
> 16:57:48|10909|165540|166082|image|OS.pm:get_private_interface_name|1907|unable
> to determine private interface name, failed to retrieve network
> configuration
> |10909|165540|166082|image|OS.pm:get_private_interface_name|1907| ( 0)
> OS.pm, get_private_interface_name (line: 1907)
> |10909|165540|166082|image|OS.pm:get_private_interface_name|1907| (-1)
> OS.pm, get_private_network_configuration (line: 2253)
> |10909|165540|166082|image|OS.pm:get_private_interface_name|1907| (-2)
> (eval 570), (eval) (line: 1)
> |10909|165540|166082|image|OS.pm:get_private_interface_name|1907| (-3)
> OS.pm, get_mac_address (line: 2321)
> |10909|165540|166082|image|OS.pm:get_private_interface_name|1907| (-4)
> OS.pm, get_private_mac_address (line: 2355)
> |10909|165540|166082|image|OS.pm:get_private_interface_name|1907| (-5)
> libvirt.pm, get_active_domain_name (line: 1156)
> |10909|165540|166082|image|OS.pm:get_private_interface_name|1907| (-6)
> libvirt.pm, get_domain_name (line: 1017)
> |10909|165540|166082|image|OS.pm:get_private_interface_name|1907| (-7)
> libvirt.pm, capture (line: 383)
> |10909|165540|166082|image|OS.pm:get_private_interface_name|1907| (-8)
> image.pm, process (line: 164)
> |10909|165540|166082|image|OS.pm:get_private_interface_name|1907| (-9)
> vcld, make_new_child (line: 601)
> |10909|165540|166082|image|OS.pm:get_private_interface_name|1907| (-10)
> vcld, main (line: 353)
> |10909|165540|166082|image|OS.pm:get_private_network_configuration|2255|
> ---- WARNING ----
> |10909|165540|166082|image|OS.pm:get_private_network_configuration|2255|
> 2021-03-30
> 16:57:48|10909|165540|166082|image|OS.pm:get_private_network_configuration|2255|unable
> to retrieve private network configuration, private interface name could not
> be determined
> |10909|165540|166082|image|OS.pm:get_private_network_configuration|2255| (
> 0) OS.pm, get_private_network_configuration (line: 2255)
> |10909|165540|166082|image|OS.pm:get_private_network_configuration|2255|
> (-1) (eval 570), (eval) (line: 1)
> |10909|165540|166082|image|OS.pm:get_private_network_configuration|2255|
> (-2) OS.pm, get_mac_address (line: 2321)
> |10909|165540|166082|image|OS.pm:get_private_network_configuration|2255|
> (-3) OS.pm, get_private_mac_address (line: 2355)
> |10909|165540|166082|image|OS.pm:get_private_network_configuration|2255|
> (-4) libvirt.pm, get_active_domain_name (line: 1156)
> |10909|165540|166082|image|OS.pm:get_private_network_configuration|2255|
> (-5) libvirt.pm, get_domain_name (line: 1017)
> |10909|165540|166082|image|OS.pm:get_private_network_configuration|2255|
> (-6) libvirt.pm, capture (line: 383)
> |10909|165540|166082|image|OS.pm:get_private_network_configuration|2255|
> (-7) image.pm, process (line: 164)
> |10909|165540|166082|image|OS.pm:get_private_network_configuration|2255|
> (-8) vcld, make_new_child (line: 601)
> |10909|165540|166082|image|OS.pm:get_private_network_configuration|2255|
> (-9) vcld, main (line: 353)
> |10909|165540|166082|image|OS.pm:get_mac_address|2323| ---- WARNING ----
> |10909|165540|166082|image|OS.pm:get_mac_address|2323| 2021-03-30
> 16:57:48|10909|165540|166082|image|OS.pm:get_mac_address|2323|unable to
> retrieve private network configuration
> |10909|165540|166082|image|OS.pm:get_mac_address|2323| ( 0) OS.pm,
> get_mac_address (line: 2323)
> |10909|165540|166082|image|OS.pm:get_mac_address|2323| (-1) OS.pm,
> get_private_mac_address (line: 2355)
> |10909|165540|166082|image|OS.pm:get_mac_address|2323| (-2) libvirt.pm,
> get_active_domain_name (line: 1156)
> |10909|165540|166082|image|OS.pm:get_mac_address|2323| (-3) libvirt.pm,
> get_domain_name (line: 1017)
> |10909|165540|166082|image|OS.pm:get_mac_address|2323| (-4) libvirt.pm,
> capture (line: 383)
> |10909|165540|166082|image|OS.pm:get_mac_address|2323| (-5) image.pm,
> process (line: 164)
> |10909|165540|166082|image|OS.pm:get_mac_address|2323| (-6) vcld,
> make_new_child (line: 601)
> |10909|165540|166082|image|OS.pm:get_mac_address|2323| (-7) vcld, main
> (line: 353)
> 2021-03-30
> 16:57:48|10909|165540|166082|image|OS.pm:get_public_network_configuration|2282|attempting
> to retrieve public network configuration, no cache: 0, ignore error: 0
> 2021-03-30
> 16:57:48|10909|165540|166082|image|OS.pm:get_public_interface_name|1961|attempting
> to determine public interface name, no cache: 0, ignore error: 0
> 2021-03-30
> 16:57:48|10909|165540|166082|image|Linux.pm:get_network_configuration|2543|attempting
> to retrieve network configuration, no cache: 0
> 2021-03-30 
> 16:57:48|10909|165540|166082|image|utils.pm:run_ssh_command|4235|executing
> SSH command on 10.10.200.196 (ubuntuserver): '/usr/bin/ssh -i
> /etc/vcl/vcl.key  -o StrictHostKeyChecking=no -o
> UserKnownHostsFile=/dev/null -o ConnectionAttempts=1 -o ConnectTimeout=30
> -o BatchMode=no -o PasswordAuthentication=no -l root -p 22 -x 10.10.200.196
> '/sbin/ifconfig -a' 2>&1'
> 2021-03-30 
> 16:57:48|10909|165540|166082|image|utils.pm:run_ssh_command|4384|command:
> '/sbin/ifconfig -a', exit_status: 127, output:
> |10909|165540|166082|image|utils.pm:run_ssh_command|4384| bash:
> /sbin/ifconfig: No such file or directory
> 2021-03-30 
> 16:57:48|10909|165540|166082|image|utils.pm:run_ssh_command|4235|executing
> SSH command on 10.10.200.196 (ubuntuserver): '/usr/bin/ssh -i
> /etc/vcl/vcl.key  -o StrictHostKeyChecking=no -o
> UserKnownHostsFile=/dev/null -o ConnectionAttempts=1 -o ConnectTimeout=30
> -o BatchMode=no -o PasswordAuthentication=no -l root -p 22 -x 10.10.200.196
> '/sbin/route -n' 2>&1'
> 2021-03-30 
> 16:57:49|10909|165540|166082|image|utils.pm:run_ssh_command|4384|command:
> '/sbin/route -n', exit_status: 127, output:
> |10909|165540|166082|image|utils.pm:run_ssh_command|4384| bash:
> /sbin/route: No such file or directory
> 2021-03-30 
> 16:57:49|10909|165540|166082|image|utils.pm:run_ssh_command|4235|executing
> SSH command on 10.10.200.196 (ubuntuserver): '/usr/bin/ssh -i
> /etc/vcl/vcl.key  -o StrictHostKeyChecking=no -o
> UserKnownHostsFile=/dev/null -o ConnectionAttempts=1 -o ConnectTimeout=30
> -o BatchMode=no -o PasswordAuthentication=no -l root -p 22 -x 10.10.200.196
> 'brctl show' 2>&1'
> 2021-03-30 
> 16:57:49|10909|165540|166082|image|utils.pm:run_ssh_command|4384|command:
> 'brctl show', exit_status: 0, output:
> 2021-03-30
> 16:57:49|10909|165540|166082|image|Linux.pm:get_network_bridge_info|3606|retrieved
> network bridge configuration from ubuntuserver:: {}
> 2021-03-30
> 16:57:49|10909|165540|166082|image|Linux.pm:get_network_configuration|2657|retrieved
> network configuration:
> |10909|165540|166082|image|Linux.pm:get_network_configuration|2657| : undef
> |10909|165540|166082|image|OS.pm:get_public_interface_name|1974| ----
> WARNING ----
> |10909|165540|166082|image|OS.pm:get_public_interface_name|1974|
> 2021-03-30
> 16:57:49|10909|165540|166082|image|OS.pm:get_public_interface_name|1974|unable
> to determine public interface name, failed to retrieve network configuration
>
> --
> Luis A. López
> Retired Sys Admin, UPRM
>

Reply via email to