** Description changed:

  [Impact]
  * To run a fully automated Ubuntu server installation (autoinstall) using 
virt-install, we want to use a combination of:
     * --cloud-init user-data=$path_to_autoinstall
     * --extra-args autoinstall
  
  * Unfortunately, when --location is used, the --cloud-init option gets
  silently ignored. This makes the installer start interactively ; instead
  of performing the  installation automatically using the autoinstall
  configuration from the cloud-init user-data file.
  
  * In certain scenarios, the --location option can be replaced by --cdrom
  (and then the --cloud-init option is honored). However, the --cdrom
  option is mutually exclusive with --extra-args ; so we can only get a
  partially automated installation (it requires confirmation from the
  user).
  
  [Test plan]
  * Ensuring that the following commands result in a fully automated (and 
successful) installation:
  
  $ wget https://releases.ubuntu.com/noble/ubuntu-24.04-live-server-
  amd64.iso
  
  $ cat > autoinstall.yaml
  #cloud-config
  autoinstall:
    version: 1
    source:
      id: ubuntu-server-minimal
    identity:
      hostname: ubuntu
      realname: ubuntu
      username: ubuntu
      password: 
$6$VDuw.212hptHuNMP$id7Wzc0Lem9aUl9RqydBIehO.6J2Qud6jlhgLEgXa3cnql30XIGmP5c18FRZixH.6LsgFo336Azfce8Fht0t30
  
  $ virt-install --noreboot --connect qemu:///session --disk size=10
  --memory 1024 --virt-type kvm --location ubuntu-24.04-live-server-
  amd64.iso --cloud-init user-data=autoinstall.yaml --extra-args
  autoinstall
  
  [Where problems could occur]
  It seems unlikely, but if someone relies on virt-install's current behavior 
(i.e.,  silently ignoring the --cloud-config option in the presence of 
--location), they might be surprised to witness a different behavior after 
virt-manager gets upgraded.
  
  [Additional information]
  * There is an upstream bug report [1] with a merged PR [2]
- * As of time of writing, virt-manager FTBFS on noble because python-argparse 
regressed (see bug 2075315). Therefore, python-argparse needs to be accepted in 
noble-proposed before virt-install. Alternatively, we will need to request 
rebuilds of virt-install once python-argparse makes it to noble-proposed.
+ * As of time of writing, virt-manager FTBFS on noble because 
python-argcomplete regressed (see bug 2075315). Therefore, python-argcomplete 
needs to be accepted in noble-proposed before virt-install. Alternatively, we 
will need to request rebuilds of virt-install once python-argcomplete makes it 
to noble-proposed.
  
  [1] https://github.com/virt-manager/virt-manager/issues/469
  [2] https://github.com/virt-manager/virt-manager/pull/485

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2073461

Title:
  [SRU] virt-install ignores --cloud-init when --location is present

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/virt-manager/+bug/2073461/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to