kimchi-project / kimchi

An HTML5 management interface for KVM guests
https://github.com/kimchi-project/kimchi/releases/latest
Other
3.09k stars 365 forks source link

Can specify VM architecture in template? #1184

Open evansharp opened 6 years ago

evansharp commented 6 years ago

I'm having difficulty installing 64-bit Ubuntu Server 16.04 into a VM.

After creating a template using a downloaded official AMD64 release image from Canonical, when I start the VM for the first time and proceed to the console to complete the install process, I see only this error:

This kernel requires an x86_64 CPU, but only detected an i686 CPU. Unable to boot - please use a kernel appropriate for your CPU.

The host hardware is a brand new Intel Xenon CPU (Dell PowerEdge stack server), definitely x86_64.

Meanwhile, I have been able to use virsh to create the VM I want, and it shows up in Kimchi's UI once created, but I cannot determine the correct --extra-args to enable Kimchi's fantastic console support. The "View Console" option just isn't in the list of actions for that VM in the Guests list. My virsh command looks like this:

virt-install --name network-services \
  --ram 2047 \
  --disk path=/var/lib/libvirt/images/ubuntu16.img,size=8 \
  --vcpus 2 \
  --os-type linux \
  --arch x86_64 \
  --os-variant ubuntu16.04 \
  --network bridge=vmbr0 \
  --graphics none \
  --console pty,target_type=serial \
  --location 'http://us.archive.ubuntu.com/ubuntu/dists/xenial/main/installer-amd64/' \
  --extra-args 'console=tty0, console=ttyS0,115200 serial'

So my question is either: (1) Is there a way to specify 64 bit arch in a Kimchi template, since my install clearly isn't defaulting to the host's (as it should?) (2) What --extra-args do I need to use in virsh to have Kimchi's qemu console show up?