summaryrefslogtreecommitdiff
path: root/src/install.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/install.rs')
-rw-r--r--src/install.rs12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/install.rs b/src/install.rs
index 5476277..89969e0 100644
--- a/src/install.rs
+++ b/src/install.rs
@@ -19,6 +19,7 @@ pub enum VirtInstallError {
CloudInitError(#[from] CloudInitError),
}
+#[derive(Debug)]
pub struct VirtInstallArgs {
name: String,
memory: usize,
@@ -83,7 +84,16 @@ pub fn virt_install(args: &VirtInstallArgs) -> Result<(), VirtInstallError> {
"--disk=path={},cache=none",
args.image().filename().display()
))
- .arg(format!("--disk=path={},readconly=on", iso.display()))
+ .arg(format!("--disk=path={},readonly=on", iso.display()))
+ .arg("--connect=qemu::///system")
+ .arg("--connect")
+ .arg("qemu:///system")
+ .arg("--cpu=host-passthrough")
+ .arg("--os-variant=debian9")
+ .arg("--import")
+ .arg("--graphics=spice")
+ .arg("--noautoconsole")
+ .arg("--quiet")
.output()?;
if !r.status.success() {
let stderr = String::from_utf8(r.stderr)?;