From 44e31260663dc1a0952c5954b6ce49322dc8aa6c Mon Sep 17 00:00:00 2001 From: Sean O'Keeffe Date: Wed, 5 Jul 2023 08:11:40 +0100 Subject: [PATCH] virt-install requires `--import` (#28067) qcow2 image require `--import` --- source/_includes/installation/operating_system.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/_includes/installation/operating_system.md b/source/_includes/installation/operating_system.md index ec138eeb184..d76f6d3eb8f 100644 --- a/source/_includes/installation/operating_system.md +++ b/source/_includes/installation/operating_system.md @@ -290,7 +290,7 @@ _All these can be extended if your usage calls for more resources._ - title: KVM (virt-install) content: | ```bash - virt-install --name hass --description "Home Assistant OS" --os-variant=generic --ram=2048 --vcpus=2 --disk ,bus=sata --graphics none --boot uefi + virt-install --name hass --description "Home Assistant OS" --os-variant=generic --ram=2048 --vcpus=2 --disk ,bus=sata --import --graphics none --boot uefi ```
If you have a USB dongle to attach, you need to add the option `--hostdev busID.deviceId`. You can discover these IDs via the `lsusb` command. @@ -310,7 +310,7 @@ _All these can be extended if your usage calls for more resources._ You can recognize the Sonoff dongle at `Bus 003 Device 003`. So the command to install the VM will become: ```bash - virt-install --name hass --description "Home Assistant OS" --os-variant=generic --ram=2048 --vcpus=2 --disk ,bus=sata --graphics none --boot uefi --hostdev 003.003 + virt-install --name hass --description "Home Assistant OS" --os-variant=generic --ram=2048 --vcpus=2 --disk ,bus=sata --import --graphics none --boot uefi --hostdev 003.003 ``` Note that this configuration (bus 003, device 003) is just an example, your dongle could be on another bus and/or with another device ID. Please check the correct IDs of your USB dongle with `lsusb`.