Questions tagged [virt-install]

43 questions
11
votes
4 answers

virt-install cannot use ISO file as location

I am using the following script to install a new Fedora Server virtual machine virt-install \ --name theta-1 \ --ram 8000 \ --disk path=/dev/vg/t1.img \ --vcpus 8 \ --os-type linux \ --os-variant fedora25 \ --network bridge=br0 \ --graphics none…
Germano Massullo
  • 233
  • 2
  • 5
  • 17
5
votes
3 answers

Do not start guest after virt-install

I like to set up a new guest but do not want to start it immediately. I use virt-install with these options: virt-install \ --connect qemu:///system \ --import \ --virt-type kvm \ --name somevm \ --os-variant win7 \ --memory…
reox
  • 225
5
votes
5 answers

Automated install of Lucid guests on Lucid KVM Server

We have an Ubuntu 10.04 server running KVM very nicely, but are having trouble figuring out the cleanest (and fastest) way to do unattended installs of 10.04 guests. Requirements: Must use LVM volumes for the guests' storage (without some…
mikehapner
  • 1,195
  • 10
  • 9
4
votes
1 answer

virt-install hangs, no apparent error in logs and virsh list later shows its running after ctrl c exit, no domifaddr though

Got thrown into a situation managing boxes that the person before me used virt, so trying to come up to speed. As a test doing a virt-install of this: virt-install --virt-type=kvm --name kosmos-icc --ram 1000 --os-variant=centos7.0…
Codejoy
  • 181
4
votes
1 answer

Centos6 with cloud-init takes longer boot time

Centos-6.6 vm image takes almost ten minutes of boot time when ran using virsh. I captured the logs using virsh console. It looks like this, ci-info: +-------+---------------+---------------+---------------+-----------+-------+ ci-info: | Route | …
Saravana
  • 143
3
votes
0 answers

virt-install fully automated install

I'm looking into ways of installing/deploying a VM completely automated (no user interaction). So far I have tried QEMU and virt-install along with QEMU. The issue with qemu is that injecting kickstart file has to be injected manually. On the…
Harish
  • 31
  • 1
  • 2
3
votes
3 answers

How to install an Ubuntu 12.04 server VM with virt-install without graphics locally (preferably from an ISO)?

I've seen similar questions here but they don't seem to answer the question, instead deferring to graphical installs or PXE-based installs (and with little detail on the latter for my use case). I want to create a VM in Ubuntu 12.04 with the Ubuntu…
3
votes
1 answer

Migration from a bare metal Ubuntu Server to a KVM or VirtualBox does not boot?

I had a bare metal Ubuntu Server installation. I created a full disk image with dd and converted to qcow2. qemu-img convert -O qcow2 full_disk.dd.img full_disk.qcow2 Then I have installed a fresh Ubuntu Server 22.04 on this machine. Later I wanted…
3
votes
1 answer

virt-install Couldn't find hvm kernel for Ubuntu tree

I'm trying to create a VM using KVM and virt-installer. When i use virt-install I get the following error: Starting install... Retrieving file .treeinfo... …
Plee
  • 131
2
votes
3 answers

No progress durign VM installation using a kickstarter file for Centos 7

I am using a kick starter file to install a Centos 7 VM and the progress has nearly stalled without displaying any messages in the terminal. My kickstarter file is placed in /tmp/ks.cfg having the following contents: install lang…
2
votes
0 answers

Ubuntu KVM virsh console domain connects, but does not load console

I installed a copy of Ubuntu 17.04 using virt-install, on my server (non desktop). sudo virt-install --connect qemu:///system -n wiki -r 4096 --vcpus=2 -f /dev/mapper/vgpool-wiki --network=bridge:br0 --nographics --accelerate --location…
2
votes
1 answer

KVM/qemu/libvirt VM PCI Domain/Bus/Slot/Function assignment using virt-install

I am trying to create a VM using the virt-install utility and while that is easy enough to do what I would like to be able to do is proving quite difficult. I would like to be able to specify the domain/bus/slot/function of the ethernet interfaces…
2
votes
1 answer

can't install VM using virt-install

I use this command: virt-install -r 1024 --vcpus=2 --accelerate --nographics -n test -f test.img --cdrom /iso/CentOS.iso but I doesn't show the text based install: boot: linux text Loading vmlinuz................................. Loading…
2
votes
2 answers

virt-install kept on adding --no-reboot - even though I don't want it to

I have a bit of a problem getting my guests to reboot after the OS installation using virt-install. For whatever reason, virt-install insists on inserting "--no-reboot" when you create a VM: LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin…
2
votes
2 answers

network interfaces are deleted after issuing a virsh shutdown on VM

I tried to instantiate a VM using virt-install command with few interfaces as needed. The exact command is as follows: virt-install \ --name VM \ --noautoconsole \ --input keyboard \ --os-variant rhel7.0 \ --memory 8192 \ …
1
2 3