WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Installing Core as KVM Domain  (Read 5817 times)

Offline ikanpar1

  • Newbie
  • *
  • Posts: 1
Installing Core as KVM Domain
« on: October 22, 2018, 03:00:05 AM »
Hello, I'm trying to install core as a KVM domain. The host is CentOS 7.
I need console to be available during installation, not VNC because VNC port is blocked by default.
I tried the following:

Code: [Select]
root@kvmhost /tmp> ll
total 12948
-rw-r--r--. 1 root root 13256704 Mar 19  2018 Core-current.iso

root@kvmhost /tmp> virt-install --network bridge:br0 --name testmachine --ram=128 --vcpus=1 --disk path=/var/lib/libvirt/images/testmachine.img,size=0.2 --nographics --location /tmp/Core-current.iso --extra-args "console=ttyS0"
WARNING  No operating system detected, VM performance may suffer. Specify an OS with --os-variant for optimal results.

Starting install...
ERROR    Could not find an installable distribution at '/tmp/Core-current.iso'

The location must be the root directory of an install tree.
See virt-install man page for various distro examples.
Domain installation does not appear to have been successful.
If it was, you can restart your domain by running:
  virsh --connect qemu:///system start diglett
otherwise, please restart your installation.

root@kvmhost /tmp> virt-install --network bridge:br0 --name testmachine --ram=128 --vcpus=1 --disk path=/var/lib/libvirt/images/testmachine.img,size=0.2 --nographics --cdrom /tmp/Core-current.iso --extra-args "console=ttyS0"
ERROR    --extra-args only work if specified with --location. See the man page for examples of using --location with CDROM media

Have anyone successfully install Core on KVM without VNC? Would you mind sharing the method.. Thanks a lot :)

Offline hiro

  • Hero Member
  • *****
  • Posts: 1217
Re: Installing Core as KVM Domain
« Reply #1 on: October 29, 2018, 04:40:02 PM »
yes, but serial is turned off by default, you'd have to remaster to turn it on in inittab. example is here: http://forum.tinycorelinux.net/index.php/topic,21129.msg133995.html#msg133995

should probably also add console parameters to the bootloader.
« Last Edit: October 29, 2018, 04:45:49 PM by hiro »